From 031e6c4e60657e7ac4a293975973d74e68fec4f3 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 18 Feb 2025 11:37:38 +0530 Subject: [PATCH] chore: go fix --- client/page_util.go | 4 +- client/page_util_test.go | 14 +-- go.mod | 4 +- rest/accounts/v1/consents_bulk.go | 1 - rest/accounts/v1/contacts_bulk.go | 1 - rest/accounts/v1/credentials_aws.go | 10 +- rest/accounts/v1/credentials_public_keys.go | 10 +- rest/accounts/v1/docs/CredentialsAWSApi.md | 4 +- .../v1/docs/CredentialsPublicKeysApi.md | 4 +- .../v1/docs/ListCredentialAwsResponseMeta.md | 2 +- ...model_list_credential_aws_response_meta.go | 2 +- rest/api/v2010/README.md | 1 + rest/api/v2010/accounts.go | 10 +- rest/api/v2010/accounts_addresses.go | 14 +-- ...ounts_addresses_dependent_phone_numbers.go | 10 +- rest/api/v2010/accounts_applications.go | 10 +- .../v2010/accounts_authorized_connect_apps.go | 10 +- .../v2010/accounts_available_phone_numbers.go | 11 +- .../accounts_available_phone_numbers_local.go | 10 +- ...ilable_phone_numbers_machine_to_machine.go | 10 +- ...accounts_available_phone_numbers_mobile.go | 10 +- ...counts_available_phone_numbers_national.go | 10 +- ...nts_available_phone_numbers_shared_cost.go | 10 +- ...ounts_available_phone_numbers_toll_free.go | 10 +- .../accounts_available_phone_numbers_voip.go | 10 +- rest/api/v2010/accounts_calls.go | 10 +- rest/api/v2010/accounts_calls_events.go | 10 +- .../api/v2010/accounts_calls_notifications.go | 11 +- rest/api/v2010/accounts_calls_recordings.go | 10 +- .../v2010/accounts_calls_transcriptions.go | 2 +- rest/api/v2010/accounts_conferences.go | 11 +- .../accounts_conferences_participants.go | 11 +- .../v2010/accounts_conferences_recordings.go | 10 +- rest/api/v2010/accounts_connect_apps.go | 10 +- .../v2010/accounts_incoming_phone_numbers.go | 10 +- ...incoming_phone_numbers_assigned_add_ons.go | 10 +- ...one_numbers_assigned_add_ons_extensions.go | 10 +- .../accounts_incoming_phone_numbers_local.go | 11 +- .../accounts_incoming_phone_numbers_mobile.go | 11 +- ...counts_incoming_phone_numbers_toll_free.go | 11 +- rest/api/v2010/accounts_keys.go | 14 +-- rest/api/v2010/accounts_messages.go | 10 +- rest/api/v2010/accounts_messages_media.go | 10 +- rest/api/v2010/accounts_notifications.go | 10 +- .../api/v2010/accounts_outgoing_caller_ids.go | 11 +- rest/api/v2010/accounts_queues.go | 10 +- rest/api/v2010/accounts_queues_members.go | 10 +- rest/api/v2010/accounts_recordings.go | 10 +- .../accounts_recordings_add_on_results.go | 10 +- ...unts_recordings_add_on_results_payloads.go | 10 +- .../accounts_recordings_transcriptions.go | 12 +- rest/api/v2010/accounts_signing_keys.go | 13 +-- .../v2010/accounts_sip_credential_lists.go | 10 +- ...counts_sip_credential_lists_credentials.go | 10 +- rest/api/v2010/accounts_sip_domains.go | 10 +- ...ins_auth_calls_credential_list_mappings.go | 10 +- ...h_calls_ip_access_control_list_mappings.go | 10 +- ..._registrations_credential_list_mappings.go | 10 +- ...ts_sip_domains_credential_list_mappings.go | 10 +- ...domains_ip_access_control_list_mappings.go | 10 +- .../accounts_sipip_access_control_lists.go | 10 +- ...sipip_access_control_lists_ip_addresses.go | 10 +- rest/api/v2010/accounts_sms_short_codes.go | 10 +- rest/api/v2010/accounts_transcriptions.go | 10 +- rest/api/v2010/accounts_usage_records.go | 10 +- .../v2010/accounts_usage_records_all_time.go | 10 +- .../api/v2010/accounts_usage_records_daily.go | 10 +- .../accounts_usage_records_last_month.go | 10 +- .../v2010/accounts_usage_records_monthly.go | 10 +- .../accounts_usage_records_this_month.go | 10 +- .../api/v2010/accounts_usage_records_today.go | 10 +- .../v2010/accounts_usage_records_yearly.go | 10 +- .../v2010/accounts_usage_records_yesterday.go | 10 +- rest/api/v2010/accounts_usage_triggers.go | 11 +- rest/api/v2010/docs/AccountsAddressesApi.md | 4 +- ...countsAddressesDependentPhoneNumbersApi.md | 4 +- rest/api/v2010/docs/AccountsApi.md | 4 +- .../api/v2010/docs/AccountsApplicationsApi.md | 4 +- .../docs/AccountsAuthorizedConnectAppsApi.md | 4 +- .../docs/AccountsAvailablePhoneNumbersApi.md | 4 +- .../AccountsAvailablePhoneNumbersLocalApi.md | 4 +- ...vailablePhoneNumbersMachineToMachineApi.md | 4 +- .../AccountsAvailablePhoneNumbersMobileApi.md | 4 +- ...ccountsAvailablePhoneNumbersNationalApi.md | 4 +- ...ountsAvailablePhoneNumbersSharedCostApi.md | 4 +- ...ccountsAvailablePhoneNumbersTollFreeApi.md | 4 +- .../AccountsAvailablePhoneNumbersVoipApi.md | 4 +- rest/api/v2010/docs/AccountsCallsApi.md | 4 +- rest/api/v2010/docs/AccountsCallsEventsApi.md | 4 +- .../docs/AccountsCallsNotificationsApi.md | 4 +- .../v2010/docs/AccountsCallsRecordingsApi.md | 4 +- .../docs/AccountsCallsTranscriptionsApi.md | 2 +- rest/api/v2010/docs/AccountsConferencesApi.md | 4 +- .../AccountsConferencesParticipantsApi.md | 4 +- .../docs/AccountsConferencesRecordingsApi.md | 4 +- rest/api/v2010/docs/AccountsConnectAppsApi.md | 4 +- .../docs/AccountsIncomingPhoneNumbersApi.md | 4 +- ...tsIncomingPhoneNumbersAssignedAddOnsApi.md | 4 +- ...PhoneNumbersAssignedAddOnsExtensionsApi.md | 4 +- .../AccountsIncomingPhoneNumbersLocalApi.md | 4 +- .../AccountsIncomingPhoneNumbersMobileApi.md | 4 +- ...AccountsIncomingPhoneNumbersTollFreeApi.md | 4 +- rest/api/v2010/docs/AccountsKeysApi.md | 4 +- rest/api/v2010/docs/AccountsMessagesApi.md | 4 +- .../v2010/docs/AccountsMessagesMediaApi.md | 4 +- .../v2010/docs/AccountsNotificationsApi.md | 4 +- .../docs/AccountsOutgoingCallerIdsApi.md | 4 +- rest/api/v2010/docs/AccountsQueuesApi.md | 4 +- .../v2010/docs/AccountsQueuesMembersApi.md | 4 +- .../docs/AccountsRecordingsAddOnResultsApi.md | 4 +- ...countsRecordingsAddOnResultsPayloadsApi.md | 4 +- rest/api/v2010/docs/AccountsRecordingsApi.md | 4 +- .../AccountsRecordingsTranscriptionsApi.md | 4 +- .../docs/AccountsSIPCredentialListsApi.md | 4 +- ...ccountsSIPCredentialListsCredentialsApi.md | 4 +- rest/api/v2010/docs/AccountsSIPDomainsApi.md | 4 +- ...mainsAuthCallsCredentialListMappingsApi.md | 4 +- ...AuthCallsIpAccessControlListMappingsApi.md | 4 +- ...hRegistrationsCredentialListMappingsApi.md | 4 +- ...untsSIPDomainsCredentialListMappingsApi.md | 4 +- ...IPDomainsIpAccessControlListMappingsApi.md | 4 +- .../AccountsSIPIpAccessControlListsApi.md | 4 +- ...tsSIPIpAccessControlListsIpAddressesApi.md | 4 +- .../v2010/docs/AccountsSMSShortCodesApi.md | 4 +- rest/api/v2010/docs/AccountsSigningKeysApi.md | 4 +- .../v2010/docs/AccountsTranscriptionsApi.md | 4 +- .../docs/AccountsUsageRecordsAllTimeApi.md | 4 +- .../api/v2010/docs/AccountsUsageRecordsApi.md | 4 +- .../docs/AccountsUsageRecordsDailyApi.md | 4 +- .../docs/AccountsUsageRecordsLastMonthApi.md | 4 +- .../docs/AccountsUsageRecordsMonthlyApi.md | 4 +- .../docs/AccountsUsageRecordsThisMonthApi.md | 4 +- .../docs/AccountsUsageRecordsTodayApi.md | 4 +- .../docs/AccountsUsageRecordsYearlyApi.md | 4 +- .../docs/AccountsUsageRecordsYesterdayApi.md | 4 +- .../v2010/docs/AccountsUsageTriggersApi.md | 4 +- rest/assistants/v1/assistants.go | 10 +- rest/assistants/v1/assistants_feedbacks.go | 10 +- rest/assistants/v1/assistants_knowledge.go | 10 +- rest/assistants/v1/assistants_tools.go | 10 +- rest/assistants/v1/docs/AssistantsApi.md | 4 +- .../v1/docs/AssistantsFeedbacksApi.md | 4 +- .../v1/docs/AssistantsKnowledgeApi.md | 4 +- rest/assistants/v1/docs/AssistantsToolsApi.md | 4 +- rest/assistants/v1/docs/KnowledgeApi.md | 4 +- rest/assistants/v1/docs/KnowledgeChunksApi.md | 4 +- rest/assistants/v1/docs/PoliciesApi.md | 4 +- rest/assistants/v1/docs/SessionsApi.md | 4 +- .../assistants/v1/docs/SessionsMessagesApi.md | 4 +- rest/assistants/v1/docs/ToolsApi.md | 4 +- rest/assistants/v1/knowledge.go | 10 +- rest/assistants/v1/knowledge_chunks.go | 10 +- rest/assistants/v1/policies.go | 10 +- rest/assistants/v1/sessions.go | 10 +- rest/assistants/v1/sessions_messages.go | 10 +- rest/assistants/v1/tools.go | 10 +- rest/bulkexports/v1/docs/ExportsDaysApi.md | 4 +- rest/bulkexports/v1/docs/ExportsJobsApi.md | 4 +- .../v1/docs/ListDayResponseMeta.md | 2 +- rest/bulkexports/v1/exports_days.go | 10 +- rest/bulkexports/v1/exports_jobs.go | 13 +-- .../v1/model_list_day_response_meta.go | 2 +- rest/chat/v1/credentials.go | 14 +-- rest/chat/v1/docs/CredentialsApi.md | 4 +- rest/chat/v1/docs/ListChannelResponseMeta.md | 2 +- rest/chat/v1/docs/ServicesApi.md | 4 +- rest/chat/v1/docs/ServicesChannelsApi.md | 4 +- .../v1/docs/ServicesChannelsInvitesApi.md | 4 +- .../v1/docs/ServicesChannelsMembersApi.md | 4 +- .../v1/docs/ServicesChannelsMessagesApi.md | 4 +- rest/chat/v1/docs/ServicesRolesApi.md | 4 +- rest/chat/v1/docs/ServicesUsersApi.md | 4 +- rest/chat/v1/docs/ServicesUsersChannelsApi.md | 4 +- .../v1/model_list_channel_response_meta.go | 2 +- rest/chat/v1/services.go | 14 +-- rest/chat/v1/services_channels.go | 14 +-- rest/chat/v1/services_channels_invites.go | 13 +-- rest/chat/v1/services_channels_members.go | 14 +-- rest/chat/v1/services_channels_messages.go | 14 +-- rest/chat/v1/services_roles.go | 14 +-- rest/chat/v1/services_users.go | 14 +-- rest/chat/v1/services_users_channels.go | 10 +- rest/chat/v2/credentials.go | 14 +-- rest/chat/v2/docs/CredentialsApi.md | 4 +- rest/chat/v2/docs/ListBindingResponseMeta.md | 2 +- rest/chat/v2/docs/ServicesApi.md | 4 +- rest/chat/v2/docs/ServicesBindingsApi.md | 4 +- rest/chat/v2/docs/ServicesChannelsApi.md | 4 +- .../v2/docs/ServicesChannelsInvitesApi.md | 4 +- .../v2/docs/ServicesChannelsMembersApi.md | 4 +- .../v2/docs/ServicesChannelsMessagesApi.md | 4 +- .../v2/docs/ServicesChannelsWebhooksApi.md | 4 +- rest/chat/v2/docs/ServicesRolesApi.md | 4 +- rest/chat/v2/docs/ServicesUsersApi.md | 4 +- rest/chat/v2/docs/ServicesUsersBindingsApi.md | 4 +- rest/chat/v2/docs/ServicesUsersChannelsApi.md | 4 +- .../v2/model_list_binding_response_meta.go | 2 +- rest/chat/v2/services.go | 14 +-- rest/chat/v2/services_bindings.go | 12 +- rest/chat/v2/services_channels.go | 14 +-- rest/chat/v2/services_channels_invites.go | 13 +-- rest/chat/v2/services_channels_members.go | 14 +-- rest/chat/v2/services_channels_messages.go | 14 +-- rest/chat/v2/services_channels_webhooks.go | 14 +-- rest/chat/v2/services_roles.go | 14 +-- rest/chat/v2/services_users.go | 14 +-- rest/chat/v2/services_users_bindings.go | 12 +- rest/chat/v2/services_users_channels.go | 12 +- rest/content/v1/content.go | 10 +- rest/content/v1/content_and_approvals.go | 10 +- .../v1/content_approval_requests_whatsapp.go | 1 - .../content/v1/docs/ContentAndApprovalsApi.md | 4 +- rest/content/v1/docs/ContentApi.md | 4 +- rest/content/v1/docs/LegacyContentApi.md | 4 +- rest/content/v1/legacy_content.go | 10 +- rest/content/v2/content.go | 10 +- rest/content/v2/content_and_approvals.go | 10 +- .../content/v2/docs/ContentAndApprovalsApi.md | 4 +- rest/content/v2/docs/ContentApi.md | 4 +- .../v1/configuration_addresses.go | 10 +- .../v1/configuration_webhooks.go | 2 - rest/conversations/v1/conversations.go | 10 +- .../v1/conversations_messages.go | 10 +- .../v1/conversations_messages_receipts.go | 10 +- .../v1/conversations_participants.go | 10 +- .../v1/conversations_webhooks.go | 10 +- rest/conversations/v1/credentials.go | 10 +- .../v1/docs/ConfigurationAddressesApi.md | 4 +- .../conversations/v1/docs/ConversationsApi.md | 4 +- .../v1/docs/ConversationsMessagesApi.md | 4 +- .../docs/ConversationsMessagesReceiptsApi.md | 4 +- .../v1/docs/ConversationsParticipantsApi.md | 4 +- .../v1/docs/ConversationsWebhooksApi.md | 4 +- rest/conversations/v1/docs/CredentialsApi.md | 4 +- .../ListConfigurationAddressResponseMeta.md | 2 +- .../v1/docs/ParticipantConversationsApi.md | 4 +- rest/conversations/v1/docs/RolesApi.md | 4 +- rest/conversations/v1/docs/ServicesApi.md | 4 +- .../v1/docs/ServicesBindingsApi.md | 4 +- .../v1/docs/ServicesConversationsApi.md | 4 +- .../docs/ServicesConversationsMessagesApi.md | 4 +- ...ervicesConversationsMessagesReceiptsApi.md | 4 +- .../ServicesConversationsParticipantsApi.md | 4 +- .../docs/ServicesConversationsWebhooksApi.md | 4 +- .../ServicesParticipantConversationsApi.md | 4 +- .../conversations/v1/docs/ServicesRolesApi.md | 4 +- .../conversations/v1/docs/ServicesUsersApi.md | 4 +- .../v1/docs/ServicesUsersConversationsApi.md | 4 +- rest/conversations/v1/docs/UsersApi.md | 4 +- .../v1/docs/UsersConversationsApi.md | 4 +- ...ist_configuration_address_response_meta.go | 2 +- .../v1/participant_conversations.go | 10 +- rest/conversations/v1/roles.go | 10 +- rest/conversations/v1/services.go | 10 +- rest/conversations/v1/services_bindings.go | 10 +- .../v1/services_conversations.go | 10 +- .../v1/services_conversations_messages.go | 10 +- ...ervices_conversations_messages_receipts.go | 10 +- .../v1/services_conversations_participants.go | 10 +- .../v1/services_conversations_webhooks.go | 10 +- .../v1/services_participant_conversations.go | 10 +- rest/conversations/v1/services_roles.go | 10 +- rest/conversations/v1/services_users.go | 10 +- .../v1/services_users_conversations.go | 10 +- rest/conversations/v1/users.go | 10 +- rest/conversations/v1/users_conversations.go | 10 +- .../v1/docs/ListEventTypeResponseMeta.md | 2 +- rest/events/v1/docs/SchemasVersionsApi.md | 4 +- rest/events/v1/docs/SinksApi.md | 4 +- rest/events/v1/docs/SubscriptionsApi.md | 4 +- .../docs/SubscriptionsSubscribedEventsApi.md | 4 +- rest/events/v1/docs/TypesApi.md | 4 +- .../v1/model_list_event_type_response_meta.go | 2 +- rest/events/v1/schemas_versions.go | 10 +- rest/events/v1/sinks.go | 10 +- rest/events/v1/subscriptions.go | 10 +- .../v1/subscriptions_subscribed_events.go | 10 +- rest/events/v1/types.go | 10 +- rest/flex/v1/README.md | 1 - rest/flex/v1/channels.go | 13 +-- rest/flex/v1/configuration.go | 45 -------- rest/flex/v1/docs/ChannelsApi.md | 4 +- rest/flex/v1/docs/ConfigurationApi.md | 40 ------- rest/flex/v1/docs/FlexFlowsApi.md | 4 +- rest/flex/v1/docs/InsightsConversationsApi.md | 4 +- ...InsightsQualityManagementAssessmentsApi.md | 4 +- ...QualityManagementAssessmentsCommentsApi.md | 4 +- .../InsightsQualityManagementCategoriesApi.md | 4 +- ...ightsQualityManagementQuestionnairesApi.md | 4 +- .../InsightsQualityManagementQuestionsApi.md | 4 +- rest/flex/v1/docs/InsightsSegmentsApi.md | 4 +- rest/flex/v1/docs/InteractionsChannelsApi.md | 4 +- .../v1/docs/InteractionsChannelsInvitesApi.md | 4 +- .../InteractionsChannelsParticipantsApi.md | 4 +- rest/flex/v1/docs/ListChannelResponseMeta.md | 2 +- .../v1/docs/PluginServiceConfigurationsApi.md | 4 +- .../PluginServiceConfigurationsPluginsApi.md | 4 +- rest/flex/v1/docs/PluginServicePluginsApi.md | 4 +- .../docs/PluginServicePluginsVersionsApi.md | 4 +- rest/flex/v1/docs/PluginServiceReleasesApi.md | 4 +- rest/flex/v1/docs/WebChannelsApi.md | 4 +- rest/flex/v1/flex_flows.go | 14 +-- rest/flex/v1/insights_conversations.go | 10 +- ...insights_quality_management_assessments.go | 10 +- ...quality_management_assessments_comments.go | 10 +- .../insights_quality_management_categories.go | 11 +- ...ights_quality_management_questionnaires.go | 10 +- .../insights_quality_management_questions.go | 11 +- rest/flex/v1/insights_segments.go | 10 +- rest/flex/v1/interactions.go | 1 - rest/flex/v1/interactions_channels.go | 10 +- rest/flex/v1/interactions_channels_invites.go | 10 +- .../v1/interactions_channels_participants.go | 10 +- .../v1/model_list_channel_response_meta.go | 2 +- rest/flex/v1/plugin_service_configurations.go | 12 +- .../plugin_service_configurations_archive.go | 1 - .../plugin_service_configurations_plugins.go | 11 +- rest/flex/v1/plugin_service_plugins.go | 13 +-- .../flex/v1/plugin_service_plugins_archive.go | 1 - .../v1/plugin_service_plugins_versions.go | 12 +- ...plugin_service_plugins_versions_archive.go | 1 - rest/flex/v1/plugin_service_releases.go | 12 +- rest/flex/v1/web_channels.go | 14 +-- rest/flex/v2/web_chats.go | 1 - rest/iam/v1/README.md | 3 + rest/iam/v1/docs/KeysApi.md | 4 +- rest/iam/v1/docs/ListGetKeysResponseMeta.md | 2 +- rest/iam/v1/keys.go | 10 +- .../v1/model_list_get_keys_response_meta.go | 2 +- rest/insights/v1/conferences.go | 10 +- rest/insights/v1/conferences_participants.go | 10 +- rest/insights/v1/docs/ConferencesApi.md | 4 +- .../v1/docs/ConferencesParticipantsApi.md | 4 +- .../v1/docs/ListCallSummariesResponseMeta.md | 2 +- rest/insights/v1/docs/VideoRoomsApi.md | 4 +- .../v1/docs/VideoRoomsParticipantsApi.md | 4 +- rest/insights/v1/docs/VoiceEventsApi.md | 4 +- rest/insights/v1/docs/VoiceMetricsApi.md | 4 +- rest/insights/v1/docs/VoiceSummariesApi.md | 4 +- ...model_list_call_summaries_response_meta.go | 2 +- rest/insights/v1/video_rooms.go | 10 +- rest/insights/v1/video_rooms_participants.go | 10 +- rest/insights/v1/voice.go | 1 - rest/insights/v1/voice_events.go | 10 +- rest/insights/v1/voice_metrics.go | 10 +- rest/insights/v1/voice_summaries.go | 10 +- .../v2/docs/ListCustomOperatorResponseMeta.md | 2 +- rest/intelligence/v2/docs/OperatorTypesApi.md | 4 +- rest/intelligence/v2/docs/OperatorsApi.md | 4 +- .../v2/docs/OperatorsCustomApi.md | 4 +- .../v2/docs/OperatorsPreBuiltApi.md | 4 +- rest/intelligence/v2/docs/ServicesApi.md | 4 +- rest/intelligence/v2/docs/TranscriptsApi.md | 4 +- .../v2/docs/TranscriptsOperatorResultsApi.md | 4 +- .../v2/docs/TranscriptsSentencesApi.md | 4 +- ...odel_list_custom_operator_response_meta.go | 2 +- rest/intelligence/v2/operator_types.go | 10 +- rest/intelligence/v2/operators.go | 10 +- rest/intelligence/v2/operators_custom.go | 10 +- rest/intelligence/v2/operators_pre_built.go | 10 +- rest/intelligence/v2/services.go | 10 +- rest/intelligence/v2/transcripts.go | 10 +- .../v2/transcripts_operator_results.go | 10 +- rest/intelligence/v2/transcripts_sentences.go | 10 +- rest/ip_messaging/v1/credentials.go | 14 +-- rest/ip_messaging/v1/docs/CredentialsApi.md | 4 +- .../v1/docs/ListChannelResponseMeta.md | 2 +- rest/ip_messaging/v1/docs/ServicesApi.md | 4 +- .../v1/docs/ServicesChannelsApi.md | 4 +- .../v1/docs/ServicesChannelsInvitesApi.md | 4 +- .../v1/docs/ServicesChannelsMembersApi.md | 4 +- .../v1/docs/ServicesChannelsMessagesApi.md | 4 +- rest/ip_messaging/v1/docs/ServicesRolesApi.md | 4 +- rest/ip_messaging/v1/docs/ServicesUsersApi.md | 4 +- .../v1/docs/ServicesUsersChannelsApi.md | 4 +- .../v1/model_list_channel_response_meta.go | 2 +- rest/ip_messaging/v1/services.go | 14 +-- rest/ip_messaging/v1/services_channels.go | 14 +-- .../v1/services_channels_invites.go | 13 +-- .../v1/services_channels_members.go | 14 +-- .../v1/services_channels_messages.go | 14 +-- rest/ip_messaging/v1/services_roles.go | 14 +-- rest/ip_messaging/v1/services_users.go | 14 +-- .../v1/services_users_channels.go | 10 +- rest/ip_messaging/v2/credentials.go | 14 +-- rest/ip_messaging/v2/docs/CredentialsApi.md | 4 +- .../v2/docs/ListBindingResponseMeta.md | 2 +- rest/ip_messaging/v2/docs/ServicesApi.md | 4 +- .../v2/docs/ServicesBindingsApi.md | 4 +- .../v2/docs/ServicesChannelsApi.md | 4 +- .../v2/docs/ServicesChannelsInvitesApi.md | 4 +- .../v2/docs/ServicesChannelsMembersApi.md | 4 +- .../v2/docs/ServicesChannelsMessagesApi.md | 4 +- .../v2/docs/ServicesChannelsWebhooksApi.md | 4 +- rest/ip_messaging/v2/docs/ServicesRolesApi.md | 4 +- rest/ip_messaging/v2/docs/ServicesUsersApi.md | 4 +- .../v2/docs/ServicesUsersBindingsApi.md | 4 +- .../v2/docs/ServicesUsersChannelsApi.md | 4 +- .../v2/model_list_binding_response_meta.go | 2 +- rest/ip_messaging/v2/services.go | 14 +-- rest/ip_messaging/v2/services_bindings.go | 12 +- rest/ip_messaging/v2/services_channels.go | 14 +-- .../v2/services_channels_invites.go | 13 +-- .../v2/services_channels_members.go | 14 +-- .../v2/services_channels_messages.go | 14 +-- .../v2/services_channels_webhooks.go | 14 +-- rest/ip_messaging/v2/services_roles.go | 14 +-- rest/ip_messaging/v2/services_users.go | 14 +-- .../v2/services_users_bindings.go | 12 +- .../v2/services_users_channels.go | 13 +-- rest/lookups/v1/phone_numbers.go | 1 - rest/lookups/v2/phone_numbers.go | 1 - rest/marketplace/v1/available_add_ons.go | 10 +- .../v1/available_add_ons_extensions.go | 10 +- .../marketplace/v1/docs/AvailableAddOnsApi.md | 4 +- .../v1/docs/AvailableAddOnsExtensionsApi.md | 4 +- .../marketplace/v1/docs/InstalledAddOnsApi.md | 4 +- .../v1/docs/InstalledAddOnsExtensionsApi.md | 4 +- rest/marketplace/v1/installed_add_ons.go | 10 +- .../v1/installed_add_ons_extensions.go | 10 +- rest/marketplace/v1/referral_conversion.go | 1 - rest/messaging/v1/a2p_brand_registrations.go | 13 +-- .../v1/a2p_brand_registrations_vettings.go | 12 +- .../v1/docs/A2pBrandRegistrationsApi.md | 4 +- .../docs/A2pBrandRegistrationsVettingsApi.md | 4 +- .../v1/docs/ListAlphaSenderResponseMeta.md | 2 +- .../v1/docs/ServicesAlphaSendersApi.md | 4 +- rest/messaging/v1/docs/ServicesApi.md | 4 +- .../v1/docs/ServicesChannelSendersApi.md | 4 +- .../v1/docs/ServicesComplianceUsa2pApi.md | 4 +- .../ServicesDestinationAlphaSendersApi.md | 4 +- .../v1/docs/ServicesPhoneNumbersApi.md | 4 +- .../v1/docs/ServicesShortCodesApi.md | 4 +- .../v1/docs/TollfreeVerificationsApi.md | 4 +- .../v1/link_shortening_domains_certificate.go | 3 - .../v1/link_shortening_domains_config.go | 2 - ...k_shortening_domains_messaging_services.go | 2 - ...shortening_domains_request_managed_cert.go | 1 - ...rtening_messaging_service_domain_config.go | 1 - ...nk_shortening_messaging_services_domain.go | 1 - .../model_list_alpha_sender_response_meta.go | 2 +- rest/messaging/v1/services.go | 14 +-- rest/messaging/v1/services_alpha_senders.go | 13 +-- rest/messaging/v1/services_channel_senders.go | 13 +-- .../messaging/v1/services_compliance_usa2p.go | 14 +-- .../v1/services_compliance_usa2p_usecases.go | 1 - .../v1/services_destination_alpha_senders.go | 13 +-- rest/messaging/v1/services_phone_numbers.go | 13 +-- .../v1/services_preregistered_usa2p.go | 1 - rest/messaging/v1/services_short_codes.go | 13 +-- rest/messaging/v1/services_usecases.go | 1 - rest/messaging/v1/tollfree_verifications.go | 14 +-- rest/microvisor/v1/apps.go | 10 +- rest/microvisor/v1/configs.go | 10 +- rest/microvisor/v1/devices.go | 10 +- rest/microvisor/v1/devices_configs.go | 10 +- rest/microvisor/v1/devices_secrets.go | 10 +- rest/microvisor/v1/docs/AppsApi.md | 4 +- rest/microvisor/v1/docs/ConfigsApi.md | 4 +- rest/microvisor/v1/docs/DevicesApi.md | 4 +- rest/microvisor/v1/docs/DevicesConfigsApi.md | 4 +- rest/microvisor/v1/docs/DevicesSecretsApi.md | 4 +- .../v1/docs/ListAccountConfigResponseMeta.md | 2 +- rest/microvisor/v1/docs/SecretsApi.md | 4 +- ...model_list_account_config_response_meta.go | 2 +- rest/microvisor/v1/secrets.go | 10 +- rest/monitor/v1/alerts.go | 11 +- rest/monitor/v1/docs/AlertsApi.md | 4 +- rest/monitor/v1/docs/EventsApi.md | 4 +- rest/monitor/v1/docs/ListAlertResponseMeta.md | 2 +- rest/monitor/v1/events.go | 11 +- .../v1/model_list_alert_response_meta.go | 2 +- rest/notify/v1/credentials.go | 14 +-- rest/notify/v1/docs/CredentialsApi.md | 4 +- .../notify/v1/docs/ListBindingResponseMeta.md | 2 +- rest/notify/v1/docs/ServicesApi.md | 4 +- rest/notify/v1/docs/ServicesBindingsApi.md | 4 +- .../v1/model_list_binding_response_meta.go | 2 +- rest/notify/v1/services.go | 14 +-- rest/notify/v1/services_bindings.go | 13 +-- rest/notify/v1/services_notifications.go | 1 - rest/numbers/v1/README.md | 5 - .../v1/docs/HostedNumberEligibilityBulkApi.md | 40 ------- ...SigningRequestConfigurationResponseMeta.md | 2 +- .../v1/docs/PortingConfigurationWebhookApi.md | 40 ------- rest/numbers/v1/docs/PortingPortInApi.md | 40 ------- .../v1/docs/SigningRequestConfigurationApi.md | 44 +------- .../v1/hosted_number_eligibility_bulk.go | 44 -------- ...ing_request_configuration_response_meta.go | 2 +- .../v1/porting_configuration_webhook.go | 44 -------- rest/numbers/v1/porting_port_in.go | 44 -------- .../v1/signing_request_configuration.go | 54 +-------- rest/numbers/v2/README.md | 1 - .../HostedNumberAuthorizationDocumentsApi.md | 4 +- ...DocumentsDependentHostedNumberOrdersApi.md | 4 +- rest/numbers/v2/docs/HostedNumberOrdersApi.md | 4 +- .../v2/docs/HostedNumberOrdersBulkApi.md | 40 ------- .../ListAuthorizationDocumentResponseMeta.md | 2 +- .../v2/docs/RegulatoryComplianceBundlesApi.md | 4 +- .../RegulatoryComplianceBundlesCopiesApi.md | 4 +- ...gulatoryComplianceBundlesEvaluationsApi.md | 4 +- ...toryComplianceBundlesItemAssignmentsApi.md | 4 +- .../RegulatoryComplianceEndUserTypesApi.md | 4 +- .../docs/RegulatoryComplianceEndUsersApi.md | 4 +- .../RegulatoryComplianceRegulationsApi.md | 4 +- ...oryComplianceSupportingDocumentTypesApi.md | 4 +- ...ulatoryComplianceSupportingDocumentsApi.md | 4 +- .../hosted_number_authorization_documents.go | 10 +- ...ocuments_dependent_hosted_number_orders.go | 10 +- rest/numbers/v2/hosted_number_orders.go | 10 +- rest/numbers/v2/hosted_number_orders_bulk.go | 44 -------- ...st_authorization_document_response_meta.go | 2 +- .../v2/regulatory_compliance_bundles.go | 10 +- .../regulatory_compliance_bundles_copies.go | 10 +- ...gulatory_compliance_bundles_evaluations.go | 10 +- ...ory_compliance_bundles_item_assignments.go | 10 +- .../regulatory_compliance_end_user_types.go | 10 +- .../v2/regulatory_compliance_end_users.go | 10 +- .../v2/regulatory_compliance_regulations.go | 10 +- ...ry_compliance_supporting_document_types.go | 10 +- ...ulatory_compliance_supporting_documents.go | 10 +- .../docs/ListMessagingCountryResponseMeta.md | 2 +- rest/pricing/v1/docs/MessagingCountriesApi.md | 4 +- .../v1/docs/PhoneNumbersCountriesApi.md | 4 +- rest/pricing/v1/docs/VoiceCountriesApi.md | 4 +- rest/pricing/v1/messaging_countries.go | 11 +- ...el_list_messaging_country_response_meta.go | 2 +- rest/pricing/v1/phone_numbers_countries.go | 11 +- rest/pricing/v1/voice_countries.go | 11 +- rest/pricing/v1/voice_numbers.go | 1 - .../docs/ListTrunkingCountryResponseMeta.md | 2 +- rest/pricing/v2/docs/TrunkingCountriesApi.md | 4 +- rest/pricing/v2/docs/VoiceCountriesApi.md | 4 +- ...del_list_trunking_country_response_meta.go | 2 +- rest/pricing/v2/trunking_countries.go | 10 +- rest/pricing/v2/voice_countries.go | 10 +- .../v1/docs/ListInteractionResponseMeta.md | 2 +- .../ProxyV1ServicePhoneNumberCapabilities.md | 2 +- .../ProxyV1ServiceShortCodeCapabilities.md | 2 +- rest/proxy/v1/docs/ServicesApi.md | 4 +- rest/proxy/v1/docs/ServicesPhoneNumbersApi.md | 4 +- rest/proxy/v1/docs/ServicesSessionsApi.md | 4 +- .../docs/ServicesSessionsInteractionsApi.md | 4 +- .../docs/ServicesSessionsParticipantsApi.md | 4 +- ...sionsParticipantsMessageInteractionsApi.md | 4 +- rest/proxy/v1/docs/ServicesShortCodesApi.md | 4 +- .../model_list_interaction_response_meta.go | 2 +- ...xy_v1_service_phone_number_capabilities.go | 2 +- ...roxy_v1_service_short_code_capabilities.go | 2 +- rest/proxy/v1/services.go | 10 +- rest/proxy/v1/services_phone_numbers.go | 10 +- rest/proxy/v1/services_sessions.go | 10 +- .../v1/services_sessions_interactions.go | 10 +- .../v1/services_sessions_participants.go | 10 +- ...sions_participants_message_interactions.go | 11 +- rest/proxy/v1/services_short_codes.go | 10 +- rest/routes/v2/sip_domains.go | 2 - .../v1/docs/ListAssetResponseMeta.md | 2 +- rest/serverless/v1/docs/ServicesApi.md | 4 +- rest/serverless/v1/docs/ServicesAssetsApi.md | 4 +- .../v1/docs/ServicesAssetsVersionsApi.md | 4 +- rest/serverless/v1/docs/ServicesBuildsApi.md | 4 +- .../v1/docs/ServicesEnvironmentsApi.md | 4 +- .../ServicesEnvironmentsDeploymentsApi.md | 4 +- .../v1/docs/ServicesEnvironmentsLogsApi.md | 4 +- .../docs/ServicesEnvironmentsVariablesApi.md | 4 +- .../v1/docs/ServicesFunctionsApi.md | 4 +- .../v1/docs/ServicesFunctionsVersionsApi.md | 4 +- .../v1/model_list_asset_response_meta.go | 2 +- rest/serverless/v1/services.go | 10 +- rest/serverless/v1/services_assets.go | 10 +- .../serverless/v1/services_assets_versions.go | 10 +- rest/serverless/v1/services_builds.go | 10 +- rest/serverless/v1/services_environments.go | 10 +- .../v1/services_environments_deployments.go | 10 +- .../v1/services_environments_logs.go | 10 +- .../v1/services_environments_variables.go | 10 +- rest/serverless/v1/services_functions.go | 10 +- .../v1/services_functions_versions.go | 10 +- rest/studio/v1/docs/FlowsApi.md | 4 +- rest/studio/v1/docs/FlowsEngagementsApi.md | 4 +- .../v1/docs/FlowsEngagementsStepsApi.md | 4 +- rest/studio/v1/docs/FlowsExecutionsApi.md | 4 +- .../studio/v1/docs/FlowsExecutionsStepsApi.md | 4 +- .../v1/docs/ListEngagementResponseMeta.md | 2 +- rest/studio/v1/flows.go | 10 +- rest/studio/v1/flows_engagements.go | 10 +- rest/studio/v1/flows_engagements_steps.go | 10 +- rest/studio/v1/flows_executions.go | 10 +- rest/studio/v1/flows_executions_steps.go | 10 +- .../v1/model_list_engagement_response_meta.go | 2 +- rest/studio/v2/docs/FlowsApi.md | 4 +- rest/studio/v2/docs/FlowsExecutionsApi.md | 4 +- .../studio/v2/docs/FlowsExecutionsStepsApi.md | 4 +- rest/studio/v2/docs/FlowsRevisionsApi.md | 4 +- .../v2/docs/ListExecutionResponseMeta.md | 2 +- rest/studio/v2/flows.go | 10 +- rest/studio/v2/flows_executions.go | 10 +- rest/studio/v2/flows_executions_steps.go | 10 +- rest/studio/v2/flows_revisions.go | 10 +- .../v2/model_list_execution_response_meta.go | 2 +- rest/supersim/v1/docs/ESimProfilesApi.md | 4 +- rest/supersim/v1/docs/FleetsApi.md | 4 +- rest/supersim/v1/docs/IpCommandsApi.md | 4 +- .../v1/docs/ListBillingPeriodResponseMeta.md | 2 +- .../v1/docs/NetworkAccessProfilesApi.md | 4 +- .../docs/NetworkAccessProfilesNetworksApi.md | 4 +- rest/supersim/v1/docs/NetworksApi.md | 4 +- rest/supersim/v1/docs/SettingsUpdatesApi.md | 4 +- rest/supersim/v1/docs/SimsApi.md | 4 +- .../supersim/v1/docs/SimsBillingPeriodsApi.md | 4 +- rest/supersim/v1/docs/SimsIpAddressesApi.md | 4 +- rest/supersim/v1/docs/SmsCommandsApi.md | 4 +- rest/supersim/v1/docs/UsageRecordsApi.md | 4 +- rest/supersim/v1/e_sim_profiles.go | 10 +- rest/supersim/v1/fleets.go | 10 +- rest/supersim/v1/ip_commands.go | 10 +- ...model_list_billing_period_response_meta.go | 2 +- rest/supersim/v1/network_access_profiles.go | 10 +- .../v1/network_access_profiles_networks.go | 10 +- rest/supersim/v1/networks.go | 10 +- rest/supersim/v1/settings_updates.go | 10 +- rest/supersim/v1/sims.go | 10 +- rest/supersim/v1/sims_billing_periods.go | 10 +- rest/supersim/v1/sims_ip_addresses.go | 10 +- rest/supersim/v1/sms_commands.go | 10 +- rest/supersim/v1/usage_records.go | 10 +- rest/sync/v1/docs/ListDocumentResponseMeta.md | 2 +- rest/sync/v1/docs/ServicesApi.md | 4 +- rest/sync/v1/docs/ServicesDocumentsApi.md | 4 +- .../docs/ServicesDocumentsPermissionsApi.md | 4 +- rest/sync/v1/docs/ServicesListsApi.md | 4 +- rest/sync/v1/docs/ServicesListsItemsApi.md | 4 +- .../v1/docs/ServicesListsPermissionsApi.md | 4 +- rest/sync/v1/docs/ServicesMapsApi.md | 4 +- rest/sync/v1/docs/ServicesMapsItemsApi.md | 4 +- .../v1/docs/ServicesMapsPermissionsApi.md | 4 +- rest/sync/v1/docs/ServicesStreamsApi.md | 4 +- .../v1/model_list_document_response_meta.go | 2 +- rest/sync/v1/services.go | 14 +-- rest/sync/v1/services_documents.go | 14 +-- .../sync/v1/services_documents_permissions.go | 10 +- rest/sync/v1/services_lists.go | 14 +-- rest/sync/v1/services_lists_items.go | 14 +-- rest/sync/v1/services_lists_permissions.go | 10 +- rest/sync/v1/services_maps.go | 14 +-- rest/sync/v1/services_maps_items.go | 14 +-- rest/sync/v1/services_maps_permissions.go | 10 +- rest/sync/v1/services_streams.go | 10 +- rest/taskrouter/v1/README.md | 1 - .../v1/docs/ListActivityResponseMeta.md | 2 +- .../v1/docs/WorkspacesActivitiesApi.md | 4 +- rest/taskrouter/v1/docs/WorkspacesApi.md | 4 +- .../taskrouter/v1/docs/WorkspacesEventsApi.md | 4 +- .../v1/docs/WorkspacesTaskChannelsApi.md | 4 +- .../v1/docs/WorkspacesTaskQueuesApi.md | 4 +- ...rkspacesTaskQueuesRealTimeStatisticsApi.md | 44 -------- .../docs/WorkspacesTaskQueuesStatisticsApi.md | 4 +- rest/taskrouter/v1/docs/WorkspacesTasksApi.md | 4 +- .../v1/docs/WorkspacesTasksReservationsApi.md | 4 +- .../v1/docs/WorkspacesWorkersApi.md | 4 +- .../v1/docs/WorkspacesWorkersChannelsApi.md | 4 +- .../docs/WorkspacesWorkersReservationsApi.md | 4 +- .../v1/docs/WorkspacesWorkflowsApi.md | 4 +- .../v1/model_list_activity_response_meta.go | 2 +- rest/taskrouter/v1/workspaces.go | 14 +-- rest/taskrouter/v1/workspaces_activities.go | 14 +-- .../v1/workspaces_cumulative_statistics.go | 1 - rest/taskrouter/v1/workspaces_events.go | 11 +- .../v1/workspaces_real_time_statistics.go | 1 - rest/taskrouter/v1/workspaces_statistics.go | 1 - .../taskrouter/v1/workspaces_task_channels.go | 14 +-- rest/taskrouter/v1/workspaces_task_queues.go | 14 +-- ...paces_task_queues_cumulative_statistics.go | 1 - ...spaces_task_queues_real_time_statistics.go | 46 -------- .../v1/workspaces_task_queues_statistics.go | 11 +- rest/taskrouter/v1/workspaces_tasks.go | 14 +-- .../v1/workspaces_tasks_reservations.go | 12 +- rest/taskrouter/v1/workspaces_workers.go | 14 +-- .../v1/workspaces_workers_channels.go | 12 +- ...orkspaces_workers_cumulative_statistics.go | 1 - ...workspaces_workers_real_time_statistics.go | 1 - .../v1/workspaces_workers_reservations.go | 12 +- .../v1/workspaces_workers_statistics.go | 2 - rest/taskrouter/v1/workspaces_workflows.go | 14 +-- ...kspaces_workflows_cumulative_statistics.go | 1 - ...rkspaces_workflows_real_time_statistics.go | 1 - .../v1/workspaces_workflows_statistics.go | 1 - .../v1/docs/ListCredentialListResponseMeta.md | 2 +- rest/trunking/v1/docs/TrunksApi.md | 4 +- .../v1/docs/TrunksCredentialListsApi.md | 4 +- .../v1/docs/TrunksIpAccessControlListsApi.md | 4 +- .../v1/docs/TrunksOriginationUrlsApi.md | 4 +- .../trunking/v1/docs/TrunksPhoneNumbersApi.md | 4 +- ...odel_list_credential_list_response_meta.go | 2 +- rest/trunking/v1/trunks.go | 14 +-- rest/trunking/v1/trunks_credential_lists.go | 13 +-- .../v1/trunks_ip_access_control_lists.go | 11 +- rest/trunking/v1/trunks_origination_urls.go | 14 +-- rest/trunking/v1/trunks_phone_numbers.go | 13 +-- rest/trunking/v1/trunks_recording.go | 2 - rest/trusthub/v1/customer_profiles.go | 10 +- ...r_profiles_channel_endpoint_assignments.go | 10 +- .../customer_profiles_entity_assignments.go | 10 +- .../v1/customer_profiles_evaluations.go | 10 +- rest/trusthub/v1/docs/CustomerProfilesApi.md | 4 +- ...erProfilesChannelEndpointAssignmentsApi.md | 4 +- .../CustomerProfilesEntityAssignmentsApi.md | 4 +- .../v1/docs/CustomerProfilesEvaluationsApi.md | 4 +- rest/trusthub/v1/docs/EndUserTypesApi.md | 4 +- rest/trusthub/v1/docs/EndUsersApi.md | 4 +- .../docs/ListCustomerProfileResponseMeta.md | 2 +- rest/trusthub/v1/docs/PoliciesApi.md | 4 +- .../v1/docs/SupportingDocumentTypesApi.md | 4 +- .../v1/docs/SupportingDocumentsApi.md | 4 +- rest/trusthub/v1/docs/TrustProductsApi.md | 4 +- ...stProductsChannelEndpointAssignmentsApi.md | 4 +- .../docs/TrustProductsEntityAssignmentsApi.md | 4 +- .../v1/docs/TrustProductsEvaluationsApi.md | 4 +- rest/trusthub/v1/end_user_types.go | 10 +- rest/trusthub/v1/end_users.go | 10 +- ...del_list_customer_profile_response_meta.go | 2 +- rest/trusthub/v1/policies.go | 10 +- rest/trusthub/v1/supporting_document_types.go | 10 +- rest/trusthub/v1/supporting_documents.go | 10 +- rest/trusthub/v1/trust_products.go | 10 +- ...t_products_channel_endpoint_assignments.go | 10 +- .../v1/trust_products_entity_assignments.go | 10 +- .../trusthub/v1/trust_products_evaluations.go | 10 +- rest/verify/v2/attempts.go | 10 +- rest/verify/v2/docs/AttemptsApi.md | 4 +- rest/verify/v2/docs/ListBucketResponseMeta.md | 2 +- rest/verify/v2/docs/ServicesApi.md | 4 +- rest/verify/v2/docs/ServicesEntitiesApi.md | 4 +- .../v2/docs/ServicesEntitiesChallengesApi.md | 4 +- .../v2/docs/ServicesEntitiesFactorsApi.md | 4 +- .../ServicesMessagingConfigurationsApi.md | 4 +- rest/verify/v2/docs/ServicesRateLimitsApi.md | 4 +- .../v2/docs/ServicesRateLimitsBucketsApi.md | 4 +- rest/verify/v2/docs/ServicesWebhooksApi.md | 4 +- rest/verify/v2/docs/TemplatesApi.md | 4 +- .../v2/model_list_bucket_response_meta.go | 2 +- rest/verify/v2/services.go | 10 +- rest/verify/v2/services_entities.go | 10 +- .../verify/v2/services_entities_challenges.go | 10 +- rest/verify/v2/services_entities_factors.go | 10 +- .../v2/services_messaging_configurations.go | 10 +- rest/verify/v2/services_rate_limits.go | 10 +- .../verify/v2/services_rate_limits_buckets.go | 10 +- rest/verify/v2/services_webhooks.go | 11 +- rest/verify/v2/templates.go | 10 +- rest/video/v1/composition_hooks.go | 12 +- rest/video/v1/composition_settings_default.go | 2 - rest/video/v1/compositions.go | 11 +- rest/video/v1/docs/CompositionHooksApi.md | 4 +- rest/video/v1/docs/CompositionsApi.md | 4 +- .../v1/docs/ListCompositionResponseMeta.md | 2 +- rest/video/v1/docs/RecordingsApi.md | 4 +- rest/video/v1/docs/RoomsApi.md | 4 +- rest/video/v1/docs/RoomsParticipantsApi.md | 4 +- .../RoomsParticipantsPublishedTracksApi.md | 4 +- .../RoomsParticipantsSubscribedTracksApi.md | 4 +- rest/video/v1/docs/RoomsRecordingsApi.md | 4 +- .../model_list_composition_response_meta.go | 2 +- rest/video/v1/recording_settings_default.go | 2 - rest/video/v1/recordings.go | 10 +- rest/video/v1/rooms.go | 13 +-- rest/video/v1/rooms_participants.go | 12 +- rest/video/v1/rooms_participants_anonymize.go | 1 - .../v1/rooms_participants_published_tracks.go | 10 +- .../rooms_participants_subscribed_tracks.go | 10 +- rest/video/v1/rooms_recordings.go | 12 +- rest/voice/v1/byoc_trunks.go | 14 +-- rest/voice/v1/connection_policies.go | 14 +-- rest/voice/v1/connection_policies_targets.go | 14 +-- .../voice/v1/dialing_permissions_countries.go | 10 +- ...ns_countries_high_risk_special_prefixes.go | 10 +- rest/voice/v1/docs/ByocTrunksApi.md | 4 +- rest/voice/v1/docs/ConnectionPoliciesApi.md | 4 +- .../v1/docs/ConnectionPoliciesTargetsApi.md | 4 +- .../v1/docs/DialingPermissionsCountriesApi.md | 4 +- ...ionsCountriesHighRiskSpecialPrefixesApi.md | 4 +- rest/voice/v1/docs/IpRecordsApi.md | 4 +- .../v1/docs/ListByocTrunkResponseMeta.md | 2 +- rest/voice/v1/docs/SourceIpMappingsApi.md | 4 +- rest/voice/v1/ip_records.go | 14 +-- .../v1/model_list_byoc_trunk_response_meta.go | 2 +- rest/voice/v1/source_ip_mappings.go | 14 +-- rest/wireless/v1/commands.go | 10 +- rest/wireless/v1/docs/CommandsApi.md | 4 +- .../ListAccountUsageRecordResponseMeta.md | 2 +- rest/wireless/v1/docs/RatePlansApi.md | 4 +- rest/wireless/v1/docs/SimsApi.md | 4 +- rest/wireless/v1/docs/SimsDataSessionsApi.md | 4 +- rest/wireless/v1/docs/SimsUsageRecordsApi.md | 4 +- rest/wireless/v1/docs/UsageRecordsApi.md | 4 +- ...list_account_usage_record_response_meta.go | 2 +- rest/wireless/v1/rate_plans.go | 14 +-- rest/wireless/v1/sims.go | 10 +- rest/wireless/v1/sims_data_sessions.go | 10 +- rest/wireless/v1/sims_usage_records.go | 10 +- rest/wireless/v1/usage_records.go | 10 +- twiml/messaging_response.go | 8 +- twiml/voice_response.go | 104 +++++++++--------- 804 files changed, 2487 insertions(+), 3489 deletions(-) diff --git a/client/page_util.go b/client/page_util.go index a9b722f714..c2a3273f8b 100644 --- a/client/page_util.go +++ b/client/page_util.go @@ -7,7 +7,7 @@ import ( ) // Takes a limit on the max number of records to read and a max pageSize and calculates the max number of pages to read. -func ReadLimits(pageSize *int, limit *int) int { +func ReadLimits(pageSize *int64, limit *int64) int64 { //don't care about pageSize if pageSize == nil { if limit == nil { @@ -67,7 +67,7 @@ func getNextPageUrl(baseUrl string, response interface{}) (string, error) { return "", nil } -func min(a int, b int) int { +func min(a int64, b int64) int64 { if a > b { return b } diff --git a/client/page_util_test.go b/client/page_util_test.go index ebfd85509d..948a1ee5d3 100644 --- a/client/page_util_test.go +++ b/client/page_util_test.go @@ -14,18 +14,18 @@ import ( ) func TestPageUtil_ReadLimits(t *testing.T) { - assert.Equal(t, 5, ReadLimits(nil, setLimit(5))) - assert.Equal(t, 5, ReadLimits(setPageSize(10), setLimit(5))) - assert.Equal(t, 1000, ReadLimits(nil, setLimit(5000))) - assert.Equal(t, 10, ReadLimits(setPageSize(10), nil)) - assert.Equal(t, 50, ReadLimits(nil, nil)) + assert.Equal(t, int64(5), ReadLimits(nil, setLimit(5))) + assert.Equal(t, int64(5), ReadLimits(setPageSize(10), setLimit(5))) + assert.Equal(t, int64(1000), ReadLimits(nil, setLimit(5000))) + assert.Equal(t, int64(10), ReadLimits(setPageSize(10), nil)) + assert.Equal(t, int64(50), ReadLimits(nil, nil)) } -func setLimit(limit int) *int { +func setLimit(limit int64) *int64 { return &limit } -func setPageSize(pageSize int) *int { +func setPageSize(pageSize int64) *int64 { return &pageSize } diff --git a/go.mod b/go.mod index a4893ac62e..f715bb7d2c 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,4 @@ require ( gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect ) -retract ( - v1.22.0 // Contains known bug -) +retract v1.22.0 // Contains known bug diff --git a/rest/accounts/v1/consents_bulk.go b/rest/accounts/v1/consents_bulk.go index bb9607fa18..a306919696 100644 --- a/rest/accounts/v1/consents_bulk.go +++ b/rest/accounts/v1/consents_bulk.go @@ -30,7 +30,6 @@ func (params *CreateBulkConsentsParams) SetItems(Items []interface{}) *CreateBul return params } -// func (c *ApiService) CreateBulkConsents(params *CreateBulkConsentsParams) (*AccountsV1BulkConsents, error) { path := "/v1/Consents/Bulk" diff --git a/rest/accounts/v1/contacts_bulk.go b/rest/accounts/v1/contacts_bulk.go index 797905ed1c..9f2240b212 100644 --- a/rest/accounts/v1/contacts_bulk.go +++ b/rest/accounts/v1/contacts_bulk.go @@ -30,7 +30,6 @@ func (params *CreateBulkContactsParams) SetItems(Items []interface{}) *CreateBul return params } -// func (c *ApiService) CreateBulkContacts(params *CreateBulkContactsParams) (*AccountsV1BulkContacts, error) { path := "/v1/Contacts/Bulk" diff --git a/rest/accounts/v1/credentials_aws.go b/rest/accounts/v1/credentials_aws.go index e52646c036..dc0c62ab66 100644 --- a/rest/accounts/v1/credentials_aws.go +++ b/rest/accounts/v1/credentials_aws.go @@ -128,16 +128,16 @@ func (c *ApiService) FetchCredentialAws(Sid string) (*AccountsV1CredentialAws, e // Optional parameters for the method 'ListCredentialAws' type ListCredentialAwsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialAwsParams) SetPageSize(PageSize int) *ListCredentialAwsParams { +func (params *ListCredentialAwsParams) SetPageSize(PageSize int64) *ListCredentialAwsParams { params.PageSize = &PageSize return params } -func (params *ListCredentialAwsParams) SetLimit(Limit int) *ListCredentialAwsParams { +func (params *ListCredentialAwsParams) SetLimit(Limit int64) *ListCredentialAwsParams { params.Limit = &Limit return params } @@ -216,7 +216,7 @@ func (c *ApiService) StreamCredentialAws(params *ListCredentialAwsParams) (chan } func (c *ApiService) streamCredentialAws(response *ListCredentialAwsResponse, params *ListCredentialAwsParams, recordChannel chan AccountsV1CredentialAws, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials diff --git a/rest/accounts/v1/credentials_public_keys.go b/rest/accounts/v1/credentials_public_keys.go index def5334d48..46344579ad 100644 --- a/rest/accounts/v1/credentials_public_keys.go +++ b/rest/accounts/v1/credentials_public_keys.go @@ -128,16 +128,16 @@ func (c *ApiService) FetchCredentialPublicKey(Sid string) (*AccountsV1Credential // Optional parameters for the method 'ListCredentialPublicKey' type ListCredentialPublicKeyParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialPublicKeyParams) SetPageSize(PageSize int) *ListCredentialPublicKeyParams { +func (params *ListCredentialPublicKeyParams) SetPageSize(PageSize int64) *ListCredentialPublicKeyParams { params.PageSize = &PageSize return params } -func (params *ListCredentialPublicKeyParams) SetLimit(Limit int) *ListCredentialPublicKeyParams { +func (params *ListCredentialPublicKeyParams) SetLimit(Limit int64) *ListCredentialPublicKeyParams { params.Limit = &Limit return params } @@ -216,7 +216,7 @@ func (c *ApiService) StreamCredentialPublicKey(params *ListCredentialPublicKeyPa } func (c *ApiService) streamCredentialPublicKey(response *ListCredentialPublicKeyResponse, params *ListCredentialPublicKeyParams, recordChannel chan AccountsV1CredentialPublicKey, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials diff --git a/rest/accounts/v1/docs/CredentialsAWSApi.md b/rest/accounts/v1/docs/CredentialsAWSApi.md index b02e9c1008..f84c095468 100644 --- a/rest/accounts/v1/docs/CredentialsAWSApi.md +++ b/rest/accounts/v1/docs/CredentialsAWSApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListCredentialAwsParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/accounts/v1/docs/CredentialsPublicKeysApi.md b/rest/accounts/v1/docs/CredentialsPublicKeysApi.md index 758b79cfb9..d3a3f64c90 100644 --- a/rest/accounts/v1/docs/CredentialsPublicKeysApi.md +++ b/rest/accounts/v1/docs/CredentialsPublicKeysApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListCredentialPublicKeyParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md index a0725e0896..83b55f0c55 100644 --- a/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md +++ b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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_list_credential_aws_response_meta.go b/rest/accounts/v1/model_list_credential_aws_response_meta.go index a3bebd8171..89b23913bc 100644 --- a/rest/accounts/v1/model_list_credential_aws_response_meta.go +++ b/rest/accounts/v1/model_list_credential_aws_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCredentialAwsResponseMeta struct for ListCredentialAwsResponseMeta type ListCredentialAwsResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index c84fb76742..fefa9e6bc2 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -352,6 +352,7 @@ Class | Method | HTTP request | Description - [ListMemberResponse](docs/ListMemberResponse.md) - [ApiV2010IncomingPhoneNumber](docs/ApiV2010IncomingPhoneNumber.md) - [ApiV2010ConnectApp](docs/ApiV2010ConnectApp.md) + - [FetchHealthCheckResponse](docs/FetchHealthCheckResponse.md) - [ApiV2010SipAuthCallsIpAccessControlListMapping](docs/ApiV2010SipAuthCallsIpAccessControlListMapping.md) - [ApiV2010UsageRecordToday](docs/ApiV2010UsageRecordToday.md) - [ApiV2010ConferenceRecording](docs/ApiV2010ConferenceRecording.md) diff --git a/rest/api/v2010/accounts.go b/rest/api/v2010/accounts.go index 51b1d55246..24f3c14e96 100644 --- a/rest/api/v2010/accounts.go +++ b/rest/api/v2010/accounts.go @@ -94,9 +94,9 @@ type ListAccountParams struct { // Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAccountParams) SetFriendlyName(FriendlyName string) *ListAccountParams { @@ -107,11 +107,11 @@ func (params *ListAccountParams) SetStatus(Status string) *ListAccountParams { params.Status = &Status return params } -func (params *ListAccountParams) SetPageSize(PageSize int) *ListAccountParams { +func (params *ListAccountParams) SetPageSize(PageSize int64) *ListAccountParams { params.PageSize = &PageSize return params } -func (params *ListAccountParams) SetLimit(Limit int) *ListAccountParams { +func (params *ListAccountParams) SetLimit(Limit int64) *ListAccountParams { params.Limit = &Limit return params } @@ -196,7 +196,7 @@ func (c *ApiService) StreamAccount(params *ListAccountParams) (chan ApiV2010Acco } func (c *ApiService) streamAccount(response *ListAccountResponse, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Accounts diff --git a/rest/api/v2010/accounts_addresses.go b/rest/api/v2010/accounts_addresses.go index c2c4c748c8..e67d786f6a 100644 --- a/rest/api/v2010/accounts_addresses.go +++ b/rest/api/v2010/accounts_addresses.go @@ -94,7 +94,6 @@ func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *C return params } -// func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" if params != nil && params.PathAccountSid != nil { @@ -165,7 +164,6 @@ func (params *DeleteAddressParams) SetPathAccountSid(PathAccountSid string) *Del return params } -// func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -201,7 +199,6 @@ func (params *FetchAddressParams) SetPathAccountSid(PathAccountSid string) *Fetc return params } -// func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -242,9 +239,9 @@ type ListAddressParams struct { // The ISO country code of the Address resources to read. IsoCountry *string `json:"IsoCountry,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAddressParams) SetPathAccountSid(PathAccountSid string) *ListAddressParams { @@ -263,11 +260,11 @@ func (params *ListAddressParams) SetIsoCountry(IsoCountry string) *ListAddressPa params.IsoCountry = &IsoCountry return params } -func (params *ListAddressParams) SetPageSize(PageSize int) *ListAddressParams { +func (params *ListAddressParams) SetPageSize(PageSize int64) *ListAddressParams { params.PageSize = &PageSize return params } -func (params *ListAddressParams) SetLimit(Limit int) *ListAddressParams { +func (params *ListAddressParams) SetLimit(Limit int64) *ListAddressParams { params.Limit = &Limit return params } @@ -361,7 +358,7 @@ func (c *ApiService) StreamAddress(params *ListAddressParams) (chan ApiV2010Addr } func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Addresses @@ -473,7 +470,6 @@ func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *U return params } -// func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go index a0ef672228..778833f612 100644 --- a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go +++ b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go @@ -28,20 +28,20 @@ type ListDependentPhoneNumberParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListDependentPhoneNumberParams) SetPathAccountSid(PathAccountSid string) *ListDependentPhoneNumberParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListDependentPhoneNumberParams) SetPageSize(PageSize int) *ListDependentPhoneNumberParams { +func (params *ListDependentPhoneNumberParams) SetPageSize(PageSize int64) *ListDependentPhoneNumberParams { params.PageSize = &PageSize return params } -func (params *ListDependentPhoneNumberParams) SetLimit(Limit int) *ListDependentPhoneNumberParams { +func (params *ListDependentPhoneNumberParams) SetLimit(Limit int64) *ListDependentPhoneNumberParams { params.Limit = &Limit return params } @@ -127,7 +127,7 @@ func (c *ApiService) StreamDependentPhoneNumber(AddressSid string, params *ListD } func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumberResponse, params *ListDependentPhoneNumberParams, recordChannel chan ApiV2010DependentPhoneNumber, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.DependentPhoneNumbers diff --git a/rest/api/v2010/accounts_applications.go b/rest/api/v2010/accounts_applications.go index 31746d94cb..aafb6017a2 100644 --- a/rest/api/v2010/accounts_applications.go +++ b/rest/api/v2010/accounts_applications.go @@ -292,9 +292,9 @@ type ListApplicationParams struct { // The string that identifies the Application resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListApplicationParams) SetPathAccountSid(PathAccountSid string) *ListApplicationParams { @@ -305,11 +305,11 @@ func (params *ListApplicationParams) SetFriendlyName(FriendlyName string) *ListA params.FriendlyName = &FriendlyName return params } -func (params *ListApplicationParams) SetPageSize(PageSize int) *ListApplicationParams { +func (params *ListApplicationParams) SetPageSize(PageSize int64) *ListApplicationParams { params.PageSize = &PageSize return params } -func (params *ListApplicationParams) SetLimit(Limit int) *ListApplicationParams { +func (params *ListApplicationParams) SetLimit(Limit int64) *ListApplicationParams { params.Limit = &Limit return params } @@ -397,7 +397,7 @@ func (c *ApiService) StreamApplication(params *ListApplicationParams) (chan ApiV } func (c *ApiService) streamApplication(response *ListApplicationResponse, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Applications diff --git a/rest/api/v2010/accounts_authorized_connect_apps.go b/rest/api/v2010/accounts_authorized_connect_apps.go index 49468f5232..800f46b7d4 100644 --- a/rest/api/v2010/accounts_authorized_connect_apps.go +++ b/rest/api/v2010/accounts_authorized_connect_apps.go @@ -69,20 +69,20 @@ type ListAuthorizedConnectAppParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAuthorizedConnectAppParams) SetPathAccountSid(PathAccountSid string) *ListAuthorizedConnectAppParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListAuthorizedConnectAppParams) SetPageSize(PageSize int) *ListAuthorizedConnectAppParams { +func (params *ListAuthorizedConnectAppParams) SetPageSize(PageSize int64) *ListAuthorizedConnectAppParams { params.PageSize = &PageSize return params } -func (params *ListAuthorizedConnectAppParams) SetLimit(Limit int) *ListAuthorizedConnectAppParams { +func (params *ListAuthorizedConnectAppParams) SetLimit(Limit int64) *ListAuthorizedConnectAppParams { params.Limit = &Limit return params } @@ -167,7 +167,7 @@ func (c *ApiService) StreamAuthorizedConnectApp(params *ListAuthorizedConnectApp } func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectAppResponse, params *ListAuthorizedConnectAppParams, recordChannel chan ApiV2010AuthorizedConnectApp, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AuthorizedConnectApps diff --git a/rest/api/v2010/accounts_available_phone_numbers.go b/rest/api/v2010/accounts_available_phone_numbers.go index 70eb92c210..125d246639 100644 --- a/rest/api/v2010/accounts_available_phone_numbers.go +++ b/rest/api/v2010/accounts_available_phone_numbers.go @@ -34,7 +34,6 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco return params } -// func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" if params != nil && params.PathAccountSid != nil { @@ -69,20 +68,20 @@ type ListAvailablePhoneNumberCountryParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberCountryParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListAvailablePhoneNumberCountryParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberCountryParams { +func (params *ListAvailablePhoneNumberCountryParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberCountryParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberCountryParams) SetLimit(Limit int) *ListAvailablePhoneNumberCountryParams { +func (params *ListAvailablePhoneNumberCountryParams) SetLimit(Limit int64) *ListAvailablePhoneNumberCountryParams { params.Limit = &Limit return params } @@ -167,7 +166,7 @@ func (c *ApiService) StreamAvailablePhoneNumberCountry(params *ListAvailablePhon } func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountryResponse, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/api/v2010/accounts_available_phone_numbers_local.go b/rest/api/v2010/accounts_available_phone_numbers_local.go index 251b987dc0..83a5b07a19 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_local.go +++ b/rest/api/v2010/accounts_available_phone_numbers_local.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberLocalParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberLocalParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberLocalParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberLocalParams) SetFaxEnabled(FaxEnabled bool params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberLocalParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberLocalParams { +func (params *ListAvailablePhoneNumberLocalParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberLocalParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberLocalParams) SetLimit(Limit int) *ListAvailablePhoneNumberLocalParams { +func (params *ListAvailablePhoneNumberLocalParams) SetLimit(Limit int64) *ListAvailablePhoneNumberLocalParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberLocal(CountryCode string, params } func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhoneNumberLocalResponse, params *ListAvailablePhoneNumberLocalParams, recordChannel chan ApiV2010AvailablePhoneNumberLocal, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go b/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go index fd312a49c0..3bdf3aeb8e 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go +++ b/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberMachineToMachineParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberMachineToMachineParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberMachineToMachineParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberMachineToMachineParams) SetFaxEnabled(FaxE params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberMachineToMachineParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberMachineToMachineParams { +func (params *ListAvailablePhoneNumberMachineToMachineParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberMachineToMachineParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberMachineToMachineParams) SetLimit(Limit int) *ListAvailablePhoneNumberMachineToMachineParams { +func (params *ListAvailablePhoneNumberMachineToMachineParams) SetLimit(Limit int64) *ListAvailablePhoneNumberMachineToMachineParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberMachineToMachine(CountryCode stri } func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAvailablePhoneNumberMachineToMachineResponse, params *ListAvailablePhoneNumberMachineToMachineParams, recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_mobile.go b/rest/api/v2010/accounts_available_phone_numbers_mobile.go index 63a4f69cbf..06138e9ae0 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_available_phone_numbers_mobile.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberMobileParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberMobileParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberMobileParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberMobileParams) SetFaxEnabled(FaxEnabled boo params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberMobileParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberMobileParams { +func (params *ListAvailablePhoneNumberMobileParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberMobileParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberMobileParams) SetLimit(Limit int) *ListAvailablePhoneNumberMobileParams { +func (params *ListAvailablePhoneNumberMobileParams) SetLimit(Limit int64) *ListAvailablePhoneNumberMobileParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberMobile(CountryCode string, params } func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePhoneNumberMobileResponse, params *ListAvailablePhoneNumberMobileParams, recordChannel chan ApiV2010AvailablePhoneNumberMobile, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_national.go b/rest/api/v2010/accounts_available_phone_numbers_national.go index 808b80b37f..f74f1c7049 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_national.go +++ b/rest/api/v2010/accounts_available_phone_numbers_national.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberNationalParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberNationalParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberNationalParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberNationalParams) SetFaxEnabled(FaxEnabled b params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberNationalParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberNationalParams { +func (params *ListAvailablePhoneNumberNationalParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberNationalParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberNationalParams) SetLimit(Limit int) *ListAvailablePhoneNumberNationalParams { +func (params *ListAvailablePhoneNumberNationalParams) SetLimit(Limit int64) *ListAvailablePhoneNumberNationalParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberNational(CountryCode string, para } func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailablePhoneNumberNationalResponse, params *ListAvailablePhoneNumberNationalParams, recordChannel chan ApiV2010AvailablePhoneNumberNational, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go b/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go index 39d575f356..da9c331d86 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go +++ b/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberSharedCostParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberSharedCostParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberSharedCostParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberSharedCostParams) SetFaxEnabled(FaxEnabled params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberSharedCostParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberSharedCostParams { +func (params *ListAvailablePhoneNumberSharedCostParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberSharedCostParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberSharedCostParams) SetLimit(Limit int) *ListAvailablePhoneNumberSharedCostParams { +func (params *ListAvailablePhoneNumberSharedCostParams) SetLimit(Limit int64) *ListAvailablePhoneNumberSharedCostParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberSharedCost(CountryCode string, pa } func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailablePhoneNumberSharedCostResponse, params *ListAvailablePhoneNumberSharedCostParams, recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_toll_free.go b/rest/api/v2010/accounts_available_phone_numbers_toll_free.go index 34df01eb59..4d080fd3b0 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_available_phone_numbers_toll_free.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberTollFreeParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberTollFreeParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberTollFreeParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberTollFreeParams) SetFaxEnabled(FaxEnabled b params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberTollFreeParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberTollFreeParams { +func (params *ListAvailablePhoneNumberTollFreeParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberTollFreeParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberTollFreeParams) SetLimit(Limit int) *ListAvailablePhoneNumberTollFreeParams { +func (params *ListAvailablePhoneNumberTollFreeParams) SetLimit(Limit int64) *ListAvailablePhoneNumberTollFreeParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberTollFree(CountryCode string, para } func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailablePhoneNumberTollFreeResponse, params *ListAvailablePhoneNumberTollFreeParams, recordChannel chan ApiV2010AvailablePhoneNumberTollFree, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_available_phone_numbers_voip.go b/rest/api/v2010/accounts_available_phone_numbers_voip.go index 6c6ca8bf9c..57a5bc3b94 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_voip.go +++ b/rest/api/v2010/accounts_available_phone_numbers_voip.go @@ -64,9 +64,9 @@ type ListAvailablePhoneNumberVoipParams struct { // Whether the phone numbers can receive faxes. Can be: `true` or `false`. FaxEnabled *bool `json:"FaxEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAvailablePhoneNumberVoipParams) SetPathAccountSid(PathAccountSid string) *ListAvailablePhoneNumberVoipParams { @@ -145,11 +145,11 @@ func (params *ListAvailablePhoneNumberVoipParams) SetFaxEnabled(FaxEnabled bool) params.FaxEnabled = &FaxEnabled return params } -func (params *ListAvailablePhoneNumberVoipParams) SetPageSize(PageSize int) *ListAvailablePhoneNumberVoipParams { +func (params *ListAvailablePhoneNumberVoipParams) SetPageSize(PageSize int64) *ListAvailablePhoneNumberVoipParams { params.PageSize = &PageSize return params } -func (params *ListAvailablePhoneNumberVoipParams) SetLimit(Limit int) *ListAvailablePhoneNumberVoipParams { +func (params *ListAvailablePhoneNumberVoipParams) SetLimit(Limit int64) *ListAvailablePhoneNumberVoipParams { params.Limit = &Limit return params } @@ -289,7 +289,7 @@ func (c *ApiService) StreamAvailablePhoneNumberVoip(CountryCode string, params * } func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhoneNumberVoipResponse, params *ListAvailablePhoneNumberVoipParams, recordChannel chan ApiV2010AvailablePhoneNumberVoip, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailablePhoneNumbers diff --git a/rest/api/v2010/accounts_calls.go b/rest/api/v2010/accounts_calls.go index bd81f1b84a..c1be29a166 100644 --- a/rest/api/v2010/accounts_calls.go +++ b/rest/api/v2010/accounts_calls.go @@ -486,9 +486,9 @@ type ListCallParams struct { // Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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. EndTimeAfter *time.Time `json:"EndTime>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCallParams) SetPathAccountSid(PathAccountSid string) *ListCallParams { @@ -535,11 +535,11 @@ func (params *ListCallParams) SetEndTimeAfter(EndTimeAfter time.Time) *ListCallP params.EndTimeAfter = &EndTimeAfter return params } -func (params *ListCallParams) SetPageSize(PageSize int) *ListCallParams { +func (params *ListCallParams) SetPageSize(PageSize int64) *ListCallParams { params.PageSize = &PageSize return params } -func (params *ListCallParams) SetLimit(Limit int) *ListCallParams { +func (params *ListCallParams) SetLimit(Limit int64) *ListCallParams { params.Limit = &Limit return params } @@ -654,7 +654,7 @@ func (c *ApiService) StreamCall(params *ListCallParams) (chan ApiV2010Call, chan } func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Calls diff --git a/rest/api/v2010/accounts_calls_events.go b/rest/api/v2010/accounts_calls_events.go index 02954efad1..6b50f58ad0 100644 --- a/rest/api/v2010/accounts_calls_events.go +++ b/rest/api/v2010/accounts_calls_events.go @@ -28,20 +28,20 @@ type ListCallEventParams struct { // The unique SID identifier of the Account. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCallEventParams) SetPathAccountSid(PathAccountSid string) *ListCallEventParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListCallEventParams) SetPageSize(PageSize int) *ListCallEventParams { +func (params *ListCallEventParams) SetPageSize(PageSize int64) *ListCallEventParams { params.PageSize = &PageSize return params } -func (params *ListCallEventParams) SetLimit(Limit int) *ListCallEventParams { +func (params *ListCallEventParams) SetLimit(Limit int64) *ListCallEventParams { params.Limit = &Limit return params } @@ -127,7 +127,7 @@ func (c *ApiService) StreamCallEvent(CallSid string, params *ListCallEventParams } func (c *ApiService) streamCallEvent(response *ListCallEventResponse, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Events diff --git a/rest/api/v2010/accounts_calls_notifications.go b/rest/api/v2010/accounts_calls_notifications.go index 824db4614e..c434646b16 100644 --- a/rest/api/v2010/accounts_calls_notifications.go +++ b/rest/api/v2010/accounts_calls_notifications.go @@ -34,7 +34,6 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri return params } -// func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -78,9 +77,9 @@ type ListCallNotificationParams struct { // 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. MessageDateAfter *string `json:"MessageDate>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCallNotificationParams) SetPathAccountSid(PathAccountSid string) *ListCallNotificationParams { @@ -103,11 +102,11 @@ func (params *ListCallNotificationParams) SetMessageDateAfter(MessageDateAfter s params.MessageDateAfter = &MessageDateAfter return params } -func (params *ListCallNotificationParams) SetPageSize(PageSize int) *ListCallNotificationParams { +func (params *ListCallNotificationParams) SetPageSize(PageSize int64) *ListCallNotificationParams { params.PageSize = &PageSize return params } -func (params *ListCallNotificationParams) SetLimit(Limit int) *ListCallNotificationParams { +func (params *ListCallNotificationParams) SetLimit(Limit int64) *ListCallNotificationParams { params.Limit = &Limit return params } @@ -205,7 +204,7 @@ func (c *ApiService) StreamCallNotification(CallSid string, params *ListCallNoti } func (c *ApiService) streamCallNotification(response *ListCallNotificationResponse, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Notifications diff --git a/rest/api/v2010/accounts_calls_recordings.go b/rest/api/v2010/accounts_calls_recordings.go index 5397711422..1d2aba1a82 100644 --- a/rest/api/v2010/accounts_calls_recordings.go +++ b/rest/api/v2010/accounts_calls_recordings.go @@ -211,9 +211,9 @@ type ListCallRecordingParams struct { // 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. DateCreatedAfter *string `json:"DateCreated>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCallRecordingParams) SetPathAccountSid(PathAccountSid string) *ListCallRecordingParams { @@ -232,11 +232,11 @@ func (params *ListCallRecordingParams) SetDateCreatedAfter(DateCreatedAfter stri params.DateCreatedAfter = &DateCreatedAfter return params } -func (params *ListCallRecordingParams) SetPageSize(PageSize int) *ListCallRecordingParams { +func (params *ListCallRecordingParams) SetPageSize(PageSize int64) *ListCallRecordingParams { params.PageSize = &PageSize return params } -func (params *ListCallRecordingParams) SetLimit(Limit int) *ListCallRecordingParams { +func (params *ListCallRecordingParams) SetLimit(Limit int64) *ListCallRecordingParams { params.Limit = &Limit return params } @@ -331,7 +331,7 @@ func (c *ApiService) StreamCallRecording(CallSid string, params *ListCallRecordi } func (c *ApiService) streamCallRecording(response *ListCallRecordingResponse, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Recordings diff --git a/rest/api/v2010/accounts_calls_transcriptions.go b/rest/api/v2010/accounts_calls_transcriptions.go index aa43a7c8ea..9e6e9f5a84 100644 --- a/rest/api/v2010/accounts_calls_transcriptions.go +++ b/rest/api/v2010/accounts_calls_transcriptions.go @@ -51,7 +51,7 @@ type CreateRealtimeTranscriptionParams struct { Hints *string `json:"Hints,omitempty"` // The provider will add punctuation to recognition result EnableAutomaticPunctuation *bool `json:"EnableAutomaticPunctuation,omitempty"` - // The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . + // The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . IntelligenceService *string `json:"IntelligenceService,omitempty"` } diff --git a/rest/api/v2010/accounts_conferences.go b/rest/api/v2010/accounts_conferences.go index 523e9c697c..e5665c9f45 100644 --- a/rest/api/v2010/accounts_conferences.go +++ b/rest/api/v2010/accounts_conferences.go @@ -85,9 +85,9 @@ type ListConferenceParams struct { // The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConferenceParams) SetPathAccountSid(PathAccountSid string) *ListConferenceParams { @@ -126,11 +126,11 @@ func (params *ListConferenceParams) SetStatus(Status string) *ListConferencePara params.Status = &Status return params } -func (params *ListConferenceParams) SetPageSize(PageSize int) *ListConferenceParams { +func (params *ListConferenceParams) SetPageSize(PageSize int64) *ListConferenceParams { params.PageSize = &PageSize return params } -func (params *ListConferenceParams) SetLimit(Limit int) *ListConferenceParams { +func (params *ListConferenceParams) SetLimit(Limit int64) *ListConferenceParams { params.Limit = &Limit return params } @@ -239,7 +239,7 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan ApiV20 } func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conferences @@ -315,7 +315,6 @@ func (params *UpdateConferenceParams) SetAnnounceMethod(AnnounceMethod string) * return params } -// func (c *ApiService) UpdateConference(Sid string, params *UpdateConferenceParams) (*ApiV2010Conference, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_conferences_participants.go b/rest/api/v2010/accounts_conferences_participants.go index 957f49f9bf..98676c95eb 100644 --- a/rest/api/v2010/accounts_conferences_participants.go +++ b/rest/api/v2010/accounts_conferences_participants.go @@ -322,7 +322,6 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar return params } -// func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" if params != nil && params.PathAccountSid != nil { @@ -595,9 +594,9 @@ type ListParticipantParams struct { // Whether to return only participants who are coaching another call. Can be: `true` or `false`. Coaching *bool `json:"Coaching,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListParticipantParams) SetPathAccountSid(PathAccountSid string) *ListParticipantParams { @@ -616,11 +615,11 @@ func (params *ListParticipantParams) SetCoaching(Coaching bool) *ListParticipant params.Coaching = &Coaching return params } -func (params *ListParticipantParams) SetPageSize(PageSize int) *ListParticipantParams { +func (params *ListParticipantParams) SetPageSize(PageSize int64) *ListParticipantParams { params.PageSize = &PageSize return params } -func (params *ListParticipantParams) SetLimit(Limit int) *ListParticipantParams { +func (params *ListParticipantParams) SetLimit(Limit int64) *ListParticipantParams { params.Limit = &Limit return params } @@ -715,7 +714,7 @@ func (c *ApiService) StreamParticipant(ConferenceSid string, params *ListPartici } func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/api/v2010/accounts_conferences_recordings.go b/rest/api/v2010/accounts_conferences_recordings.go index 8dce5e3376..38c0c69b43 100644 --- a/rest/api/v2010/accounts_conferences_recordings.go +++ b/rest/api/v2010/accounts_conferences_recordings.go @@ -113,9 +113,9 @@ type ListConferenceRecordingParams struct { // 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. DateCreatedAfter *string `json:"DateCreated>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConferenceRecordingParams) SetPathAccountSid(PathAccountSid string) *ListConferenceRecordingParams { @@ -134,11 +134,11 @@ func (params *ListConferenceRecordingParams) SetDateCreatedAfter(DateCreatedAfte params.DateCreatedAfter = &DateCreatedAfter return params } -func (params *ListConferenceRecordingParams) SetPageSize(PageSize int) *ListConferenceRecordingParams { +func (params *ListConferenceRecordingParams) SetPageSize(PageSize int64) *ListConferenceRecordingParams { params.PageSize = &PageSize return params } -func (params *ListConferenceRecordingParams) SetLimit(Limit int) *ListConferenceRecordingParams { +func (params *ListConferenceRecordingParams) SetLimit(Limit int64) *ListConferenceRecordingParams { params.Limit = &Limit return params } @@ -233,7 +233,7 @@ func (c *ApiService) StreamConferenceRecording(ConferenceSid string, params *Lis } func (c *ApiService) streamConferenceRecording(response *ListConferenceRecordingResponse, params *ListConferenceRecordingParams, recordChannel chan ApiV2010ConferenceRecording, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Recordings diff --git a/rest/api/v2010/accounts_connect_apps.go b/rest/api/v2010/accounts_connect_apps.go index 0df2f7fa42..f8f30e8c44 100644 --- a/rest/api/v2010/accounts_connect_apps.go +++ b/rest/api/v2010/accounts_connect_apps.go @@ -105,20 +105,20 @@ type ListConnectAppParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConnectAppParams) SetPathAccountSid(PathAccountSid string) *ListConnectAppParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListConnectAppParams) SetPageSize(PageSize int) *ListConnectAppParams { +func (params *ListConnectAppParams) SetPageSize(PageSize int64) *ListConnectAppParams { params.PageSize = &PageSize return params } -func (params *ListConnectAppParams) SetLimit(Limit int) *ListConnectAppParams { +func (params *ListConnectAppParams) SetLimit(Limit int64) *ListConnectAppParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamConnectApp(params *ListConnectAppParams) (chan ApiV20 } func (c *ApiService) streamConnectApp(response *ListConnectAppResponse, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ConnectApps diff --git a/rest/api/v2010/accounts_incoming_phone_numbers.go b/rest/api/v2010/accounts_incoming_phone_numbers.go index 8b77f79354..0cd823cf74 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers.go @@ -370,9 +370,9 @@ type ListIncomingPhoneNumberParams struct { // Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. Origin *string `json:"Origin,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberParams { @@ -395,11 +395,11 @@ func (params *ListIncomingPhoneNumberParams) SetOrigin(Origin string) *ListIncom params.Origin = &Origin return params } -func (params *ListIncomingPhoneNumberParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberParams { +func (params *ListIncomingPhoneNumberParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberParams) SetLimit(Limit int) *ListIncomingPhoneNumberParams { +func (params *ListIncomingPhoneNumberParams) SetLimit(Limit int64) *ListIncomingPhoneNumberParams { params.Limit = &Limit return params } @@ -496,7 +496,7 @@ func (c *ApiService) StreamIncomingPhoneNumber(params *ListIncomingPhoneNumberPa } func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumberResponse, params *ListIncomingPhoneNumberParams, recordChannel chan ApiV2010IncomingPhoneNumber, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IncomingPhoneNumbers diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go index 2a1d3bab56..2a76408842 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go @@ -158,20 +158,20 @@ type ListIncomingPhoneNumberAssignedAddOnParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberAssignedAddOnParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberAssignedAddOnParams { +func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberAssignedAddOnParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetLimit(Limit int) *ListIncomingPhoneNumberAssignedAddOnParams { +func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetLimit(Limit int64) *ListIncomingPhoneNumberAssignedAddOnParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOn(ResourceSid string, } func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomingPhoneNumberAssignedAddOnResponse, params *ListIncomingPhoneNumberAssignedAddOnParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AssignedAddOns diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go index 2c5a3899c3..18f3152af9 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go @@ -71,20 +71,20 @@ type ListIncomingPhoneNumberAssignedAddOnExtensionParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberAssignedAddOnExtensionParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberAssignedAddOnExtensionParams { +func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberAssignedAddOnExtensionParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetLimit(Limit int) *ListIncomingPhoneNumberAssignedAddOnExtensionParams { +func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetLimit(Limit int64) *ListIncomingPhoneNumberAssignedAddOnExtensionParams { params.Limit = &Limit return params } @@ -171,7 +171,7 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOnExtension(ResourceSid } func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *ListIncomingPhoneNumberAssignedAddOnExtensionResponse, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Extensions diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_local.go b/rest/api/v2010/accounts_incoming_phone_numbers_local.go index 06a26e6c91..877bfd246e 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_local.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_local.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberLocalParams) SetBundleSid(BundleSid strin return params } -// func (c *ApiService) CreateIncomingPhoneNumberLocal(params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010IncomingPhoneNumberLocal, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" if params != nil && params.PathAccountSid != nil { @@ -284,9 +283,9 @@ type ListIncomingPhoneNumberLocalParams struct { // Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. Origin *string `json:"Origin,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberLocalParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberLocalParams { @@ -309,11 +308,11 @@ func (params *ListIncomingPhoneNumberLocalParams) SetOrigin(Origin string) *List params.Origin = &Origin return params } -func (params *ListIncomingPhoneNumberLocalParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberLocalParams { +func (params *ListIncomingPhoneNumberLocalParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberLocalParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberLocalParams) SetLimit(Limit int) *ListIncomingPhoneNumberLocalParams { +func (params *ListIncomingPhoneNumberLocalParams) SetLimit(Limit int64) *ListIncomingPhoneNumberLocalParams { params.Limit = &Limit return params } @@ -410,7 +409,7 @@ func (c *ApiService) StreamIncomingPhoneNumberLocal(params *ListIncomingPhoneNum } func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocalResponse, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IncomingPhoneNumbers diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go index 2a4365d59d..f8d5f05151 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberMobileParams) SetBundleSid(BundleSid stri return params } -// func (c *ApiService) CreateIncomingPhoneNumberMobile(params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010IncomingPhoneNumberMobile, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -284,9 +283,9 @@ type ListIncomingPhoneNumberMobileParams struct { // Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. Origin *string `json:"Origin,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberMobileParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberMobileParams { @@ -309,11 +308,11 @@ func (params *ListIncomingPhoneNumberMobileParams) SetOrigin(Origin string) *Lis params.Origin = &Origin return params } -func (params *ListIncomingPhoneNumberMobileParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberMobileParams { +func (params *ListIncomingPhoneNumberMobileParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberMobileParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberMobileParams) SetLimit(Limit int) *ListIncomingPhoneNumberMobileParams { +func (params *ListIncomingPhoneNumberMobileParams) SetLimit(Limit int64) *ListIncomingPhoneNumberMobileParams { params.Limit = &Limit return params } @@ -410,7 +409,7 @@ func (c *ApiService) StreamIncomingPhoneNumberMobile(params *ListIncomingPhoneNu } func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobileResponse, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IncomingPhoneNumbers diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go index ad8107c1d1..5ca6f5637e 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberTollFreeParams) SetBundleSid(BundleSid st return params } -// func (c *ApiService) CreateIncomingPhoneNumberTollFree(params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010IncomingPhoneNumberTollFree, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -284,9 +283,9 @@ type ListIncomingPhoneNumberTollFreeParams struct { // Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. Origin *string `json:"Origin,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIncomingPhoneNumberTollFreeParams) SetPathAccountSid(PathAccountSid string) *ListIncomingPhoneNumberTollFreeParams { @@ -309,11 +308,11 @@ func (params *ListIncomingPhoneNumberTollFreeParams) SetOrigin(Origin string) *L params.Origin = &Origin return params } -func (params *ListIncomingPhoneNumberTollFreeParams) SetPageSize(PageSize int) *ListIncomingPhoneNumberTollFreeParams { +func (params *ListIncomingPhoneNumberTollFreeParams) SetPageSize(PageSize int64) *ListIncomingPhoneNumberTollFreeParams { params.PageSize = &PageSize return params } -func (params *ListIncomingPhoneNumberTollFreeParams) SetLimit(Limit int) *ListIncomingPhoneNumberTollFreeParams { +func (params *ListIncomingPhoneNumberTollFreeParams) SetLimit(Limit int64) *ListIncomingPhoneNumberTollFreeParams { params.Limit = &Limit return params } @@ -410,7 +409,7 @@ func (c *ApiService) StreamIncomingPhoneNumberTollFree(params *ListIncomingPhone } func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFreeResponse, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IncomingPhoneNumbers diff --git a/rest/api/v2010/accounts_keys.go b/rest/api/v2010/accounts_keys.go index 6d18e73eec..188bd8b087 100644 --- a/rest/api/v2010/accounts_keys.go +++ b/rest/api/v2010/accounts_keys.go @@ -40,7 +40,6 @@ func (params *CreateNewKeyParams) SetFriendlyName(FriendlyName string) *CreateNe return params } -// func (c *ApiService) CreateNewKey(params *CreateNewKeyParams) (*ApiV2010NewKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" if params != nil && params.PathAccountSid != nil { @@ -84,7 +83,6 @@ func (params *DeleteKeyParams) SetPathAccountSid(PathAccountSid string) *DeleteK return params } -// func (c *ApiService) DeleteKey(Sid string, params *DeleteKeyParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -120,7 +118,6 @@ func (params *FetchKeyParams) SetPathAccountSid(PathAccountSid string) *FetchKey return params } -// func (c *ApiService) FetchKey(Sid string, params *FetchKeyParams) (*ApiV2010Key, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -155,20 +152,20 @@ type ListKeyParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListKeyParams) SetPathAccountSid(PathAccountSid string) *ListKeyParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListKeyParams) SetPageSize(PageSize int) *ListKeyParams { +func (params *ListKeyParams) SetPageSize(PageSize int64) *ListKeyParams { params.PageSize = &PageSize return params } -func (params *ListKeyParams) SetLimit(Limit int) *ListKeyParams { +func (params *ListKeyParams) SetLimit(Limit int64) *ListKeyParams { params.Limit = &Limit return params } @@ -253,7 +250,7 @@ func (c *ApiService) StreamKey(params *ListKeyParams) (chan ApiV2010Key, chan er } func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Keys @@ -317,7 +314,6 @@ func (params *UpdateKeyParams) SetFriendlyName(FriendlyName string) *UpdateKeyPa return params } -// func (c *ApiService) UpdateKey(Sid string, params *UpdateKeyParams) (*ApiV2010Key, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index e2a6bc4c9d..97f51f30c8 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -368,9 +368,9 @@ type ListMessageParams struct { // Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). DateSentAfter *time.Time `json:"DateSent>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMessageParams) SetPathAccountSid(PathAccountSid string) *ListMessageParams { @@ -397,11 +397,11 @@ func (params *ListMessageParams) SetDateSentAfter(DateSentAfter time.Time) *List params.DateSentAfter = &DateSentAfter return params } -func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { +func (params *ListMessageParams) SetPageSize(PageSize int64) *ListMessageParams { params.PageSize = &PageSize return params } -func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { +func (params *ListMessageParams) SetLimit(Limit int64) *ListMessageParams { params.Limit = &Limit return params } @@ -501,7 +501,7 @@ func (c *ApiService) StreamMessage(params *ListMessageParams) (chan ApiV2010Mess } func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages diff --git a/rest/api/v2010/accounts_messages_media.go b/rest/api/v2010/accounts_messages_media.go index c943d29447..1f79e58386 100644 --- a/rest/api/v2010/accounts_messages_media.go +++ b/rest/api/v2010/accounts_messages_media.go @@ -114,9 +114,9 @@ type ListMediaParams struct { // Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. DateCreatedAfter *time.Time `json:"DateCreated>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMediaParams) SetPathAccountSid(PathAccountSid string) *ListMediaParams { @@ -135,11 +135,11 @@ func (params *ListMediaParams) SetDateCreatedAfter(DateCreatedAfter time.Time) * params.DateCreatedAfter = &DateCreatedAfter return params } -func (params *ListMediaParams) SetPageSize(PageSize int) *ListMediaParams { +func (params *ListMediaParams) SetPageSize(PageSize int64) *ListMediaParams { params.PageSize = &PageSize return params } -func (params *ListMediaParams) SetLimit(Limit int) *ListMediaParams { +func (params *ListMediaParams) SetLimit(Limit int64) *ListMediaParams { params.Limit = &Limit return params } @@ -234,7 +234,7 @@ func (c *ApiService) StreamMedia(MessageSid string, params *ListMediaParams) (ch } func (c *ApiService) streamMedia(response *ListMediaResponse, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.MediaList diff --git a/rest/api/v2010/accounts_notifications.go b/rest/api/v2010/accounts_notifications.go index ccd566be3a..b12ec1ee05 100644 --- a/rest/api/v2010/accounts_notifications.go +++ b/rest/api/v2010/accounts_notifications.go @@ -77,9 +77,9 @@ type ListNotificationParams struct { // 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. MessageDateAfter *string `json:"MessageDate>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListNotificationParams) SetPathAccountSid(PathAccountSid string) *ListNotificationParams { @@ -102,11 +102,11 @@ func (params *ListNotificationParams) SetMessageDateAfter(MessageDateAfter strin params.MessageDateAfter = &MessageDateAfter return params } -func (params *ListNotificationParams) SetPageSize(PageSize int) *ListNotificationParams { +func (params *ListNotificationParams) SetPageSize(PageSize int64) *ListNotificationParams { params.PageSize = &PageSize return params } -func (params *ListNotificationParams) SetLimit(Limit int) *ListNotificationParams { +func (params *ListNotificationParams) SetLimit(Limit int64) *ListNotificationParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamNotification(params *ListNotificationParams) (chan Ap } func (c *ApiService) streamNotification(response *ListNotificationResponse, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Notifications diff --git a/rest/api/v2010/accounts_outgoing_caller_ids.go b/rest/api/v2010/accounts_outgoing_caller_ids.go index f098619e8c..b6ff31f91b 100644 --- a/rest/api/v2010/accounts_outgoing_caller_ids.go +++ b/rest/api/v2010/accounts_outgoing_caller_ids.go @@ -70,7 +70,6 @@ func (params *CreateValidationRequestParams) SetStatusCallbackMethod(StatusCallb return params } -// func (c *ApiService) CreateValidationRequest(params *CreateValidationRequestParams) (*ApiV2010ValidationRequest, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" if params != nil && params.PathAccountSid != nil { @@ -204,9 +203,9 @@ type ListOutgoingCallerIdParams struct { // The string that identifies the OutgoingCallerId resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListOutgoingCallerIdParams) SetPathAccountSid(PathAccountSid string) *ListOutgoingCallerIdParams { @@ -221,11 +220,11 @@ func (params *ListOutgoingCallerIdParams) SetFriendlyName(FriendlyName string) * params.FriendlyName = &FriendlyName return params } -func (params *ListOutgoingCallerIdParams) SetPageSize(PageSize int) *ListOutgoingCallerIdParams { +func (params *ListOutgoingCallerIdParams) SetPageSize(PageSize int64) *ListOutgoingCallerIdParams { params.PageSize = &PageSize return params } -func (params *ListOutgoingCallerIdParams) SetLimit(Limit int) *ListOutgoingCallerIdParams { +func (params *ListOutgoingCallerIdParams) SetLimit(Limit int64) *ListOutgoingCallerIdParams { params.Limit = &Limit return params } @@ -316,7 +315,7 @@ func (c *ApiService) StreamOutgoingCallerId(params *ListOutgoingCallerIdParams) } func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdResponse, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.OutgoingCallerIds diff --git a/rest/api/v2010/accounts_queues.go b/rest/api/v2010/accounts_queues.go index 6bf8d72ad2..5bfaf1e73a 100644 --- a/rest/api/v2010/accounts_queues.go +++ b/rest/api/v2010/accounts_queues.go @@ -164,20 +164,20 @@ type ListQueueParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListQueueParams) SetPathAccountSid(PathAccountSid string) *ListQueueParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListQueueParams) SetPageSize(PageSize int) *ListQueueParams { +func (params *ListQueueParams) SetPageSize(PageSize int64) *ListQueueParams { params.PageSize = &PageSize return params } -func (params *ListQueueParams) SetLimit(Limit int) *ListQueueParams { +func (params *ListQueueParams) SetLimit(Limit int64) *ListQueueParams { params.Limit = &Limit return params } @@ -262,7 +262,7 @@ func (c *ApiService) StreamQueue(params *ListQueueParams) (chan ApiV2010Queue, c } func (c *ApiService) streamQueue(response *ListQueueResponse, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Queues diff --git a/rest/api/v2010/accounts_queues_members.go b/rest/api/v2010/accounts_queues_members.go index f8fbb0b8e2..e5655bef0e 100644 --- a/rest/api/v2010/accounts_queues_members.go +++ b/rest/api/v2010/accounts_queues_members.go @@ -70,20 +70,20 @@ type ListMemberParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMemberParams) SetPathAccountSid(PathAccountSid string) *ListMemberParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListMemberParams) SetPageSize(PageSize int) *ListMemberParams { +func (params *ListMemberParams) SetPageSize(PageSize int64) *ListMemberParams { params.PageSize = &PageSize return params } -func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { +func (params *ListMemberParams) SetLimit(Limit int64) *ListMemberParams { params.Limit = &Limit return params } @@ -169,7 +169,7 @@ func (c *ApiService) StreamMember(QueueSid string, params *ListMemberParams) (ch } func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.QueueMembers diff --git a/rest/api/v2010/accounts_recordings.go b/rest/api/v2010/accounts_recordings.go index 6eca8877a9..88b4e0cc8b 100644 --- a/rest/api/v2010/accounts_recordings.go +++ b/rest/api/v2010/accounts_recordings.go @@ -128,9 +128,9 @@ type ListRecordingParams struct { // A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. IncludeSoftDeleted *bool `json:"IncludeSoftDeleted,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRecordingParams) SetPathAccountSid(PathAccountSid string) *ListRecordingParams { @@ -161,11 +161,11 @@ func (params *ListRecordingParams) SetIncludeSoftDeleted(IncludeSoftDeleted bool params.IncludeSoftDeleted = &IncludeSoftDeleted return params } -func (params *ListRecordingParams) SetPageSize(PageSize int) *ListRecordingParams { +func (params *ListRecordingParams) SetPageSize(PageSize int64) *ListRecordingParams { params.PageSize = &PageSize return params } -func (params *ListRecordingParams) SetLimit(Limit int) *ListRecordingParams { +func (params *ListRecordingParams) SetLimit(Limit int64) *ListRecordingParams { params.Limit = &Limit return params } @@ -268,7 +268,7 @@ func (c *ApiService) StreamRecording(params *ListRecordingParams) (chan ApiV2010 } func (c *ApiService) streamRecording(response *ListRecordingResponse, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Recordings diff --git a/rest/api/v2010/accounts_recordings_add_on_results.go b/rest/api/v2010/accounts_recordings_add_on_results.go index c6c9e77609..5e1d7581e7 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results.go +++ b/rest/api/v2010/accounts_recordings_add_on_results.go @@ -107,20 +107,20 @@ type ListRecordingAddOnResultParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRecordingAddOnResultParams) SetPathAccountSid(PathAccountSid string) *ListRecordingAddOnResultParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListRecordingAddOnResultParams) SetPageSize(PageSize int) *ListRecordingAddOnResultParams { +func (params *ListRecordingAddOnResultParams) SetPageSize(PageSize int64) *ListRecordingAddOnResultParams { params.PageSize = &PageSize return params } -func (params *ListRecordingAddOnResultParams) SetLimit(Limit int) *ListRecordingAddOnResultParams { +func (params *ListRecordingAddOnResultParams) SetLimit(Limit int64) *ListRecordingAddOnResultParams { params.Limit = &Limit return params } @@ -206,7 +206,7 @@ func (c *ApiService) StreamRecordingAddOnResult(ReferenceSid string, params *Lis } func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResultResponse, params *ListRecordingAddOnResultParams, recordChannel chan ApiV2010RecordingAddOnResult, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AddOnResults diff --git a/rest/api/v2010/accounts_recordings_add_on_results_payloads.go b/rest/api/v2010/accounts_recordings_add_on_results_payloads.go index 83012595dc..cfa476f0ea 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results_payloads.go +++ b/rest/api/v2010/accounts_recordings_add_on_results_payloads.go @@ -109,20 +109,20 @@ type ListRecordingAddOnResultPayloadParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRecordingAddOnResultPayloadParams) SetPathAccountSid(PathAccountSid string) *ListRecordingAddOnResultPayloadParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListRecordingAddOnResultPayloadParams) SetPageSize(PageSize int) *ListRecordingAddOnResultPayloadParams { +func (params *ListRecordingAddOnResultPayloadParams) SetPageSize(PageSize int64) *ListRecordingAddOnResultPayloadParams { params.PageSize = &PageSize return params } -func (params *ListRecordingAddOnResultPayloadParams) SetLimit(Limit int) *ListRecordingAddOnResultPayloadParams { +func (params *ListRecordingAddOnResultPayloadParams) SetLimit(Limit int64) *ListRecordingAddOnResultPayloadParams { params.Limit = &Limit return params } @@ -209,7 +209,7 @@ func (c *ApiService) StreamRecordingAddOnResultPayload(ReferenceSid string, AddO } func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAddOnResultPayloadResponse, params *ListRecordingAddOnResultPayloadParams, recordChannel chan ApiV2010RecordingAddOnResultPayload, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Payloads diff --git a/rest/api/v2010/accounts_recordings_transcriptions.go b/rest/api/v2010/accounts_recordings_transcriptions.go index 513ec233e3..735ed1cb6d 100644 --- a/rest/api/v2010/accounts_recordings_transcriptions.go +++ b/rest/api/v2010/accounts_recordings_transcriptions.go @@ -34,7 +34,6 @@ func (params *DeleteRecordingTranscriptionParams) SetPathAccountSid(PathAccountS return params } -// func (c *ApiService) DeleteRecordingTranscription(RecordingSid string, Sid string, params *DeleteRecordingTranscriptionParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -71,7 +70,6 @@ func (params *FetchRecordingTranscriptionParams) SetPathAccountSid(PathAccountSi return params } -// func (c *ApiService) FetchRecordingTranscription(RecordingSid string, Sid string, params *FetchRecordingTranscriptionParams) (*ApiV2010RecordingTranscription, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -107,20 +105,20 @@ type ListRecordingTranscriptionParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRecordingTranscriptionParams) SetPathAccountSid(PathAccountSid string) *ListRecordingTranscriptionParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListRecordingTranscriptionParams) SetPageSize(PageSize int) *ListRecordingTranscriptionParams { +func (params *ListRecordingTranscriptionParams) SetPageSize(PageSize int64) *ListRecordingTranscriptionParams { params.PageSize = &PageSize return params } -func (params *ListRecordingTranscriptionParams) SetLimit(Limit int) *ListRecordingTranscriptionParams { +func (params *ListRecordingTranscriptionParams) SetLimit(Limit int64) *ListRecordingTranscriptionParams { params.Limit = &Limit return params } @@ -206,7 +204,7 @@ func (c *ApiService) StreamRecordingTranscription(RecordingSid string, params *L } func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscriptionResponse, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Transcriptions diff --git a/rest/api/v2010/accounts_signing_keys.go b/rest/api/v2010/accounts_signing_keys.go index fa9f66dfd7..c2be5725e2 100644 --- a/rest/api/v2010/accounts_signing_keys.go +++ b/rest/api/v2010/accounts_signing_keys.go @@ -84,7 +84,6 @@ func (params *DeleteSigningKeyParams) SetPathAccountSid(PathAccountSid string) * return params } -// func (c *ApiService) DeleteSigningKey(Sid string, params *DeleteSigningKeyParams) error { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -120,7 +119,6 @@ func (params *FetchSigningKeyParams) SetPathAccountSid(PathAccountSid string) *F return params } -// func (c *ApiService) FetchSigningKey(Sid string, params *FetchSigningKeyParams) (*ApiV2010SigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -155,20 +153,20 @@ type ListSigningKeyParams struct { // PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSigningKeyParams) SetPathAccountSid(PathAccountSid string) *ListSigningKeyParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSigningKeyParams) SetPageSize(PageSize int) *ListSigningKeyParams { +func (params *ListSigningKeyParams) SetPageSize(PageSize int64) *ListSigningKeyParams { params.PageSize = &PageSize return params } -func (params *ListSigningKeyParams) SetLimit(Limit int) *ListSigningKeyParams { +func (params *ListSigningKeyParams) SetLimit(Limit int64) *ListSigningKeyParams { params.Limit = &Limit return params } @@ -253,7 +251,7 @@ func (c *ApiService) StreamSigningKey(params *ListSigningKeyParams) (chan ApiV20 } func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SigningKeys @@ -317,7 +315,6 @@ func (params *UpdateSigningKeyParams) SetFriendlyName(FriendlyName string) *Upda return params } -// func (c *ApiService) UpdateSigningKey(Sid string, params *UpdateSigningKeyParams) (*ApiV2010SigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_sip_credential_lists.go b/rest/api/v2010/accounts_sip_credential_lists.go index ba69786917..d2c1fa1ed3 100644 --- a/rest/api/v2010/accounts_sip_credential_lists.go +++ b/rest/api/v2010/accounts_sip_credential_lists.go @@ -155,20 +155,20 @@ type ListSipCredentialListParams struct { // The unique id of the Account that is responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipCredentialListParams) SetPathAccountSid(PathAccountSid string) *ListSipCredentialListParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipCredentialListParams) SetPageSize(PageSize int) *ListSipCredentialListParams { +func (params *ListSipCredentialListParams) SetPageSize(PageSize int64) *ListSipCredentialListParams { params.PageSize = &PageSize return params } -func (params *ListSipCredentialListParams) SetLimit(Limit int) *ListSipCredentialListParams { +func (params *ListSipCredentialListParams) SetLimit(Limit int64) *ListSipCredentialListParams { params.Limit = &Limit return params } @@ -253,7 +253,7 @@ func (c *ApiService) StreamSipCredentialList(params *ListSipCredentialListParams } func (c *ApiService) streamSipCredentialList(response *ListSipCredentialListResponse, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.CredentialLists diff --git a/rest/api/v2010/accounts_sip_credential_lists_credentials.go b/rest/api/v2010/accounts_sip_credential_lists_credentials.go index c49a0b82e2..46074c23bd 100644 --- a/rest/api/v2010/accounts_sip_credential_lists_credentials.go +++ b/rest/api/v2010/accounts_sip_credential_lists_credentials.go @@ -167,20 +167,20 @@ type ListSipCredentialParams struct { // The unique id of the Account that is responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipCredentialParams) SetPathAccountSid(PathAccountSid string) *ListSipCredentialParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipCredentialParams) SetPageSize(PageSize int) *ListSipCredentialParams { +func (params *ListSipCredentialParams) SetPageSize(PageSize int64) *ListSipCredentialParams { params.PageSize = &PageSize return params } -func (params *ListSipCredentialParams) SetLimit(Limit int) *ListSipCredentialParams { +func (params *ListSipCredentialParams) SetLimit(Limit int64) *ListSipCredentialParams { params.Limit = &Limit return params } @@ -266,7 +266,7 @@ func (c *ApiService) StreamSipCredential(CredentialListSid string, params *ListS } func (c *ApiService) streamSipCredential(response *ListSipCredentialResponse, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials diff --git a/rest/api/v2010/accounts_sip_domains.go b/rest/api/v2010/accounts_sip_domains.go index c199785fb9..64c0063cce 100644 --- a/rest/api/v2010/accounts_sip_domains.go +++ b/rest/api/v2010/accounts_sip_domains.go @@ -263,20 +263,20 @@ type ListSipDomainParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipDomainParams) SetPathAccountSid(PathAccountSid string) *ListSipDomainParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipDomainParams) SetPageSize(PageSize int) *ListSipDomainParams { +func (params *ListSipDomainParams) SetPageSize(PageSize int64) *ListSipDomainParams { params.PageSize = &PageSize return params } -func (params *ListSipDomainParams) SetLimit(Limit int) *ListSipDomainParams { +func (params *ListSipDomainParams) SetLimit(Limit int64) *ListSipDomainParams { params.Limit = &Limit return params } @@ -361,7 +361,7 @@ func (c *ApiService) StreamSipDomain(params *ListSipDomainParams) (chan ApiV2010 } func (c *ApiService) streamSipDomain(response *ListSipDomainResponse, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Domains diff --git a/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go index 684b9e14b8..f5d6e89900 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go @@ -158,20 +158,20 @@ type ListSipAuthCallsCredentialListMappingParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipAuthCallsCredentialListMappingParams) SetPathAccountSid(PathAccountSid string) *ListSipAuthCallsCredentialListMappingParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipAuthCallsCredentialListMappingParams) SetPageSize(PageSize int) *ListSipAuthCallsCredentialListMappingParams { +func (params *ListSipAuthCallsCredentialListMappingParams) SetPageSize(PageSize int64) *ListSipAuthCallsCredentialListMappingParams { params.PageSize = &PageSize return params } -func (params *ListSipAuthCallsCredentialListMappingParams) SetLimit(Limit int) *ListSipAuthCallsCredentialListMappingParams { +func (params *ListSipAuthCallsCredentialListMappingParams) SetLimit(Limit int64) *ListSipAuthCallsCredentialListMappingParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipAuthCallsCredentialListMapping(DomainSid string, p } func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAuthCallsCredentialListMappingResponse, params *ListSipAuthCallsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go index 6f9c61a306..8ce8eff74f 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go @@ -158,20 +158,20 @@ type ListSipAuthCallsIpAccessControlListMappingParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetPathAccountSid(PathAccountSid string) *ListSipAuthCallsIpAccessControlListMappingParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetPageSize(PageSize int) *ListSipAuthCallsIpAccessControlListMappingParams { +func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetPageSize(PageSize int64) *ListSipAuthCallsIpAccessControlListMappingParams { params.PageSize = &PageSize return params } -func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetLimit(Limit int) *ListSipAuthCallsIpAccessControlListMappingParams { +func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetLimit(Limit int64) *ListSipAuthCallsIpAccessControlListMappingParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipAuthCallsIpAccessControlListMapping(DomainSid stri } func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *ListSipAuthCallsIpAccessControlListMappingResponse, params *ListSipAuthCallsIpAccessControlListMappingParams, recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go index 7ffac8cd7f..f02ca1f1b6 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go @@ -158,20 +158,20 @@ type ListSipAuthRegistrationsCredentialListMappingParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetPathAccountSid(PathAccountSid string) *ListSipAuthRegistrationsCredentialListMappingParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetPageSize(PageSize int) *ListSipAuthRegistrationsCredentialListMappingParams { +func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetPageSize(PageSize int64) *ListSipAuthRegistrationsCredentialListMappingParams { params.PageSize = &PageSize return params } -func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetLimit(Limit int) *ListSipAuthRegistrationsCredentialListMappingParams { +func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetLimit(Limit int64) *ListSipAuthRegistrationsCredentialListMappingParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipAuthRegistrationsCredentialListMapping(DomainSid s } func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *ListSipAuthRegistrationsCredentialListMappingResponse, params *ListSipAuthRegistrationsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go index e5d0f12da4..e532582ade 100644 --- a/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go @@ -158,20 +158,20 @@ type ListSipCredentialListMappingParams struct { // The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipCredentialListMappingParams) SetPathAccountSid(PathAccountSid string) *ListSipCredentialListMappingParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipCredentialListMappingParams) SetPageSize(PageSize int) *ListSipCredentialListMappingParams { +func (params *ListSipCredentialListMappingParams) SetPageSize(PageSize int64) *ListSipCredentialListMappingParams { params.PageSize = &PageSize return params } -func (params *ListSipCredentialListMappingParams) SetLimit(Limit int) *ListSipCredentialListMappingParams { +func (params *ListSipCredentialListMappingParams) SetLimit(Limit int64) *ListSipCredentialListMappingParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipCredentialListMapping(DomainSid string, params *Li } func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialListMappingResponse, params *ListSipCredentialListMappingParams, recordChannel chan ApiV2010SipCredentialListMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.CredentialListMappings diff --git a/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go b/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go index c675dfdaf8..0666c03b3c 100644 --- a/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go @@ -158,20 +158,20 @@ type ListSipIpAccessControlListMappingParams struct { // The unique id of the Account that is responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipIpAccessControlListMappingParams) SetPathAccountSid(PathAccountSid string) *ListSipIpAccessControlListMappingParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipIpAccessControlListMappingParams) SetPageSize(PageSize int) *ListSipIpAccessControlListMappingParams { +func (params *ListSipIpAccessControlListMappingParams) SetPageSize(PageSize int64) *ListSipIpAccessControlListMappingParams { params.PageSize = &PageSize return params } -func (params *ListSipIpAccessControlListMappingParams) SetLimit(Limit int) *ListSipIpAccessControlListMappingParams { +func (params *ListSipIpAccessControlListMappingParams) SetLimit(Limit int64) *ListSipIpAccessControlListMappingParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipIpAccessControlListMapping(DomainSid string, param } func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAccessControlListMappingResponse, params *ListSipIpAccessControlListMappingParams, recordChannel chan ApiV2010SipIpAccessControlListMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpAccessControlListMappings diff --git a/rest/api/v2010/accounts_sipip_access_control_lists.go b/rest/api/v2010/accounts_sipip_access_control_lists.go index b6400b2496..c4d66962c7 100644 --- a/rest/api/v2010/accounts_sipip_access_control_lists.go +++ b/rest/api/v2010/accounts_sipip_access_control_lists.go @@ -155,20 +155,20 @@ type ListSipIpAccessControlListParams struct { // The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipIpAccessControlListParams) SetPathAccountSid(PathAccountSid string) *ListSipIpAccessControlListParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipIpAccessControlListParams) SetPageSize(PageSize int) *ListSipIpAccessControlListParams { +func (params *ListSipIpAccessControlListParams) SetPageSize(PageSize int64) *ListSipIpAccessControlListParams { params.PageSize = &PageSize return params } -func (params *ListSipIpAccessControlListParams) SetLimit(Limit int) *ListSipIpAccessControlListParams { +func (params *ListSipIpAccessControlListParams) SetLimit(Limit int64) *ListSipIpAccessControlListParams { params.Limit = &Limit return params } @@ -253,7 +253,7 @@ func (c *ApiService) StreamSipIpAccessControlList(params *ListSipIpAccessControl } func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessControlListResponse, params *ListSipIpAccessControlListParams, recordChannel chan ApiV2010SipIpAccessControlList, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpAccessControlLists diff --git a/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go b/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go index 2317e9b173..b47ffd4bbf 100644 --- a/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go +++ b/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go @@ -176,20 +176,20 @@ type ListSipIpAddressParams struct { // The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSipIpAddressParams) SetPathAccountSid(PathAccountSid string) *ListSipIpAddressParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListSipIpAddressParams) SetPageSize(PageSize int) *ListSipIpAddressParams { +func (params *ListSipIpAddressParams) SetPageSize(PageSize int64) *ListSipIpAddressParams { params.PageSize = &PageSize return params } -func (params *ListSipIpAddressParams) SetLimit(Limit int) *ListSipIpAddressParams { +func (params *ListSipIpAddressParams) SetLimit(Limit int64) *ListSipIpAddressParams { params.Limit = &Limit return params } @@ -275,7 +275,7 @@ func (c *ApiService) StreamSipIpAddress(IpAccessControlListSid string, params *L } func (c *ApiService) streamSipIpAddress(response *ListSipIpAddressResponse, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpAddresses diff --git a/rest/api/v2010/accounts_sms_short_codes.go b/rest/api/v2010/accounts_sms_short_codes.go index c0dc591c9a..e26a968481 100644 --- a/rest/api/v2010/accounts_sms_short_codes.go +++ b/rest/api/v2010/accounts_sms_short_codes.go @@ -73,9 +73,9 @@ type ListShortCodeParams struct { // Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. ShortCode *string `json:"ShortCode,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListShortCodeParams) SetPathAccountSid(PathAccountSid string) *ListShortCodeParams { @@ -90,11 +90,11 @@ func (params *ListShortCodeParams) SetShortCode(ShortCode string) *ListShortCode params.ShortCode = &ShortCode return params } -func (params *ListShortCodeParams) SetPageSize(PageSize int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetPageSize(PageSize int64) *ListShortCodeParams { params.PageSize = &PageSize return params } -func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetLimit(Limit int64) *ListShortCodeParams { params.Limit = &Limit return params } @@ -185,7 +185,7 @@ func (c *ApiService) StreamShortCode(params *ListShortCodeParams) (chan ApiV2010 } func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ShortCodes diff --git a/rest/api/v2010/accounts_transcriptions.go b/rest/api/v2010/accounts_transcriptions.go index 208a4bf2d6..0027eb25d0 100644 --- a/rest/api/v2010/accounts_transcriptions.go +++ b/rest/api/v2010/accounts_transcriptions.go @@ -105,20 +105,20 @@ type ListTranscriptionParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. PathAccountSid *string `json:"PathAccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTranscriptionParams) SetPathAccountSid(PathAccountSid string) *ListTranscriptionParams { params.PathAccountSid = &PathAccountSid return params } -func (params *ListTranscriptionParams) SetPageSize(PageSize int) *ListTranscriptionParams { +func (params *ListTranscriptionParams) SetPageSize(PageSize int64) *ListTranscriptionParams { params.PageSize = &PageSize return params } -func (params *ListTranscriptionParams) SetLimit(Limit int) *ListTranscriptionParams { +func (params *ListTranscriptionParams) SetLimit(Limit int64) *ListTranscriptionParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamTranscription(params *ListTranscriptionParams) (chan } func (c *ApiService) streamTranscription(response *ListTranscriptionResponse, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Transcriptions diff --git a/rest/api/v2010/accounts_usage_records.go b/rest/api/v2010/accounts_usage_records.go index ceb07c5e10..d305dd3240 100644 --- a/rest/api/v2010/accounts_usage_records.go +++ b/rest/api/v2010/accounts_usage_records.go @@ -36,9 +36,9 @@ type ListUsageRecordParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordParams) SetIncludeSubaccounts(IncludeSubaccounts bo params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordParams) SetPageSize(PageSize int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetPageSize(PageSize int64) *ListUsageRecordParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetLimit(Limit int64) *ListUsageRecordParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecord(params *ListUsageRecordParams) (chan ApiV } func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_all_time.go b/rest/api/v2010/accounts_usage_records_all_time.go index 4c3003fbb9..867bd9875e 100644 --- a/rest/api/v2010/accounts_usage_records_all_time.go +++ b/rest/api/v2010/accounts_usage_records_all_time.go @@ -36,9 +36,9 @@ type ListUsageRecordAllTimeParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordAllTimeParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordAllTimeParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordAllTimeParams) SetIncludeSubaccounts(IncludeSubacco params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordAllTimeParams) SetPageSize(PageSize int) *ListUsageRecordAllTimeParams { +func (params *ListUsageRecordAllTimeParams) SetPageSize(PageSize int64) *ListUsageRecordAllTimeParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordAllTimeParams) SetLimit(Limit int) *ListUsageRecordAllTimeParams { +func (params *ListUsageRecordAllTimeParams) SetLimit(Limit int64) *ListUsageRecordAllTimeParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordAllTime(params *ListUsageRecordAllTimePara } func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTimeResponse, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_daily.go b/rest/api/v2010/accounts_usage_records_daily.go index a1cdcec464..1ae401924d 100644 --- a/rest/api/v2010/accounts_usage_records_daily.go +++ b/rest/api/v2010/accounts_usage_records_daily.go @@ -36,9 +36,9 @@ type ListUsageRecordDailyParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordDailyParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordDailyParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordDailyParams) SetIncludeSubaccounts(IncludeSubaccoun params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordDailyParams) SetPageSize(PageSize int) *ListUsageRecordDailyParams { +func (params *ListUsageRecordDailyParams) SetPageSize(PageSize int64) *ListUsageRecordDailyParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordDailyParams) SetLimit(Limit int) *ListUsageRecordDailyParams { +func (params *ListUsageRecordDailyParams) SetLimit(Limit int64) *ListUsageRecordDailyParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordDaily(params *ListUsageRecordDailyParams) } func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDailyResponse, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_last_month.go b/rest/api/v2010/accounts_usage_records_last_month.go index 4c5867b552..af457e5b92 100644 --- a/rest/api/v2010/accounts_usage_records_last_month.go +++ b/rest/api/v2010/accounts_usage_records_last_month.go @@ -36,9 +36,9 @@ type ListUsageRecordLastMonthParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordLastMonthParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordLastMonthParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordLastMonthParams) SetIncludeSubaccounts(IncludeSubac params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordLastMonthParams) SetPageSize(PageSize int) *ListUsageRecordLastMonthParams { +func (params *ListUsageRecordLastMonthParams) SetPageSize(PageSize int64) *ListUsageRecordLastMonthParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordLastMonthParams) SetLimit(Limit int) *ListUsageRecordLastMonthParams { +func (params *ListUsageRecordLastMonthParams) SetLimit(Limit int64) *ListUsageRecordLastMonthParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordLastMonth(params *ListUsageRecordLastMonth } func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMonthResponse, params *ListUsageRecordLastMonthParams, recordChannel chan ApiV2010UsageRecordLastMonth, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_monthly.go b/rest/api/v2010/accounts_usage_records_monthly.go index 39333ccfd0..00fc0bed78 100644 --- a/rest/api/v2010/accounts_usage_records_monthly.go +++ b/rest/api/v2010/accounts_usage_records_monthly.go @@ -36,9 +36,9 @@ type ListUsageRecordMonthlyParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordMonthlyParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordMonthlyParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordMonthlyParams) SetIncludeSubaccounts(IncludeSubacco params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordMonthlyParams) SetPageSize(PageSize int) *ListUsageRecordMonthlyParams { +func (params *ListUsageRecordMonthlyParams) SetPageSize(PageSize int64) *ListUsageRecordMonthlyParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordMonthlyParams) SetLimit(Limit int) *ListUsageRecordMonthlyParams { +func (params *ListUsageRecordMonthlyParams) SetLimit(Limit int64) *ListUsageRecordMonthlyParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordMonthly(params *ListUsageRecordMonthlyPara } func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthlyResponse, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_this_month.go b/rest/api/v2010/accounts_usage_records_this_month.go index b05a8f544f..d284f23501 100644 --- a/rest/api/v2010/accounts_usage_records_this_month.go +++ b/rest/api/v2010/accounts_usage_records_this_month.go @@ -36,9 +36,9 @@ type ListUsageRecordThisMonthParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordThisMonthParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordThisMonthParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordThisMonthParams) SetIncludeSubaccounts(IncludeSubac params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordThisMonthParams) SetPageSize(PageSize int) *ListUsageRecordThisMonthParams { +func (params *ListUsageRecordThisMonthParams) SetPageSize(PageSize int64) *ListUsageRecordThisMonthParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordThisMonthParams) SetLimit(Limit int) *ListUsageRecordThisMonthParams { +func (params *ListUsageRecordThisMonthParams) SetLimit(Limit int64) *ListUsageRecordThisMonthParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordThisMonth(params *ListUsageRecordThisMonth } func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMonthResponse, params *ListUsageRecordThisMonthParams, recordChannel chan ApiV2010UsageRecordThisMonth, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_today.go b/rest/api/v2010/accounts_usage_records_today.go index 5e66a648b8..3512b014eb 100644 --- a/rest/api/v2010/accounts_usage_records_today.go +++ b/rest/api/v2010/accounts_usage_records_today.go @@ -36,9 +36,9 @@ type ListUsageRecordTodayParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordTodayParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordTodayParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordTodayParams) SetIncludeSubaccounts(IncludeSubaccoun params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordTodayParams) SetPageSize(PageSize int) *ListUsageRecordTodayParams { +func (params *ListUsageRecordTodayParams) SetPageSize(PageSize int64) *ListUsageRecordTodayParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordTodayParams) SetLimit(Limit int) *ListUsageRecordTodayParams { +func (params *ListUsageRecordTodayParams) SetLimit(Limit int64) *ListUsageRecordTodayParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordToday(params *ListUsageRecordTodayParams) } func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordTodayResponse, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_yearly.go b/rest/api/v2010/accounts_usage_records_yearly.go index 8edfc37605..a17476c6a0 100644 --- a/rest/api/v2010/accounts_usage_records_yearly.go +++ b/rest/api/v2010/accounts_usage_records_yearly.go @@ -36,9 +36,9 @@ type ListUsageRecordYearlyParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordYearlyParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordYearlyParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordYearlyParams) SetIncludeSubaccounts(IncludeSubaccou params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordYearlyParams) SetPageSize(PageSize int) *ListUsageRecordYearlyParams { +func (params *ListUsageRecordYearlyParams) SetPageSize(PageSize int64) *ListUsageRecordYearlyParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordYearlyParams) SetLimit(Limit int) *ListUsageRecordYearlyParams { +func (params *ListUsageRecordYearlyParams) SetLimit(Limit int64) *ListUsageRecordYearlyParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordYearly(params *ListUsageRecordYearlyParams } func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearlyResponse, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_records_yesterday.go b/rest/api/v2010/accounts_usage_records_yesterday.go index 11138d59ba..5115691f9a 100644 --- a/rest/api/v2010/accounts_usage_records_yesterday.go +++ b/rest/api/v2010/accounts_usage_records_yesterday.go @@ -36,9 +36,9 @@ type ListUsageRecordYesterdayParams struct { // 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. IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordYesterdayParams) SetPathAccountSid(PathAccountSid string) *ListUsageRecordYesterdayParams { @@ -61,11 +61,11 @@ func (params *ListUsageRecordYesterdayParams) SetIncludeSubaccounts(IncludeSubac params.IncludeSubaccounts = &IncludeSubaccounts return params } -func (params *ListUsageRecordYesterdayParams) SetPageSize(PageSize int) *ListUsageRecordYesterdayParams { +func (params *ListUsageRecordYesterdayParams) SetPageSize(PageSize int64) *ListUsageRecordYesterdayParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordYesterdayParams) SetLimit(Limit int) *ListUsageRecordYesterdayParams { +func (params *ListUsageRecordYesterdayParams) SetLimit(Limit int64) *ListUsageRecordYesterdayParams { params.Limit = &Limit return params } @@ -162,7 +162,7 @@ func (c *ApiService) StreamUsageRecordYesterday(params *ListUsageRecordYesterday } func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterdayResponse, params *ListUsageRecordYesterdayParams, recordChannel chan ApiV2010UsageRecordYesterday, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/api/v2010/accounts_usage_triggers.go b/rest/api/v2010/accounts_usage_triggers.go index e193f34cbd..2e76ec73ac 100644 --- a/rest/api/v2010/accounts_usage_triggers.go +++ b/rest/api/v2010/accounts_usage_triggers.go @@ -138,7 +138,6 @@ func (params *DeleteUsageTriggerParams) SetPathAccountSid(PathAccountSid string) return params } -// func (c *ApiService) DeleteUsageTrigger(Sid string, params *DeleteUsageTriggerParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -215,9 +214,9 @@ type ListUsageTriggerParams struct { // 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). UsageCategory *string `json:"UsageCategory,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageTriggerParams) SetPathAccountSid(PathAccountSid string) *ListUsageTriggerParams { @@ -236,11 +235,11 @@ func (params *ListUsageTriggerParams) SetUsageCategory(UsageCategory string) *Li params.UsageCategory = &UsageCategory return params } -func (params *ListUsageTriggerParams) SetPageSize(PageSize int) *ListUsageTriggerParams { +func (params *ListUsageTriggerParams) SetPageSize(PageSize int64) *ListUsageTriggerParams { params.PageSize = &PageSize return params } -func (params *ListUsageTriggerParams) SetLimit(Limit int) *ListUsageTriggerParams { +func (params *ListUsageTriggerParams) SetLimit(Limit int64) *ListUsageTriggerParams { params.Limit = &Limit return params } @@ -334,7 +333,7 @@ func (c *ApiService) StreamUsageTrigger(params *ListUsageTriggerParams) (chan Ap } func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageTriggers diff --git a/rest/api/v2010/docs/AccountsAddressesApi.md b/rest/api/v2010/docs/AccountsAddressesApi.md index 9877a595dd..19f2a92008 100644 --- a/rest/api/v2010/docs/AccountsAddressesApi.md +++ b/rest/api/v2010/docs/AccountsAddressesApi.md @@ -170,8 +170,8 @@ Name | Type | Description **CustomerName** | **string** | The `customer_name` of the Address resources to read. **FriendlyName** | **string** | The string that identifies the Address resources to read. **IsoCountry** | **string** | The ISO country code of the Address resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAddressesDependentPhoneNumbersApi.md b/rest/api/v2010/docs/AccountsAddressesDependentPhoneNumbersApi.md index 42d21f8b97..3389411f23 100644 --- a/rest/api/v2010/docs/AccountsAddressesDependentPhoneNumbersApi.md +++ b/rest/api/v2010/docs/AccountsAddressesDependentPhoneNumbersApi.md @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a ListDependentPhoneNumberParam Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsApi.md b/rest/api/v2010/docs/AccountsApi.md index 9f8607a9de..17a4a945be 100644 --- a/rest/api/v2010/docs/AccountsApi.md +++ b/rest/api/v2010/docs/AccountsApi.md @@ -113,8 +113,8 @@ Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | Only return the Account resources with friendly names that exactly match this name. **Status** | **string** | Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsApplicationsApi.md b/rest/api/v2010/docs/AccountsApplicationsApi.md index 0d6dfe4911..33b0affb5d 100644 --- a/rest/api/v2010/docs/AccountsApplicationsApi.md +++ b/rest/api/v2010/docs/AccountsApplicationsApi.md @@ -174,8 +174,8 @@ Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. **FriendlyName** | **string** | The string that identifies the Application resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAuthorizedConnectAppsApi.md b/rest/api/v2010/docs/AccountsAuthorizedConnectAppsApi.md index 1acb7879b3..ddaf5afa61 100644 --- a/rest/api/v2010/docs/AccountsAuthorizedConnectAppsApi.md +++ b/rest/api/v2010/docs/AccountsAuthorizedConnectAppsApi.md @@ -72,8 +72,8 @@ Other parameters are passed through a pointer to a ListAuthorizedConnectAppParam Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersApi.md index 326e32d072..5ada1a39b2 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersApi.md @@ -72,8 +72,8 @@ Other parameters are passed through a pointer to a ListAvailablePhoneNumberCount Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersLocalApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersLocalApi.md index 67eaa0254c..604a39aa8f 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersLocalApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersLocalApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMachineToMachineApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMachineToMachineApi.md index 53c4afed1d..1be01cfd47 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMachineToMachineApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMachineToMachineApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMobileApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMobileApi.md index faa940bbf7..4052f9e63d 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMobileApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersMobileApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersNationalApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersNationalApi.md index 5d4e69d127..0076653525 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersNationalApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersNationalApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersSharedCostApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersSharedCostApi.md index d274c52a74..f128afe7bf 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersSharedCostApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersSharedCostApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersTollFreeApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersTollFreeApi.md index afbd27a288..392ceecfba 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersTollFreeApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersTollFreeApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersVoipApi.md b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersVoipApi.md index 84efa44af2..bdfbd83f05 100644 --- a/rest/api/v2010/docs/AccountsAvailablePhoneNumbersVoipApi.md +++ b/rest/api/v2010/docs/AccountsAvailablePhoneNumbersVoipApi.md @@ -50,8 +50,8 @@ Name | Type | Description **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. **InLocality** | **string** | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. **FaxEnabled** | **bool** | Whether the phone numbers can receive faxes. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsCallsApi.md b/rest/api/v2010/docs/AccountsCallsApi.md index e4c376a257..0ec0241399 100644 --- a/rest/api/v2010/docs/AccountsCallsApi.md +++ b/rest/api/v2010/docs/AccountsCallsApi.md @@ -202,8 +202,8 @@ Name | Type | Description **EndTime** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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. **EndTimeBefore** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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. **EndTimeAfter** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsCallsEventsApi.md b/rest/api/v2010/docs/AccountsCallsEventsApi.md index dd547621b5..28f85d523b 100644 --- a/rest/api/v2010/docs/AccountsCallsEventsApi.md +++ b/rest/api/v2010/docs/AccountsCallsEventsApi.md @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a ListCallEventParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique SID identifier of the Account. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsCallsNotificationsApi.md b/rest/api/v2010/docs/AccountsCallsNotificationsApi.md index abf23f867d..59e6178304 100644 --- a/rest/api/v2010/docs/AccountsCallsNotificationsApi.md +++ b/rest/api/v2010/docs/AccountsCallsNotificationsApi.md @@ -81,8 +81,8 @@ Name | Type | Description **MessageDate** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. **MessageDateBefore** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. **MessageDateAfter** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsCallsRecordingsApi.md b/rest/api/v2010/docs/AccountsCallsRecordingsApi.md index 561eb87ad4..480370e64c 100644 --- a/rest/api/v2010/docs/AccountsCallsRecordingsApi.md +++ b/rest/api/v2010/docs/AccountsCallsRecordingsApi.md @@ -176,8 +176,8 @@ Name | Type | Description **DateCreated** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. **DateCreatedBefore** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. **DateCreatedAfter** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md b/rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md index eb0dd6c364..e7ee83a8d9 100644 --- a/rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md +++ b/rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md @@ -46,7 +46,7 @@ Name | Type | Description **SpeechModel** | **string** | Recognition model used by the transcription engine, among those supported by the provider **Hints** | **string** | A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. **EnableAutomaticPunctuation** | **bool** | The provider will add punctuation to recognition result -**IntelligenceService** | **string** | The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . +**IntelligenceService** | **string** | The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . ### Return type diff --git a/rest/api/v2010/docs/AccountsConferencesApi.md b/rest/api/v2010/docs/AccountsConferencesApi.md index e5fbb7ce1b..fe80c4f8da 100644 --- a/rest/api/v2010/docs/AccountsConferencesApi.md +++ b/rest/api/v2010/docs/AccountsConferencesApi.md @@ -81,8 +81,8 @@ Name | Type | Description **DateUpdatedAfter** | **string** | Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. **FriendlyName** | **string** | The string that identifies the Conference resources to read. **Status** | **string** | The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md b/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md index b32a1daa14..de1ab0f675 100644 --- a/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md +++ b/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md @@ -218,8 +218,8 @@ Name | Type | Description **Muted** | **bool** | Whether to return only participants that are muted. Can be: `true` or `false`. **Hold** | **bool** | Whether to return only participants that are on hold. Can be: `true` or `false`. **Coaching** | **bool** | Whether to return only participants who are coaching another call. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsConferencesRecordingsApi.md b/rest/api/v2010/docs/AccountsConferencesRecordingsApi.md index e37380d787..9367ac8beb 100644 --- a/rest/api/v2010/docs/AccountsConferencesRecordingsApi.md +++ b/rest/api/v2010/docs/AccountsConferencesRecordingsApi.md @@ -126,8 +126,8 @@ Name | Type | Description **DateCreated** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. **DateCreatedBefore** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. **DateCreatedAfter** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsConnectAppsApi.md b/rest/api/v2010/docs/AccountsConnectAppsApi.md index d1ac5085d0..2e8d1f2dab 100644 --- a/rest/api/v2010/docs/AccountsConnectAppsApi.md +++ b/rest/api/v2010/docs/AccountsConnectAppsApi.md @@ -117,8 +117,8 @@ Other parameters are passed through a pointer to a ListConnectAppParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersApi.md index bfa74b88b8..45d4272e3f 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersApi.md @@ -185,8 +185,8 @@ Name | Type | Description **FriendlyName** | **string** | A string that identifies the IncomingPhoneNumber resources to read. **PhoneNumber** | **string** | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsApi.md index 0d3188bcbe..226fb3ea87 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListIncomingPhoneNumberAssign Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsExtensionsApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsExtensionsApi.md index 620cb65142..6517515781 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsExtensionsApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersAssignedAddOnsExtensionsApi.md @@ -79,8 +79,8 @@ Other parameters are passed through a pointer to a ListIncomingPhoneNumberAssign Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersLocalApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersLocalApi.md index 5dfdd6552a..bab63145c9 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersLocalApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersLocalApi.md @@ -95,8 +95,8 @@ Name | Type | Description **FriendlyName** | **string** | A string that identifies the resources to read. **PhoneNumber** | **string** | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersMobileApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersMobileApi.md index 96c3b35563..f49a33aede 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersMobileApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersMobileApi.md @@ -95,8 +95,8 @@ Name | Type | Description **FriendlyName** | **string** | A string that identifies the resources to read. **PhoneNumber** | **string** | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersTollFreeApi.md b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersTollFreeApi.md index 79e1afa136..17365ec865 100644 --- a/rest/api/v2010/docs/AccountsIncomingPhoneNumbersTollFreeApi.md +++ b/rest/api/v2010/docs/AccountsIncomingPhoneNumbersTollFreeApi.md @@ -95,8 +95,8 @@ Name | Type | Description **FriendlyName** | **string** | A string that identifies the resources to read. **PhoneNumber** | **string** | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsKeysApi.md b/rest/api/v2010/docs/AccountsKeysApi.md index 8b98e2da13..07a11ecb4b 100644 --- a/rest/api/v2010/docs/AccountsKeysApi.md +++ b/rest/api/v2010/docs/AccountsKeysApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListKeyParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsMessagesApi.md b/rest/api/v2010/docs/AccountsMessagesApi.md index 7e3b7739d9..1faf989b6b 100644 --- a/rest/api/v2010/docs/AccountsMessagesApi.md +++ b/rest/api/v2010/docs/AccountsMessagesApi.md @@ -185,8 +185,8 @@ Name | Type | Description **DateSent** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). **DateSentBefore** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). **DateSentAfter** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsMessagesMediaApi.md b/rest/api/v2010/docs/AccountsMessagesMediaApi.md index 7d7d2de8b3..df17293b25 100644 --- a/rest/api/v2010/docs/AccountsMessagesMediaApi.md +++ b/rest/api/v2010/docs/AccountsMessagesMediaApi.md @@ -125,8 +125,8 @@ Name | Type | Description **DateCreated** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. **DateCreatedBefore** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. **DateCreatedAfter** | **time.Time** | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsNotificationsApi.md b/rest/api/v2010/docs/AccountsNotificationsApi.md index 0a39a5ba38..7f64564c40 100644 --- a/rest/api/v2010/docs/AccountsNotificationsApi.md +++ b/rest/api/v2010/docs/AccountsNotificationsApi.md @@ -76,8 +76,8 @@ Name | Type | Description **MessageDate** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. **MessageDateBefore** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. **MessageDateAfter** | **string** | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsOutgoingCallerIdsApi.md b/rest/api/v2010/docs/AccountsOutgoingCallerIdsApi.md index ca69d357cc..c63b28cc4a 100644 --- a/rest/api/v2010/docs/AccountsOutgoingCallerIdsApi.md +++ b/rest/api/v2010/docs/AccountsOutgoingCallerIdsApi.md @@ -165,8 +165,8 @@ Name | Type | Description **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. **PhoneNumber** | **string** | The phone number of the OutgoingCallerId resources to read. **FriendlyName** | **string** | The string that identifies the OutgoingCallerId resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsQueuesApi.md b/rest/api/v2010/docs/AccountsQueuesApi.md index fc7a295a1d..a4862ffa46 100644 --- a/rest/api/v2010/docs/AccountsQueuesApi.md +++ b/rest/api/v2010/docs/AccountsQueuesApi.md @@ -159,8 +159,8 @@ Other parameters are passed through a pointer to a ListQueueParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsQueuesMembersApi.md b/rest/api/v2010/docs/AccountsQueuesMembersApi.md index 37bbd34046..8e09c1d6c9 100644 --- a/rest/api/v2010/docs/AccountsQueuesMembersApi.md +++ b/rest/api/v2010/docs/AccountsQueuesMembersApi.md @@ -78,8 +78,8 @@ Other parameters are passed through a pointer to a ListMemberParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsRecordingsAddOnResultsApi.md b/rest/api/v2010/docs/AccountsRecordingsAddOnResultsApi.md index 24a4f1b122..e1cc390f7b 100644 --- a/rest/api/v2010/docs/AccountsRecordingsAddOnResultsApi.md +++ b/rest/api/v2010/docs/AccountsRecordingsAddOnResultsApi.md @@ -122,8 +122,8 @@ Other parameters are passed through a pointer to a ListRecordingAddOnResultParam Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsRecordingsAddOnResultsPayloadsApi.md b/rest/api/v2010/docs/AccountsRecordingsAddOnResultsPayloadsApi.md index 37863b67d5..9990436311 100644 --- a/rest/api/v2010/docs/AccountsRecordingsAddOnResultsPayloadsApi.md +++ b/rest/api/v2010/docs/AccountsRecordingsAddOnResultsPayloadsApi.md @@ -125,8 +125,8 @@ Other parameters are passed through a pointer to a ListRecordingAddOnResultPaylo Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsRecordingsApi.md b/rest/api/v2010/docs/AccountsRecordingsApi.md index 7982005982..d8a437e348 100644 --- a/rest/api/v2010/docs/AccountsRecordingsApi.md +++ b/rest/api/v2010/docs/AccountsRecordingsApi.md @@ -123,8 +123,8 @@ Name | Type | Description **CallSid** | **string** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. **ConferenceSid** | **string** | The Conference SID that identifies the conference associated with the recording to read. **IncludeSoftDeleted** | **bool** | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsRecordingsTranscriptionsApi.md b/rest/api/v2010/docs/AccountsRecordingsTranscriptionsApi.md index 1dd9ae9fb9..94aaf10331 100644 --- a/rest/api/v2010/docs/AccountsRecordingsTranscriptionsApi.md +++ b/rest/api/v2010/docs/AccountsRecordingsTranscriptionsApi.md @@ -122,8 +122,8 @@ Other parameters are passed through a pointer to a ListRecordingTranscriptionPar Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPCredentialListsApi.md b/rest/api/v2010/docs/AccountsSIPCredentialListsApi.md index 59c774284d..42a3d31b95 100644 --- a/rest/api/v2010/docs/AccountsSIPCredentialListsApi.md +++ b/rest/api/v2010/docs/AccountsSIPCredentialListsApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListSipCredentialListParams s Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the Account that is responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPCredentialListsCredentialsApi.md b/rest/api/v2010/docs/AccountsSIPCredentialListsCredentialsApi.md index 91949a9375..d2b9ae2839 100644 --- a/rest/api/v2010/docs/AccountsSIPCredentialListsCredentialsApi.md +++ b/rest/api/v2010/docs/AccountsSIPCredentialListsCredentialsApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListSipCredentialParams struc Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the Account that is responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsApi.md index 66f965ad97..bec43b928f 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListSipDomainParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsCredentialListMappingsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsCredentialListMappingsApi.md index 55416b95e3..440afaeefd 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsCredentialListMappingsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsCredentialListMappingsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListSipAuthCallsCredentialLis Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsIpAccessControlListMappingsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsIpAccessControlListMappingsApi.md index 7d67f80952..95bcf39fea 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsIpAccessControlListMappingsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsAuthCallsIpAccessControlListMappingsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListSipAuthCallsIpAccessContr Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsAuthRegistrationsCredentialListMappingsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsAuthRegistrationsCredentialListMappingsApi.md index 920aedcbab..37c836f9e3 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsAuthRegistrationsCredentialListMappingsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsAuthRegistrationsCredentialListMappingsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListSipAuthRegistrationsCrede Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsCredentialListMappingsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsCredentialListMappingsApi.md index 9c364347c0..fff19d4687 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsCredentialListMappingsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsCredentialListMappingsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListSipCredentialListMappingP Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPDomainsIpAccessControlListMappingsApi.md b/rest/api/v2010/docs/AccountsSIPDomainsIpAccessControlListMappingsApi.md index 365e431988..65b22aa1a9 100644 --- a/rest/api/v2010/docs/AccountsSIPDomainsIpAccessControlListMappingsApi.md +++ b/rest/api/v2010/docs/AccountsSIPDomainsIpAccessControlListMappingsApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListSipIpAccessControlListMap Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the Account that is responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPIpAccessControlListsApi.md b/rest/api/v2010/docs/AccountsSIPIpAccessControlListsApi.md index c459fa8f86..e2be4ebe3f 100644 --- a/rest/api/v2010/docs/AccountsSIPIpAccessControlListsApi.md +++ b/rest/api/v2010/docs/AccountsSIPIpAccessControlListsApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListSipIpAccessControlListPar Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSIPIpAccessControlListsIpAddressesApi.md b/rest/api/v2010/docs/AccountsSIPIpAccessControlListsIpAddressesApi.md index d1f54c11da..e90e56ab8a 100644 --- a/rest/api/v2010/docs/AccountsSIPIpAccessControlListsIpAddressesApi.md +++ b/rest/api/v2010/docs/AccountsSIPIpAccessControlListsIpAddressesApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListSipIpAddressParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSMSShortCodesApi.md b/rest/api/v2010/docs/AccountsSMSShortCodesApi.md index 0596a623e8..89e773492b 100644 --- a/rest/api/v2010/docs/AccountsSMSShortCodesApi.md +++ b/rest/api/v2010/docs/AccountsSMSShortCodesApi.md @@ -75,8 +75,8 @@ Name | Type | Description **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. **FriendlyName** | **string** | The string that identifies the ShortCode resources to read. **ShortCode** | **string** | Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsSigningKeysApi.md b/rest/api/v2010/docs/AccountsSigningKeysApi.md index 75305fde58..e27ff9fdf2 100644 --- a/rest/api/v2010/docs/AccountsSigningKeysApi.md +++ b/rest/api/v2010/docs/AccountsSigningKeysApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListSigningKeyParams struct Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsTranscriptionsApi.md b/rest/api/v2010/docs/AccountsTranscriptionsApi.md index 838691a89b..ecfaa9e3fc 100644 --- a/rest/api/v2010/docs/AccountsTranscriptionsApi.md +++ b/rest/api/v2010/docs/AccountsTranscriptionsApi.md @@ -116,8 +116,8 @@ Other parameters are passed through a pointer to a ListTranscriptionParams struc Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsAllTimeApi.md b/rest/api/v2010/docs/AccountsUsageRecordsAllTimeApi.md index fcbcb4ac78..fec3878c41 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsAllTimeApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsAllTimeApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsApi.md b/rest/api/v2010/docs/AccountsUsageRecordsApi.md index c10d85f061..a60c33aac7 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsDailyApi.md b/rest/api/v2010/docs/AccountsUsageRecordsDailyApi.md index 7e8259c8ec..8bb589f225 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsDailyApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsDailyApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsLastMonthApi.md b/rest/api/v2010/docs/AccountsUsageRecordsLastMonthApi.md index 548700f546..019822f32e 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsLastMonthApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsLastMonthApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsMonthlyApi.md b/rest/api/v2010/docs/AccountsUsageRecordsMonthlyApi.md index c92eace99c..4f68ec5b53 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsMonthlyApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsMonthlyApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsThisMonthApi.md b/rest/api/v2010/docs/AccountsUsageRecordsThisMonthApi.md index d965c7d42a..d2419c24cc 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsThisMonthApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsThisMonthApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsTodayApi.md b/rest/api/v2010/docs/AccountsUsageRecordsTodayApi.md index 03a80f06a1..9b752625e1 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsTodayApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsTodayApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsYearlyApi.md b/rest/api/v2010/docs/AccountsUsageRecordsYearlyApi.md index 32e3e41c7d..8894fc4f7f 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsYearlyApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsYearlyApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageRecordsYesterdayApi.md b/rest/api/v2010/docs/AccountsUsageRecordsYesterdayApi.md index a02c62c00a..ca6eaceaf8 100644 --- a/rest/api/v2010/docs/AccountsUsageRecordsYesterdayApi.md +++ b/rest/api/v2010/docs/AccountsUsageRecordsYesterdayApi.md @@ -32,8 +32,8 @@ Name | Type | Description **StartDate** | **string** | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/api/v2010/docs/AccountsUsageTriggersApi.md b/rest/api/v2010/docs/AccountsUsageTriggersApi.md index 765bfda21f..84f484c9e2 100644 --- a/rest/api/v2010/docs/AccountsUsageTriggersApi.md +++ b/rest/api/v2010/docs/AccountsUsageTriggersApi.md @@ -167,8 +167,8 @@ Name | Type | Description **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. **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). **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). -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/assistants.go b/rest/assistants/v1/assistants.go index 0658ece101..979dc9553a 100644 --- a/rest/assistants/v1/assistants.go +++ b/rest/assistants/v1/assistants.go @@ -115,16 +115,16 @@ func (c *ApiService) FetchAssistant(Id string) (*AssistantsV1AssistantWithToolsA // Optional parameters for the method 'ListAssistants' type ListAssistantsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAssistantsParams) SetPageSize(PageSize int) *ListAssistantsParams { +func (params *ListAssistantsParams) SetPageSize(PageSize int64) *ListAssistantsParams { params.PageSize = &PageSize return params } -func (params *ListAssistantsParams) SetLimit(Limit int) *ListAssistantsParams { +func (params *ListAssistantsParams) SetLimit(Limit int64) *ListAssistantsParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamAssistants(params *ListAssistantsParams) (chan Assist } func (c *ApiService) streamAssistants(response *ListAssistantResponse, params *ListAssistantsParams, recordChannel chan AssistantsV1Assistant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Assistants diff --git a/rest/assistants/v1/assistants_feedbacks.go b/rest/assistants/v1/assistants_feedbacks.go index 9e7d97f36a..1224fa6bc0 100644 --- a/rest/assistants/v1/assistants_feedbacks.go +++ b/rest/assistants/v1/assistants_feedbacks.go @@ -71,16 +71,16 @@ func (c *ApiService) CreateFeedback(Id string, params *CreateFeedbackParams) (*A // Optional parameters for the method 'ListFeedback' type ListFeedbackParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFeedbackParams) SetPageSize(PageSize int) *ListFeedbackParams { +func (params *ListFeedbackParams) SetPageSize(PageSize int64) *ListFeedbackParams { params.PageSize = &PageSize return params } -func (params *ListFeedbackParams) SetLimit(Limit int) *ListFeedbackParams { +func (params *ListFeedbackParams) SetLimit(Limit int64) *ListFeedbackParams { params.Limit = &Limit return params } @@ -161,7 +161,7 @@ func (c *ApiService) StreamFeedback(Id string, params *ListFeedbackParams) (chan } func (c *ApiService) streamFeedback(response *ListFeedbacksResponse, params *ListFeedbackParams, recordChannel chan AssistantsV1Feedback, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Feedbacks diff --git a/rest/assistants/v1/assistants_knowledge.go b/rest/assistants/v1/assistants_knowledge.go index 3d1d96bc8e..e3526460a0 100644 --- a/rest/assistants/v1/assistants_knowledge.go +++ b/rest/assistants/v1/assistants_knowledge.go @@ -68,16 +68,16 @@ func (c *ApiService) DeleteAssistantKnowledgeAttachment(AssistantId string, Id s // Optional parameters for the method 'ListKnowledgeByAssistant' type ListKnowledgeByAssistantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListKnowledgeByAssistantParams) SetPageSize(PageSize int) *ListKnowledgeByAssistantParams { +func (params *ListKnowledgeByAssistantParams) SetPageSize(PageSize int64) *ListKnowledgeByAssistantParams { params.PageSize = &PageSize return params } -func (params *ListKnowledgeByAssistantParams) SetLimit(Limit int) *ListKnowledgeByAssistantParams { +func (params *ListKnowledgeByAssistantParams) SetLimit(Limit int64) *ListKnowledgeByAssistantParams { params.Limit = &Limit return params } @@ -158,7 +158,7 @@ func (c *ApiService) StreamKnowledgeByAssistant(AssistantId string, params *List } func (c *ApiService) streamKnowledgeByAssistant(response *ListKnowledgeByAssistantResponse, params *ListKnowledgeByAssistantParams, recordChannel chan AssistantsV1Knowledge, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Knowledge diff --git a/rest/assistants/v1/assistants_tools.go b/rest/assistants/v1/assistants_tools.go index 0b7a8546ae..e0c913b3a2 100644 --- a/rest/assistants/v1/assistants_tools.go +++ b/rest/assistants/v1/assistants_tools.go @@ -68,16 +68,16 @@ func (c *ApiService) DeleteAssistantToolAttachment(AssistantId string, Id string // Optional parameters for the method 'ListToolsByAssistant' type ListToolsByAssistantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListToolsByAssistantParams) SetPageSize(PageSize int) *ListToolsByAssistantParams { +func (params *ListToolsByAssistantParams) SetPageSize(PageSize int64) *ListToolsByAssistantParams { params.PageSize = &PageSize return params } -func (params *ListToolsByAssistantParams) SetLimit(Limit int) *ListToolsByAssistantParams { +func (params *ListToolsByAssistantParams) SetLimit(Limit int64) *ListToolsByAssistantParams { params.Limit = &Limit return params } @@ -158,7 +158,7 @@ func (c *ApiService) StreamToolsByAssistant(AssistantId string, params *ListTool } func (c *ApiService) streamToolsByAssistant(response *ListToolsByAssistantResponse, params *ListToolsByAssistantParams, recordChannel chan AssistantsV1Tool, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Tools diff --git a/rest/assistants/v1/docs/AssistantsApi.md b/rest/assistants/v1/docs/AssistantsApi.md index e4c5909e2a..12946060b4 100644 --- a/rest/assistants/v1/docs/AssistantsApi.md +++ b/rest/assistants/v1/docs/AssistantsApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListAssistantsParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/AssistantsFeedbacksApi.md b/rest/assistants/v1/docs/AssistantsFeedbacksApi.md index 6ddb0740b5..d7f4185b43 100644 --- a/rest/assistants/v1/docs/AssistantsFeedbacksApi.md +++ b/rest/assistants/v1/docs/AssistantsFeedbacksApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListFeedbackParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/AssistantsKnowledgeApi.md b/rest/assistants/v1/docs/AssistantsKnowledgeApi.md index f12a8ee9d3..22afc483c1 100644 --- a/rest/assistants/v1/docs/AssistantsKnowledgeApi.md +++ b/rest/assistants/v1/docs/AssistantsKnowledgeApi.md @@ -119,8 +119,8 @@ Other parameters are passed through a pointer to a ListKnowledgeByAssistantParam Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/AssistantsToolsApi.md b/rest/assistants/v1/docs/AssistantsToolsApi.md index d178e0beeb..54c8307642 100644 --- a/rest/assistants/v1/docs/AssistantsToolsApi.md +++ b/rest/assistants/v1/docs/AssistantsToolsApi.md @@ -119,8 +119,8 @@ Other parameters are passed through a pointer to a ListToolsByAssistantParams st Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/KnowledgeApi.md b/rest/assistants/v1/docs/KnowledgeApi.md index b0f7ac093b..b0064fb11e 100644 --- a/rest/assistants/v1/docs/KnowledgeApi.md +++ b/rest/assistants/v1/docs/KnowledgeApi.md @@ -155,8 +155,8 @@ Other parameters are passed through a pointer to a ListKnowledgeParams struct Name | Type | Description ------------- | ------------- | ------------- **AssistantId** | **string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/KnowledgeChunksApi.md b/rest/assistants/v1/docs/KnowledgeChunksApi.md index 0bc7bcb4ec..5ef1cd6871 100644 --- a/rest/assistants/v1/docs/KnowledgeChunksApi.md +++ b/rest/assistants/v1/docs/KnowledgeChunksApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListKnowledgeChunksParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/PoliciesApi.md b/rest/assistants/v1/docs/PoliciesApi.md index a2f56964df..6c180ff5a6 100644 --- a/rest/assistants/v1/docs/PoliciesApi.md +++ b/rest/assistants/v1/docs/PoliciesApi.md @@ -29,8 +29,8 @@ Name | Type | Description ------------- | ------------- | ------------- **ToolId** | **string** | The tool ID. **KnowledgeId** | **string** | The knowledge ID. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/SessionsApi.md b/rest/assistants/v1/docs/SessionsApi.md index ef0265e066..3d96d1e5db 100644 --- a/rest/assistants/v1/docs/SessionsApi.md +++ b/rest/assistants/v1/docs/SessionsApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListSessionsParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/SessionsMessagesApi.md b/rest/assistants/v1/docs/SessionsMessagesApi.md index 10f757b4be..e7f60a4267 100644 --- a/rest/assistants/v1/docs/SessionsMessagesApi.md +++ b/rest/assistants/v1/docs/SessionsMessagesApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListMessagesParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/docs/ToolsApi.md b/rest/assistants/v1/docs/ToolsApi.md index 5477e15a53..81bbf32291 100644 --- a/rest/assistants/v1/docs/ToolsApi.md +++ b/rest/assistants/v1/docs/ToolsApi.md @@ -155,8 +155,8 @@ Other parameters are passed through a pointer to a ListToolsParams struct Name | Type | Description ------------- | ------------- | ------------- **AssistantId** | **string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/assistants/v1/knowledge.go b/rest/assistants/v1/knowledge.go index 3b29fc9d58..5dc71322fa 100644 --- a/rest/assistants/v1/knowledge.go +++ b/rest/assistants/v1/knowledge.go @@ -117,20 +117,20 @@ type ListKnowledgeParams struct { // AssistantId *string `json:"AssistantId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListKnowledgeParams) SetAssistantId(AssistantId string) *ListKnowledgeParams { params.AssistantId = &AssistantId return params } -func (params *ListKnowledgeParams) SetPageSize(PageSize int) *ListKnowledgeParams { +func (params *ListKnowledgeParams) SetPageSize(PageSize int64) *ListKnowledgeParams { params.PageSize = &PageSize return params } -func (params *ListKnowledgeParams) SetLimit(Limit int) *ListKnowledgeParams { +func (params *ListKnowledgeParams) SetLimit(Limit int64) *ListKnowledgeParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamKnowledge(params *ListKnowledgeParams) (chan Assistan } func (c *ApiService) streamKnowledge(response *ListKnowledgeResponse, params *ListKnowledgeParams, recordChannel chan AssistantsV1Knowledge, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Knowledge diff --git a/rest/assistants/v1/knowledge_chunks.go b/rest/assistants/v1/knowledge_chunks.go index dad1e026eb..a45bf0baa1 100644 --- a/rest/assistants/v1/knowledge_chunks.go +++ b/rest/assistants/v1/knowledge_chunks.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListKnowledgeChunks' type ListKnowledgeChunksParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListKnowledgeChunksParams) SetPageSize(PageSize int) *ListKnowledgeChunksParams { +func (params *ListKnowledgeChunksParams) SetPageSize(PageSize int64) *ListKnowledgeChunksParams { params.PageSize = &PageSize return params } -func (params *ListKnowledgeChunksParams) SetLimit(Limit int) *ListKnowledgeChunksParams { +func (params *ListKnowledgeChunksParams) SetLimit(Limit int64) *ListKnowledgeChunksParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamKnowledgeChunks(Id string, params *ListKnowledgeChunk } func (c *ApiService) streamKnowledgeChunks(response *ListKnowledgeChunksResponse, params *ListKnowledgeChunksParams, recordChannel chan AssistantsV1KnowledgeChunk, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Chunks diff --git a/rest/assistants/v1/policies.go b/rest/assistants/v1/policies.go index 5947ad8fc6..2480f70657 100644 --- a/rest/assistants/v1/policies.go +++ b/rest/assistants/v1/policies.go @@ -29,9 +29,9 @@ type ListPoliciesParams struct { // The knowledge ID. KnowledgeId *string `json:"KnowledgeId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPoliciesParams) SetToolId(ToolId string) *ListPoliciesParams { @@ -42,11 +42,11 @@ func (params *ListPoliciesParams) SetKnowledgeId(KnowledgeId string) *ListPolici params.KnowledgeId = &KnowledgeId return params } -func (params *ListPoliciesParams) SetPageSize(PageSize int) *ListPoliciesParams { +func (params *ListPoliciesParams) SetPageSize(PageSize int64) *ListPoliciesParams { params.PageSize = &PageSize return params } -func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams { +func (params *ListPoliciesParams) SetLimit(Limit int64) *ListPoliciesParams { params.Limit = &Limit return params } @@ -131,7 +131,7 @@ func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan Assistants } func (c *ApiService) streamPolicies(response *ListPoliciesResponse, params *ListPoliciesParams, recordChannel chan AssistantsV1Policy, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Policies diff --git a/rest/assistants/v1/sessions.go b/rest/assistants/v1/sessions.go index 069cfaa0f3..2c5fe1ab77 100644 --- a/rest/assistants/v1/sessions.go +++ b/rest/assistants/v1/sessions.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchSession(Id string) (*AssistantsV1Session, error) { // Optional parameters for the method 'ListSessions' type ListSessionsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSessionsParams) SetPageSize(PageSize int) *ListSessionsParams { +func (params *ListSessionsParams) SetPageSize(PageSize int64) *ListSessionsParams { params.PageSize = &PageSize return params } -func (params *ListSessionsParams) SetLimit(Limit int) *ListSessionsParams { +func (params *ListSessionsParams) SetLimit(Limit int64) *ListSessionsParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamSessions(params *ListSessionsParams) (chan Assistants } func (c *ApiService) streamSessions(response *ListSessionsResponse, params *ListSessionsParams, recordChannel chan AssistantsV1Session, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sessions diff --git a/rest/assistants/v1/sessions_messages.go b/rest/assistants/v1/sessions_messages.go index 9825b507f6..f3ba863304 100644 --- a/rest/assistants/v1/sessions_messages.go +++ b/rest/assistants/v1/sessions_messages.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListMessages' type ListMessagesParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListMessagesParams) SetPageSize(PageSize int) *ListMessagesParams { +func (params *ListMessagesParams) SetPageSize(PageSize int64) *ListMessagesParams { params.PageSize = &PageSize return params } -func (params *ListMessagesParams) SetLimit(Limit int) *ListMessagesParams { +func (params *ListMessagesParams) SetLimit(Limit int64) *ListMessagesParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamMessages(SessionId string, params *ListMessagesParams } func (c *ApiService) streamMessages(response *ListMessagesResponse, params *ListMessagesParams, recordChannel chan AssistantsV1Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages diff --git a/rest/assistants/v1/tools.go b/rest/assistants/v1/tools.go index 6300e7d33a..a75d0658be 100644 --- a/rest/assistants/v1/tools.go +++ b/rest/assistants/v1/tools.go @@ -117,20 +117,20 @@ type ListToolsParams struct { // AssistantId *string `json:"AssistantId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListToolsParams) SetAssistantId(AssistantId string) *ListToolsParams { params.AssistantId = &AssistantId return params } -func (params *ListToolsParams) SetPageSize(PageSize int) *ListToolsParams { +func (params *ListToolsParams) SetPageSize(PageSize int64) *ListToolsParams { params.PageSize = &PageSize return params } -func (params *ListToolsParams) SetLimit(Limit int) *ListToolsParams { +func (params *ListToolsParams) SetLimit(Limit int64) *ListToolsParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamTools(params *ListToolsParams) (chan AssistantsV1Tool } func (c *ApiService) streamTools(response *ListToolsResponse, params *ListToolsParams, recordChannel chan AssistantsV1Tool, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Tools diff --git a/rest/bulkexports/v1/docs/ExportsDaysApi.md b/rest/bulkexports/v1/docs/ExportsDaysApi.md index 424d4fa3c8..3adaa0fe68 100644 --- a/rest/bulkexports/v1/docs/ExportsDaysApi.md +++ b/rest/bulkexports/v1/docs/ExportsDaysApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListDayParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/bulkexports/v1/docs/ExportsJobsApi.md b/rest/bulkexports/v1/docs/ExportsJobsApi.md index aae4090df7..362a280ff1 100644 --- a/rest/bulkexports/v1/docs/ExportsJobsApi.md +++ b/rest/bulkexports/v1/docs/ExportsJobsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListExportCustomJobParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/bulkexports/v1/docs/ListDayResponseMeta.md b/rest/bulkexports/v1/docs/ListDayResponseMeta.md index cc6ae2357c..8cd1847b3b 100644 --- a/rest/bulkexports/v1/docs/ListDayResponseMeta.md +++ b/rest/bulkexports/v1/docs/ListDayResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/exports_days.go b/rest/bulkexports/v1/exports_days.go index 749d10adfe..d12f0e324c 100644 --- a/rest/bulkexports/v1/exports_days.go +++ b/rest/bulkexports/v1/exports_days.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchDay(ResourceType string, Day string) (*BulkexportsV1Da // Optional parameters for the method 'ListDay' type ListDayParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDayParams) SetPageSize(PageSize int) *ListDayParams { +func (params *ListDayParams) SetPageSize(PageSize int64) *ListDayParams { params.PageSize = &PageSize return params } -func (params *ListDayParams) SetLimit(Limit int) *ListDayParams { +func (params *ListDayParams) SetLimit(Limit int64) *ListDayParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamDay(ResourceType string, params *ListDayParams) (chan } func (c *ApiService) streamDay(response *ListDayResponse, params *ListDayParams, recordChannel chan BulkexportsV1Day, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Days diff --git a/rest/bulkexports/v1/exports_jobs.go b/rest/bulkexports/v1/exports_jobs.go index aa69461a06..3db4702a13 100644 --- a/rest/bulkexports/v1/exports_jobs.go +++ b/rest/bulkexports/v1/exports_jobs.go @@ -64,7 +64,6 @@ func (params *CreateExportCustomJobParams) SetEmail(Email string) *CreateExportC return params } -// func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportCustomJob, error) { path := "/v1/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -108,7 +107,6 @@ func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateEx return ps, err } -// func (c *ApiService) DeleteJob(JobSid string) error { path := "/v1/Exports/Jobs/{JobSid}" path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) @@ -128,7 +126,6 @@ func (c *ApiService) DeleteJob(JobSid string) error { return nil } -// func (c *ApiService) FetchJob(JobSid string) (*BulkexportsV1Job, error) { path := "/v1/Exports/Jobs/{JobSid}" path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) @@ -156,16 +153,16 @@ func (c *ApiService) FetchJob(JobSid string) (*BulkexportsV1Job, error) { // Optional parameters for the method 'ListExportCustomJob' type ListExportCustomJobParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListExportCustomJobParams) SetPageSize(PageSize int) *ListExportCustomJobParams { +func (params *ListExportCustomJobParams) SetPageSize(PageSize int64) *ListExportCustomJobParams { params.PageSize = &PageSize return params } -func (params *ListExportCustomJobParams) SetLimit(Limit int) *ListExportCustomJobParams { +func (params *ListExportCustomJobParams) SetLimit(Limit int64) *ListExportCustomJobParams { params.Limit = &Limit return params } @@ -246,7 +243,7 @@ func (c *ApiService) StreamExportCustomJob(ResourceType string, params *ListExpo } func (c *ApiService) streamExportCustomJob(response *ListExportCustomJobResponse, params *ListExportCustomJobParams, recordChannel chan BulkexportsV1ExportCustomJob, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Jobs diff --git a/rest/bulkexports/v1/model_list_day_response_meta.go b/rest/bulkexports/v1/model_list_day_response_meta.go index b8e4fd9c22..a2a6c591ae 100644 --- a/rest/bulkexports/v1/model_list_day_response_meta.go +++ b/rest/bulkexports/v1/model_list_day_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListDayResponseMeta struct for ListDayResponseMeta type ListDayResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/chat/v1/credentials.go b/rest/chat/v1/credentials.go index 5cbfca24cd..4e53da18ed 100644 --- a/rest/chat/v1/credentials.go +++ b/rest/chat/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials" @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Cr return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchCredential(Sid string) (*ChatV1Credential, error) { // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan ChatV1 } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ChatV1Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v1/docs/CredentialsApi.md b/rest/chat/v1/docs/CredentialsApi.md index c6dd1befcc..d0765617a7 100644 --- a/rest/chat/v1/docs/CredentialsApi.md +++ b/rest/chat/v1/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ListChannelResponseMeta.md b/rest/chat/v1/docs/ListChannelResponseMeta.md index b007fb5e68..d507879b9a 100644 --- a/rest/chat/v1/docs/ListChannelResponseMeta.md +++ b/rest/chat/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/chat/v1/docs/ServicesApi.md index 64487882cd..5125637399 100644 --- a/rest/chat/v1/docs/ServicesApi.md +++ b/rest/chat/v1/docs/ServicesApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesChannelsApi.md b/rest/chat/v1/docs/ServicesChannelsApi.md index c81da2a5fb..18728bea51 100644 --- a/rest/chat/v1/docs/ServicesChannelsApi.md +++ b/rest/chat/v1/docs/ServicesChannelsApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListChannelParams struct Name | Type | Description ------------- | ------------- | ------------- **Type** | [**[]ChannelEnumChannelType**](ChannelEnumChannelType.md) | The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesChannelsInvitesApi.md b/rest/chat/v1/docs/ServicesChannelsInvitesApi.md index 0a622d2fbc..bec81b412d 100644 --- a/rest/chat/v1/docs/ServicesChannelsInvitesApi.md +++ b/rest/chat/v1/docs/ServicesChannelsInvitesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListInviteParams struct Name | Type | Description ------------- | ------------- | ------------- **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesChannelsMembersApi.md b/rest/chat/v1/docs/ServicesChannelsMembersApi.md index 79775edc2a..bbcc825a89 100644 --- a/rest/chat/v1/docs/ServicesChannelsMembersApi.md +++ b/rest/chat/v1/docs/ServicesChannelsMembersApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListMemberParams struct Name | Type | Description ------------- | ------------- | ------------- **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesChannelsMessagesApi.md b/rest/chat/v1/docs/ServicesChannelsMessagesApi.md index 35112b4550..1e5690abd3 100644 --- a/rest/chat/v1/docs/ServicesChannelsMessagesApi.md +++ b/rest/chat/v1/docs/ServicesChannelsMessagesApi.md @@ -171,8 +171,8 @@ Other parameters are passed through a pointer to a ListMessageParams struct Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesRolesApi.md b/rest/chat/v1/docs/ServicesRolesApi.md index e3eaad6855..7a07c0642f 100644 --- a/rest/chat/v1/docs/ServicesRolesApi.md +++ b/rest/chat/v1/docs/ServicesRolesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesUsersApi.md b/rest/chat/v1/docs/ServicesUsersApi.md index e6ce3f8a7d..a8373b0737 100644 --- a/rest/chat/v1/docs/ServicesUsersApi.md +++ b/rest/chat/v1/docs/ServicesUsersApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/docs/ServicesUsersChannelsApi.md b/rest/chat/v1/docs/ServicesUsersChannelsApi.md index 2e237dd4f5..9c9627da2d 100644 --- a/rest/chat/v1/docs/ServicesUsersChannelsApi.md +++ b/rest/chat/v1/docs/ServicesUsersChannelsApi.md @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a ListUserChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v1/model_list_channel_response_meta.go b/rest/chat/v1/model_list_channel_response_meta.go index 178bf41b47..7d1a5e11d0 100644 --- a/rest/chat/v1/model_list_channel_response_meta.go +++ b/rest/chat/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/chat/v1/services.go b/rest/chat/v1/services.go index 4372706ce8..29fe2cab5b 100644 --- a/rest/chat/v1/services.go +++ b/rest/chat/v1/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) { path := "/v1/Services" @@ -62,7 +61,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -82,7 +80,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -110,16 +107,16 @@ func (c *ApiService) FetchService(Sid string) (*ChatV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -198,7 +195,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ChatV1Servic } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ChatV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -574,7 +571,6 @@ func (params *UpdateServiceParams) SetLimitsUserChannels(LimitsUserChannels int) return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v1/services_channels.go b/rest/chat/v1/services_channels.go index f932d359c6..3752a764dd 100644 --- a/rest/chat/v1/services_channels.go +++ b/rest/chat/v1/services_channels.go @@ -52,7 +52,6 @@ func (params *CreateChannelParams) SetType(Type string) *CreateChannelParams { return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,7 +89,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam return ps, err } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -111,7 +109,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -142,20 +139,20 @@ type ListChannelParams struct { // The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. Type *[]string `json:"Type,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListChannelParams) SetType(Type []string) *ListChannelParams { params.Type = &Type return params } -func (params *ListChannelParams) SetPageSize(PageSize int) *ListChannelParams { +func (params *ListChannelParams) SetPageSize(PageSize int64) *ListChannelParams { params.PageSize = &PageSize return params } -func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { +func (params *ListChannelParams) SetLimit(Limit int64) *ListChannelParams { params.Limit = &Limit return params } @@ -241,7 +238,7 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) } func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan ChatV1Channel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -311,7 +308,6 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_channels_invites.go b/rest/chat/v1/services_channels_invites.go index 3ae429f685..02e0a52818 100644 --- a/rest/chat/v1/services_channels_invites.go +++ b/rest/chat/v1/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListInviteParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInviteParams) SetIdentity(Identity []string) *ListInviteParams { params.Identity = &Identity return params } -func (params *ListInviteParams) SetPageSize(PageSize int) *ListInviteParams { +func (params *ListInviteParams) SetPageSize(PageSize int64) *ListInviteParams { params.PageSize = &PageSize return params } -func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { +func (params *ListInviteParams) SetLimit(Limit int64) *ListInviteParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan ChatV1Invite, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Invites diff --git a/rest/chat/v1/services_channels_members.go b/rest/chat/v1/services_channels_members.go index a5bbb04416..92660b2450 100644 --- a/rest/chat/v1/services_channels_members.go +++ b/rest/chat/v1/services_channels_members.go @@ -40,7 +40,6 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListMemberParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMemberParams) SetIdentity(Identity []string) *ListMemberParams { params.Identity = &Identity return params } -func (params *ListMemberParams) SetPageSize(PageSize int) *ListMemberParams { +func (params *ListMemberParams) SetPageSize(PageSize int64) *ListMemberParams { params.PageSize = &PageSize return params } -func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { +func (params *ListMemberParams) SetLimit(Limit int64) *ListMemberParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ChatV1Member, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Members @@ -291,7 +288,6 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_channels_messages.go b/rest/chat/v1/services_channels_messages.go index 4b470ca0fe..c2516a3246 100644 --- a/rest/chat/v1/services_channels_messages.go +++ b/rest/chat/v1/services_channels_messages.go @@ -46,7 +46,6 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -82,7 +81,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params return ps, err } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -136,20 +133,20 @@ type ListMessageParams struct { // The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMessageParams) SetOrder(Order string) *ListMessageParams { params.Order = &Order return params } -func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { +func (params *ListMessageParams) SetPageSize(PageSize int64) *ListMessageParams { params.PageSize = &PageSize return params } -func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { +func (params *ListMessageParams) SetLimit(Limit int64) *ListMessageParams { params.Limit = &Limit return params } @@ -234,7 +231,7 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params } func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ChatV1Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages @@ -298,7 +295,6 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_roles.go b/rest/chat/v1/services_roles.go index 9a2a8c3d7c..46dcb27f04 100644 --- a/rest/chat/v1/services_roles.go +++ b/rest/chat/v1/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -83,7 +82,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*C return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,16 +130,16 @@ func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV1Role, erro // Optional parameters for the method 'ListRole' type ListRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams { +func (params *ListRoleParams) SetPageSize(PageSize int64) *ListRoleParams { params.PageSize = &PageSize return params } -func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { +func (params *ListRoleParams) SetLimit(Limit int64) *ListRoleParams { params.Limit = &Limit return params } @@ -223,7 +220,7 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan } func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ChatV1Role, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles @@ -281,7 +278,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_users.go b/rest/chat/v1/services_users.go index 6d21ffb4bb..0a640f693a 100644 --- a/rest/chat/v1/services_users.go +++ b/rest/chat/v1/services_users.go @@ -52,7 +52,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,7 +89,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*C return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -111,7 +109,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,16 +137,16 @@ func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV1User, erro // Optional parameters for the method 'ListUser' type ListUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams { +func (params *ListUserParams) SetPageSize(PageSize int64) *ListUserParams { params.PageSize = &PageSize return params } -func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { +func (params *ListUserParams) SetLimit(Limit int64) *ListUserParams { params.Limit = &Limit return params } @@ -230,7 +227,7 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan } func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ChatV1User, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users @@ -300,7 +297,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_users_channels.go b/rest/chat/v1/services_users_channels.go index eb1870a230..4e992474f5 100644 --- a/rest/chat/v1/services_users_channels.go +++ b/rest/chat/v1/services_users_channels.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserChannelParams) SetPageSize(PageSize int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetPageSize(PageSize int64) *ListUserChannelParams { params.PageSize = &PageSize return params } -func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetLimit(Limit int64) *ListUserChannelParams { params.Limit = &Limit return params } @@ -117,7 +117,7 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan ChatV1UserChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels diff --git a/rest/chat/v2/credentials.go b/rest/chat/v2/credentials.go index 335eb47e38..7393a0fbb7 100644 --- a/rest/chat/v2/credentials.go +++ b/rest/chat/v2/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials" @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Cr return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchCredential(Sid string) (*ChatV2Credential, error) { // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan ChatV2 } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ChatV2Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v2/docs/CredentialsApi.md b/rest/chat/v2/docs/CredentialsApi.md index e97e24daba..5acda00267 100644 --- a/rest/chat/v2/docs/CredentialsApi.md +++ b/rest/chat/v2/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ListBindingResponseMeta.md b/rest/chat/v2/docs/ListBindingResponseMeta.md index fcd580e38c..f40b7bc190 100644 --- a/rest/chat/v2/docs/ListBindingResponseMeta.md +++ b/rest/chat/v2/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/chat/v2/docs/ServicesApi.md index 9814123298..3b67f0a413 100644 --- a/rest/chat/v2/docs/ServicesApi.md +++ b/rest/chat/v2/docs/ServicesApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesBindingsApi.md b/rest/chat/v2/docs/ServicesBindingsApi.md index 1a96184269..0926a75f5c 100644 --- a/rest/chat/v2/docs/ServicesBindingsApi.md +++ b/rest/chat/v2/docs/ServicesBindingsApi.md @@ -121,8 +121,8 @@ Name | Type | Description ------------- | ------------- | ------------- **BindingType** | [**[]BindingEnumBindingType**](BindingEnumBindingType.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** | **[]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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesChannelsApi.md b/rest/chat/v2/docs/ServicesChannelsApi.md index e04fc09611..2212b8a9cb 100644 --- a/rest/chat/v2/docs/ServicesChannelsApi.md +++ b/rest/chat/v2/docs/ServicesChannelsApi.md @@ -173,8 +173,8 @@ Other parameters are passed through a pointer to a ListChannelParams struct Name | Type | Description ------------- | ------------- | ------------- **Type** | [**[]ChannelEnumChannelType**](ChannelEnumChannelType.md) | The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesChannelsInvitesApi.md b/rest/chat/v2/docs/ServicesChannelsInvitesApi.md index 06bbe7acaa..c981f2a40b 100644 --- a/rest/chat/v2/docs/ServicesChannelsInvitesApi.md +++ b/rest/chat/v2/docs/ServicesChannelsInvitesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListInviteParams struct Name | Type | Description ------------- | ------------- | ------------- **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesChannelsMembersApi.md b/rest/chat/v2/docs/ServicesChannelsMembersApi.md index 73ffa82e53..e534f97c6c 100644 --- a/rest/chat/v2/docs/ServicesChannelsMembersApi.md +++ b/rest/chat/v2/docs/ServicesChannelsMembersApi.md @@ -177,8 +177,8 @@ Other parameters are passed through a pointer to a ListMemberParams struct Name | Type | Description ------------- | ------------- | ------------- **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesChannelsMessagesApi.md b/rest/chat/v2/docs/ServicesChannelsMessagesApi.md index 0871bcfeff..f3cc55625d 100644 --- a/rest/chat/v2/docs/ServicesChannelsMessagesApi.md +++ b/rest/chat/v2/docs/ServicesChannelsMessagesApi.md @@ -177,8 +177,8 @@ Other parameters are passed through a pointer to a ListMessageParams struct Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesChannelsWebhooksApi.md b/rest/chat/v2/docs/ServicesChannelsWebhooksApi.md index 42bceae2cd..f1de6ef6bf 100644 --- a/rest/chat/v2/docs/ServicesChannelsWebhooksApi.md +++ b/rest/chat/v2/docs/ServicesChannelsWebhooksApi.md @@ -174,8 +174,8 @@ Other parameters are passed through a pointer to a ListChannelWebhookParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesRolesApi.md b/rest/chat/v2/docs/ServicesRolesApi.md index 9f39eb1ce3..e14d9d92a8 100644 --- a/rest/chat/v2/docs/ServicesRolesApi.md +++ b/rest/chat/v2/docs/ServicesRolesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesUsersApi.md b/rest/chat/v2/docs/ServicesUsersApi.md index 4d88d72cfb..9ab30dad5b 100644 --- a/rest/chat/v2/docs/ServicesUsersApi.md +++ b/rest/chat/v2/docs/ServicesUsersApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesUsersBindingsApi.md b/rest/chat/v2/docs/ServicesUsersBindingsApi.md index 86f8541b5a..b5d5336564 100644 --- a/rest/chat/v2/docs/ServicesUsersBindingsApi.md +++ b/rest/chat/v2/docs/ServicesUsersBindingsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListUserBindingParams struct Name | Type | Description ------------- | ------------- | ------------- **BindingType** | [**[]UserBindingEnumBindingType**](UserBindingEnumBindingType.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** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/docs/ServicesUsersChannelsApi.md b/rest/chat/v2/docs/ServicesUsersChannelsApi.md index 0749274c76..d8cef35541 100644 --- a/rest/chat/v2/docs/ServicesUsersChannelsApi.md +++ b/rest/chat/v2/docs/ServicesUsersChannelsApi.md @@ -124,8 +124,8 @@ Other parameters are passed through a pointer to a ListUserChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/chat/v2/model_list_binding_response_meta.go b/rest/chat/v2/model_list_binding_response_meta.go index 244d066cac..6cf840e202 100644 --- a/rest/chat/v2/model_list_binding_response_meta.go +++ b/rest/chat/v2/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/chat/v2/services.go b/rest/chat/v2/services.go index bbd3ad3c12..18f774cbff 100644 --- a/rest/chat/v2/services.go +++ b/rest/chat/v2/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, error) { path := "/v2/Services" @@ -62,7 +61,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -82,7 +80,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -110,16 +107,16 @@ func (c *ApiService) FetchService(Sid string) (*ChatV2Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -198,7 +195,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ChatV2Servic } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ChatV2Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -436,7 +433,6 @@ func (params *UpdateServiceParams) SetNotificationsLogEnabled(NotificationsLogEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v2/services_bindings.go b/rest/chat/v2/services_bindings.go index 7e765e1f26..588733c7f7 100644 --- a/rest/chat/v2/services_bindings.go +++ b/rest/chat/v2/services_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -44,7 +43,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*ChatV2Binding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,9 +75,9 @@ type ListBindingParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListBindingParams) SetBindingType(BindingType []string) *ListBindingParams { @@ -90,11 +88,11 @@ func (params *ListBindingParams) SetIdentity(Identity []string) *ListBindingPara params.Identity = &Identity return params } -func (params *ListBindingParams) SetPageSize(PageSize int) *ListBindingParams { +func (params *ListBindingParams) SetPageSize(PageSize int64) *ListBindingParams { params.PageSize = &PageSize return params } -func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { +func (params *ListBindingParams) SetLimit(Limit int64) *ListBindingParams { params.Limit = &Limit return params } @@ -185,7 +183,7 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) } func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan ChatV2Binding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/chat/v2/services_channels.go b/rest/chat/v2/services_channels.go index a94a06a358..ef3141c561 100644 --- a/rest/chat/v2/services_channels.go +++ b/rest/chat/v2/services_channels.go @@ -77,7 +77,6 @@ func (params *CreateChannelParams) SetCreatedBy(CreatedBy string) *CreateChannel return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -138,7 +137,6 @@ func (params *DeleteChannelParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) error { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -162,7 +160,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -193,20 +190,20 @@ type ListChannelParams struct { // The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. Type *[]string `json:"Type,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListChannelParams) SetType(Type []string) *ListChannelParams { params.Type = &Type return params } -func (params *ListChannelParams) SetPageSize(PageSize int) *ListChannelParams { +func (params *ListChannelParams) SetPageSize(PageSize int64) *ListChannelParams { params.PageSize = &PageSize return params } -func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { +func (params *ListChannelParams) SetLimit(Limit int64) *ListChannelParams { params.Limit = &Limit return params } @@ -292,7 +289,7 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) } func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan ChatV2Channel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -386,7 +383,6 @@ func (params *UpdateChannelParams) SetCreatedBy(CreatedBy string) *UpdateChannel return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_invites.go b/rest/chat/v2/services_channels_invites.go index b34cc7a6a2..6b440aa29d 100644 --- a/rest/chat/v2/services_channels_invites.go +++ b/rest/chat/v2/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListInviteParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInviteParams) SetIdentity(Identity []string) *ListInviteParams { params.Identity = &Identity return params } -func (params *ListInviteParams) SetPageSize(PageSize int) *ListInviteParams { +func (params *ListInviteParams) SetPageSize(PageSize int64) *ListInviteParams { params.PageSize = &PageSize return params } -func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { +func (params *ListInviteParams) SetLimit(Limit int64) *ListInviteParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan ChatV2Invite, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Invites diff --git a/rest/chat/v2/services_channels_members.go b/rest/chat/v2/services_channels_members.go index dd59be5b09..98f26096da 100644 --- a/rest/chat/v2/services_channels_members.go +++ b/rest/chat/v2/services_channels_members.go @@ -77,7 +77,6 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -139,7 +138,6 @@ func (params *DeleteMemberParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled return params } -// func (c *ApiService) 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) @@ -164,7 +162,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -196,20 +193,20 @@ type ListMemberParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMemberParams) SetIdentity(Identity []string) *ListMemberParams { params.Identity = &Identity return params } -func (params *ListMemberParams) SetPageSize(PageSize int) *ListMemberParams { +func (params *ListMemberParams) SetPageSize(PageSize int64) *ListMemberParams { params.PageSize = &PageSize return params } -func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { +func (params *ListMemberParams) SetLimit(Limit int64) *ListMemberParams { params.Limit = &Limit return params } @@ -296,7 +293,7 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ChatV2Member, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Members @@ -390,7 +387,6 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_messages.go b/rest/chat/v2/services_channels_messages.go index 816e70bc6d..19e13a2b92 100644 --- a/rest/chat/v2/services_channels_messages.go +++ b/rest/chat/v2/services_channels_messages.go @@ -77,7 +77,6 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -139,7 +138,6 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) 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) @@ -164,7 +162,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -196,20 +193,20 @@ type ListMessageParams struct { // The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMessageParams) SetOrder(Order string) *ListMessageParams { params.Order = &Order return params } -func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { +func (params *ListMessageParams) SetPageSize(PageSize int64) *ListMessageParams { params.PageSize = &PageSize return params } -func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { +func (params *ListMessageParams) SetLimit(Limit int64) *ListMessageParams { params.Limit = &Limit return params } @@ -294,7 +291,7 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params } func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ChatV2Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages @@ -388,7 +385,6 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_webhooks.go b/rest/chat/v2/services_channels_webhooks.go index 94725e8ca3..c346827c4a 100644 --- a/rest/chat/v2/services_channels_webhooks.go +++ b/rest/chat/v2/services_channels_webhooks.go @@ -70,7 +70,6 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +121,6 @@ func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, return ps, err } -// func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -144,7 +142,6 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, return nil } -// func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -174,16 +171,16 @@ func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, S // Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListChannelWebhookParams) SetPageSize(PageSize int) *ListChannelWebhookParams { +func (params *ListChannelWebhookParams) SetPageSize(PageSize int64) *ListChannelWebhookParams { params.PageSize = &PageSize return params } -func (params *ListChannelWebhookParams) SetLimit(Limit int) *ListChannelWebhookParams { +func (params *ListChannelWebhookParams) SetLimit(Limit int64) *ListChannelWebhookParams { params.Limit = &Limit return params } @@ -265,7 +262,7 @@ func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, } func (c *ApiService) streamChannelWebhook(response *ListChannelWebhookResponse, params *ListChannelWebhookParams, recordChannel chan ChatV2ChannelWebhook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Webhooks @@ -353,7 +350,6 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_roles.go b/rest/chat/v2/services_roles.go index b2a3f6702c..769f8b4679 100644 --- a/rest/chat/v2/services_roles.go +++ b/rest/chat/v2/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -83,7 +82,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*C return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,16 +130,16 @@ func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV2Role, erro // Optional parameters for the method 'ListRole' type ListRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams { +func (params *ListRoleParams) SetPageSize(PageSize int64) *ListRoleParams { params.PageSize = &PageSize return params } -func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { +func (params *ListRoleParams) SetLimit(Limit int64) *ListRoleParams { params.Limit = &Limit return params } @@ -223,7 +220,7 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan } func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ChatV2Role, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles @@ -281,7 +278,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_users.go b/rest/chat/v2/services_users.go index 0f388a6dfb..5ea16a4ed8 100644 --- a/rest/chat/v2/services_users.go +++ b/rest/chat/v2/services_users.go @@ -58,7 +58,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -99,7 +98,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*C return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -120,7 +118,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -149,16 +146,16 @@ func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV2User, erro // Optional parameters for the method 'ListUser' type ListUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams { +func (params *ListUserParams) SetPageSize(PageSize int64) *ListUserParams { params.PageSize = &PageSize return params } -func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { +func (params *ListUserParams) SetLimit(Limit int64) *ListUserParams { params.Limit = &Limit return params } @@ -239,7 +236,7 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan } func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ChatV2User, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users @@ -315,7 +312,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_users_bindings.go b/rest/chat/v2/services_users_bindings.go index 46e61033c9..d6c96c2846 100644 --- a/rest/chat/v2/services_users_bindings.go +++ b/rest/chat/v2/services_users_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -45,7 +44,6 @@ func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid st return nil } -// func (c *ApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*ChatV2UserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,20 +75,20 @@ type ListUserBindingParams struct { // 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. BindingType *[]string `json:"BindingType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUserBindingParams) SetBindingType(BindingType []string) *ListUserBindingParams { params.BindingType = &BindingType return params } -func (params *ListUserBindingParams) SetPageSize(PageSize int) *ListUserBindingParams { +func (params *ListUserBindingParams) SetPageSize(PageSize int64) *ListUserBindingParams { params.PageSize = &PageSize return params } -func (params *ListUserBindingParams) SetLimit(Limit int) *ListUserBindingParams { +func (params *ListUserBindingParams) SetLimit(Limit int64) *ListUserBindingParams { params.Limit = &Limit return params } @@ -177,7 +175,7 @@ func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserBinding(response *ListUserBindingResponse, params *ListUserBindingParams, recordChannel chan ChatV2UserBinding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/chat/v2/services_users_channels.go b/rest/chat/v2/services_users_channels.go index 01cd283ae7..43ad8a45a4 100644 --- a/rest/chat/v2/services_users_channels.go +++ b/rest/chat/v2/services_users_channels.go @@ -60,7 +60,6 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe return nil } -// func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*ChatV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,16 +89,16 @@ func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, Channel // Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserChannelParams) SetPageSize(PageSize int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetPageSize(PageSize int64) *ListUserChannelParams { params.PageSize = &PageSize return params } -func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetLimit(Limit int64) *ListUserChannelParams { params.Limit = &Limit return params } @@ -181,7 +180,7 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan ChatV2UserChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -251,7 +250,6 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti return params } -// func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*ChatV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/content/v1/content.go b/rest/content/v1/content.go index d18e68c64f..342c79a46d 100644 --- a/rest/content/v1/content.go +++ b/rest/content/v1/content.go @@ -115,16 +115,16 @@ func (c *ApiService) FetchContent(Sid string) (*ContentV1Content, error) { // Optional parameters for the method 'ListContent' type ListContentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListContentParams) SetPageSize(PageSize int) *ListContentParams { +func (params *ListContentParams) SetPageSize(PageSize int64) *ListContentParams { params.PageSize = &PageSize return params } -func (params *ListContentParams) SetLimit(Limit int) *ListContentParams { +func (params *ListContentParams) SetLimit(Limit int64) *ListContentParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamContent(params *ListContentParams) (chan ContentV1Con } func (c *ApiService) streamContent(response *ListContentResponse, params *ListContentParams, recordChannel chan ContentV1Content, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/content/v1/content_and_approvals.go b/rest/content/v1/content_and_approvals.go index f8964b451e..9e4afa81bb 100644 --- a/rest/content/v1/content_and_approvals.go +++ b/rest/content/v1/content_and_approvals.go @@ -25,16 +25,16 @@ import ( // Optional parameters for the method 'ListContentAndApprovals' type ListContentAndApprovalsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListContentAndApprovalsParams) SetPageSize(PageSize int) *ListContentAndApprovalsParams { +func (params *ListContentAndApprovalsParams) SetPageSize(PageSize int64) *ListContentAndApprovalsParams { params.PageSize = &PageSize return params } -func (params *ListContentAndApprovalsParams) SetLimit(Limit int) *ListContentAndApprovalsParams { +func (params *ListContentAndApprovalsParams) SetLimit(Limit int64) *ListContentAndApprovalsParams { params.Limit = &Limit return params } @@ -113,7 +113,7 @@ func (c *ApiService) StreamContentAndApprovals(params *ListContentAndApprovalsPa } func (c *ApiService) streamContentAndApprovals(response *ListContentAndApprovalsResponse, params *ListContentAndApprovalsParams, recordChannel chan ContentV1ContentAndApprovals, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/content/v1/content_approval_requests_whatsapp.go b/rest/content/v1/content_approval_requests_whatsapp.go index f269523500..e2e7ca0baa 100644 --- a/rest/content/v1/content_approval_requests_whatsapp.go +++ b/rest/content/v1/content_approval_requests_whatsapp.go @@ -31,7 +31,6 @@ func (params *CreateApprovalCreateParams) SetContentApprovalRequest(ContentAppro return params } -// func (c *ApiService) CreateApprovalCreate(ContentSid string, params *CreateApprovalCreateParams) (*ContentV1ApprovalCreate, error) { path := "/v1/Content/{ContentSid}/ApprovalRequests/whatsapp" path = strings.Replace(path, "{"+"ContentSid"+"}", ContentSid, -1) diff --git a/rest/content/v1/docs/ContentAndApprovalsApi.md b/rest/content/v1/docs/ContentAndApprovalsApi.md index 484243422a..cfb867d27d 100644 --- a/rest/content/v1/docs/ContentAndApprovalsApi.md +++ b/rest/content/v1/docs/ContentAndApprovalsApi.md @@ -27,8 +27,8 @@ Other parameters are passed through a pointer to a ListContentAndApprovalsParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/content/v1/docs/ContentApi.md b/rest/content/v1/docs/ContentApi.md index 0effa74baf..6027a6488e 100644 --- a/rest/content/v1/docs/ContentApi.md +++ b/rest/content/v1/docs/ContentApi.md @@ -153,8 +153,8 @@ Other parameters are passed through a pointer to a ListContentParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/content/v1/docs/LegacyContentApi.md b/rest/content/v1/docs/LegacyContentApi.md index f613b4bb06..52c704b2e4 100644 --- a/rest/content/v1/docs/LegacyContentApi.md +++ b/rest/content/v1/docs/LegacyContentApi.md @@ -27,8 +27,8 @@ Other parameters are passed through a pointer to a ListLegacyContentParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/content/v1/legacy_content.go b/rest/content/v1/legacy_content.go index ef7c07af39..44602fdb80 100644 --- a/rest/content/v1/legacy_content.go +++ b/rest/content/v1/legacy_content.go @@ -25,16 +25,16 @@ import ( // Optional parameters for the method 'ListLegacyContent' type ListLegacyContentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListLegacyContentParams) SetPageSize(PageSize int) *ListLegacyContentParams { +func (params *ListLegacyContentParams) SetPageSize(PageSize int64) *ListLegacyContentParams { params.PageSize = &PageSize return params } -func (params *ListLegacyContentParams) SetLimit(Limit int) *ListLegacyContentParams { +func (params *ListLegacyContentParams) SetLimit(Limit int64) *ListLegacyContentParams { params.Limit = &Limit return params } @@ -113,7 +113,7 @@ func (c *ApiService) StreamLegacyContent(params *ListLegacyContentParams) (chan } func (c *ApiService) streamLegacyContent(response *ListLegacyContentResponse, params *ListLegacyContentParams, recordChannel chan ContentV1LegacyContent, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/content/v2/content.go b/rest/content/v2/content.go index 0b5b5448e2..df487ed140 100644 --- a/rest/content/v2/content.go +++ b/rest/content/v2/content.go @@ -26,7 +26,7 @@ import ( // Optional parameters for the method 'ListContent' type ListContentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Whether to sort by ascending or descending date updated SortByDate *string `json:"SortByDate,omitempty"` // Whether to sort by ascending or descending content name @@ -46,10 +46,10 @@ type ListContentParams struct { // Filter by array of ChannelEligibility(s), where ChannelEligibility=: ChannelEligibility *[]string `json:"ChannelEligibility,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListContentParams) SetPageSize(PageSize int) *ListContentParams { +func (params *ListContentParams) SetPageSize(PageSize int64) *ListContentParams { params.PageSize = &PageSize return params } @@ -89,7 +89,7 @@ func (params *ListContentParams) SetChannelEligibility(ChannelEligibility []stri params.ChannelEligibility = &ChannelEligibility return params } -func (params *ListContentParams) SetLimit(Limit int) *ListContentParams { +func (params *ListContentParams) SetLimit(Limit int64) *ListContentParams { params.Limit = &Limit return params } @@ -201,7 +201,7 @@ func (c *ApiService) StreamContent(params *ListContentParams) (chan ContentV1Con } func (c *ApiService) streamContent(response *ListContentResponse, params *ListContentParams, recordChannel chan ContentV1Content, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/content/v2/content_and_approvals.go b/rest/content/v2/content_and_approvals.go index d296eca448..19d9353f13 100644 --- a/rest/content/v2/content_and_approvals.go +++ b/rest/content/v2/content_and_approvals.go @@ -26,7 +26,7 @@ import ( // Optional parameters for the method 'ListContentAndApprovals' type ListContentAndApprovalsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Whether to sort by ascending or descending date updated SortByDate *string `json:"SortByDate,omitempty"` // Whether to sort by ascending or descending content name @@ -46,10 +46,10 @@ type ListContentAndApprovalsParams struct { // Filter by array of ChannelEligibility(s), where ChannelEligibility=: ChannelEligibility *[]string `json:"ChannelEligibility,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListContentAndApprovalsParams) SetPageSize(PageSize int) *ListContentAndApprovalsParams { +func (params *ListContentAndApprovalsParams) SetPageSize(PageSize int64) *ListContentAndApprovalsParams { params.PageSize = &PageSize return params } @@ -89,7 +89,7 @@ func (params *ListContentAndApprovalsParams) SetChannelEligibility(ChannelEligib params.ChannelEligibility = &ChannelEligibility return params } -func (params *ListContentAndApprovalsParams) SetLimit(Limit int) *ListContentAndApprovalsParams { +func (params *ListContentAndApprovalsParams) SetLimit(Limit int64) *ListContentAndApprovalsParams { params.Limit = &Limit return params } @@ -201,7 +201,7 @@ func (c *ApiService) StreamContentAndApprovals(params *ListContentAndApprovalsPa } func (c *ApiService) streamContentAndApprovals(response *ListContentAndApprovalsResponse, params *ListContentAndApprovalsParams, recordChannel chan ContentV1ContentAndApprovals, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Contents diff --git a/rest/content/v2/docs/ContentAndApprovalsApi.md b/rest/content/v2/docs/ContentAndApprovalsApi.md index f8a81d590e..59221ec6bf 100644 --- a/rest/content/v2/docs/ContentAndApprovalsApi.md +++ b/rest/content/v2/docs/ContentAndApprovalsApi.md @@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a ListContentAndApprovalsParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **SortByDate** | **string** | Whether to sort by ascending or descending date updated **SortByContentName** | **string** | Whether to sort by ascending or descending content name **DateCreatedAfter** | **time.Time** | Filter by >=[date-time] @@ -37,7 +37,7 @@ Name | Type | Description **Language** | **[]string** | Filter by array of valid language(s) **ContentType** | **[]string** | Filter by array of contentType(s) **ChannelEligibility** | **[]string** | Filter by array of ChannelEligibility(s), where ChannelEligibility=: -**Limit** | **int** | Max number of records to return. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/content/v2/docs/ContentApi.md b/rest/content/v2/docs/ContentApi.md index 220f81f0e4..1878ba4ccf 100644 --- a/rest/content/v2/docs/ContentApi.md +++ b/rest/content/v2/docs/ContentApi.md @@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a ListContentParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **SortByDate** | **string** | Whether to sort by ascending or descending date updated **SortByContentName** | **string** | Whether to sort by ascending or descending content name **DateCreatedAfter** | **time.Time** | Filter by >=[date-time] @@ -37,7 +37,7 @@ Name | Type | Description **Language** | **[]string** | Filter by array of valid language(s) **ContentType** | **[]string** | Filter by array of contentType(s) **ChannelEligibility** | **[]string** | Filter by array of ChannelEligibility(s), where ChannelEligibility=: -**Limit** | **int** | Max number of records to return. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/configuration_addresses.go b/rest/conversations/v1/configuration_addresses.go index caa7a8acca..cf3edea1db 100644 --- a/rest/conversations/v1/configuration_addresses.go +++ b/rest/conversations/v1/configuration_addresses.go @@ -213,20 +213,20 @@ type ListConfigurationAddressParams struct { // Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`. Type *string `json:"Type,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConfigurationAddressParams) SetType(Type string) *ListConfigurationAddressParams { params.Type = &Type return params } -func (params *ListConfigurationAddressParams) SetPageSize(PageSize int) *ListConfigurationAddressParams { +func (params *ListConfigurationAddressParams) SetPageSize(PageSize int64) *ListConfigurationAddressParams { params.PageSize = &PageSize return params } -func (params *ListConfigurationAddressParams) SetLimit(Limit int) *ListConfigurationAddressParams { +func (params *ListConfigurationAddressParams) SetLimit(Limit int64) *ListConfigurationAddressParams { params.Limit = &Limit return params } @@ -308,7 +308,7 @@ func (c *ApiService) StreamConfigurationAddress(params *ListConfigurationAddress } func (c *ApiService) streamConfigurationAddress(response *ListConfigurationAddressResponse, params *ListConfigurationAddressParams, recordChannel chan ConversationsV1ConfigurationAddress, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AddressConfigurations diff --git a/rest/conversations/v1/configuration_webhooks.go b/rest/conversations/v1/configuration_webhooks.go index b00897ed60..033c0fcc00 100644 --- a/rest/conversations/v1/configuration_webhooks.go +++ b/rest/conversations/v1/configuration_webhooks.go @@ -19,7 +19,6 @@ import ( "net/url" ) -// func (c *ApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" @@ -78,7 +77,6 @@ func (params *UpdateConfigurationWebhookParams) SetTarget(Target string) *Update return params } -// func (c *ApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" diff --git a/rest/conversations/v1/conversations.go b/rest/conversations/v1/conversations.go index a205a335cd..a5a7682ea5 100644 --- a/rest/conversations/v1/conversations.go +++ b/rest/conversations/v1/conversations.go @@ -230,9 +230,9 @@ type ListConversationParams struct { // State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` State *string `json:"State,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConversationParams) SetStartDate(StartDate string) *ListConversationParams { @@ -247,11 +247,11 @@ func (params *ListConversationParams) SetState(State string) *ListConversationPa params.State = &State return params } -func (params *ListConversationParams) SetPageSize(PageSize int) *ListConversationParams { +func (params *ListConversationParams) SetPageSize(PageSize int64) *ListConversationParams { params.PageSize = &PageSize return params } -func (params *ListConversationParams) SetLimit(Limit int) *ListConversationParams { +func (params *ListConversationParams) SetLimit(Limit int64) *ListConversationParams { params.Limit = &Limit return params } @@ -339,7 +339,7 @@ func (c *ApiService) StreamConversation(params *ListConversationParams) (chan Co } func (c *ApiService) streamConversation(response *ListConversationResponse, params *ListConversationParams, recordChannel chan ConversationsV1Conversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/conversations/v1/conversations_messages.go b/rest/conversations/v1/conversations_messages.go index 385744b8da..4eea510c2a 100644 --- a/rest/conversations/v1/conversations_messages.go +++ b/rest/conversations/v1/conversations_messages.go @@ -211,20 +211,20 @@ type ListConversationMessageParams struct { // The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConversationMessageParams) SetOrder(Order string) *ListConversationMessageParams { params.Order = &Order return params } -func (params *ListConversationMessageParams) SetPageSize(PageSize int) *ListConversationMessageParams { +func (params *ListConversationMessageParams) SetPageSize(PageSize int64) *ListConversationMessageParams { params.PageSize = &PageSize return params } -func (params *ListConversationMessageParams) SetLimit(Limit int) *ListConversationMessageParams { +func (params *ListConversationMessageParams) SetLimit(Limit int64) *ListConversationMessageParams { params.Limit = &Limit return params } @@ -308,7 +308,7 @@ func (c *ApiService) StreamConversationMessage(ConversationSid string, params *L } func (c *ApiService) streamConversationMessage(response *ListConversationMessageResponse, params *ListConversationMessageParams, recordChannel chan ConversationsV1ConversationMessage, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages diff --git a/rest/conversations/v1/conversations_messages_receipts.go b/rest/conversations/v1/conversations_messages_receipts.go index cdfb3ce84b..6b5c6ca600 100644 --- a/rest/conversations/v1/conversations_messages_receipts.go +++ b/rest/conversations/v1/conversations_messages_receipts.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchConversationMessageReceipt(ConversationSid string, Mes // Optional parameters for the method 'ListConversationMessageReceipt' type ListConversationMessageReceiptParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListConversationMessageReceiptParams) SetPageSize(PageSize int) *ListConversationMessageReceiptParams { +func (params *ListConversationMessageReceiptParams) SetPageSize(PageSize int64) *ListConversationMessageReceiptParams { params.PageSize = &PageSize return params } -func (params *ListConversationMessageReceiptParams) SetLimit(Limit int) *ListConversationMessageReceiptParams { +func (params *ListConversationMessageReceiptParams) SetLimit(Limit int64) *ListConversationMessageReceiptParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamConversationMessageReceipt(ConversationSid string, Me } func (c *ApiService) streamConversationMessageReceipt(response *ListConversationMessageReceiptResponse, params *ListConversationMessageReceiptParams, recordChannel chan ConversationsV1ConversationMessageReceipt, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.DeliveryReceipts diff --git a/rest/conversations/v1/conversations_participants.go b/rest/conversations/v1/conversations_participants.go index 00c16e2020..d068a36075 100644 --- a/rest/conversations/v1/conversations_participants.go +++ b/rest/conversations/v1/conversations_participants.go @@ -200,16 +200,16 @@ func (c *ApiService) FetchConversationParticipant(ConversationSid string, Sid st // Optional parameters for the method 'ListConversationParticipant' type ListConversationParticipantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListConversationParticipantParams) SetPageSize(PageSize int) *ListConversationParticipantParams { +func (params *ListConversationParticipantParams) SetPageSize(PageSize int64) *ListConversationParticipantParams { params.PageSize = &PageSize return params } -func (params *ListConversationParticipantParams) SetLimit(Limit int) *ListConversationParticipantParams { +func (params *ListConversationParticipantParams) SetLimit(Limit int64) *ListConversationParticipantParams { params.Limit = &Limit return params } @@ -290,7 +290,7 @@ func (c *ApiService) StreamConversationParticipant(ConversationSid string, param } func (c *ApiService) streamConversationParticipant(response *ListConversationParticipantResponse, params *ListConversationParticipantParams, recordChannel chan ConversationsV1ConversationParticipant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/conversations/v1/conversations_webhooks.go b/rest/conversations/v1/conversations_webhooks.go index 0185056a34..9b679c9179 100644 --- a/rest/conversations/v1/conversations_webhooks.go +++ b/rest/conversations/v1/conversations_webhooks.go @@ -171,16 +171,16 @@ func (c *ApiService) FetchConversationScopedWebhook(ConversationSid string, Sid // Optional parameters for the method 'ListConversationScopedWebhook' type ListConversationScopedWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListConversationScopedWebhookParams) SetPageSize(PageSize int) *ListConversationScopedWebhookParams { +func (params *ListConversationScopedWebhookParams) SetPageSize(PageSize int64) *ListConversationScopedWebhookParams { params.PageSize = &PageSize return params } -func (params *ListConversationScopedWebhookParams) SetLimit(Limit int) *ListConversationScopedWebhookParams { +func (params *ListConversationScopedWebhookParams) SetLimit(Limit int64) *ListConversationScopedWebhookParams { params.Limit = &Limit return params } @@ -261,7 +261,7 @@ func (c *ApiService) StreamConversationScopedWebhook(ConversationSid string, par } func (c *ApiService) streamConversationScopedWebhook(response *ListConversationScopedWebhookResponse, params *ListConversationScopedWebhookParams, recordChannel chan ConversationsV1ConversationScopedWebhook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Webhooks diff --git a/rest/conversations/v1/credentials.go b/rest/conversations/v1/credentials.go index 7999599925..9658b9967c 100644 --- a/rest/conversations/v1/credentials.go +++ b/rest/conversations/v1/credentials.go @@ -164,16 +164,16 @@ func (c *ApiService) FetchCredential(Sid string) (*ConversationsV1Credential, er // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +252,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan Conver } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ConversationsV1Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials diff --git a/rest/conversations/v1/docs/ConfigurationAddressesApi.md b/rest/conversations/v1/docs/ConfigurationAddressesApi.md index 9f988ade0c..b5aaa6873c 100644 --- a/rest/conversations/v1/docs/ConfigurationAddressesApi.md +++ b/rest/conversations/v1/docs/ConfigurationAddressesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListConfigurationAddressParam Name | Type | Description ------------- | ------------- | ------------- **Type** | **string** | Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ConversationsApi.md b/rest/conversations/v1/docs/ConversationsApi.md index aa96c50d37..24e6a83f38 100644 --- a/rest/conversations/v1/docs/ConversationsApi.md +++ b/rest/conversations/v1/docs/ConversationsApi.md @@ -169,8 +169,8 @@ Name | Type | Description **StartDate** | **string** | Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. **EndDate** | **string** | Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. **State** | **string** | State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ConversationsMessagesApi.md b/rest/conversations/v1/docs/ConversationsMessagesApi.md index a1a7b42d8f..7a3e90eed7 100644 --- a/rest/conversations/v1/docs/ConversationsMessagesApi.md +++ b/rest/conversations/v1/docs/ConversationsMessagesApi.md @@ -175,8 +175,8 @@ Other parameters are passed through a pointer to a ListConversationMessageParams Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ConversationsMessagesReceiptsApi.md b/rest/conversations/v1/docs/ConversationsMessagesReceiptsApi.md index 8a90abb2c6..e7115e5be5 100644 --- a/rest/conversations/v1/docs/ConversationsMessagesReceiptsApi.md +++ b/rest/conversations/v1/docs/ConversationsMessagesReceiptsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListConversationMessageReceip Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ConversationsParticipantsApi.md b/rest/conversations/v1/docs/ConversationsParticipantsApi.md index c8fe4d01f7..25963f928a 100644 --- a/rest/conversations/v1/docs/ConversationsParticipantsApi.md +++ b/rest/conversations/v1/docs/ConversationsParticipantsApi.md @@ -173,8 +173,8 @@ Other parameters are passed through a pointer to a ListConversationParticipantPa Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ConversationsWebhooksApi.md b/rest/conversations/v1/docs/ConversationsWebhooksApi.md index 4a056fbd9e..44bb50a0ff 100644 --- a/rest/conversations/v1/docs/ConversationsWebhooksApi.md +++ b/rest/conversations/v1/docs/ConversationsWebhooksApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListConversationScopedWebhook Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/CredentialsApi.md b/rest/conversations/v1/docs/CredentialsApi.md index 09f3f374b7..2c521463a9 100644 --- a/rest/conversations/v1/docs/CredentialsApi.md +++ b/rest/conversations/v1/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md b/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md index 8d5b7e65c2..bf85cc36d5 100644 --- a/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md +++ b/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ParticipantConversationsApi.md b/rest/conversations/v1/docs/ParticipantConversationsApi.md index a6ff821ca8..b5ebed3c13 100644 --- a/rest/conversations/v1/docs/ParticipantConversationsApi.md +++ b/rest/conversations/v1/docs/ParticipantConversationsApi.md @@ -29,8 +29,8 @@ Name | Type | Description ------------- | ------------- | ------------- **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. **Address** | **string** | A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/RolesApi.md b/rest/conversations/v1/docs/RolesApi.md index f83972cfbf..59874a6db0 100644 --- a/rest/conversations/v1/docs/RolesApi.md +++ b/rest/conversations/v1/docs/RolesApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesApi.md b/rest/conversations/v1/docs/ServicesApi.md index a65afbb3c1..149b060058 100644 --- a/rest/conversations/v1/docs/ServicesApi.md +++ b/rest/conversations/v1/docs/ServicesApi.md @@ -153,8 +153,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesBindingsApi.md b/rest/conversations/v1/docs/ServicesBindingsApi.md index 28e3a9de32..bfb2c14b58 100644 --- a/rest/conversations/v1/docs/ServicesBindingsApi.md +++ b/rest/conversations/v1/docs/ServicesBindingsApi.md @@ -121,8 +121,8 @@ Name | Type | Description ------------- | ------------- | ------------- **BindingType** | [**[]ServiceBindingEnumBindingType**](ServiceBindingEnumBindingType.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** | **[]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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesConversationsApi.md b/rest/conversations/v1/docs/ServicesConversationsApi.md index d3b5e6d654..e1f5d9266e 100644 --- a/rest/conversations/v1/docs/ServicesConversationsApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsApi.md @@ -179,8 +179,8 @@ Name | Type | Description **StartDate** | **string** | Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. **EndDate** | **string** | Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. **State** | **string** | State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesConversationsMessagesApi.md b/rest/conversations/v1/docs/ServicesConversationsMessagesApi.md index b7e6ec5ebe..69afde278a 100644 --- a/rest/conversations/v1/docs/ServicesConversationsMessagesApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsMessagesApi.md @@ -179,8 +179,8 @@ Other parameters are passed through a pointer to a ListServiceConversationMessag Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesConversationsMessagesReceiptsApi.md b/rest/conversations/v1/docs/ServicesConversationsMessagesReceiptsApi.md index 013d41270f..ece8c27b4f 100644 --- a/rest/conversations/v1/docs/ServicesConversationsMessagesReceiptsApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsMessagesReceiptsApi.md @@ -79,8 +79,8 @@ Other parameters are passed through a pointer to a ListServiceConversationMessag Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesConversationsParticipantsApi.md b/rest/conversations/v1/docs/ServicesConversationsParticipantsApi.md index 8f069ddf85..f639c63782 100644 --- a/rest/conversations/v1/docs/ServicesConversationsParticipantsApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsParticipantsApi.md @@ -177,8 +177,8 @@ Other parameters are passed through a pointer to a ListServiceConversationPartic Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesConversationsWebhooksApi.md b/rest/conversations/v1/docs/ServicesConversationsWebhooksApi.md index f6c1d7df79..8c1ead2bff 100644 --- a/rest/conversations/v1/docs/ServicesConversationsWebhooksApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsWebhooksApi.md @@ -174,8 +174,8 @@ Other parameters are passed through a pointer to a ListServiceConversationScoped Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesParticipantConversationsApi.md b/rest/conversations/v1/docs/ServicesParticipantConversationsApi.md index e866e52598..61020ade14 100644 --- a/rest/conversations/v1/docs/ServicesParticipantConversationsApi.md +++ b/rest/conversations/v1/docs/ServicesParticipantConversationsApi.md @@ -33,8 +33,8 @@ Name | Type | Description ------------- | ------------- | ------------- **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. **Address** | **string** | A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesRolesApi.md b/rest/conversations/v1/docs/ServicesRolesApi.md index 207356c380..3d335e2ad7 100644 --- a/rest/conversations/v1/docs/ServicesRolesApi.md +++ b/rest/conversations/v1/docs/ServicesRolesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListServiceRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesUsersApi.md b/rest/conversations/v1/docs/ServicesUsersApi.md index 2ac5baddca..310a74d8d0 100644 --- a/rest/conversations/v1/docs/ServicesUsersApi.md +++ b/rest/conversations/v1/docs/ServicesUsersApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListServiceUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/ServicesUsersConversationsApi.md b/rest/conversations/v1/docs/ServicesUsersConversationsApi.md index 211e0ff455..94f763d751 100644 --- a/rest/conversations/v1/docs/ServicesUsersConversationsApi.md +++ b/rest/conversations/v1/docs/ServicesUsersConversationsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListServiceUserConversationPa Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/UsersApi.md b/rest/conversations/v1/docs/UsersApi.md index 33114185f7..b0cf4abe06 100644 --- a/rest/conversations/v1/docs/UsersApi.md +++ b/rest/conversations/v1/docs/UsersApi.md @@ -159,8 +159,8 @@ Other parameters are passed through a pointer to a ListUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/docs/UsersConversationsApi.md b/rest/conversations/v1/docs/UsersConversationsApi.md index 0e20ac4688..bc0871d57e 100644 --- a/rest/conversations/v1/docs/UsersConversationsApi.md +++ b/rest/conversations/v1/docs/UsersConversationsApi.md @@ -120,8 +120,8 @@ Other parameters are passed through a pointer to a ListUserConversationParams st Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/conversations/v1/model_list_configuration_address_response_meta.go b/rest/conversations/v1/model_list_configuration_address_response_meta.go index cd100f004c..8bea5db500 100644 --- a/rest/conversations/v1/model_list_configuration_address_response_meta.go +++ b/rest/conversations/v1/model_list_configuration_address_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListConfigurationAddressResponseMeta struct for ListConfigurationAddressResponseMeta type ListConfigurationAddressResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/conversations/v1/participant_conversations.go b/rest/conversations/v1/participant_conversations.go index 94d13f5595..8dea82eed7 100644 --- a/rest/conversations/v1/participant_conversations.go +++ b/rest/conversations/v1/participant_conversations.go @@ -29,9 +29,9 @@ type ListParticipantConversationParams struct { // A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. Address *string `json:"Address,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListParticipantConversationParams) SetIdentity(Identity string) *ListParticipantConversationParams { @@ -42,11 +42,11 @@ func (params *ListParticipantConversationParams) SetAddress(Address string) *Lis params.Address = &Address return params } -func (params *ListParticipantConversationParams) SetPageSize(PageSize int) *ListParticipantConversationParams { +func (params *ListParticipantConversationParams) SetPageSize(PageSize int64) *ListParticipantConversationParams { params.PageSize = &PageSize return params } -func (params *ListParticipantConversationParams) SetLimit(Limit int) *ListParticipantConversationParams { +func (params *ListParticipantConversationParams) SetLimit(Limit int64) *ListParticipantConversationParams { params.Limit = &Limit return params } @@ -131,7 +131,7 @@ func (c *ApiService) StreamParticipantConversation(params *ListParticipantConver } func (c *ApiService) streamParticipantConversation(response *ListParticipantConversationResponse, params *ListParticipantConversationParams, recordChannel chan ConversationsV1ParticipantConversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/conversations/v1/roles.go b/rest/conversations/v1/roles.go index 5a56ec1432..32c8f29e16 100644 --- a/rest/conversations/v1/roles.go +++ b/rest/conversations/v1/roles.go @@ -130,16 +130,16 @@ func (c *ApiService) FetchRole(Sid string) (*ConversationsV1Role, error) { // Optional parameters for the method 'ListRole' type ListRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams { +func (params *ListRoleParams) SetPageSize(PageSize int64) *ListRoleParams { params.PageSize = &PageSize return params } -func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { +func (params *ListRoleParams) SetLimit(Limit int64) *ListRoleParams { params.Limit = &Limit return params } @@ -218,7 +218,7 @@ func (c *ApiService) StreamRole(params *ListRoleParams) (chan ConversationsV1Rol } func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ConversationsV1Role, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles diff --git a/rest/conversations/v1/services.go b/rest/conversations/v1/services.go index dad8368bfc..a9ea6eb2e7 100644 --- a/rest/conversations/v1/services.go +++ b/rest/conversations/v1/services.go @@ -110,16 +110,16 @@ func (c *ApiService) FetchService(Sid string) (*ConversationsV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -198,7 +198,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan Conversation } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ConversationsV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services diff --git a/rest/conversations/v1/services_bindings.go b/rest/conversations/v1/services_bindings.go index 5b87f3f8e5..c2da0d9bc0 100644 --- a/rest/conversations/v1/services_bindings.go +++ b/rest/conversations/v1/services_bindings.go @@ -77,9 +77,9 @@ type ListServiceBindingParams struct { // 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. Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListServiceBindingParams) SetBindingType(BindingType []string) *ListServiceBindingParams { @@ -90,11 +90,11 @@ func (params *ListServiceBindingParams) SetIdentity(Identity []string) *ListServ params.Identity = &Identity return params } -func (params *ListServiceBindingParams) SetPageSize(PageSize int) *ListServiceBindingParams { +func (params *ListServiceBindingParams) SetPageSize(PageSize int64) *ListServiceBindingParams { params.PageSize = &PageSize return params } -func (params *ListServiceBindingParams) SetLimit(Limit int) *ListServiceBindingParams { +func (params *ListServiceBindingParams) SetLimit(Limit int64) *ListServiceBindingParams { params.Limit = &Limit return params } @@ -185,7 +185,7 @@ func (c *ApiService) StreamServiceBinding(ChatServiceSid string, params *ListSer } func (c *ApiService) streamServiceBinding(response *ListServiceBindingResponse, params *ListServiceBindingParams, recordChannel chan ConversationsV1ServiceBinding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/conversations/v1/services_conversations.go b/rest/conversations/v1/services_conversations.go index ae88ebb4fa..3aa71805cb 100644 --- a/rest/conversations/v1/services_conversations.go +++ b/rest/conversations/v1/services_conversations.go @@ -233,9 +233,9 @@ type ListServiceConversationParams struct { // State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` State *string `json:"State,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListServiceConversationParams) SetStartDate(StartDate string) *ListServiceConversationParams { @@ -250,11 +250,11 @@ func (params *ListServiceConversationParams) SetState(State string) *ListService params.State = &State return params } -func (params *ListServiceConversationParams) SetPageSize(PageSize int) *ListServiceConversationParams { +func (params *ListServiceConversationParams) SetPageSize(PageSize int64) *ListServiceConversationParams { params.PageSize = &PageSize return params } -func (params *ListServiceConversationParams) SetLimit(Limit int) *ListServiceConversationParams { +func (params *ListServiceConversationParams) SetLimit(Limit int64) *ListServiceConversationParams { params.Limit = &Limit return params } @@ -344,7 +344,7 @@ func (c *ApiService) StreamServiceConversation(ChatServiceSid string, params *Li } func (c *ApiService) streamServiceConversation(response *ListServiceConversationResponse, params *ListServiceConversationParams, recordChannel chan ConversationsV1ServiceConversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/conversations/v1/services_conversations_messages.go b/rest/conversations/v1/services_conversations_messages.go index 69b7dc55b1..9a5b128226 100644 --- a/rest/conversations/v1/services_conversations_messages.go +++ b/rest/conversations/v1/services_conversations_messages.go @@ -214,20 +214,20 @@ type ListServiceConversationMessageParams struct { // The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListServiceConversationMessageParams) SetOrder(Order string) *ListServiceConversationMessageParams { params.Order = &Order return params } -func (params *ListServiceConversationMessageParams) SetPageSize(PageSize int) *ListServiceConversationMessageParams { +func (params *ListServiceConversationMessageParams) SetPageSize(PageSize int64) *ListServiceConversationMessageParams { params.PageSize = &PageSize return params } -func (params *ListServiceConversationMessageParams) SetLimit(Limit int) *ListServiceConversationMessageParams { +func (params *ListServiceConversationMessageParams) SetLimit(Limit int64) *ListServiceConversationMessageParams { params.Limit = &Limit return params } @@ -312,7 +312,7 @@ func (c *ApiService) StreamServiceConversationMessage(ChatServiceSid string, Con } func (c *ApiService) streamServiceConversationMessage(response *ListServiceConversationMessageResponse, params *ListServiceConversationMessageParams, recordChannel chan ConversationsV1ServiceConversationMessage, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages diff --git a/rest/conversations/v1/services_conversations_messages_receipts.go b/rest/conversations/v1/services_conversations_messages_receipts.go index 0b113f2e21..e40be1ff40 100644 --- a/rest/conversations/v1/services_conversations_messages_receipts.go +++ b/rest/conversations/v1/services_conversations_messages_receipts.go @@ -54,16 +54,16 @@ func (c *ApiService) FetchServiceConversationMessageReceipt(ChatServiceSid strin // Optional parameters for the method 'ListServiceConversationMessageReceipt' type ListServiceConversationMessageReceiptParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceConversationMessageReceiptParams) SetPageSize(PageSize int) *ListServiceConversationMessageReceiptParams { +func (params *ListServiceConversationMessageReceiptParams) SetPageSize(PageSize int64) *ListServiceConversationMessageReceiptParams { params.PageSize = &PageSize return params } -func (params *ListServiceConversationMessageReceiptParams) SetLimit(Limit int) *ListServiceConversationMessageReceiptParams { +func (params *ListServiceConversationMessageReceiptParams) SetLimit(Limit int64) *ListServiceConversationMessageReceiptParams { params.Limit = &Limit return params } @@ -146,7 +146,7 @@ func (c *ApiService) StreamServiceConversationMessageReceipt(ChatServiceSid stri } func (c *ApiService) streamServiceConversationMessageReceipt(response *ListServiceConversationMessageReceiptResponse, params *ListServiceConversationMessageReceiptParams, recordChannel chan ConversationsV1ServiceConversationMessageReceipt, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.DeliveryReceipts diff --git a/rest/conversations/v1/services_conversations_participants.go b/rest/conversations/v1/services_conversations_participants.go index 30bb1b7b5c..c103bb50ea 100644 --- a/rest/conversations/v1/services_conversations_participants.go +++ b/rest/conversations/v1/services_conversations_participants.go @@ -203,16 +203,16 @@ func (c *ApiService) FetchServiceConversationParticipant(ChatServiceSid string, // Optional parameters for the method 'ListServiceConversationParticipant' type ListServiceConversationParticipantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceConversationParticipantParams) SetPageSize(PageSize int) *ListServiceConversationParticipantParams { +func (params *ListServiceConversationParticipantParams) SetPageSize(PageSize int64) *ListServiceConversationParticipantParams { params.PageSize = &PageSize return params } -func (params *ListServiceConversationParticipantParams) SetLimit(Limit int) *ListServiceConversationParticipantParams { +func (params *ListServiceConversationParticipantParams) SetLimit(Limit int64) *ListServiceConversationParticipantParams { params.Limit = &Limit return params } @@ -294,7 +294,7 @@ func (c *ApiService) StreamServiceConversationParticipant(ChatServiceSid string, } func (c *ApiService) streamServiceConversationParticipant(response *ListServiceConversationParticipantResponse, params *ListServiceConversationParticipantParams, recordChannel chan ConversationsV1ServiceConversationParticipant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/conversations/v1/services_conversations_webhooks.go b/rest/conversations/v1/services_conversations_webhooks.go index 6d3c249c5b..e1fb55038c 100644 --- a/rest/conversations/v1/services_conversations_webhooks.go +++ b/rest/conversations/v1/services_conversations_webhooks.go @@ -174,16 +174,16 @@ func (c *ApiService) FetchServiceConversationScopedWebhook(ChatServiceSid string // Optional parameters for the method 'ListServiceConversationScopedWebhook' type ListServiceConversationScopedWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceConversationScopedWebhookParams) SetPageSize(PageSize int) *ListServiceConversationScopedWebhookParams { +func (params *ListServiceConversationScopedWebhookParams) SetPageSize(PageSize int64) *ListServiceConversationScopedWebhookParams { params.PageSize = &PageSize return params } -func (params *ListServiceConversationScopedWebhookParams) SetLimit(Limit int) *ListServiceConversationScopedWebhookParams { +func (params *ListServiceConversationScopedWebhookParams) SetLimit(Limit int64) *ListServiceConversationScopedWebhookParams { params.Limit = &Limit return params } @@ -265,7 +265,7 @@ func (c *ApiService) StreamServiceConversationScopedWebhook(ChatServiceSid strin } func (c *ApiService) streamServiceConversationScopedWebhook(response *ListServiceConversationScopedWebhookResponse, params *ListServiceConversationScopedWebhookParams, recordChannel chan ConversationsV1ServiceConversationScopedWebhook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Webhooks diff --git a/rest/conversations/v1/services_participant_conversations.go b/rest/conversations/v1/services_participant_conversations.go index 3801747ce0..71c64f23c8 100644 --- a/rest/conversations/v1/services_participant_conversations.go +++ b/rest/conversations/v1/services_participant_conversations.go @@ -30,9 +30,9 @@ type ListServiceParticipantConversationParams struct { // A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. Address *string `json:"Address,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListServiceParticipantConversationParams) SetIdentity(Identity string) *ListServiceParticipantConversationParams { @@ -43,11 +43,11 @@ func (params *ListServiceParticipantConversationParams) SetAddress(Address strin params.Address = &Address return params } -func (params *ListServiceParticipantConversationParams) SetPageSize(PageSize int) *ListServiceParticipantConversationParams { +func (params *ListServiceParticipantConversationParams) SetPageSize(PageSize int64) *ListServiceParticipantConversationParams { params.PageSize = &PageSize return params } -func (params *ListServiceParticipantConversationParams) SetLimit(Limit int) *ListServiceParticipantConversationParams { +func (params *ListServiceParticipantConversationParams) SetLimit(Limit int64) *ListServiceParticipantConversationParams { params.Limit = &Limit return params } @@ -134,7 +134,7 @@ func (c *ApiService) StreamServiceParticipantConversation(ChatServiceSid string, } func (c *ApiService) streamServiceParticipantConversation(response *ListServiceParticipantConversationResponse, params *ListServiceParticipantConversationParams, recordChannel chan ConversationsV1ServiceParticipantConversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/conversations/v1/services_roles.go b/rest/conversations/v1/services_roles.go index 17868c6db7..07520908bf 100644 --- a/rest/conversations/v1/services_roles.go +++ b/rest/conversations/v1/services_roles.go @@ -133,16 +133,16 @@ func (c *ApiService) FetchServiceRole(ChatServiceSid string, Sid string) (*Conve // Optional parameters for the method 'ListServiceRole' type ListServiceRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceRoleParams) SetPageSize(PageSize int) *ListServiceRoleParams { +func (params *ListServiceRoleParams) SetPageSize(PageSize int64) *ListServiceRoleParams { params.PageSize = &PageSize return params } -func (params *ListServiceRoleParams) SetLimit(Limit int) *ListServiceRoleParams { +func (params *ListServiceRoleParams) SetLimit(Limit int64) *ListServiceRoleParams { params.Limit = &Limit return params } @@ -223,7 +223,7 @@ func (c *ApiService) StreamServiceRole(ChatServiceSid string, params *ListServic } func (c *ApiService) streamServiceRole(response *ListServiceRoleResponse, params *ListServiceRoleParams, recordChannel chan ConversationsV1ServiceRole, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles diff --git a/rest/conversations/v1/services_users.go b/rest/conversations/v1/services_users.go index f69423acb6..b109434e96 100644 --- a/rest/conversations/v1/services_users.go +++ b/rest/conversations/v1/services_users.go @@ -163,16 +163,16 @@ func (c *ApiService) FetchServiceUser(ChatServiceSid string, Sid string) (*Conve // Optional parameters for the method 'ListServiceUser' type ListServiceUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceUserParams) SetPageSize(PageSize int) *ListServiceUserParams { +func (params *ListServiceUserParams) SetPageSize(PageSize int64) *ListServiceUserParams { params.PageSize = &PageSize return params } -func (params *ListServiceUserParams) SetLimit(Limit int) *ListServiceUserParams { +func (params *ListServiceUserParams) SetLimit(Limit int64) *ListServiceUserParams { params.Limit = &Limit return params } @@ -253,7 +253,7 @@ func (c *ApiService) StreamServiceUser(ChatServiceSid string, params *ListServic } func (c *ApiService) streamServiceUser(response *ListServiceUserResponse, params *ListServiceUserParams, recordChannel chan ConversationsV1ServiceUser, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users diff --git a/rest/conversations/v1/services_users_conversations.go b/rest/conversations/v1/services_users_conversations.go index af17704f95..b685d9d95c 100644 --- a/rest/conversations/v1/services_users_conversations.go +++ b/rest/conversations/v1/services_users_conversations.go @@ -76,16 +76,16 @@ func (c *ApiService) FetchServiceUserConversation(ChatServiceSid string, UserSid // Optional parameters for the method 'ListServiceUserConversation' type ListServiceUserConversationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceUserConversationParams) SetPageSize(PageSize int) *ListServiceUserConversationParams { +func (params *ListServiceUserConversationParams) SetPageSize(PageSize int64) *ListServiceUserConversationParams { params.PageSize = &PageSize return params } -func (params *ListServiceUserConversationParams) SetLimit(Limit int) *ListServiceUserConversationParams { +func (params *ListServiceUserConversationParams) SetLimit(Limit int64) *ListServiceUserConversationParams { params.Limit = &Limit return params } @@ -167,7 +167,7 @@ func (c *ApiService) StreamServiceUserConversation(ChatServiceSid string, UserSi } func (c *ApiService) streamServiceUserConversation(response *ListServiceUserConversationResponse, params *ListServiceUserConversationParams, recordChannel chan ConversationsV1ServiceUserConversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/conversations/v1/users.go b/rest/conversations/v1/users.go index 17a20e1aa4..d51a28433a 100644 --- a/rest/conversations/v1/users.go +++ b/rest/conversations/v1/users.go @@ -160,16 +160,16 @@ func (c *ApiService) FetchUser(Sid string) (*ConversationsV1User, error) { // Optional parameters for the method 'ListUser' type ListUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams { +func (params *ListUserParams) SetPageSize(PageSize int64) *ListUserParams { params.PageSize = &PageSize return params } -func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { +func (params *ListUserParams) SetLimit(Limit int64) *ListUserParams { params.Limit = &Limit return params } @@ -248,7 +248,7 @@ func (c *ApiService) StreamUser(params *ListUserParams) (chan ConversationsV1Use } func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ConversationsV1User, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users diff --git a/rest/conversations/v1/users_conversations.go b/rest/conversations/v1/users_conversations.go index bdc3349846..100fd52031 100644 --- a/rest/conversations/v1/users_conversations.go +++ b/rest/conversations/v1/users_conversations.go @@ -74,16 +74,16 @@ func (c *ApiService) FetchUserConversation(UserSid string, ConversationSid strin // Optional parameters for the method 'ListUserConversation' type ListUserConversationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserConversationParams) SetPageSize(PageSize int) *ListUserConversationParams { +func (params *ListUserConversationParams) SetPageSize(PageSize int64) *ListUserConversationParams { params.PageSize = &PageSize return params } -func (params *ListUserConversationParams) SetLimit(Limit int) *ListUserConversationParams { +func (params *ListUserConversationParams) SetLimit(Limit int64) *ListUserConversationParams { params.Limit = &Limit return params } @@ -164,7 +164,7 @@ func (c *ApiService) StreamUserConversation(UserSid string, params *ListUserConv } func (c *ApiService) streamUserConversation(response *ListUserConversationResponse, params *ListUserConversationParams, recordChannel chan ConversationsV1UserConversation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/events/v1/docs/ListEventTypeResponseMeta.md b/rest/events/v1/docs/ListEventTypeResponseMeta.md index 0951793c92..d7efddb609 100644 --- a/rest/events/v1/docs/ListEventTypeResponseMeta.md +++ b/rest/events/v1/docs/ListEventTypeResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/SchemasVersionsApi.md b/rest/events/v1/docs/SchemasVersionsApi.md index 48ce476000..945ebb0ad1 100644 --- a/rest/events/v1/docs/SchemasVersionsApi.md +++ b/rest/events/v1/docs/SchemasVersionsApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListSchemaVersionParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/events/v1/docs/SinksApi.md b/rest/events/v1/docs/SinksApi.md index 9be929c0dc..1dcb87d903 100644 --- a/rest/events/v1/docs/SinksApi.md +++ b/rest/events/v1/docs/SinksApi.md @@ -158,8 +158,8 @@ Name | Type | Description ------------- | ------------- | ------------- **InUse** | **bool** | A boolean query parameter filtering the results to return sinks used/not used by a subscription. **Status** | **string** | A String query parameter filtering the results by status `initialized`, `validating`, `active` or `failed`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/events/v1/docs/SubscriptionsApi.md b/rest/events/v1/docs/SubscriptionsApi.md index a58b60f95a..2a6ea85242 100644 --- a/rest/events/v1/docs/SubscriptionsApi.md +++ b/rest/events/v1/docs/SubscriptionsApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListSubscriptionParams struct Name | Type | Description ------------- | ------------- | ------------- **SinkSid** | **string** | The SID of the sink that the list of Subscriptions should be filtered by. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/events/v1/docs/SubscriptionsSubscribedEventsApi.md b/rest/events/v1/docs/SubscriptionsSubscribedEventsApi.md index 48807f749e..b8eaae4571 100644 --- a/rest/events/v1/docs/SubscriptionsSubscribedEventsApi.md +++ b/rest/events/v1/docs/SubscriptionsSubscribedEventsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListSubscribedEventParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/events/v1/docs/TypesApi.md b/rest/events/v1/docs/TypesApi.md index ad9419f8ab..fde5814184 100644 --- a/rest/events/v1/docs/TypesApi.md +++ b/rest/events/v1/docs/TypesApi.md @@ -71,8 +71,8 @@ Other parameters are passed through a pointer to a ListEventTypeParams struct Name | Type | Description ------------- | ------------- | ------------- **SchemaId** | **string** | A string parameter filtering the results to return only the Event Types using a given schema. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/events/v1/model_list_event_type_response_meta.go b/rest/events/v1/model_list_event_type_response_meta.go index 4bf84af970..16567c7648 100644 --- a/rest/events/v1/model_list_event_type_response_meta.go +++ b/rest/events/v1/model_list_event_type_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListEventTypeResponseMeta struct for ListEventTypeResponseMeta type ListEventTypeResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/events/v1/schemas_versions.go b/rest/events/v1/schemas_versions.go index 7ecdb47099..60b4ec0d01 100644 --- a/rest/events/v1/schemas_versions.go +++ b/rest/events/v1/schemas_versions.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchSchemaVersion(Id string, SchemaVersion int) (*EventsV1 // Optional parameters for the method 'ListSchemaVersion' type ListSchemaVersionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSchemaVersionParams) SetPageSize(PageSize int) *ListSchemaVersionParams { +func (params *ListSchemaVersionParams) SetPageSize(PageSize int64) *ListSchemaVersionParams { params.PageSize = &PageSize return params } -func (params *ListSchemaVersionParams) SetLimit(Limit int) *ListSchemaVersionParams { +func (params *ListSchemaVersionParams) SetLimit(Limit int64) *ListSchemaVersionParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamSchemaVersion(Id string, params *ListSchemaVersionPar } func (c *ApiService) streamSchemaVersion(response *ListSchemaVersionResponse, params *ListSchemaVersionParams, recordChannel chan EventsV1SchemaVersion, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SchemaVersions diff --git a/rest/events/v1/sinks.go b/rest/events/v1/sinks.go index 2c69c0f7d5..81de59240c 100644 --- a/rest/events/v1/sinks.go +++ b/rest/events/v1/sinks.go @@ -138,9 +138,9 @@ type ListSinkParams struct { // A String query parameter filtering the results by status `initialized`, `validating`, `active` or `failed`. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSinkParams) SetInUse(InUse bool) *ListSinkParams { @@ -151,11 +151,11 @@ func (params *ListSinkParams) SetStatus(Status string) *ListSinkParams { params.Status = &Status return params } -func (params *ListSinkParams) SetPageSize(PageSize int) *ListSinkParams { +func (params *ListSinkParams) SetPageSize(PageSize int64) *ListSinkParams { params.PageSize = &PageSize return params } -func (params *ListSinkParams) SetLimit(Limit int) *ListSinkParams { +func (params *ListSinkParams) SetLimit(Limit int64) *ListSinkParams { params.Limit = &Limit return params } @@ -240,7 +240,7 @@ func (c *ApiService) StreamSink(params *ListSinkParams) (chan EventsV1Sink, chan } func (c *ApiService) streamSink(response *ListSinkResponse, params *ListSinkParams, recordChannel chan EventsV1Sink, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sinks diff --git a/rest/events/v1/subscriptions.go b/rest/events/v1/subscriptions.go index 5354d32d4f..f6b2b1bde8 100644 --- a/rest/events/v1/subscriptions.go +++ b/rest/events/v1/subscriptions.go @@ -147,20 +147,20 @@ type ListSubscriptionParams struct { // The SID of the sink that the list of Subscriptions should be filtered by. SinkSid *string `json:"SinkSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSubscriptionParams) SetSinkSid(SinkSid string) *ListSubscriptionParams { params.SinkSid = &SinkSid return params } -func (params *ListSubscriptionParams) SetPageSize(PageSize int) *ListSubscriptionParams { +func (params *ListSubscriptionParams) SetPageSize(PageSize int64) *ListSubscriptionParams { params.PageSize = &PageSize return params } -func (params *ListSubscriptionParams) SetLimit(Limit int) *ListSubscriptionParams { +func (params *ListSubscriptionParams) SetLimit(Limit int64) *ListSubscriptionParams { params.Limit = &Limit return params } @@ -242,7 +242,7 @@ func (c *ApiService) StreamSubscription(params *ListSubscriptionParams) (chan Ev } func (c *ApiService) streamSubscription(response *ListSubscriptionResponse, params *ListSubscriptionParams, recordChannel chan EventsV1Subscription, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Subscriptions diff --git a/rest/events/v1/subscriptions_subscribed_events.go b/rest/events/v1/subscriptions_subscribed_events.go index e561cef6d9..c7cd96a395 100644 --- a/rest/events/v1/subscriptions_subscribed_events.go +++ b/rest/events/v1/subscriptions_subscribed_events.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchSubscribedEvent(SubscriptionSid string, Type string) ( // Optional parameters for the method 'ListSubscribedEvent' type ListSubscribedEventParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSubscribedEventParams) SetPageSize(PageSize int) *ListSubscribedEventParams { +func (params *ListSubscribedEventParams) SetPageSize(PageSize int64) *ListSubscribedEventParams { params.PageSize = &PageSize return params } -func (params *ListSubscribedEventParams) SetLimit(Limit int) *ListSubscribedEventParams { +func (params *ListSubscribedEventParams) SetLimit(Limit int64) *ListSubscribedEventParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamSubscribedEvent(SubscriptionSid string, params *ListS } func (c *ApiService) streamSubscribedEvent(response *ListSubscribedEventResponse, params *ListSubscribedEventParams, recordChannel chan EventsV1SubscribedEvent, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Types diff --git a/rest/events/v1/types.go b/rest/events/v1/types.go index ee0ea459f7..0b76a804e3 100644 --- a/rest/events/v1/types.go +++ b/rest/events/v1/types.go @@ -53,20 +53,20 @@ type ListEventTypeParams struct { // A string parameter filtering the results to return only the Event Types using a given schema. SchemaId *string `json:"SchemaId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListEventTypeParams) SetSchemaId(SchemaId string) *ListEventTypeParams { params.SchemaId = &SchemaId return params } -func (params *ListEventTypeParams) SetPageSize(PageSize int) *ListEventTypeParams { +func (params *ListEventTypeParams) SetPageSize(PageSize int64) *ListEventTypeParams { params.PageSize = &PageSize return params } -func (params *ListEventTypeParams) SetLimit(Limit int) *ListEventTypeParams { +func (params *ListEventTypeParams) SetLimit(Limit int64) *ListEventTypeParams { params.Limit = &Limit return params } @@ -148,7 +148,7 @@ func (c *ApiService) StreamEventType(params *ListEventTypeParams) (chan EventsV1 } func (c *ApiService) streamEventType(response *ListEventTypeResponse, params *ListEventTypeParams, recordChannel chan EventsV1EventType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Types diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 8583ac9dd2..74035d0f63 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -37,7 +37,6 @@ Class | Method | HTTP request | Description *ChannelsApi* | [**FetchChannel**](docs/ChannelsApi.md#fetchchannel) | **Get** /v1/Channels/{Sid} | *ChannelsApi* | [**ListChannel**](docs/ChannelsApi.md#listchannel) | **Get** /v1/Channels | *ConfigurationApi* | [**FetchConfiguration**](docs/ConfigurationApi.md#fetchconfiguration) | **Get** /v1/Configuration | -*ConfigurationApi* | [**UpdateConfiguration**](docs/ConfigurationApi.md#updateconfiguration) | **Post** /v1/Configuration | *FlexFlowsApi* | [**CreateFlexFlow**](docs/FlexFlowsApi.md#createflexflow) | **Post** /v1/FlexFlows | *FlexFlowsApi* | [**DeleteFlexFlow**](docs/FlexFlowsApi.md#deleteflexflow) | **Delete** /v1/FlexFlows/{Sid} | *FlexFlowsApi* | [**FetchFlexFlow**](docs/FlexFlowsApi.md#fetchflexflow) | **Get** /v1/FlexFlows/{Sid} | diff --git a/rest/flex/v1/channels.go b/rest/flex/v1/channels.go index 4e674c50e1..e204267b1a 100644 --- a/rest/flex/v1/channels.go +++ b/rest/flex/v1/channels.go @@ -88,7 +88,6 @@ func (params *CreateChannelParams) SetLongLived(LongLived bool) *CreateChannelPa return params } -// func (c *ApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, error) { path := "/v1/Channels" @@ -143,7 +142,6 @@ func (c *ApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, return ps, err } -// func (c *ApiService) DeleteChannel(Sid string) error { path := "/v1/Channels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -163,7 +161,6 @@ func (c *ApiService) DeleteChannel(Sid string) error { return nil } -// func (c *ApiService) FetchChannel(Sid string) (*FlexV1Channel, error) { path := "/v1/Channels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -191,16 +188,16 @@ func (c *ApiService) FetchChannel(Sid string) (*FlexV1Channel, error) { // Optional parameters for the method 'ListChannel' type ListChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListChannelParams) SetPageSize(PageSize int) *ListChannelParams { +func (params *ListChannelParams) SetPageSize(PageSize int64) *ListChannelParams { params.PageSize = &PageSize return params } -func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { +func (params *ListChannelParams) SetLimit(Limit int64) *ListChannelParams { params.Limit = &Limit return params } @@ -279,7 +276,7 @@ func (c *ApiService) StreamChannel(params *ListChannelParams) (chan FlexV1Channe } func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan FlexV1Channel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.FlexChatChannels diff --git a/rest/flex/v1/configuration.go b/rest/flex/v1/configuration.go index 6e3b8a7755..be57e010b7 100644 --- a/rest/flex/v1/configuration.go +++ b/rest/flex/v1/configuration.go @@ -30,7 +30,6 @@ func (params *FetchConfigurationParams) SetUiVersion(UiVersion string) *FetchCon return params } -// func (c *ApiService) FetchConfiguration(params *FetchConfigurationParams) (*FlexV1Configuration, error) { path := "/v1/Configuration" @@ -57,47 +56,3 @@ func (c *ApiService) FetchConfiguration(params *FetchConfigurationParams) (*Flex return ps, err } - -// Optional parameters for the method 'UpdateConfiguration' -type UpdateConfigurationParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *UpdateConfigurationParams) SetBody(Body map[string]interface{}) *UpdateConfigurationParams { - params.Body = &Body - return params -} - -// -func (c *ApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*FlexV1Configuration, error) { - path := "/v1/Configuration" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - 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 -} diff --git a/rest/flex/v1/docs/ChannelsApi.md b/rest/flex/v1/docs/ChannelsApi.md index 491864e244..6fd7087ac9 100644 --- a/rest/flex/v1/docs/ChannelsApi.md +++ b/rest/flex/v1/docs/ChannelsApi.md @@ -162,8 +162,8 @@ Other parameters are passed through a pointer to a ListChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/ConfigurationApi.md b/rest/flex/v1/docs/ConfigurationApi.md index 7153f66272..587f244f9e 100644 --- a/rest/flex/v1/docs/ConfigurationApi.md +++ b/rest/flex/v1/docs/ConfigurationApi.md @@ -5,7 +5,6 @@ All URIs are relative to *https://flex-api.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**FetchConfiguration**](ConfigurationApi.md#FetchConfiguration) | **Get** /v1/Configuration | -[**UpdateConfiguration**](ConfigurationApi.md#UpdateConfiguration) | **Post** /v1/Configuration | @@ -47,42 +46,3 @@ Name | Type | Description [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## UpdateConfiguration - -> FlexV1Configuration UpdateConfiguration(ctx, optional) - - - - - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a UpdateConfigurationParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**FlexV1Configuration**](FlexV1Configuration.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[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/FlexFlowsApi.md b/rest/flex/v1/docs/FlexFlowsApi.md index 5217f1474c..833321de34 100644 --- a/rest/flex/v1/docs/FlexFlowsApi.md +++ b/rest/flex/v1/docs/FlexFlowsApi.md @@ -171,8 +171,8 @@ Other parameters are passed through a pointer to a ListFlexFlowParams struct Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The `friendly_name` of the Flex Flow resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsConversationsApi.md b/rest/flex/v1/docs/InsightsConversationsApi.md index 07fa415dfe..454226b76e 100644 --- a/rest/flex/v1/docs/InsightsConversationsApi.md +++ b/rest/flex/v1/docs/InsightsConversationsApi.md @@ -29,8 +29,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Authorization** | **string** | The Authorization HTTP request header **SegmentId** | **string** | Unique Id of the segment for which conversation details needs to be fetched -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsQualityManagementAssessmentsApi.md b/rest/flex/v1/docs/InsightsQualityManagementAssessmentsApi.md index d81554e21e..1db8c08887 100644 --- a/rest/flex/v1/docs/InsightsQualityManagementAssessmentsApi.md +++ b/rest/flex/v1/docs/InsightsQualityManagementAssessmentsApi.md @@ -80,8 +80,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Authorization** | **string** | The Authorization HTTP request header **SegmentId** | **string** | The id of the segment. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsQualityManagementAssessmentsCommentsApi.md b/rest/flex/v1/docs/InsightsQualityManagementAssessmentsCommentsApi.md index d7fb07da59..5f259f923b 100644 --- a/rest/flex/v1/docs/InsightsQualityManagementAssessmentsCommentsApi.md +++ b/rest/flex/v1/docs/InsightsQualityManagementAssessmentsCommentsApi.md @@ -76,8 +76,8 @@ Name | Type | Description **Authorization** | **string** | The Authorization HTTP request header **SegmentId** | **string** | The id of the segment. **AgentId** | **string** | The id of the agent. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsQualityManagementCategoriesApi.md b/rest/flex/v1/docs/InsightsQualityManagementCategoriesApi.md index 4ccc1c5cd0..d13841c4e4 100644 --- a/rest/flex/v1/docs/InsightsQualityManagementCategoriesApi.md +++ b/rest/flex/v1/docs/InsightsQualityManagementCategoriesApi.md @@ -114,8 +114,8 @@ Other parameters are passed through a pointer to a ListInsightsQuestionnairesCat Name | Type | Description ------------- | ------------- | ------------- **Authorization** | **string** | The Authorization HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsQualityManagementQuestionnairesApi.md b/rest/flex/v1/docs/InsightsQualityManagementQuestionnairesApi.md index 81c02fbbd4..7c4439efb6 100644 --- a/rest/flex/v1/docs/InsightsQualityManagementQuestionnairesApi.md +++ b/rest/flex/v1/docs/InsightsQualityManagementQuestionnairesApi.md @@ -162,8 +162,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Authorization** | **string** | The Authorization HTTP request header **IncludeInactive** | **bool** | Flag indicating whether to include inactive questionnaires or not -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsQualityManagementQuestionsApi.md b/rest/flex/v1/docs/InsightsQualityManagementQuestionsApi.md index f3f5e25890..2895faed8d 100644 --- a/rest/flex/v1/docs/InsightsQualityManagementQuestionsApi.md +++ b/rest/flex/v1/docs/InsightsQualityManagementQuestionsApi.md @@ -119,8 +119,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Authorization** | **string** | The Authorization HTTP request header **CategorySid** | **[]string** | The list of category SIDs -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InsightsSegmentsApi.md b/rest/flex/v1/docs/InsightsSegmentsApi.md index 607fdcd5bd..0cf31f0319 100644 --- a/rest/flex/v1/docs/InsightsSegmentsApi.md +++ b/rest/flex/v1/docs/InsightsSegmentsApi.md @@ -30,8 +30,8 @@ Name | Type | Description **Authorization** | **string** | The Authorization HTTP request header **SegmentId** | **string** | To unique id of the segment **ReservationId** | **[]string** | The list of reservation Ids -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InteractionsChannelsApi.md b/rest/flex/v1/docs/InteractionsChannelsApi.md index a2a2a52938..60c97b0176 100644 --- a/rest/flex/v1/docs/InteractionsChannelsApi.md +++ b/rest/flex/v1/docs/InteractionsChannelsApi.md @@ -76,8 +76,8 @@ Other parameters are passed through a pointer to a ListInteractionChannelParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InteractionsChannelsInvitesApi.md b/rest/flex/v1/docs/InteractionsChannelsInvitesApi.md index 90ae18ca60..860d02daa1 100644 --- a/rest/flex/v1/docs/InteractionsChannelsInvitesApi.md +++ b/rest/flex/v1/docs/InteractionsChannelsInvitesApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListInteractionChannelInviteP Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/InteractionsChannelsParticipantsApi.md b/rest/flex/v1/docs/InteractionsChannelsParticipantsApi.md index 61b756e448..07050687b9 100644 --- a/rest/flex/v1/docs/InteractionsChannelsParticipantsApi.md +++ b/rest/flex/v1/docs/InteractionsChannelsParticipantsApi.md @@ -80,8 +80,8 @@ Other parameters are passed through a pointer to a ListInteractionChannelPartici Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/ListChannelResponseMeta.md b/rest/flex/v1/docs/ListChannelResponseMeta.md index b007fb5e68..d507879b9a 100644 --- a/rest/flex/v1/docs/ListChannelResponseMeta.md +++ b/rest/flex/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/PluginServiceConfigurationsApi.md b/rest/flex/v1/docs/PluginServiceConfigurationsApi.md index 7d4136eb66..05c77214d8 100644 --- a/rest/flex/v1/docs/PluginServiceConfigurationsApi.md +++ b/rest/flex/v1/docs/PluginServiceConfigurationsApi.md @@ -115,8 +115,8 @@ Other parameters are passed through a pointer to a ListPluginConfigurationParams Name | Type | Description ------------- | ------------- | ------------- **FlexMetadata** | **string** | The Flex-Metadata HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md b/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md index e39a960d8d..7248b7a7cb 100644 --- a/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md +++ b/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListConfiguredPluginParams st Name | Type | Description ------------- | ------------- | ------------- **FlexMetadata** | **string** | The Flex-Metadata HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/PluginServicePluginsApi.md b/rest/flex/v1/docs/PluginServicePluginsApi.md index 69b9ceb985..90ca703516 100644 --- a/rest/flex/v1/docs/PluginServicePluginsApi.md +++ b/rest/flex/v1/docs/PluginServicePluginsApi.md @@ -116,8 +116,8 @@ Other parameters are passed through a pointer to a ListPluginParams struct Name | Type | Description ------------- | ------------- | ------------- **FlexMetadata** | **string** | The Flex-Metadata HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md b/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md index 281f0a4d82..ab0736cdee 100644 --- a/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md +++ b/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md @@ -127,8 +127,8 @@ Other parameters are passed through a pointer to a ListPluginVersionParams struc Name | Type | Description ------------- | ------------- | ------------- **FlexMetadata** | **string** | The Flex-Metadata HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/PluginServiceReleasesApi.md b/rest/flex/v1/docs/PluginServiceReleasesApi.md index 55bd20f03d..fafb34ab58 100644 --- a/rest/flex/v1/docs/PluginServiceReleasesApi.md +++ b/rest/flex/v1/docs/PluginServiceReleasesApi.md @@ -113,8 +113,8 @@ Other parameters are passed through a pointer to a ListPluginReleaseParams struc Name | Type | Description ------------- | ------------- | ------------- **FlexMetadata** | **string** | The Flex-Metadata HTTP request header -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/docs/WebChannelsApi.md b/rest/flex/v1/docs/WebChannelsApi.md index b1e7db0557..e35cb61330 100644 --- a/rest/flex/v1/docs/WebChannelsApi.md +++ b/rest/flex/v1/docs/WebChannelsApi.md @@ -159,8 +159,8 @@ Other parameters are passed through a pointer to a ListWebChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/flex/v1/flex_flows.go b/rest/flex/v1/flex_flows.go index 51578b437e..bc005f16c6 100644 --- a/rest/flex/v1/flex_flows.go +++ b/rest/flex/v1/flex_flows.go @@ -130,7 +130,6 @@ func (params *CreateFlexFlowParams) SetIntegrationRetryCount(IntegrationRetryCou return params } -// func (c *ApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows" @@ -206,7 +205,6 @@ func (c *ApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFl return ps, err } -// func (c *ApiService) DeleteFlexFlow(Sid string) error { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -226,7 +224,6 @@ func (c *ApiService) DeleteFlexFlow(Sid string) error { return nil } -// func (c *ApiService) FetchFlexFlow(Sid string) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -256,20 +253,20 @@ type ListFlexFlowParams struct { // The `friendly_name` of the Flex Flow resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListFlexFlowParams) SetFriendlyName(FriendlyName string) *ListFlexFlowParams { params.FriendlyName = &FriendlyName return params } -func (params *ListFlexFlowParams) SetPageSize(PageSize int) *ListFlexFlowParams { +func (params *ListFlexFlowParams) SetPageSize(PageSize int64) *ListFlexFlowParams { params.PageSize = &PageSize return params } -func (params *ListFlexFlowParams) SetLimit(Limit int) *ListFlexFlowParams { +func (params *ListFlexFlowParams) SetLimit(Limit int64) *ListFlexFlowParams { params.Limit = &Limit return params } @@ -351,7 +348,7 @@ func (c *ApiService) StreamFlexFlow(params *ListFlexFlowParams) (chan FlexV1Flex } func (c *ApiService) streamFlexFlow(response *ListFlexFlowResponse, params *ListFlexFlowParams, recordChannel chan FlexV1FlexFlow, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.FlexFlows @@ -505,7 +502,6 @@ func (params *UpdateFlexFlowParams) SetIntegrationRetryCount(IntegrationRetryCou return params } -// func (c *ApiService) UpdateFlexFlow(Sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/insights_conversations.go b/rest/flex/v1/insights_conversations.go index 878b6c0003..bce3ddec3f 100644 --- a/rest/flex/v1/insights_conversations.go +++ b/rest/flex/v1/insights_conversations.go @@ -29,9 +29,9 @@ type ListInsightsConversationsParams struct { // Unique Id of the segment for which conversation details needs to be fetched SegmentId *string `json:"SegmentId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsConversationsParams) SetAuthorization(Authorization string) *ListInsightsConversationsParams { @@ -42,11 +42,11 @@ func (params *ListInsightsConversationsParams) SetSegmentId(SegmentId string) *L params.SegmentId = &SegmentId return params } -func (params *ListInsightsConversationsParams) SetPageSize(PageSize int) *ListInsightsConversationsParams { +func (params *ListInsightsConversationsParams) SetPageSize(PageSize int64) *ListInsightsConversationsParams { params.PageSize = &PageSize return params } -func (params *ListInsightsConversationsParams) SetLimit(Limit int) *ListInsightsConversationsParams { +func (params *ListInsightsConversationsParams) SetLimit(Limit int64) *ListInsightsConversationsParams { params.Limit = &Limit return params } @@ -128,7 +128,7 @@ func (c *ApiService) StreamInsightsConversations(params *ListInsightsConversatio } func (c *ApiService) streamInsightsConversations(response *ListInsightsConversationsResponse, params *ListInsightsConversationsParams, recordChannel chan FlexV1InsightsConversations, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conversations diff --git a/rest/flex/v1/insights_quality_management_assessments.go b/rest/flex/v1/insights_quality_management_assessments.go index 75d313c509..829da5a277 100644 --- a/rest/flex/v1/insights_quality_management_assessments.go +++ b/rest/flex/v1/insights_quality_management_assessments.go @@ -159,9 +159,9 @@ type ListInsightsAssessmentsParams struct { // The id of the segment. SegmentId *string `json:"SegmentId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsAssessmentsParams) SetAuthorization(Authorization string) *ListInsightsAssessmentsParams { @@ -172,11 +172,11 @@ func (params *ListInsightsAssessmentsParams) SetSegmentId(SegmentId string) *Lis params.SegmentId = &SegmentId return params } -func (params *ListInsightsAssessmentsParams) SetPageSize(PageSize int) *ListInsightsAssessmentsParams { +func (params *ListInsightsAssessmentsParams) SetPageSize(PageSize int64) *ListInsightsAssessmentsParams { params.PageSize = &PageSize return params } -func (params *ListInsightsAssessmentsParams) SetLimit(Limit int) *ListInsightsAssessmentsParams { +func (params *ListInsightsAssessmentsParams) SetLimit(Limit int64) *ListInsightsAssessmentsParams { params.Limit = &Limit return params } @@ -258,7 +258,7 @@ func (c *ApiService) StreamInsightsAssessments(params *ListInsightsAssessmentsPa } func (c *ApiService) streamInsightsAssessments(response *ListInsightsAssessmentsResponse, params *ListInsightsAssessmentsParams, recordChannel chan FlexV1InsightsAssessments, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Assessments diff --git a/rest/flex/v1/insights_quality_management_assessments_comments.go b/rest/flex/v1/insights_quality_management_assessments_comments.go index 1c67c672f6..304c91ac7d 100644 --- a/rest/flex/v1/insights_quality_management_assessments_comments.go +++ b/rest/flex/v1/insights_quality_management_assessments_comments.go @@ -124,9 +124,9 @@ type ListInsightsAssessmentsCommentParams struct { // The id of the agent. AgentId *string `json:"AgentId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsAssessmentsCommentParams) SetAuthorization(Authorization string) *ListInsightsAssessmentsCommentParams { @@ -141,11 +141,11 @@ func (params *ListInsightsAssessmentsCommentParams) SetAgentId(AgentId string) * params.AgentId = &AgentId return params } -func (params *ListInsightsAssessmentsCommentParams) SetPageSize(PageSize int) *ListInsightsAssessmentsCommentParams { +func (params *ListInsightsAssessmentsCommentParams) SetPageSize(PageSize int64) *ListInsightsAssessmentsCommentParams { params.PageSize = &PageSize return params } -func (params *ListInsightsAssessmentsCommentParams) SetLimit(Limit int) *ListInsightsAssessmentsCommentParams { +func (params *ListInsightsAssessmentsCommentParams) SetLimit(Limit int64) *ListInsightsAssessmentsCommentParams { params.Limit = &Limit return params } @@ -230,7 +230,7 @@ func (c *ApiService) StreamInsightsAssessmentsComment(params *ListInsightsAssess } func (c *ApiService) streamInsightsAssessmentsComment(response *ListInsightsAssessmentsCommentResponse, params *ListInsightsAssessmentsCommentParams, recordChannel chan FlexV1InsightsAssessmentsComment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Comments diff --git a/rest/flex/v1/insights_quality_management_categories.go b/rest/flex/v1/insights_quality_management_categories.go index 087b1cfffc..b8802f07e1 100644 --- a/rest/flex/v1/insights_quality_management_categories.go +++ b/rest/flex/v1/insights_quality_management_categories.go @@ -82,7 +82,6 @@ func (params *DeleteInsightsQuestionnairesCategoryParams) SetAuthorization(Autho return params } -// func (c *ApiService) DeleteInsightsQuestionnairesCategory(CategorySid string, params *DeleteInsightsQuestionnairesCategoryParams) error { path := "/v1/Insights/QualityManagement/Categories/{CategorySid}" path = strings.Replace(path, "{"+"CategorySid"+"}", CategorySid, -1) @@ -110,20 +109,20 @@ type ListInsightsQuestionnairesCategoryParams struct { // The Authorization HTTP request header Authorization *string `json:"Authorization,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsQuestionnairesCategoryParams) SetAuthorization(Authorization string) *ListInsightsQuestionnairesCategoryParams { params.Authorization = &Authorization return params } -func (params *ListInsightsQuestionnairesCategoryParams) SetPageSize(PageSize int) *ListInsightsQuestionnairesCategoryParams { +func (params *ListInsightsQuestionnairesCategoryParams) SetPageSize(PageSize int64) *ListInsightsQuestionnairesCategoryParams { params.PageSize = &PageSize return params } -func (params *ListInsightsQuestionnairesCategoryParams) SetLimit(Limit int) *ListInsightsQuestionnairesCategoryParams { +func (params *ListInsightsQuestionnairesCategoryParams) SetLimit(Limit int64) *ListInsightsQuestionnairesCategoryParams { params.Limit = &Limit return params } @@ -202,7 +201,7 @@ func (c *ApiService) StreamInsightsQuestionnairesCategory(params *ListInsightsQu } func (c *ApiService) streamInsightsQuestionnairesCategory(response *ListInsightsQuestionnairesCategoryResponse, params *ListInsightsQuestionnairesCategoryParams, recordChannel chan FlexV1InsightsQuestionnairesCategory, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Categories diff --git a/rest/flex/v1/insights_quality_management_questionnaires.go b/rest/flex/v1/insights_quality_management_questionnaires.go index 2841ae5d0a..2f9d13b38c 100644 --- a/rest/flex/v1/insights_quality_management_questionnaires.go +++ b/rest/flex/v1/insights_quality_management_questionnaires.go @@ -180,9 +180,9 @@ type ListInsightsQuestionnairesParams struct { // Flag indicating whether to include inactive questionnaires or not IncludeInactive *bool `json:"IncludeInactive,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsQuestionnairesParams) SetAuthorization(Authorization string) *ListInsightsQuestionnairesParams { @@ -193,11 +193,11 @@ func (params *ListInsightsQuestionnairesParams) SetIncludeInactive(IncludeInacti params.IncludeInactive = &IncludeInactive return params } -func (params *ListInsightsQuestionnairesParams) SetPageSize(PageSize int) *ListInsightsQuestionnairesParams { +func (params *ListInsightsQuestionnairesParams) SetPageSize(PageSize int64) *ListInsightsQuestionnairesParams { params.PageSize = &PageSize return params } -func (params *ListInsightsQuestionnairesParams) SetLimit(Limit int) *ListInsightsQuestionnairesParams { +func (params *ListInsightsQuestionnairesParams) SetLimit(Limit int64) *ListInsightsQuestionnairesParams { params.Limit = &Limit return params } @@ -279,7 +279,7 @@ func (c *ApiService) StreamInsightsQuestionnaires(params *ListInsightsQuestionna } func (c *ApiService) streamInsightsQuestionnaires(response *ListInsightsQuestionnairesResponse, params *ListInsightsQuestionnairesParams, recordChannel chan FlexV1InsightsQuestionnaires, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Questionnaires diff --git a/rest/flex/v1/insights_quality_management_questions.go b/rest/flex/v1/insights_quality_management_questions.go index f0ef1f3a31..1c5158a56e 100644 --- a/rest/flex/v1/insights_quality_management_questions.go +++ b/rest/flex/v1/insights_quality_management_questions.go @@ -118,7 +118,6 @@ func (params *DeleteInsightsQuestionnairesQuestionParams) SetAuthorization(Autho return params } -// func (c *ApiService) DeleteInsightsQuestionnairesQuestion(QuestionSid string, params *DeleteInsightsQuestionnairesQuestionParams) error { path := "/v1/Insights/QualityManagement/Questions/{QuestionSid}" path = strings.Replace(path, "{"+"QuestionSid"+"}", QuestionSid, -1) @@ -148,9 +147,9 @@ type ListInsightsQuestionnairesQuestionParams struct { // The list of category SIDs CategorySid *[]string `json:"CategorySid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsQuestionnairesQuestionParams) SetAuthorization(Authorization string) *ListInsightsQuestionnairesQuestionParams { @@ -161,11 +160,11 @@ func (params *ListInsightsQuestionnairesQuestionParams) SetCategorySid(CategoryS params.CategorySid = &CategorySid return params } -func (params *ListInsightsQuestionnairesQuestionParams) SetPageSize(PageSize int) *ListInsightsQuestionnairesQuestionParams { +func (params *ListInsightsQuestionnairesQuestionParams) SetPageSize(PageSize int64) *ListInsightsQuestionnairesQuestionParams { params.PageSize = &PageSize return params } -func (params *ListInsightsQuestionnairesQuestionParams) SetLimit(Limit int) *ListInsightsQuestionnairesQuestionParams { +func (params *ListInsightsQuestionnairesQuestionParams) SetLimit(Limit int64) *ListInsightsQuestionnairesQuestionParams { params.Limit = &Limit return params } @@ -249,7 +248,7 @@ func (c *ApiService) StreamInsightsQuestionnairesQuestion(params *ListInsightsQu } func (c *ApiService) streamInsightsQuestionnairesQuestion(response *ListInsightsQuestionnairesQuestionResponse, params *ListInsightsQuestionnairesQuestionParams, recordChannel chan FlexV1InsightsQuestionnairesQuestion, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Questions diff --git a/rest/flex/v1/insights_segments.go b/rest/flex/v1/insights_segments.go index 14aa8f9206..6166aee88e 100644 --- a/rest/flex/v1/insights_segments.go +++ b/rest/flex/v1/insights_segments.go @@ -31,9 +31,9 @@ type ListInsightsSegmentsParams struct { // The list of reservation Ids ReservationId *[]string `json:"ReservationId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInsightsSegmentsParams) SetAuthorization(Authorization string) *ListInsightsSegmentsParams { @@ -48,11 +48,11 @@ func (params *ListInsightsSegmentsParams) SetReservationId(ReservationId []strin params.ReservationId = &ReservationId return params } -func (params *ListInsightsSegmentsParams) SetPageSize(PageSize int) *ListInsightsSegmentsParams { +func (params *ListInsightsSegmentsParams) SetPageSize(PageSize int64) *ListInsightsSegmentsParams { params.PageSize = &PageSize return params } -func (params *ListInsightsSegmentsParams) SetLimit(Limit int) *ListInsightsSegmentsParams { +func (params *ListInsightsSegmentsParams) SetLimit(Limit int64) *ListInsightsSegmentsParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamInsightsSegments(params *ListInsightsSegmentsParams) } func (c *ApiService) streamInsightsSegments(response *ListInsightsSegmentsResponse, params *ListInsightsSegmentsParams, recordChannel chan FlexV1InsightsSegments, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Segments diff --git a/rest/flex/v1/interactions.go b/rest/flex/v1/interactions.go index 3793b85d91..daf23b7561 100644 --- a/rest/flex/v1/interactions.go +++ b/rest/flex/v1/interactions.go @@ -89,7 +89,6 @@ func (c *ApiService) CreateInteraction(params *CreateInteractionParams) (*FlexV1 return ps, err } -// func (c *ApiService) FetchInteraction(Sid string) (*FlexV1Interaction, error) { path := "/v1/Interactions/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/interactions_channels.go b/rest/flex/v1/interactions_channels.go index 2ea851e3e2..7a30be757d 100644 --- a/rest/flex/v1/interactions_channels.go +++ b/rest/flex/v1/interactions_channels.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchInteractionChannel(InteractionSid string, Sid string) // Optional parameters for the method 'ListInteractionChannel' type ListInteractionChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInteractionChannelParams) SetPageSize(PageSize int) *ListInteractionChannelParams { +func (params *ListInteractionChannelParams) SetPageSize(PageSize int64) *ListInteractionChannelParams { params.PageSize = &PageSize return params } -func (params *ListInteractionChannelParams) SetLimit(Limit int) *ListInteractionChannelParams { +func (params *ListInteractionChannelParams) SetLimit(Limit int64) *ListInteractionChannelParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamInteractionChannel(InteractionSid string, params *Lis } func (c *ApiService) streamInteractionChannel(response *ListInteractionChannelResponse, params *ListInteractionChannelParams, recordChannel chan FlexV1InteractionChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels diff --git a/rest/flex/v1/interactions_channels_invites.go b/rest/flex/v1/interactions_channels_invites.go index cf66883098..a83261ccfa 100644 --- a/rest/flex/v1/interactions_channels_invites.go +++ b/rest/flex/v1/interactions_channels_invites.go @@ -73,16 +73,16 @@ func (c *ApiService) CreateInteractionChannelInvite(InteractionSid string, Chann // Optional parameters for the method 'ListInteractionChannelInvite' type ListInteractionChannelInviteParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInteractionChannelInviteParams) SetPageSize(PageSize int) *ListInteractionChannelInviteParams { +func (params *ListInteractionChannelInviteParams) SetPageSize(PageSize int64) *ListInteractionChannelInviteParams { params.PageSize = &PageSize return params } -func (params *ListInteractionChannelInviteParams) SetLimit(Limit int) *ListInteractionChannelInviteParams { +func (params *ListInteractionChannelInviteParams) SetLimit(Limit int64) *ListInteractionChannelInviteParams { params.Limit = &Limit return params } @@ -164,7 +164,7 @@ func (c *ApiService) StreamInteractionChannelInvite(InteractionSid string, Chann } func (c *ApiService) streamInteractionChannelInvite(response *ListInteractionChannelInviteResponse, params *ListInteractionChannelInviteParams, recordChannel chan FlexV1InteractionChannelInvite, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Invites diff --git a/rest/flex/v1/interactions_channels_participants.go b/rest/flex/v1/interactions_channels_participants.go index 23317b7e4b..1ef55a9182 100644 --- a/rest/flex/v1/interactions_channels_participants.go +++ b/rest/flex/v1/interactions_channels_participants.go @@ -97,16 +97,16 @@ func (c *ApiService) CreateInteractionChannelParticipant(InteractionSid string, // Optional parameters for the method 'ListInteractionChannelParticipant' type ListInteractionChannelParticipantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInteractionChannelParticipantParams) SetPageSize(PageSize int) *ListInteractionChannelParticipantParams { +func (params *ListInteractionChannelParticipantParams) SetPageSize(PageSize int64) *ListInteractionChannelParticipantParams { params.PageSize = &PageSize return params } -func (params *ListInteractionChannelParticipantParams) SetLimit(Limit int) *ListInteractionChannelParticipantParams { +func (params *ListInteractionChannelParticipantParams) SetLimit(Limit int64) *ListInteractionChannelParticipantParams { params.Limit = &Limit return params } @@ -188,7 +188,7 @@ func (c *ApiService) StreamInteractionChannelParticipant(InteractionSid string, } func (c *ApiService) streamInteractionChannelParticipant(response *ListInteractionChannelParticipantResponse, params *ListInteractionChannelParticipantParams, recordChannel chan FlexV1InteractionChannelParticipant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/flex/v1/model_list_channel_response_meta.go b/rest/flex/v1/model_list_channel_response_meta.go index c4bfb6d8f7..1be9de7f3a 100644 --- a/rest/flex/v1/model_list_channel_response_meta.go +++ b/rest/flex/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/flex/v1/plugin_service_configurations.go b/rest/flex/v1/plugin_service_configurations.go index 25500b8893..c441cb9cc6 100644 --- a/rest/flex/v1/plugin_service_configurations.go +++ b/rest/flex/v1/plugin_service_configurations.go @@ -52,7 +52,6 @@ func (params *CreatePluginConfigurationParams) SetDescription(Description string return params } -// func (c *ApiService) CreatePluginConfiguration(params *CreatePluginConfigurationParams) (*FlexV1PluginConfiguration, error) { path := "/v1/PluginService/Configurations" @@ -108,7 +107,6 @@ func (params *FetchPluginConfigurationParams) SetFlexMetadata(FlexMetadata strin return params } -// func (c *ApiService) FetchPluginConfiguration(Sid string, params *FetchPluginConfigurationParams) (*FlexV1PluginConfiguration, error) { path := "/v1/PluginService/Configurations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -141,20 +139,20 @@ type ListPluginConfigurationParams struct { // The Flex-Metadata HTTP request header FlexMetadata *string `json:"Flex-Metadata,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPluginConfigurationParams) SetFlexMetadata(FlexMetadata string) *ListPluginConfigurationParams { params.FlexMetadata = &FlexMetadata return params } -func (params *ListPluginConfigurationParams) SetPageSize(PageSize int) *ListPluginConfigurationParams { +func (params *ListPluginConfigurationParams) SetPageSize(PageSize int64) *ListPluginConfigurationParams { params.PageSize = &PageSize return params } -func (params *ListPluginConfigurationParams) SetLimit(Limit int) *ListPluginConfigurationParams { +func (params *ListPluginConfigurationParams) SetLimit(Limit int64) *ListPluginConfigurationParams { params.Limit = &Limit return params } @@ -233,7 +231,7 @@ func (c *ApiService) StreamPluginConfiguration(params *ListPluginConfigurationPa } func (c *ApiService) streamPluginConfiguration(response *ListPluginConfigurationResponse, params *ListPluginConfigurationParams, recordChannel chan FlexV1PluginConfiguration, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Configurations diff --git a/rest/flex/v1/plugin_service_configurations_archive.go b/rest/flex/v1/plugin_service_configurations_archive.go index ae9f331a8b..b1d2f6e263 100644 --- a/rest/flex/v1/plugin_service_configurations_archive.go +++ b/rest/flex/v1/plugin_service_configurations_archive.go @@ -31,7 +31,6 @@ func (params *UpdatePluginConfigurationArchiveParams) SetFlexMetadata(FlexMetada return params } -// func (c *ApiService) UpdatePluginConfigurationArchive(Sid string, params *UpdatePluginConfigurationArchiveParams) (*FlexV1PluginConfigurationArchive, error) { path := "/v1/PluginService/Configurations/{Sid}/Archive" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/plugin_service_configurations_plugins.go b/rest/flex/v1/plugin_service_configurations_plugins.go index 248e1b21c3..03f62e197f 100644 --- a/rest/flex/v1/plugin_service_configurations_plugins.go +++ b/rest/flex/v1/plugin_service_configurations_plugins.go @@ -34,7 +34,6 @@ func (params *FetchConfiguredPluginParams) SetFlexMetadata(FlexMetadata string) return params } -// func (c *ApiService) FetchConfiguredPlugin(ConfigurationSid string, PluginSid string, params *FetchConfiguredPluginParams) (*FlexV1ConfiguredPlugin, error) { path := "/v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid}" path = strings.Replace(path, "{"+"ConfigurationSid"+"}", ConfigurationSid, -1) @@ -68,20 +67,20 @@ type ListConfiguredPluginParams struct { // The Flex-Metadata HTTP request header FlexMetadata *string `json:"Flex-Metadata,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConfiguredPluginParams) SetFlexMetadata(FlexMetadata string) *ListConfiguredPluginParams { params.FlexMetadata = &FlexMetadata return params } -func (params *ListConfiguredPluginParams) SetPageSize(PageSize int) *ListConfiguredPluginParams { +func (params *ListConfiguredPluginParams) SetPageSize(PageSize int64) *ListConfiguredPluginParams { params.PageSize = &PageSize return params } -func (params *ListConfiguredPluginParams) SetLimit(Limit int) *ListConfiguredPluginParams { +func (params *ListConfiguredPluginParams) SetLimit(Limit int64) *ListConfiguredPluginParams { params.Limit = &Limit return params } @@ -162,7 +161,7 @@ func (c *ApiService) StreamConfiguredPlugin(ConfigurationSid string, params *Lis } func (c *ApiService) streamConfiguredPlugin(response *ListConfiguredPluginResponse, params *ListConfiguredPluginParams, recordChannel chan FlexV1ConfiguredPlugin, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Plugins diff --git a/rest/flex/v1/plugin_service_plugins.go b/rest/flex/v1/plugin_service_plugins.go index e42ab3347b..c0207830ef 100644 --- a/rest/flex/v1/plugin_service_plugins.go +++ b/rest/flex/v1/plugin_service_plugins.go @@ -52,7 +52,6 @@ func (params *CreatePluginParams) SetDescription(Description string) *CreatePlug return params } -// func (c *ApiService) CreatePlugin(params *CreatePluginParams) (*FlexV1Plugin, error) { path := "/v1/PluginService/Plugins" @@ -100,7 +99,6 @@ func (params *FetchPluginParams) SetFlexMetadata(FlexMetadata string) *FetchPlug return params } -// func (c *ApiService) FetchPlugin(Sid string, params *FetchPluginParams) (*FlexV1Plugin, error) { path := "/v1/PluginService/Plugins/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -133,20 +131,20 @@ type ListPluginParams struct { // The Flex-Metadata HTTP request header FlexMetadata *string `json:"Flex-Metadata,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPluginParams) SetFlexMetadata(FlexMetadata string) *ListPluginParams { params.FlexMetadata = &FlexMetadata return params } -func (params *ListPluginParams) SetPageSize(PageSize int) *ListPluginParams { +func (params *ListPluginParams) SetPageSize(PageSize int64) *ListPluginParams { params.PageSize = &PageSize return params } -func (params *ListPluginParams) SetLimit(Limit int) *ListPluginParams { +func (params *ListPluginParams) SetLimit(Limit int64) *ListPluginParams { params.Limit = &Limit return params } @@ -225,7 +223,7 @@ func (c *ApiService) StreamPlugin(params *ListPluginParams) (chan FlexV1Plugin, } func (c *ApiService) streamPlugin(response *ListPluginResponse, params *ListPluginParams, recordChannel chan FlexV1Plugin, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Plugins @@ -295,7 +293,6 @@ func (params *UpdatePluginParams) SetDescription(Description string) *UpdatePlug return params } -// func (c *ApiService) UpdatePlugin(Sid string, params *UpdatePluginParams) (*FlexV1Plugin, error) { path := "/v1/PluginService/Plugins/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/plugin_service_plugins_archive.go b/rest/flex/v1/plugin_service_plugins_archive.go index cf5df84063..04129896cc 100644 --- a/rest/flex/v1/plugin_service_plugins_archive.go +++ b/rest/flex/v1/plugin_service_plugins_archive.go @@ -31,7 +31,6 @@ func (params *UpdatePluginArchiveParams) SetFlexMetadata(FlexMetadata string) *U return params } -// func (c *ApiService) UpdatePluginArchive(Sid string, params *UpdatePluginArchiveParams) (*FlexV1PluginArchive, error) { path := "/v1/PluginService/Plugins/{Sid}/Archive" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/plugin_service_plugins_versions.go b/rest/flex/v1/plugin_service_plugins_versions.go index 59cee1fb51..9edd2e44da 100644 --- a/rest/flex/v1/plugin_service_plugins_versions.go +++ b/rest/flex/v1/plugin_service_plugins_versions.go @@ -70,7 +70,6 @@ func (params *CreatePluginVersionParams) SetValidateStatus(ValidateStatus string return params } -// func (c *ApiService) CreatePluginVersion(PluginSid string, params *CreatePluginVersionParams) (*FlexV1PluginVersion, error) { path := "/v1/PluginService/Plugins/{PluginSid}/Versions" path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) @@ -128,7 +127,6 @@ func (params *FetchPluginVersionParams) SetFlexMetadata(FlexMetadata string) *Fe return params } -// func (c *ApiService) FetchPluginVersion(PluginSid string, Sid string, params *FetchPluginVersionParams) (*FlexV1PluginVersion, error) { path := "/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}" path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) @@ -162,20 +160,20 @@ type ListPluginVersionParams struct { // The Flex-Metadata HTTP request header FlexMetadata *string `json:"Flex-Metadata,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPluginVersionParams) SetFlexMetadata(FlexMetadata string) *ListPluginVersionParams { params.FlexMetadata = &FlexMetadata return params } -func (params *ListPluginVersionParams) SetPageSize(PageSize int) *ListPluginVersionParams { +func (params *ListPluginVersionParams) SetPageSize(PageSize int64) *ListPluginVersionParams { params.PageSize = &PageSize return params } -func (params *ListPluginVersionParams) SetLimit(Limit int) *ListPluginVersionParams { +func (params *ListPluginVersionParams) SetLimit(Limit int64) *ListPluginVersionParams { params.Limit = &Limit return params } @@ -256,7 +254,7 @@ func (c *ApiService) StreamPluginVersion(PluginSid string, params *ListPluginVer } func (c *ApiService) streamPluginVersion(response *ListPluginVersionResponse, params *ListPluginVersionParams, recordChannel chan FlexV1PluginVersion, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.PluginVersions diff --git a/rest/flex/v1/plugin_service_plugins_versions_archive.go b/rest/flex/v1/plugin_service_plugins_versions_archive.go index e20cd02d06..db0a4148b0 100644 --- a/rest/flex/v1/plugin_service_plugins_versions_archive.go +++ b/rest/flex/v1/plugin_service_plugins_versions_archive.go @@ -31,7 +31,6 @@ func (params *UpdatePluginVersionArchiveParams) SetFlexMetadata(FlexMetadata str return params } -// func (c *ApiService) UpdatePluginVersionArchive(PluginSid string, Sid string, params *UpdatePluginVersionArchiveParams) (*FlexV1PluginVersionArchive, error) { path := "/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive" path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) diff --git a/rest/flex/v1/plugin_service_releases.go b/rest/flex/v1/plugin_service_releases.go index f0695572c6..bf6b8b83d2 100644 --- a/rest/flex/v1/plugin_service_releases.go +++ b/rest/flex/v1/plugin_service_releases.go @@ -40,7 +40,6 @@ func (params *CreatePluginReleaseParams) SetConfigurationId(ConfigurationId stri return params } -// func (c *ApiService) CreatePluginRelease(params *CreatePluginReleaseParams) (*FlexV1PluginRelease, error) { path := "/v1/PluginService/Releases" @@ -82,7 +81,6 @@ func (params *FetchPluginReleaseParams) SetFlexMetadata(FlexMetadata string) *Fe return params } -// func (c *ApiService) FetchPluginRelease(Sid string, params *FetchPluginReleaseParams) (*FlexV1PluginRelease, error) { path := "/v1/PluginService/Releases/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -115,20 +113,20 @@ type ListPluginReleaseParams struct { // The Flex-Metadata HTTP request header FlexMetadata *string `json:"Flex-Metadata,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPluginReleaseParams) SetFlexMetadata(FlexMetadata string) *ListPluginReleaseParams { params.FlexMetadata = &FlexMetadata return params } -func (params *ListPluginReleaseParams) SetPageSize(PageSize int) *ListPluginReleaseParams { +func (params *ListPluginReleaseParams) SetPageSize(PageSize int64) *ListPluginReleaseParams { params.PageSize = &PageSize return params } -func (params *ListPluginReleaseParams) SetLimit(Limit int) *ListPluginReleaseParams { +func (params *ListPluginReleaseParams) SetLimit(Limit int64) *ListPluginReleaseParams { params.Limit = &Limit return params } @@ -207,7 +205,7 @@ func (c *ApiService) StreamPluginRelease(params *ListPluginReleaseParams) (chan } func (c *ApiService) streamPluginRelease(response *ListPluginReleaseResponse, params *ListPluginReleaseParams, recordChannel chan FlexV1PluginRelease, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Releases diff --git a/rest/flex/v1/web_channels.go b/rest/flex/v1/web_channels.go index 3d9cbbd01f..2337ccd304 100644 --- a/rest/flex/v1/web_channels.go +++ b/rest/flex/v1/web_channels.go @@ -64,7 +64,6 @@ func (params *CreateWebChannelParams) SetPreEngagementData(PreEngagementData str return params } -// func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels" @@ -107,7 +106,6 @@ func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1We return ps, err } -// func (c *ApiService) DeleteWebChannel(Sid string) error { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -127,7 +125,6 @@ func (c *ApiService) DeleteWebChannel(Sid string) error { return nil } -// func (c *ApiService) FetchWebChannel(Sid string) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -155,16 +152,16 @@ func (c *ApiService) FetchWebChannel(Sid string) (*FlexV1WebChannel, error) { // Optional parameters for the method 'ListWebChannel' type ListWebChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListWebChannelParams) SetPageSize(PageSize int) *ListWebChannelParams { +func (params *ListWebChannelParams) SetPageSize(PageSize int64) *ListWebChannelParams { params.PageSize = &PageSize return params } -func (params *ListWebChannelParams) SetLimit(Limit int) *ListWebChannelParams { +func (params *ListWebChannelParams) SetLimit(Limit int64) *ListWebChannelParams { params.Limit = &Limit return params } @@ -243,7 +240,7 @@ func (c *ApiService) StreamWebChannel(params *ListWebChannelParams) (chan FlexV1 } func (c *ApiService) streamWebChannel(response *ListWebChannelResponse, params *ListWebChannelParams, recordChannel chan FlexV1WebChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.FlexChatChannels @@ -307,7 +304,6 @@ func (params *UpdateWebChannelParams) SetPostEngagementData(PostEngagementData s return params } -// func (c *ApiService) UpdateWebChannel(Sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v2/web_chats.go b/rest/flex/v2/web_chats.go index f644ff6a60..57ab0056a9 100644 --- a/rest/flex/v2/web_chats.go +++ b/rest/flex/v2/web_chats.go @@ -54,7 +54,6 @@ func (params *CreateWebChannelParams) SetPreEngagementData(PreEngagementData str return params } -// func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV2WebChannel, error) { path := "/v2/WebChats" diff --git a/rest/iam/v1/README.md b/rest/iam/v1/README.md index 2312b9c024..8d280de90b 100644 --- a/rest/iam/v1/README.md +++ b/rest/iam/v1/README.md @@ -42,9 +42,12 @@ Class | Method | HTTP request | Description - [IamV1Key](docs/IamV1Key.md) - [IamV1NewKey](docs/IamV1NewKey.md) + - [FetchIndexNodeResponseVersions](docs/FetchIndexNodeResponseVersions.md) - [IamV1GetKeys](docs/IamV1GetKeys.md) - [ListGetKeysResponse](docs/ListGetKeysResponse.md) + - [FetchIndexNodeResponse](docs/FetchIndexNodeResponse.md) - [ListGetKeysResponseMeta](docs/ListGetKeysResponseMeta.md) + - [FetchVersionResponse](docs/FetchVersionResponse.md) ## Documentation For Authorization diff --git a/rest/iam/v1/docs/KeysApi.md b/rest/iam/v1/docs/KeysApi.md index b041e92d7a..d598c94114 100644 --- a/rest/iam/v1/docs/KeysApi.md +++ b/rest/iam/v1/docs/KeysApi.md @@ -158,8 +158,8 @@ Other parameters are passed through a pointer to a ListGetKeysParams struct Name | Type | Description ------------- | ------------- | ------------- **AccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/iam/v1/docs/ListGetKeysResponseMeta.md b/rest/iam/v1/docs/ListGetKeysResponseMeta.md index 2fe381c401..f6a55ba08e 100644 --- a/rest/iam/v1/docs/ListGetKeysResponseMeta.md +++ b/rest/iam/v1/docs/ListGetKeysResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/iam/v1/keys.go b/rest/iam/v1/keys.go index 4f3293f360..e717389731 100644 --- a/rest/iam/v1/keys.go +++ b/rest/iam/v1/keys.go @@ -145,20 +145,20 @@ type ListGetKeysParams struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. AccountSid *string `json:"AccountSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListGetKeysParams) SetAccountSid(AccountSid string) *ListGetKeysParams { params.AccountSid = &AccountSid return params } -func (params *ListGetKeysParams) SetPageSize(PageSize int) *ListGetKeysParams { +func (params *ListGetKeysParams) SetPageSize(PageSize int64) *ListGetKeysParams { params.PageSize = &PageSize return params } -func (params *ListGetKeysParams) SetLimit(Limit int) *ListGetKeysParams { +func (params *ListGetKeysParams) SetLimit(Limit int64) *ListGetKeysParams { params.Limit = &Limit return params } @@ -240,7 +240,7 @@ func (c *ApiService) StreamGetKeys(params *ListGetKeysParams) (chan IamV1GetKeys } func (c *ApiService) streamGetKeys(response *ListGetKeysResponse, params *ListGetKeysParams, recordChannel chan IamV1GetKeys, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Keys diff --git a/rest/iam/v1/model_list_get_keys_response_meta.go b/rest/iam/v1/model_list_get_keys_response_meta.go index 3bea1a4d72..c7eb6704d7 100644 --- a/rest/iam/v1/model_list_get_keys_response_meta.go +++ b/rest/iam/v1/model_list_get_keys_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListGetKeysResponseMeta struct for ListGetKeysResponseMeta type ListGetKeysResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/insights/v1/conferences.go b/rest/insights/v1/conferences.go index 2be0c38891..a5b80776ed 100644 --- a/rest/insights/v1/conferences.go +++ b/rest/insights/v1/conferences.go @@ -71,9 +71,9 @@ type ListConferenceParams struct { // Conference end reason; e.g. last participant left, modified by API, etc. EndReason *string `json:"EndReason,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConferenceParams) SetConferenceSid(ConferenceSid string) *ListConferenceParams { @@ -116,11 +116,11 @@ func (params *ListConferenceParams) SetEndReason(EndReason string) *ListConferen params.EndReason = &EndReason return params } -func (params *ListConferenceParams) SetPageSize(PageSize int) *ListConferenceParams { +func (params *ListConferenceParams) SetPageSize(PageSize int64) *ListConferenceParams { params.PageSize = &PageSize return params } -func (params *ListConferenceParams) SetLimit(Limit int) *ListConferenceParams { +func (params *ListConferenceParams) SetLimit(Limit int64) *ListConferenceParams { params.Limit = &Limit return params } @@ -229,7 +229,7 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan Insigh } func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan InsightsV1Conference, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Conferences diff --git a/rest/insights/v1/conferences_participants.go b/rest/insights/v1/conferences_participants.go index 7867891fcf..379b18a736 100644 --- a/rest/insights/v1/conferences_participants.go +++ b/rest/insights/v1/conferences_participants.go @@ -82,9 +82,9 @@ type ListConferenceParticipantParams struct { // Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc. Events *string `json:"Events,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListConferenceParticipantParams) SetParticipantSid(ParticipantSid string) *ListConferenceParticipantParams { @@ -99,11 +99,11 @@ func (params *ListConferenceParticipantParams) SetEvents(Events string) *ListCon params.Events = &Events return params } -func (params *ListConferenceParticipantParams) SetPageSize(PageSize int) *ListConferenceParticipantParams { +func (params *ListConferenceParticipantParams) SetPageSize(PageSize int64) *ListConferenceParticipantParams { params.PageSize = &PageSize return params } -func (params *ListConferenceParticipantParams) SetLimit(Limit int) *ListConferenceParticipantParams { +func (params *ListConferenceParticipantParams) SetLimit(Limit int64) *ListConferenceParticipantParams { params.Limit = &Limit return params } @@ -193,7 +193,7 @@ func (c *ApiService) StreamConferenceParticipant(ConferenceSid string, params *L } func (c *ApiService) streamConferenceParticipant(response *ListConferenceParticipantResponse, params *ListConferenceParticipantParams, recordChannel chan InsightsV1ConferenceParticipant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/insights/v1/docs/ConferencesApi.md b/rest/insights/v1/docs/ConferencesApi.md index f9b2c77335..7b32b7c3e3 100644 --- a/rest/insights/v1/docs/ConferencesApi.md +++ b/rest/insights/v1/docs/ConferencesApi.md @@ -80,8 +80,8 @@ Name | Type | Description **Subaccount** | **string** | Account SID for the subaccount whose resources you wish to retrieve. **DetectedIssues** | **string** | Potential configuration, behavior, or performance issues detected during the conference. **EndReason** | **string** | Conference end reason; e.g. last participant left, modified by API, etc. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/ConferencesParticipantsApi.md b/rest/insights/v1/docs/ConferencesParticipantsApi.md index de0046fb53..2a367216fa 100644 --- a/rest/insights/v1/docs/ConferencesParticipantsApi.md +++ b/rest/insights/v1/docs/ConferencesParticipantsApi.md @@ -80,8 +80,8 @@ Name | Type | Description **ParticipantSid** | **string** | The unique SID identifier of the Participant. **Label** | **string** | User-specified label for a participant. **Events** | **string** | Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/ListCallSummariesResponseMeta.md b/rest/insights/v1/docs/ListCallSummariesResponseMeta.md index 604e70eb6a..1f578fc6b8 100644 --- a/rest/insights/v1/docs/ListCallSummariesResponseMeta.md +++ b/rest/insights/v1/docs/ListCallSummariesResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/VideoRoomsApi.md b/rest/insights/v1/docs/VideoRoomsApi.md index c6617e5f88..4864237588 100644 --- a/rest/insights/v1/docs/VideoRoomsApi.md +++ b/rest/insights/v1/docs/VideoRoomsApi.md @@ -75,8 +75,8 @@ Name | Type | Description **RoomName** | **string** | Room friendly name. **CreatedAfter** | **time.Time** | Only read rooms that started on or after this ISO 8601 timestamp. **CreatedBefore** | **time.Time** | Only read rooms that started before this ISO 8601 timestamp. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/VideoRoomsParticipantsApi.md b/rest/insights/v1/docs/VideoRoomsParticipantsApi.md index f6ae80b6b3..c709a40d0b 100644 --- a/rest/insights/v1/docs/VideoRoomsParticipantsApi.md +++ b/rest/insights/v1/docs/VideoRoomsParticipantsApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListVideoParticipantSummaryPa Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/VoiceEventsApi.md b/rest/insights/v1/docs/VoiceEventsApi.md index 5d41f0588e..6c8a4cd187 100644 --- a/rest/insights/v1/docs/VoiceEventsApi.md +++ b/rest/insights/v1/docs/VoiceEventsApi.md @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a ListEventParams struct Name | Type | Description ------------- | ------------- | ------------- **Edge** | **string** | The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/VoiceMetricsApi.md b/rest/insights/v1/docs/VoiceMetricsApi.md index ad64a0bcd4..1b3f3415ea 100644 --- a/rest/insights/v1/docs/VoiceMetricsApi.md +++ b/rest/insights/v1/docs/VoiceMetricsApi.md @@ -33,8 +33,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Edge** | **string** | The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. **Direction** | **string** | The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/docs/VoiceSummariesApi.md b/rest/insights/v1/docs/VoiceSummariesApi.md index 93b8570904..c3a23dcc3d 100644 --- a/rest/insights/v1/docs/VoiceSummariesApi.md +++ b/rest/insights/v1/docs/VoiceSummariesApi.md @@ -59,8 +59,8 @@ Name | Type | Description **BusinessProfileIndustry** | **string** | A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit' **BusinessProfileBundleSid** | **string** | A unique SID identifier of the Business Profile. **BusinessProfileType** | **string** | A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/insights/v1/model_list_call_summaries_response_meta.go b/rest/insights/v1/model_list_call_summaries_response_meta.go index 8c3c6e25fb..d3445fb5c2 100644 --- a/rest/insights/v1/model_list_call_summaries_response_meta.go +++ b/rest/insights/v1/model_list_call_summaries_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCallSummariesResponseMeta struct for ListCallSummariesResponseMeta type ListCallSummariesResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/insights/v1/video_rooms.go b/rest/insights/v1/video_rooms.go index 23e3b84d49..f2f9befb83 100644 --- a/rest/insights/v1/video_rooms.go +++ b/rest/insights/v1/video_rooms.go @@ -62,9 +62,9 @@ type ListVideoRoomSummaryParams struct { // Only read rooms that started before this ISO 8601 timestamp. CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListVideoRoomSummaryParams) SetRoomType(RoomType []string) *ListVideoRoomSummaryParams { @@ -87,11 +87,11 @@ func (params *ListVideoRoomSummaryParams) SetCreatedBefore(CreatedBefore time.Ti params.CreatedBefore = &CreatedBefore return params } -func (params *ListVideoRoomSummaryParams) SetPageSize(PageSize int) *ListVideoRoomSummaryParams { +func (params *ListVideoRoomSummaryParams) SetPageSize(PageSize int64) *ListVideoRoomSummaryParams { params.PageSize = &PageSize return params } -func (params *ListVideoRoomSummaryParams) SetLimit(Limit int) *ListVideoRoomSummaryParams { +func (params *ListVideoRoomSummaryParams) SetLimit(Limit int64) *ListVideoRoomSummaryParams { params.Limit = &Limit return params } @@ -189,7 +189,7 @@ func (c *ApiService) StreamVideoRoomSummary(params *ListVideoRoomSummaryParams) } func (c *ApiService) streamVideoRoomSummary(response *ListVideoRoomSummaryResponse, params *ListVideoRoomSummaryParams, recordChannel chan InsightsV1VideoRoomSummary, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Rooms diff --git a/rest/insights/v1/video_rooms_participants.go b/rest/insights/v1/video_rooms_participants.go index 5f43cab63f..c5a5f4c22f 100644 --- a/rest/insights/v1/video_rooms_participants.go +++ b/rest/insights/v1/video_rooms_participants.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid // Optional parameters for the method 'ListVideoParticipantSummary' type ListVideoParticipantSummaryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListVideoParticipantSummaryParams) SetPageSize(PageSize int) *ListVideoParticipantSummaryParams { +func (params *ListVideoParticipantSummaryParams) SetPageSize(PageSize int64) *ListVideoParticipantSummaryParams { params.PageSize = &PageSize return params } -func (params *ListVideoParticipantSummaryParams) SetLimit(Limit int) *ListVideoParticipantSummaryParams { +func (params *ListVideoParticipantSummaryParams) SetLimit(Limit int64) *ListVideoParticipantSummaryParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamVideoParticipantSummary(RoomSid string, params *ListV } func (c *ApiService) streamVideoParticipantSummary(response *ListVideoParticipantSummaryResponse, params *ListVideoParticipantSummaryParams, recordChannel chan InsightsV1VideoParticipantSummary, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/insights/v1/voice.go b/rest/insights/v1/voice.go index 853ddb7b6b..e2239fe377 100644 --- a/rest/insights/v1/voice.go +++ b/rest/insights/v1/voice.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchCall(Sid string) (*InsightsV1Call, error) { path := "/v1/Voice/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/insights/v1/voice_events.go b/rest/insights/v1/voice_events.go index 75b237bfdd..f393d46800 100644 --- a/rest/insights/v1/voice_events.go +++ b/rest/insights/v1/voice_events.go @@ -28,20 +28,20 @@ type ListEventParams struct { // The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. Edge *string `json:"Edge,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListEventParams) SetEdge(Edge string) *ListEventParams { params.Edge = &Edge return params } -func (params *ListEventParams) SetPageSize(PageSize int) *ListEventParams { +func (params *ListEventParams) SetPageSize(PageSize int64) *ListEventParams { params.PageSize = &PageSize return params } -func (params *ListEventParams) SetLimit(Limit int) *ListEventParams { +func (params *ListEventParams) SetLimit(Limit int64) *ListEventParams { params.Limit = &Limit return params } @@ -125,7 +125,7 @@ func (c *ApiService) StreamEvent(CallSid string, params *ListEventParams) (chan } func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan InsightsV1Event, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Events diff --git a/rest/insights/v1/voice_metrics.go b/rest/insights/v1/voice_metrics.go index fd3f6e0326..76359d3a18 100644 --- a/rest/insights/v1/voice_metrics.go +++ b/rest/insights/v1/voice_metrics.go @@ -30,9 +30,9 @@ type ListMetricParams struct { // The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. Direction *string `json:"Direction,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMetricParams) SetEdge(Edge string) *ListMetricParams { @@ -43,11 +43,11 @@ func (params *ListMetricParams) SetDirection(Direction string) *ListMetricParams params.Direction = &Direction return params } -func (params *ListMetricParams) SetPageSize(PageSize int) *ListMetricParams { +func (params *ListMetricParams) SetPageSize(PageSize int64) *ListMetricParams { params.PageSize = &PageSize return params } -func (params *ListMetricParams) SetLimit(Limit int) *ListMetricParams { +func (params *ListMetricParams) SetLimit(Limit int64) *ListMetricParams { params.Limit = &Limit return params } @@ -134,7 +134,7 @@ func (c *ApiService) StreamMetric(CallSid string, params *ListMetricParams) (cha } func (c *ApiService) streamMetric(response *ListMetricResponse, params *ListMetricParams, recordChannel chan InsightsV1Metric, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Metrics diff --git a/rest/insights/v1/voice_summaries.go b/rest/insights/v1/voice_summaries.go index d6d7468c80..3979c0c5f9 100644 --- a/rest/insights/v1/voice_summaries.go +++ b/rest/insights/v1/voice_summaries.go @@ -89,9 +89,9 @@ type ListCallSummariesParams struct { // A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'. BusinessProfileType *string `json:"BusinessProfileType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCallSummariesParams) SetFrom(From string) *ListCallSummariesParams { @@ -222,11 +222,11 @@ func (params *ListCallSummariesParams) SetBusinessProfileType(BusinessProfileTyp params.BusinessProfileType = &BusinessProfileType return params } -func (params *ListCallSummariesParams) SetPageSize(PageSize int) *ListCallSummariesParams { +func (params *ListCallSummariesParams) SetPageSize(PageSize int64) *ListCallSummariesParams { params.PageSize = &PageSize return params } -func (params *ListCallSummariesParams) SetLimit(Limit int) *ListCallSummariesParams { +func (params *ListCallSummariesParams) SetLimit(Limit int64) *ListCallSummariesParams { params.Limit = &Limit return params } @@ -401,7 +401,7 @@ func (c *ApiService) StreamCallSummaries(params *ListCallSummariesParams) (chan } func (c *ApiService) streamCallSummaries(response *ListCallSummariesResponse, params *ListCallSummariesParams, recordChannel chan InsightsV1CallSummaries, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.CallSummaries diff --git a/rest/intelligence/v2/docs/ListCustomOperatorResponseMeta.md b/rest/intelligence/v2/docs/ListCustomOperatorResponseMeta.md index 4112a3a43d..d3dd3a0138 100644 --- a/rest/intelligence/v2/docs/ListCustomOperatorResponseMeta.md +++ b/rest/intelligence/v2/docs/ListCustomOperatorResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/intelligence/v2/docs/OperatorTypesApi.md b/rest/intelligence/v2/docs/OperatorTypesApi.md index e0166970d7..08eea27544 100644 --- a/rest/intelligence/v2/docs/OperatorTypesApi.md +++ b/rest/intelligence/v2/docs/OperatorTypesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListOperatorTypeParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/OperatorsApi.md b/rest/intelligence/v2/docs/OperatorsApi.md index 545794116d..580bb516d9 100644 --- a/rest/intelligence/v2/docs/OperatorsApi.md +++ b/rest/intelligence/v2/docs/OperatorsApi.md @@ -72,8 +72,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Availability** | **string** | Returns Operators with the provided availability type. Possible values: internal, beta, public, retired. **LanguageCode** | **string** | Returns Operators that support the provided language code. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/OperatorsCustomApi.md b/rest/intelligence/v2/docs/OperatorsCustomApi.md index 679ae2dd3f..4a72b906bc 100644 --- a/rest/intelligence/v2/docs/OperatorsCustomApi.md +++ b/rest/intelligence/v2/docs/OperatorsCustomApi.md @@ -158,8 +158,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Availability** | **string** | Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired. **LanguageCode** | **string** | Returns Custom Operators that support the provided language code. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/OperatorsPreBuiltApi.md b/rest/intelligence/v2/docs/OperatorsPreBuiltApi.md index fbe44a7402..a867926a24 100644 --- a/rest/intelligence/v2/docs/OperatorsPreBuiltApi.md +++ b/rest/intelligence/v2/docs/OperatorsPreBuiltApi.md @@ -72,8 +72,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Availability** | **string** | Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired. **LanguageCode** | **string** | Returns Pre-built Operators that support the provided language code. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/ServicesApi.md b/rest/intelligence/v2/docs/ServicesApi.md index b99df7a683..1734672e9f 100644 --- a/rest/intelligence/v2/docs/ServicesApi.md +++ b/rest/intelligence/v2/docs/ServicesApi.md @@ -162,8 +162,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/TranscriptsApi.md b/rest/intelligence/v2/docs/TranscriptsApi.md index d6a373faba..094650f012 100644 --- a/rest/intelligence/v2/docs/TranscriptsApi.md +++ b/rest/intelligence/v2/docs/TranscriptsApi.md @@ -164,8 +164,8 @@ Name | Type | Description **Status** | **string** | Filter by status. **LanguageCode** | **string** | Filter by Language Code. **SourceSid** | **string** | Filter by SourceSid. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md b/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md index 817db601c4..b81fb7b8e6 100644 --- a/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md +++ b/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListOperatorResultParams stru Name | Type | Description ------------- | ------------- | ------------- **Redacted** | **bool** | Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/docs/TranscriptsSentencesApi.md b/rest/intelligence/v2/docs/TranscriptsSentencesApi.md index 31d122b1e7..0513044616 100644 --- a/rest/intelligence/v2/docs/TranscriptsSentencesApi.md +++ b/rest/intelligence/v2/docs/TranscriptsSentencesApi.md @@ -33,8 +33,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Redacted** | **bool** | Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. **WordTimestamps** | **bool** | Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/intelligence/v2/model_list_custom_operator_response_meta.go b/rest/intelligence/v2/model_list_custom_operator_response_meta.go index 4835037d53..9a7f86f516 100644 --- a/rest/intelligence/v2/model_list_custom_operator_response_meta.go +++ b/rest/intelligence/v2/model_list_custom_operator_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCustomOperatorResponseMeta struct for ListCustomOperatorResponseMeta type ListCustomOperatorResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/intelligence/v2/operator_types.go b/rest/intelligence/v2/operator_types.go index 6887a831a4..c457e137cc 100644 --- a/rest/intelligence/v2/operator_types.go +++ b/rest/intelligence/v2/operator_types.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchOperatorType(Sid string) (*IntelligenceV2OperatorType, // Optional parameters for the method 'ListOperatorType' type ListOperatorTypeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListOperatorTypeParams) SetPageSize(PageSize int) *ListOperatorTypeParams { +func (params *ListOperatorTypeParams) SetPageSize(PageSize int64) *ListOperatorTypeParams { params.PageSize = &PageSize return params } -func (params *ListOperatorTypeParams) SetLimit(Limit int) *ListOperatorTypeParams { +func (params *ListOperatorTypeParams) SetLimit(Limit int64) *ListOperatorTypeParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamOperatorType(params *ListOperatorTypeParams) (chan In } func (c *ApiService) streamOperatorType(response *ListOperatorTypeResponse, params *ListOperatorTypeParams, recordChannel chan IntelligenceV2OperatorType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.OperatorTypes diff --git a/rest/intelligence/v2/operators.go b/rest/intelligence/v2/operators.go index 6ccba3c993..dc2b7c6222 100644 --- a/rest/intelligence/v2/operators.go +++ b/rest/intelligence/v2/operators.go @@ -55,9 +55,9 @@ type ListOperatorParams struct { // Returns Operators that support the provided language code. LanguageCode *string `json:"LanguageCode,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListOperatorParams) SetAvailability(Availability string) *ListOperatorParams { @@ -68,11 +68,11 @@ func (params *ListOperatorParams) SetLanguageCode(LanguageCode string) *ListOper params.LanguageCode = &LanguageCode return params } -func (params *ListOperatorParams) SetPageSize(PageSize int) *ListOperatorParams { +func (params *ListOperatorParams) SetPageSize(PageSize int64) *ListOperatorParams { params.PageSize = &PageSize return params } -func (params *ListOperatorParams) SetLimit(Limit int) *ListOperatorParams { +func (params *ListOperatorParams) SetLimit(Limit int64) *ListOperatorParams { params.Limit = &Limit return params } @@ -157,7 +157,7 @@ func (c *ApiService) StreamOperator(params *ListOperatorParams) (chan Intelligen } func (c *ApiService) streamOperator(response *ListOperatorResponse, params *ListOperatorParams, recordChannel chan IntelligenceV2Operator, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Operators diff --git a/rest/intelligence/v2/operators_custom.go b/rest/intelligence/v2/operators_custom.go index 3130d533e4..b5284e476b 100644 --- a/rest/intelligence/v2/operators_custom.go +++ b/rest/intelligence/v2/operators_custom.go @@ -138,9 +138,9 @@ type ListCustomOperatorParams struct { // Returns Custom Operators that support the provided language code. LanguageCode *string `json:"LanguageCode,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCustomOperatorParams) SetAvailability(Availability string) *ListCustomOperatorParams { @@ -151,11 +151,11 @@ func (params *ListCustomOperatorParams) SetLanguageCode(LanguageCode string) *Li params.LanguageCode = &LanguageCode return params } -func (params *ListCustomOperatorParams) SetPageSize(PageSize int) *ListCustomOperatorParams { +func (params *ListCustomOperatorParams) SetPageSize(PageSize int64) *ListCustomOperatorParams { params.PageSize = &PageSize return params } -func (params *ListCustomOperatorParams) SetLimit(Limit int) *ListCustomOperatorParams { +func (params *ListCustomOperatorParams) SetLimit(Limit int64) *ListCustomOperatorParams { params.Limit = &Limit return params } @@ -240,7 +240,7 @@ func (c *ApiService) StreamCustomOperator(params *ListCustomOperatorParams) (cha } func (c *ApiService) streamCustomOperator(response *ListCustomOperatorResponse, params *ListCustomOperatorParams, recordChannel chan IntelligenceV2CustomOperator, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Operators diff --git a/rest/intelligence/v2/operators_pre_built.go b/rest/intelligence/v2/operators_pre_built.go index 4d42218f55..41a10e6105 100644 --- a/rest/intelligence/v2/operators_pre_built.go +++ b/rest/intelligence/v2/operators_pre_built.go @@ -55,9 +55,9 @@ type ListPrebuiltOperatorParams struct { // Returns Pre-built Operators that support the provided language code. LanguageCode *string `json:"LanguageCode,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListPrebuiltOperatorParams) SetAvailability(Availability string) *ListPrebuiltOperatorParams { @@ -68,11 +68,11 @@ func (params *ListPrebuiltOperatorParams) SetLanguageCode(LanguageCode string) * params.LanguageCode = &LanguageCode return params } -func (params *ListPrebuiltOperatorParams) SetPageSize(PageSize int) *ListPrebuiltOperatorParams { +func (params *ListPrebuiltOperatorParams) SetPageSize(PageSize int64) *ListPrebuiltOperatorParams { params.PageSize = &PageSize return params } -func (params *ListPrebuiltOperatorParams) SetLimit(Limit int) *ListPrebuiltOperatorParams { +func (params *ListPrebuiltOperatorParams) SetLimit(Limit int64) *ListPrebuiltOperatorParams { params.Limit = &Limit return params } @@ -157,7 +157,7 @@ func (c *ApiService) StreamPrebuiltOperator(params *ListPrebuiltOperatorParams) } func (c *ApiService) streamPrebuiltOperator(response *ListPrebuiltOperatorResponse, params *ListPrebuiltOperatorParams, recordChannel chan IntelligenceV2PrebuiltOperator, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Operators diff --git a/rest/intelligence/v2/services.go b/rest/intelligence/v2/services.go index 0e8db0fe81..34741960cf 100644 --- a/rest/intelligence/v2/services.go +++ b/rest/intelligence/v2/services.go @@ -182,16 +182,16 @@ func (c *ApiService) FetchService(Sid string) (*IntelligenceV2Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -270,7 +270,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan Intelligence } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IntelligenceV2Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services diff --git a/rest/intelligence/v2/transcripts.go b/rest/intelligence/v2/transcripts.go index 01fc4489ea..5947ac772f 100644 --- a/rest/intelligence/v2/transcripts.go +++ b/rest/intelligence/v2/transcripts.go @@ -160,9 +160,9 @@ type ListTranscriptParams struct { // Filter by SourceSid. SourceSid *string `json:"SourceSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTranscriptParams) SetServiceSid(ServiceSid string) *ListTranscriptParams { @@ -197,11 +197,11 @@ func (params *ListTranscriptParams) SetSourceSid(SourceSid string) *ListTranscri params.SourceSid = &SourceSid return params } -func (params *ListTranscriptParams) SetPageSize(PageSize int) *ListTranscriptParams { +func (params *ListTranscriptParams) SetPageSize(PageSize int64) *ListTranscriptParams { params.PageSize = &PageSize return params } -func (params *ListTranscriptParams) SetLimit(Limit int) *ListTranscriptParams { +func (params *ListTranscriptParams) SetLimit(Limit int64) *ListTranscriptParams { params.Limit = &Limit return params } @@ -304,7 +304,7 @@ func (c *ApiService) StreamTranscript(params *ListTranscriptParams) (chan Intell } func (c *ApiService) streamTranscript(response *ListTranscriptResponse, params *ListTranscriptParams, recordChannel chan IntelligenceV2Transcript, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Transcripts diff --git a/rest/intelligence/v2/transcripts_operator_results.go b/rest/intelligence/v2/transcripts_operator_results.go index 26977e025e..d01ffc2197 100644 --- a/rest/intelligence/v2/transcripts_operator_results.go +++ b/rest/intelligence/v2/transcripts_operator_results.go @@ -69,20 +69,20 @@ type ListOperatorResultParams struct { // Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. Redacted *bool `json:"Redacted,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListOperatorResultParams) SetRedacted(Redacted bool) *ListOperatorResultParams { params.Redacted = &Redacted return params } -func (params *ListOperatorResultParams) SetPageSize(PageSize int) *ListOperatorResultParams { +func (params *ListOperatorResultParams) SetPageSize(PageSize int64) *ListOperatorResultParams { params.PageSize = &PageSize return params } -func (params *ListOperatorResultParams) SetLimit(Limit int) *ListOperatorResultParams { +func (params *ListOperatorResultParams) SetLimit(Limit int64) *ListOperatorResultParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOper } func (c *ApiService) streamOperatorResult(response *ListOperatorResultResponse, params *ListOperatorResultParams, recordChannel chan IntelligenceV2OperatorResult, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.OperatorResults diff --git a/rest/intelligence/v2/transcripts_sentences.go b/rest/intelligence/v2/transcripts_sentences.go index 6b048ac3d3..9a7d3f85f0 100644 --- a/rest/intelligence/v2/transcripts_sentences.go +++ b/rest/intelligence/v2/transcripts_sentences.go @@ -30,9 +30,9 @@ type ListSentenceParams struct { // Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. WordTimestamps *bool `json:"WordTimestamps,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSentenceParams) SetRedacted(Redacted bool) *ListSentenceParams { @@ -43,11 +43,11 @@ func (params *ListSentenceParams) SetWordTimestamps(WordTimestamps bool) *ListSe params.WordTimestamps = &WordTimestamps return params } -func (params *ListSentenceParams) SetPageSize(PageSize int) *ListSentenceParams { +func (params *ListSentenceParams) SetPageSize(PageSize int64) *ListSentenceParams { params.PageSize = &PageSize return params } -func (params *ListSentenceParams) SetLimit(Limit int) *ListSentenceParams { +func (params *ListSentenceParams) SetLimit(Limit int64) *ListSentenceParams { params.Limit = &Limit return params } @@ -134,7 +134,7 @@ func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentencePa } func (c *ApiService) streamSentence(response *ListSentenceResponse, params *ListSentenceParams, recordChannel chan IntelligenceV2Sentence, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sentences diff --git a/rest/ip_messaging/v1/credentials.go b/rest/ip_messaging/v1/credentials.go index f3f7e6864d..f5f8e64054 100644 --- a/rest/ip_messaging/v1/credentials.go +++ b/rest/ip_messaging/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV1Credential, error) { path := "/v1/Credentials" @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessag return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV1Credential, erro // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan IpMess } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan IpMessagingV1Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*IpMessagingV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v1/docs/CredentialsApi.md b/rest/ip_messaging/v1/docs/CredentialsApi.md index 8b6c2f733d..db67c4473e 100644 --- a/rest/ip_messaging/v1/docs/CredentialsApi.md +++ b/rest/ip_messaging/v1/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md b/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md index b007fb5e68..d507879b9a 100644 --- a/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md +++ b/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/v1/docs/ServicesApi.md b/rest/ip_messaging/v1/docs/ServicesApi.md index db52f5a082..78ea0d0228 100644 --- a/rest/ip_messaging/v1/docs/ServicesApi.md +++ b/rest/ip_messaging/v1/docs/ServicesApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesChannelsApi.md b/rest/ip_messaging/v1/docs/ServicesChannelsApi.md index 21224b5d6f..3156b738fd 100644 --- a/rest/ip_messaging/v1/docs/ServicesChannelsApi.md +++ b/rest/ip_messaging/v1/docs/ServicesChannelsApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListChannelParams struct Name | Type | Description ------------- | ------------- | ------------- **Type** | [**[]ChannelEnumChannelType**](ChannelEnumChannelType.md) | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesChannelsInvitesApi.md b/rest/ip_messaging/v1/docs/ServicesChannelsInvitesApi.md index 6279ca4af6..82042dab78 100644 --- a/rest/ip_messaging/v1/docs/ServicesChannelsInvitesApi.md +++ b/rest/ip_messaging/v1/docs/ServicesChannelsInvitesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListInviteParams struct Name | Type | Description ------------- | ------------- | ------------- **Identity** | **[]string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesChannelsMembersApi.md b/rest/ip_messaging/v1/docs/ServicesChannelsMembersApi.md index 55c1879458..c963730411 100644 --- a/rest/ip_messaging/v1/docs/ServicesChannelsMembersApi.md +++ b/rest/ip_messaging/v1/docs/ServicesChannelsMembersApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListMemberParams struct Name | Type | Description ------------- | ------------- | ------------- **Identity** | **[]string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesChannelsMessagesApi.md b/rest/ip_messaging/v1/docs/ServicesChannelsMessagesApi.md index 779c25ba7a..4a9874fde6 100644 --- a/rest/ip_messaging/v1/docs/ServicesChannelsMessagesApi.md +++ b/rest/ip_messaging/v1/docs/ServicesChannelsMessagesApi.md @@ -171,8 +171,8 @@ Other parameters are passed through a pointer to a ListMessageParams struct Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesRolesApi.md b/rest/ip_messaging/v1/docs/ServicesRolesApi.md index 7540e18bd0..f43ee846c7 100644 --- a/rest/ip_messaging/v1/docs/ServicesRolesApi.md +++ b/rest/ip_messaging/v1/docs/ServicesRolesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesUsersApi.md b/rest/ip_messaging/v1/docs/ServicesUsersApi.md index e67d7e71c5..2260240df8 100644 --- a/rest/ip_messaging/v1/docs/ServicesUsersApi.md +++ b/rest/ip_messaging/v1/docs/ServicesUsersApi.md @@ -167,8 +167,8 @@ Other parameters are passed through a pointer to a ListUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/docs/ServicesUsersChannelsApi.md b/rest/ip_messaging/v1/docs/ServicesUsersChannelsApi.md index a53b1a8c87..a4caeee730 100644 --- a/rest/ip_messaging/v1/docs/ServicesUsersChannelsApi.md +++ b/rest/ip_messaging/v1/docs/ServicesUsersChannelsApi.md @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a ListUserChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v1/model_list_channel_response_meta.go b/rest/ip_messaging/v1/model_list_channel_response_meta.go index 2ffc954bb6..4e3849511d 100644 --- a/rest/ip_messaging/v1/model_list_channel_response_meta.go +++ b/rest/ip_messaging/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/ip_messaging/v1/services.go b/rest/ip_messaging/v1/services.go index de32905103..b9dfe7976e 100644 --- a/rest/ip_messaging/v1/services.go +++ b/rest/ip_messaging/v1/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV1Service, error) { path := "/v1/Services" @@ -62,7 +61,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV1S return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -82,7 +80,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*IpMessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -110,16 +107,16 @@ func (c *ApiService) FetchService(Sid string) (*IpMessagingV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -198,7 +195,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan IpMessagingV } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IpMessagingV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -574,7 +571,6 @@ func (params *UpdateServiceParams) SetLimitsUserChannels(LimitsUserChannels int) return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IpMessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v1/services_channels.go b/rest/ip_messaging/v1/services_channels.go index e5d66ae82f..5d440e72a5 100644 --- a/rest/ip_messaging/v1/services_channels.go +++ b/rest/ip_messaging/v1/services_channels.go @@ -52,7 +52,6 @@ func (params *CreateChannelParams) SetType(Type string) *CreateChannelParams { return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,7 +89,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam return ps, err } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -111,7 +109,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -142,20 +139,20 @@ type ListChannelParams struct { // Type *[]string `json:"Type,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListChannelParams) SetType(Type []string) *ListChannelParams { params.Type = &Type return params } -func (params *ListChannelParams) SetPageSize(PageSize int) *ListChannelParams { +func (params *ListChannelParams) SetPageSize(PageSize int64) *ListChannelParams { params.PageSize = &PageSize return params } -func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { +func (params *ListChannelParams) SetLimit(Limit int64) *ListChannelParams { params.Limit = &Limit return params } @@ -241,7 +238,7 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) } func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan IpMessagingV1Channel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -311,7 +308,6 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_invites.go b/rest/ip_messaging/v1/services_channels_invites.go index 3868030c95..a6771f042d 100644 --- a/rest/ip_messaging/v1/services_channels_invites.go +++ b/rest/ip_messaging/v1/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListInviteParams struct { // Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInviteParams) SetIdentity(Identity []string) *ListInviteParams { params.Identity = &Identity return params } -func (params *ListInviteParams) SetPageSize(PageSize int) *ListInviteParams { +func (params *ListInviteParams) SetPageSize(PageSize int64) *ListInviteParams { params.PageSize = &PageSize return params } -func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { +func (params *ListInviteParams) SetLimit(Limit int64) *ListInviteParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan IpMessagingV1Invite, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Invites diff --git a/rest/ip_messaging/v1/services_channels_members.go b/rest/ip_messaging/v1/services_channels_members.go index a468165ff0..e09fd0d1f7 100644 --- a/rest/ip_messaging/v1/services_channels_members.go +++ b/rest/ip_messaging/v1/services_channels_members.go @@ -40,7 +40,6 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListMemberParams struct { // Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMemberParams) SetIdentity(Identity []string) *ListMemberParams { params.Identity = &Identity return params } -func (params *ListMemberParams) SetPageSize(PageSize int) *ListMemberParams { +func (params *ListMemberParams) SetPageSize(PageSize int64) *ListMemberParams { params.PageSize = &PageSize return params } -func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { +func (params *ListMemberParams) SetLimit(Limit int64) *ListMemberParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan IpMessagingV1Member, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Members @@ -291,7 +288,6 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_messages.go b/rest/ip_messaging/v1/services_channels_messages.go index 73e1aba917..8b35d925f4 100644 --- a/rest/ip_messaging/v1/services_channels_messages.go +++ b/rest/ip_messaging/v1/services_channels_messages.go @@ -46,7 +46,6 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -82,7 +81,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params return ps, err } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -136,20 +133,20 @@ type ListMessageParams struct { // Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMessageParams) SetOrder(Order string) *ListMessageParams { params.Order = &Order return params } -func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { +func (params *ListMessageParams) SetPageSize(PageSize int64) *ListMessageParams { params.PageSize = &PageSize return params } -func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { +func (params *ListMessageParams) SetLimit(Limit int64) *ListMessageParams { params.Limit = &Limit return params } @@ -234,7 +231,7 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params } func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan IpMessagingV1Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages @@ -298,7 +295,6 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_roles.go b/rest/ip_messaging/v1/services_roles.go index b94874fd50..3e99f8211a 100644 --- a/rest/ip_messaging/v1/services_roles.go +++ b/rest/ip_messaging/v1/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -83,7 +82,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*I return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,16 +130,16 @@ func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV1Rol // Optional parameters for the method 'ListRole' type ListRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams { +func (params *ListRoleParams) SetPageSize(PageSize int64) *ListRoleParams { params.PageSize = &PageSize return params } -func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { +func (params *ListRoleParams) SetLimit(Limit int64) *ListRoleParams { params.Limit = &Limit return params } @@ -223,7 +220,7 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan } func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan IpMessagingV1Role, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles @@ -281,7 +278,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_users.go b/rest/ip_messaging/v1/services_users.go index 5fc0f3ed4a..3f5db91178 100644 --- a/rest/ip_messaging/v1/services_users.go +++ b/rest/ip_messaging/v1/services_users.go @@ -52,7 +52,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,7 +89,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*I return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -111,7 +109,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,16 +137,16 @@ func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV1Use // Optional parameters for the method 'ListUser' type ListUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams { +func (params *ListUserParams) SetPageSize(PageSize int64) *ListUserParams { params.PageSize = &PageSize return params } -func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { +func (params *ListUserParams) SetLimit(Limit int64) *ListUserParams { params.Limit = &Limit return params } @@ -230,7 +227,7 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan } func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan IpMessagingV1User, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users @@ -300,7 +297,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_users_channels.go b/rest/ip_messaging/v1/services_users_channels.go index 801fcf96d0..459054e543 100644 --- a/rest/ip_messaging/v1/services_users_channels.go +++ b/rest/ip_messaging/v1/services_users_channels.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserChannelParams) SetPageSize(PageSize int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetPageSize(PageSize int64) *ListUserChannelParams { params.PageSize = &PageSize return params } -func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetLimit(Limit int64) *ListUserChannelParams { params.Limit = &Limit return params } @@ -117,7 +117,7 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan IpMessagingV1UserChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels diff --git a/rest/ip_messaging/v2/credentials.go b/rest/ip_messaging/v2/credentials.go index f5abf50445..44c608153d 100644 --- a/rest/ip_messaging/v2/credentials.go +++ b/rest/ip_messaging/v2/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials" @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessag return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV2Credential, erro // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan IpMess } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan IpMessagingV2Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v2/docs/CredentialsApi.md b/rest/ip_messaging/v2/docs/CredentialsApi.md index b7cc5b2afc..39e31f88a1 100644 --- a/rest/ip_messaging/v2/docs/CredentialsApi.md +++ b/rest/ip_messaging/v2/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md b/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md index fcd580e38c..f40b7bc190 100644 --- a/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md +++ b/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/v2/docs/ServicesApi.md b/rest/ip_messaging/v2/docs/ServicesApi.md index 0d68575784..45da227332 100644 --- a/rest/ip_messaging/v2/docs/ServicesApi.md +++ b/rest/ip_messaging/v2/docs/ServicesApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesBindingsApi.md b/rest/ip_messaging/v2/docs/ServicesBindingsApi.md index eba5f5c0d9..0cf6810ab8 100644 --- a/rest/ip_messaging/v2/docs/ServicesBindingsApi.md +++ b/rest/ip_messaging/v2/docs/ServicesBindingsApi.md @@ -121,8 +121,8 @@ Name | Type | Description ------------- | ------------- | ------------- **BindingType** | [**[]BindingEnumBindingType**](BindingEnumBindingType.md) | **Identity** | **[]string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesChannelsApi.md b/rest/ip_messaging/v2/docs/ServicesChannelsApi.md index f8ddb8105e..f2cef96055 100644 --- a/rest/ip_messaging/v2/docs/ServicesChannelsApi.md +++ b/rest/ip_messaging/v2/docs/ServicesChannelsApi.md @@ -173,8 +173,8 @@ Other parameters are passed through a pointer to a ListChannelParams struct Name | Type | Description ------------- | ------------- | ------------- **Type** | [**[]ChannelEnumChannelType**](ChannelEnumChannelType.md) | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesChannelsInvitesApi.md b/rest/ip_messaging/v2/docs/ServicesChannelsInvitesApi.md index c3d6351cce..29c674214a 100644 --- a/rest/ip_messaging/v2/docs/ServicesChannelsInvitesApi.md +++ b/rest/ip_messaging/v2/docs/ServicesChannelsInvitesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListInviteParams struct Name | Type | Description ------------- | ------------- | ------------- **Identity** | **[]string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesChannelsMembersApi.md b/rest/ip_messaging/v2/docs/ServicesChannelsMembersApi.md index 35bac78cfd..c979d047c6 100644 --- a/rest/ip_messaging/v2/docs/ServicesChannelsMembersApi.md +++ b/rest/ip_messaging/v2/docs/ServicesChannelsMembersApi.md @@ -177,8 +177,8 @@ Other parameters are passed through a pointer to a ListMemberParams struct Name | Type | Description ------------- | ------------- | ------------- **Identity** | **[]string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesChannelsMessagesApi.md b/rest/ip_messaging/v2/docs/ServicesChannelsMessagesApi.md index a23b68b2e5..b01a57cc38 100644 --- a/rest/ip_messaging/v2/docs/ServicesChannelsMessagesApi.md +++ b/rest/ip_messaging/v2/docs/ServicesChannelsMessagesApi.md @@ -177,8 +177,8 @@ Other parameters are passed through a pointer to a ListMessageParams struct Name | Type | Description ------------- | ------------- | ------------- **Order** | **string** | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesChannelsWebhooksApi.md b/rest/ip_messaging/v2/docs/ServicesChannelsWebhooksApi.md index a50d971923..6ac159e676 100644 --- a/rest/ip_messaging/v2/docs/ServicesChannelsWebhooksApi.md +++ b/rest/ip_messaging/v2/docs/ServicesChannelsWebhooksApi.md @@ -174,8 +174,8 @@ Other parameters are passed through a pointer to a ListChannelWebhookParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesRolesApi.md b/rest/ip_messaging/v2/docs/ServicesRolesApi.md index 0ffa0bdd8b..85b35ce2a1 100644 --- a/rest/ip_messaging/v2/docs/ServicesRolesApi.md +++ b/rest/ip_messaging/v2/docs/ServicesRolesApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListRoleParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesUsersApi.md b/rest/ip_messaging/v2/docs/ServicesUsersApi.md index 3c38dc737c..2f2908f407 100644 --- a/rest/ip_messaging/v2/docs/ServicesUsersApi.md +++ b/rest/ip_messaging/v2/docs/ServicesUsersApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesUsersBindingsApi.md b/rest/ip_messaging/v2/docs/ServicesUsersBindingsApi.md index 762929a403..904b8efa90 100644 --- a/rest/ip_messaging/v2/docs/ServicesUsersBindingsApi.md +++ b/rest/ip_messaging/v2/docs/ServicesUsersBindingsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListUserBindingParams struct Name | Type | Description ------------- | ------------- | ------------- **BindingType** | [**[]UserBindingEnumBindingType**](UserBindingEnumBindingType.md) | -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/docs/ServicesUsersChannelsApi.md b/rest/ip_messaging/v2/docs/ServicesUsersChannelsApi.md index c3526fc8bf..a583f6462c 100644 --- a/rest/ip_messaging/v2/docs/ServicesUsersChannelsApi.md +++ b/rest/ip_messaging/v2/docs/ServicesUsersChannelsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListUserChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/ip_messaging/v2/model_list_binding_response_meta.go b/rest/ip_messaging/v2/model_list_binding_response_meta.go index da247aa64d..8e97c4e4b3 100644 --- a/rest/ip_messaging/v2/model_list_binding_response_meta.go +++ b/rest/ip_messaging/v2/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/ip_messaging/v2/services.go b/rest/ip_messaging/v2/services.go index df3740ea4b..524e5b90c5 100644 --- a/rest/ip_messaging/v2/services.go +++ b/rest/ip_messaging/v2/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services" @@ -62,7 +61,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2S return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -82,7 +80,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -110,16 +107,16 @@ func (c *ApiService) FetchService(Sid string) (*IpMessagingV2Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -198,7 +195,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan IpMessagingV } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IpMessagingV2Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -436,7 +433,6 @@ func (params *UpdateServiceParams) SetNotificationsLogEnabled(NotificationsLogEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v2/services_bindings.go b/rest/ip_messaging/v2/services_bindings.go index 66eba541d4..bc6c19163c 100644 --- a/rest/ip_messaging/v2/services_bindings.go +++ b/rest/ip_messaging/v2/services_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -44,7 +43,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*IpMessagingV2Binding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,9 +75,9 @@ type ListBindingParams struct { // Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListBindingParams) SetBindingType(BindingType []string) *ListBindingParams { @@ -90,11 +88,11 @@ func (params *ListBindingParams) SetIdentity(Identity []string) *ListBindingPara params.Identity = &Identity return params } -func (params *ListBindingParams) SetPageSize(PageSize int) *ListBindingParams { +func (params *ListBindingParams) SetPageSize(PageSize int64) *ListBindingParams { params.PageSize = &PageSize return params } -func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { +func (params *ListBindingParams) SetLimit(Limit int64) *ListBindingParams { params.Limit = &Limit return params } @@ -185,7 +183,7 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) } func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan IpMessagingV2Binding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/ip_messaging/v2/services_channels.go b/rest/ip_messaging/v2/services_channels.go index 4f0de75326..3c8f6f0017 100644 --- a/rest/ip_messaging/v2/services_channels.go +++ b/rest/ip_messaging/v2/services_channels.go @@ -77,7 +77,6 @@ func (params *CreateChannelParams) SetCreatedBy(CreatedBy string) *CreateChannel return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -138,7 +137,6 @@ func (params *DeleteChannelParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) error { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -162,7 +160,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -193,20 +190,20 @@ type ListChannelParams struct { // Type *[]string `json:"Type,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListChannelParams) SetType(Type []string) *ListChannelParams { params.Type = &Type return params } -func (params *ListChannelParams) SetPageSize(PageSize int) *ListChannelParams { +func (params *ListChannelParams) SetPageSize(PageSize int64) *ListChannelParams { params.PageSize = &PageSize return params } -func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { +func (params *ListChannelParams) SetLimit(Limit int64) *ListChannelParams { params.Limit = &Limit return params } @@ -292,7 +289,7 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) } func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan IpMessagingV2Channel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -386,7 +383,6 @@ func (params *UpdateChannelParams) SetCreatedBy(CreatedBy string) *UpdateChannel return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_invites.go b/rest/ip_messaging/v2/services_channels_invites.go index 2a84dd9af6..45d67f413f 100644 --- a/rest/ip_messaging/v2/services_channels_invites.go +++ b/rest/ip_messaging/v2/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -73,7 +72,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -95,7 +93,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -127,20 +124,20 @@ type ListInviteParams struct { // Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListInviteParams) SetIdentity(Identity []string) *ListInviteParams { params.Identity = &Identity return params } -func (params *ListInviteParams) SetPageSize(PageSize int) *ListInviteParams { +func (params *ListInviteParams) SetPageSize(PageSize int64) *ListInviteParams { params.PageSize = &PageSize return params } -func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { +func (params *ListInviteParams) SetLimit(Limit int64) *ListInviteParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan IpMessagingV2Invite, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Invites diff --git a/rest/ip_messaging/v2/services_channels_members.go b/rest/ip_messaging/v2/services_channels_members.go index f33396ada6..ba950c82e5 100644 --- a/rest/ip_messaging/v2/services_channels_members.go +++ b/rest/ip_messaging/v2/services_channels_members.go @@ -77,7 +77,6 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -139,7 +138,6 @@ func (params *DeleteMemberParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled return params } -// func (c *ApiService) 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) @@ -164,7 +162,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -196,20 +193,20 @@ type ListMemberParams struct { // Identity *[]string `json:"Identity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMemberParams) SetIdentity(Identity []string) *ListMemberParams { params.Identity = &Identity return params } -func (params *ListMemberParams) SetPageSize(PageSize int) *ListMemberParams { +func (params *ListMemberParams) SetPageSize(PageSize int64) *ListMemberParams { params.PageSize = &PageSize return params } -func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { +func (params *ListMemberParams) SetLimit(Limit int64) *ListMemberParams { params.Limit = &Limit return params } @@ -296,7 +293,7 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * } func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan IpMessagingV2Member, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Members @@ -390,7 +387,6 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_messages.go b/rest/ip_messaging/v2/services_channels_messages.go index dc3f08069b..c65c4c9238 100644 --- a/rest/ip_messaging/v2/services_channels_messages.go +++ b/rest/ip_messaging/v2/services_channels_messages.go @@ -77,7 +77,6 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -139,7 +138,6 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) 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) @@ -164,7 +162,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -196,20 +193,20 @@ type ListMessageParams struct { // Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListMessageParams) SetOrder(Order string) *ListMessageParams { params.Order = &Order return params } -func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { +func (params *ListMessageParams) SetPageSize(PageSize int64) *ListMessageParams { params.PageSize = &PageSize return params } -func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { +func (params *ListMessageParams) SetLimit(Limit int64) *ListMessageParams { params.Limit = &Limit return params } @@ -294,7 +291,7 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params } func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan IpMessagingV2Message, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Messages @@ -388,7 +385,6 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_webhooks.go b/rest/ip_messaging/v2/services_channels_webhooks.go index f5383c8117..aa89d0ef68 100644 --- a/rest/ip_messaging/v2/services_channels_webhooks.go +++ b/rest/ip_messaging/v2/services_channels_webhooks.go @@ -70,7 +70,6 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +121,6 @@ func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, return ps, err } -// func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -144,7 +142,6 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, return nil } -// func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -174,16 +171,16 @@ func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, S // Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListChannelWebhookParams) SetPageSize(PageSize int) *ListChannelWebhookParams { +func (params *ListChannelWebhookParams) SetPageSize(PageSize int64) *ListChannelWebhookParams { params.PageSize = &PageSize return params } -func (params *ListChannelWebhookParams) SetLimit(Limit int) *ListChannelWebhookParams { +func (params *ListChannelWebhookParams) SetLimit(Limit int64) *ListChannelWebhookParams { params.Limit = &Limit return params } @@ -265,7 +262,7 @@ func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, } func (c *ApiService) streamChannelWebhook(response *ListChannelWebhookResponse, params *ListChannelWebhookParams, recordChannel chan IpMessagingV2ChannelWebhook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Webhooks @@ -353,7 +350,6 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_roles.go b/rest/ip_messaging/v2/services_roles.go index f23b0a2f84..41931bcb3f 100644 --- a/rest/ip_messaging/v2/services_roles.go +++ b/rest/ip_messaging/v2/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -83,7 +82,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*I return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,16 +130,16 @@ func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV2Rol // Optional parameters for the method 'ListRole' type ListRoleParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams { +func (params *ListRoleParams) SetPageSize(PageSize int64) *ListRoleParams { params.PageSize = &PageSize return params } -func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { +func (params *ListRoleParams) SetLimit(Limit int64) *ListRoleParams { params.Limit = &Limit return params } @@ -223,7 +220,7 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan } func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan IpMessagingV2Role, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Roles @@ -281,7 +278,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_users.go b/rest/ip_messaging/v2/services_users.go index 879f15e560..5854d3a6b1 100644 --- a/rest/ip_messaging/v2/services_users.go +++ b/rest/ip_messaging/v2/services_users.go @@ -58,7 +58,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -99,7 +98,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*I return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -120,7 +118,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -149,16 +146,16 @@ func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV2Use // Optional parameters for the method 'ListUser' type ListUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams { +func (params *ListUserParams) SetPageSize(PageSize int64) *ListUserParams { params.PageSize = &PageSize return params } -func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { +func (params *ListUserParams) SetLimit(Limit int64) *ListUserParams { params.Limit = &Limit return params } @@ -239,7 +236,7 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan } func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan IpMessagingV2User, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Users @@ -315,7 +312,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_users_bindings.go b/rest/ip_messaging/v2/services_users_bindings.go index fab6679a7a..c782001713 100644 --- a/rest/ip_messaging/v2/services_users_bindings.go +++ b/rest/ip_messaging/v2/services_users_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -45,7 +44,6 @@ func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid st return nil } -// func (c *ApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*IpMessagingV2UserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,20 +75,20 @@ type ListUserBindingParams struct { // BindingType *[]string `json:"BindingType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUserBindingParams) SetBindingType(BindingType []string) *ListUserBindingParams { params.BindingType = &BindingType return params } -func (params *ListUserBindingParams) SetPageSize(PageSize int) *ListUserBindingParams { +func (params *ListUserBindingParams) SetPageSize(PageSize int64) *ListUserBindingParams { params.PageSize = &PageSize return params } -func (params *ListUserBindingParams) SetLimit(Limit int) *ListUserBindingParams { +func (params *ListUserBindingParams) SetLimit(Limit int64) *ListUserBindingParams { params.Limit = &Limit return params } @@ -177,7 +175,7 @@ func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserBinding(response *ListUserBindingResponse, params *ListUserBindingParams, recordChannel chan IpMessagingV2UserBinding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/ip_messaging/v2/services_users_channels.go b/rest/ip_messaging/v2/services_users_channels.go index c151d76751..dbd311e76f 100644 --- a/rest/ip_messaging/v2/services_users_channels.go +++ b/rest/ip_messaging/v2/services_users_channels.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, ChannelSid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -46,7 +45,6 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe return nil } -// func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*IpMessagingV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -76,16 +74,16 @@ func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, Channel // Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUserChannelParams) SetPageSize(PageSize int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetPageSize(PageSize int64) *ListUserChannelParams { params.PageSize = &PageSize return params } -func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams { +func (params *ListUserChannelParams) SetLimit(Limit int64) *ListUserChannelParams { params.Limit = &Limit return params } @@ -167,7 +165,7 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params } func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan IpMessagingV2UserChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -237,7 +235,6 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti return params } -// func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*IpMessagingV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/lookups/v1/phone_numbers.go b/rest/lookups/v1/phone_numbers.go index 4f3eb0a704..6b51a6256b 100644 --- a/rest/lookups/v1/phone_numbers.go +++ b/rest/lookups/v1/phone_numbers.go @@ -49,7 +49,6 @@ func (params *FetchPhoneNumberParams) SetAddOnsData(AddOnsData map[string]interf return params } -// func (c *ApiService) FetchPhoneNumber(PhoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { path := "/v1/PhoneNumbers/{PhoneNumber}" path = strings.Replace(path, "{"+"PhoneNumber"+"}", PhoneNumber, -1) diff --git a/rest/lookups/v2/phone_numbers.go b/rest/lookups/v2/phone_numbers.go index f563d17e7b..e4e2ab11db 100644 --- a/rest/lookups/v2/phone_numbers.go +++ b/rest/lookups/v2/phone_numbers.go @@ -115,7 +115,6 @@ func (params *FetchPhoneNumberParams) SetPartnerSubId(PartnerSubId string) *Fetc return params } -// func (c *ApiService) FetchPhoneNumber(PhoneNumber string, params *FetchPhoneNumberParams) (*LookupsV2PhoneNumber, error) { path := "/v2/PhoneNumbers/{PhoneNumber}" path = strings.Replace(path, "{"+"PhoneNumber"+"}", PhoneNumber, -1) diff --git a/rest/marketplace/v1/available_add_ons.go b/rest/marketplace/v1/available_add_ons.go index cfbae759d8..360153f066 100644 --- a/rest/marketplace/v1/available_add_ons.go +++ b/rest/marketplace/v1/available_add_ons.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchAvailableAddOn(Sid string) (*MarketplaceV1AvailableAdd // Optional parameters for the method 'ListAvailableAddOn' type ListAvailableAddOnParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAvailableAddOnParams) SetPageSize(PageSize int) *ListAvailableAddOnParams { +func (params *ListAvailableAddOnParams) SetPageSize(PageSize int64) *ListAvailableAddOnParams { params.PageSize = &PageSize return params } -func (params *ListAvailableAddOnParams) SetLimit(Limit int) *ListAvailableAddOnParams { +func (params *ListAvailableAddOnParams) SetLimit(Limit int64) *ListAvailableAddOnParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamAvailableAddOn(params *ListAvailableAddOnParams) (cha } func (c *ApiService) streamAvailableAddOn(response *ListAvailableAddOnResponse, params *ListAvailableAddOnParams, recordChannel chan MarketplaceV1AvailableAddOn, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AvailableAddOns diff --git a/rest/marketplace/v1/available_add_ons_extensions.go b/rest/marketplace/v1/available_add_ons_extensions.go index 2936202e46..ad1b8b719b 100644 --- a/rest/marketplace/v1/available_add_ons_extensions.go +++ b/rest/marketplace/v1/available_add_ons_extensions.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchAvailableAddOnExtension(AvailableAddOnSid string, Sid // Optional parameters for the method 'ListAvailableAddOnExtension' type ListAvailableAddOnExtensionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAvailableAddOnExtensionParams) SetPageSize(PageSize int) *ListAvailableAddOnExtensionParams { +func (params *ListAvailableAddOnExtensionParams) SetPageSize(PageSize int64) *ListAvailableAddOnExtensionParams { params.PageSize = &PageSize return params } -func (params *ListAvailableAddOnExtensionParams) SetLimit(Limit int) *ListAvailableAddOnExtensionParams { +func (params *ListAvailableAddOnExtensionParams) SetLimit(Limit int64) *ListAvailableAddOnExtensionParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamAvailableAddOnExtension(AvailableAddOnSid string, par } func (c *ApiService) streamAvailableAddOnExtension(response *ListAvailableAddOnExtensionResponse, params *ListAvailableAddOnExtensionParams, recordChannel chan MarketplaceV1AvailableAddOnExtension, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Extensions diff --git a/rest/marketplace/v1/docs/AvailableAddOnsApi.md b/rest/marketplace/v1/docs/AvailableAddOnsApi.md index 4b7279c34c..1fdf79035d 100644 --- a/rest/marketplace/v1/docs/AvailableAddOnsApi.md +++ b/rest/marketplace/v1/docs/AvailableAddOnsApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListAvailableAddOnParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/marketplace/v1/docs/AvailableAddOnsExtensionsApi.md b/rest/marketplace/v1/docs/AvailableAddOnsExtensionsApi.md index efb37cde4a..9d33e3c3a3 100644 --- a/rest/marketplace/v1/docs/AvailableAddOnsExtensionsApi.md +++ b/rest/marketplace/v1/docs/AvailableAddOnsExtensionsApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListAvailableAddOnExtensionPa Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/marketplace/v1/docs/InstalledAddOnsApi.md b/rest/marketplace/v1/docs/InstalledAddOnsApi.md index 85b9111e06..6db8fdc342 100644 --- a/rest/marketplace/v1/docs/InstalledAddOnsApi.md +++ b/rest/marketplace/v1/docs/InstalledAddOnsApi.md @@ -157,8 +157,8 @@ Other parameters are passed through a pointer to a ListInstalledAddOnParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/marketplace/v1/docs/InstalledAddOnsExtensionsApi.md b/rest/marketplace/v1/docs/InstalledAddOnsExtensionsApi.md index ddd50c00c6..c2c5a19927 100644 --- a/rest/marketplace/v1/docs/InstalledAddOnsExtensionsApi.md +++ b/rest/marketplace/v1/docs/InstalledAddOnsExtensionsApi.md @@ -76,8 +76,8 @@ Other parameters are passed through a pointer to a ListInstalledAddOnExtensionPa Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/marketplace/v1/installed_add_ons.go b/rest/marketplace/v1/installed_add_ons.go index 054a7f8dc4..e94684ca9a 100644 --- a/rest/marketplace/v1/installed_add_ons.go +++ b/rest/marketplace/v1/installed_add_ons.go @@ -143,16 +143,16 @@ func (c *ApiService) FetchInstalledAddOn(Sid string) (*MarketplaceV1InstalledAdd // Optional parameters for the method 'ListInstalledAddOn' type ListInstalledAddOnParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInstalledAddOnParams) SetPageSize(PageSize int) *ListInstalledAddOnParams { +func (params *ListInstalledAddOnParams) SetPageSize(PageSize int64) *ListInstalledAddOnParams { params.PageSize = &PageSize return params } -func (params *ListInstalledAddOnParams) SetLimit(Limit int) *ListInstalledAddOnParams { +func (params *ListInstalledAddOnParams) SetLimit(Limit int64) *ListInstalledAddOnParams { params.Limit = &Limit return params } @@ -231,7 +231,7 @@ func (c *ApiService) StreamInstalledAddOn(params *ListInstalledAddOnParams) (cha } func (c *ApiService) streamInstalledAddOn(response *ListInstalledAddOnResponse, params *ListInstalledAddOnParams, recordChannel chan MarketplaceV1InstalledAddOn, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.InstalledAddOns diff --git a/rest/marketplace/v1/installed_add_ons_extensions.go b/rest/marketplace/v1/installed_add_ons_extensions.go index c31263decc..7e353c08a2 100644 --- a/rest/marketplace/v1/installed_add_ons_extensions.go +++ b/rest/marketplace/v1/installed_add_ons_extensions.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchInstalledAddOnExtension(InstalledAddOnSid string, Sid // Optional parameters for the method 'ListInstalledAddOnExtension' type ListInstalledAddOnExtensionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInstalledAddOnExtensionParams) SetPageSize(PageSize int) *ListInstalledAddOnExtensionParams { +func (params *ListInstalledAddOnExtensionParams) SetPageSize(PageSize int64) *ListInstalledAddOnExtensionParams { params.PageSize = &PageSize return params } -func (params *ListInstalledAddOnExtensionParams) SetLimit(Limit int) *ListInstalledAddOnExtensionParams { +func (params *ListInstalledAddOnExtensionParams) SetLimit(Limit int64) *ListInstalledAddOnExtensionParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamInstalledAddOnExtension(InstalledAddOnSid string, par } func (c *ApiService) streamInstalledAddOnExtension(response *ListInstalledAddOnExtensionResponse, params *ListInstalledAddOnExtensionParams, recordChannel chan MarketplaceV1InstalledAddOnExtension, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Extensions diff --git a/rest/marketplace/v1/referral_conversion.go b/rest/marketplace/v1/referral_conversion.go index 60cd43175b..af7c1a87b9 100644 --- a/rest/marketplace/v1/referral_conversion.go +++ b/rest/marketplace/v1/referral_conversion.go @@ -30,7 +30,6 @@ func (params *CreateReferralConversionParams) SetCreateReferralConversionRequest return params } -// func (c *ApiService) CreateReferralConversion(params *CreateReferralConversionParams) (*MarketplaceV1ReferralConversion, error) { path := "/v1/ReferralConversion" diff --git a/rest/messaging/v1/a2p_brand_registrations.go b/rest/messaging/v1/a2p_brand_registrations.go index 9c2a3bc7e1..7642746cb6 100644 --- a/rest/messaging/v1/a2p_brand_registrations.go +++ b/rest/messaging/v1/a2p_brand_registrations.go @@ -58,7 +58,6 @@ func (params *CreateBrandRegistrationsParams) SetSkipAutomaticSecVet(SkipAutomat return params } -// func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsParams) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations" @@ -98,7 +97,6 @@ func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsPa return ps, err } -// func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -126,16 +124,16 @@ func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegis // Optional parameters for the method 'ListBrandRegistrations' type ListBrandRegistrationsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListBrandRegistrationsParams) SetPageSize(PageSize int) *ListBrandRegistrationsParams { +func (params *ListBrandRegistrationsParams) SetPageSize(PageSize int64) *ListBrandRegistrationsParams { params.PageSize = &PageSize return params } -func (params *ListBrandRegistrationsParams) SetLimit(Limit int) *ListBrandRegistrationsParams { +func (params *ListBrandRegistrationsParams) SetLimit(Limit int64) *ListBrandRegistrationsParams { params.Limit = &Limit return params } @@ -214,7 +212,7 @@ func (c *ApiService) StreamBrandRegistrations(params *ListBrandRegistrationsPara } func (c *ApiService) streamBrandRegistrations(response *ListBrandRegistrationsResponse, params *ListBrandRegistrationsParams, recordChannel chan MessagingV1BrandRegistrations, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Data @@ -261,7 +259,6 @@ func (c *ApiService) getNextListBrandRegistrationsResponse(nextPageUrl string) ( return ps, nil } -// func (c *ApiService) UpdateBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/a2p_brand_registrations_vettings.go b/rest/messaging/v1/a2p_brand_registrations_vettings.go index 6f9d7c5242..80a7806bd2 100644 --- a/rest/messaging/v1/a2p_brand_registrations_vettings.go +++ b/rest/messaging/v1/a2p_brand_registrations_vettings.go @@ -40,7 +40,6 @@ func (params *CreateBrandVettingParams) SetVettingId(VettingId string) *CreateBr return params } -// func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) @@ -72,7 +71,6 @@ func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVett return ps, err } -// func (c *ApiService) FetchBrandVetting(BrandSid string, BrandVettingSid string) (*MessagingV1BrandVetting, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings/{BrandVettingSid}" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) @@ -103,20 +101,20 @@ type ListBrandVettingParams struct { // The third-party provider of the vettings to read VettingProvider *string `json:"VettingProvider,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListBrandVettingParams) SetVettingProvider(VettingProvider string) *ListBrandVettingParams { params.VettingProvider = &VettingProvider return params } -func (params *ListBrandVettingParams) SetPageSize(PageSize int) *ListBrandVettingParams { +func (params *ListBrandVettingParams) SetPageSize(PageSize int64) *ListBrandVettingParams { params.PageSize = &PageSize return params } -func (params *ListBrandVettingParams) SetLimit(Limit int) *ListBrandVettingParams { +func (params *ListBrandVettingParams) SetLimit(Limit int64) *ListBrandVettingParams { params.Limit = &Limit return params } @@ -200,7 +198,7 @@ func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettin } func (c *ApiService) streamBrandVetting(response *ListBrandVettingResponse, params *ListBrandVettingParams, recordChannel chan MessagingV1BrandVetting, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Data diff --git a/rest/messaging/v1/docs/A2pBrandRegistrationsApi.md b/rest/messaging/v1/docs/A2pBrandRegistrationsApi.md index 9273f15697..283bfa0ea5 100644 --- a/rest/messaging/v1/docs/A2pBrandRegistrationsApi.md +++ b/rest/messaging/v1/docs/A2pBrandRegistrationsApi.md @@ -115,8 +115,8 @@ Other parameters are passed through a pointer to a ListBrandRegistrationsParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/A2pBrandRegistrationsVettingsApi.md b/rest/messaging/v1/docs/A2pBrandRegistrationsVettingsApi.md index 3e79d61e55..ec32549665 100644 --- a/rest/messaging/v1/docs/A2pBrandRegistrationsVettingsApi.md +++ b/rest/messaging/v1/docs/A2pBrandRegistrationsVettingsApi.md @@ -121,8 +121,8 @@ Other parameters are passed through a pointer to a ListBrandVettingParams struct Name | Type | Description ------------- | ------------- | ------------- **VettingProvider** | **string** | The third-party provider of the vettings to read -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md b/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md index 2b8f0b215d..81405dccd1 100644 --- a/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md +++ b/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesAlphaSendersApi.md b/rest/messaging/v1/docs/ServicesAlphaSendersApi.md index f6da738cc9..160fb314da 100644 --- a/rest/messaging/v1/docs/ServicesAlphaSendersApi.md +++ b/rest/messaging/v1/docs/ServicesAlphaSendersApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListAlphaSenderParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesApi.md b/rest/messaging/v1/docs/ServicesApi.md index 3726ebdcd4..4fc68243b8 100644 --- a/rest/messaging/v1/docs/ServicesApi.md +++ b/rest/messaging/v1/docs/ServicesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesChannelSendersApi.md b/rest/messaging/v1/docs/ServicesChannelSendersApi.md index 53cf4d76dd..5c6d33b612 100644 --- a/rest/messaging/v1/docs/ServicesChannelSendersApi.md +++ b/rest/messaging/v1/docs/ServicesChannelSendersApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListChannelSenderParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md b/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md index a54e669509..bd8e01310c 100644 --- a/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md +++ b/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md @@ -179,8 +179,8 @@ Other parameters are passed through a pointer to a ListUsAppToPersonParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesDestinationAlphaSendersApi.md b/rest/messaging/v1/docs/ServicesDestinationAlphaSendersApi.md index 0e5222df14..3a764f87c0 100644 --- a/rest/messaging/v1/docs/ServicesDestinationAlphaSendersApi.md +++ b/rest/messaging/v1/docs/ServicesDestinationAlphaSendersApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListDestinationAlphaSenderPar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesPhoneNumbersApi.md b/rest/messaging/v1/docs/ServicesPhoneNumbersApi.md index 6abc5c0b09..555822de8e 100644 --- a/rest/messaging/v1/docs/ServicesPhoneNumbersApi.md +++ b/rest/messaging/v1/docs/ServicesPhoneNumbersApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListPhoneNumberParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/ServicesShortCodesApi.md b/rest/messaging/v1/docs/ServicesShortCodesApi.md index 19aafeb656..b8b685ad87 100644 --- a/rest/messaging/v1/docs/ServicesShortCodesApi.md +++ b/rest/messaging/v1/docs/ServicesShortCodesApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListShortCodeParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/docs/TollfreeVerificationsApi.md b/rest/messaging/v1/docs/TollfreeVerificationsApi.md index 350066a407..c013f7a1fc 100644 --- a/rest/messaging/v1/docs/TollfreeVerificationsApi.md +++ b/rest/messaging/v1/docs/TollfreeVerificationsApi.md @@ -180,8 +180,8 @@ Name | Type | Description **Status** | **string** | The compliance status of the Tollfree Verification record. **ExternalReferenceId** | **string** | Customer supplied reference id for the Tollfree Verification record. **IncludeSubAccounts** | **bool** | Whether to include Tollfree Verifications from sub accounts in list response. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/messaging/v1/link_shortening_domains_certificate.go b/rest/messaging/v1/link_shortening_domains_certificate.go index 18da548714..9b4c36d693 100644 --- a/rest/messaging/v1/link_shortening_domains_certificate.go +++ b/rest/messaging/v1/link_shortening_domains_certificate.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) DeleteDomainCertV4(DomainSid string) error { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -40,7 +39,6 @@ func (c *ApiService) DeleteDomainCertV4(DomainSid string) error { return nil } -// func (c *ApiService) FetchDomainCertV4(DomainSid string) (*MessagingV1DomainCertV4, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -76,7 +74,6 @@ func (params *UpdateDomainCertV4Params) SetTlsCert(TlsCert string) *UpdateDomain return params } -// func (c *ApiService) UpdateDomainCertV4(DomainSid string, params *UpdateDomainCertV4Params) (*MessagingV1DomainCertV4, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_config.go b/rest/messaging/v1/link_shortening_domains_config.go index 4640b96c50..87ed98bfd3 100644 --- a/rest/messaging/v1/link_shortening_domains_config.go +++ b/rest/messaging/v1/link_shortening_domains_config.go @@ -21,7 +21,6 @@ import ( "strings" ) -// func (c *ApiService) FetchDomainConfig(DomainSid string) (*MessagingV1DomainConfig, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Config" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -75,7 +74,6 @@ func (params *UpdateDomainConfigParams) SetDisableHttps(DisableHttps bool) *Upda return params } -// func (c *ApiService) UpdateDomainConfig(DomainSid string, params *UpdateDomainConfigParams) (*MessagingV1DomainConfig, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Config" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_messaging_services.go b/rest/messaging/v1/link_shortening_domains_messaging_services.go index c855ac7e49..3026b96377 100644 --- a/rest/messaging/v1/link_shortening_domains_messaging_services.go +++ b/rest/messaging/v1/link_shortening_domains_messaging_services.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingService, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -46,7 +45,6 @@ func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, Mess return ps, err } -// func (c *ApiService) DeleteLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) error { path := "/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_request_managed_cert.go b/rest/messaging/v1/link_shortening_domains_request_managed_cert.go index 78c888b7cd..8241fde487 100644 --- a/rest/messaging/v1/link_shortening_domains_request_managed_cert.go +++ b/rest/messaging/v1/link_shortening_domains_request_managed_cert.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_messaging_service_domain_config.go b/rest/messaging/v1/link_shortening_messaging_service_domain_config.go index eccc214619..4f6713f79a 100644 --- a/rest/messaging/v1/link_shortening_messaging_service_domain_config.go +++ b/rest/messaging/v1/link_shortening_messaging_service_domain_config.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchDomainConfigMessagingService(MessagingServiceSid string) (*MessagingV1DomainConfigMessagingService, error) { path := "/v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/link_shortening_messaging_services_domain.go b/rest/messaging/v1/link_shortening_messaging_services_domain.go index 959612813b..340f65509c 100644 --- a/rest/messaging/v1/link_shortening_messaging_services_domain.go +++ b/rest/messaging/v1/link_shortening_messaging_services_domain.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchLinkshorteningMessagingServiceDomainAssociation(MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingServiceDomainAssociation, error) { path := "/v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/model_list_alpha_sender_response_meta.go b/rest/messaging/v1/model_list_alpha_sender_response_meta.go index 8d552af555..0e16d90677 100644 --- a/rest/messaging/v1/model_list_alpha_sender_response_meta.go +++ b/rest/messaging/v1/model_list_alpha_sender_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAlphaSenderResponseMeta struct for ListAlphaSenderResponseMeta type ListAlphaSenderResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/messaging/v1/services.go b/rest/messaging/v1/services.go index 19c4398fc1..df62ff110d 100644 --- a/rest/messaging/v1/services.go +++ b/rest/messaging/v1/services.go @@ -124,7 +124,6 @@ func (params *CreateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhoo return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services" @@ -197,7 +196,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Ser return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -217,7 +215,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -245,16 +242,16 @@ func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -333,7 +330,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan MessagingV1S } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan MessagingV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -481,7 +478,6 @@ func (params *UpdateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhoo return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/services_alpha_senders.go b/rest/messaging/v1/services_alpha_senders.go index 469d8cec67..8a99968033 100644 --- a/rest/messaging/v1/services_alpha_senders.go +++ b/rest/messaging/v1/services_alpha_senders.go @@ -34,7 +34,6 @@ func (params *CreateAlphaSenderParams) SetAlphaSender(AlphaSender string) *Creat return params } -// func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSen return ps, err } -// func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1AlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*Messaging // Optional parameters for the method 'ListAlphaSender' type ListAlphaSenderParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAlphaSenderParams) SetPageSize(PageSize int) *ListAlphaSenderParams { +func (params *ListAlphaSenderParams) SetPageSize(PageSize int64) *ListAlphaSenderParams { params.PageSize = &PageSize return params } -func (params *ListAlphaSenderParams) SetLimit(Limit int) *ListAlphaSenderParams { +func (params *ListAlphaSenderParams) SetLimit(Limit int64) *ListAlphaSenderParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSende } func (c *ApiService) streamAlphaSender(response *ListAlphaSenderResponse, params *ListAlphaSenderParams, recordChannel chan MessagingV1AlphaSender, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AlphaSenders diff --git a/rest/messaging/v1/services_channel_senders.go b/rest/messaging/v1/services_channel_senders.go index 8a00c8a5e8..82fa672bed 100644 --- a/rest/messaging/v1/services_channel_senders.go +++ b/rest/messaging/v1/services_channel_senders.go @@ -34,7 +34,6 @@ func (params *CreateChannelSenderParams) SetSid(Sid string) *CreateChannelSender return params } -// func (c *ApiService) CreateChannelSender(MessagingServiceSid string, params *CreateChannelSenderParams) (*MessagingV1ChannelSender, error) { path := "/v1/Services/{MessagingServiceSid}/ChannelSenders" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreateChannelSender(MessagingServiceSid string, params *Cre return ps, err } -// func (c *ApiService) DeleteChannelSender(MessagingServiceSid string, Sid string) error { path := "/v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeleteChannelSender(MessagingServiceSid string, Sid string) return nil } -// func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) (*MessagingV1ChannelSender, error) { path := "/v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) // Optional parameters for the method 'ListChannelSender' type ListChannelSenderParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListChannelSenderParams) SetPageSize(PageSize int) *ListChannelSenderParams { +func (params *ListChannelSenderParams) SetPageSize(PageSize int64) *ListChannelSenderParams { params.PageSize = &PageSize return params } -func (params *ListChannelSenderParams) SetLimit(Limit int) *ListChannelSenderParams { +func (params *ListChannelSenderParams) SetLimit(Limit int64) *ListChannelSenderParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *Lis } func (c *ApiService) streamChannelSender(response *ListChannelSenderResponse, params *ListChannelSenderParams, recordChannel chan MessagingV1ChannelSender, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Senders diff --git a/rest/messaging/v1/services_compliance_usa2p.go b/rest/messaging/v1/services_compliance_usa2p.go index 8cd2f94925..e66db74a4e 100644 --- a/rest/messaging/v1/services_compliance_usa2p.go +++ b/rest/messaging/v1/services_compliance_usa2p.go @@ -124,7 +124,6 @@ func (params *CreateUsAppToPersonParams) SetDirectLending(DirectLending bool) *C return params } -// func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -206,7 +205,6 @@ func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *Cre return ps, err } -// func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) error { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -227,7 +225,6 @@ func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) return nil } -// func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -256,16 +253,16 @@ func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) // Optional parameters for the method 'ListUsAppToPerson' type ListUsAppToPersonParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListUsAppToPersonParams) SetPageSize(PageSize int) *ListUsAppToPersonParams { +func (params *ListUsAppToPersonParams) SetPageSize(PageSize int64) *ListUsAppToPersonParams { params.PageSize = &PageSize return params } -func (params *ListUsAppToPersonParams) SetLimit(Limit int) *ListUsAppToPersonParams { +func (params *ListUsAppToPersonParams) SetLimit(Limit int64) *ListUsAppToPersonParams { params.Limit = &Limit return params } @@ -346,7 +343,7 @@ func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *Lis } func (c *ApiService) streamUsAppToPerson(response *ListUsAppToPersonResponse, params *ListUsAppToPersonParams, recordChannel chan MessagingV1UsAppToPerson, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Compliance @@ -440,7 +437,6 @@ func (params *UpdateUsAppToPersonParams) SetDirectLending(DirectLending bool) *U return params } -// func (c *ApiService) UpdateUsAppToPerson(MessagingServiceSid string, Sid string, params *UpdateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services_compliance_usa2p_usecases.go b/rest/messaging/v1/services_compliance_usa2p_usecases.go index 34f6527a00..e1df2ce438 100644 --- a/rest/messaging/v1/services_compliance_usa2p_usecases.go +++ b/rest/messaging/v1/services_compliance_usa2p_usecases.go @@ -31,7 +31,6 @@ func (params *FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid(BrandRegi return params } -// func (c *ApiService) FetchUsAppToPersonUsecase(MessagingServiceSid string, params *FetchUsAppToPersonUsecaseParams) (*MessagingV1UsAppToPersonUsecase, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/Usecases" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services_destination_alpha_senders.go b/rest/messaging/v1/services_destination_alpha_senders.go index afc92ec761..a1d7097559 100644 --- a/rest/messaging/v1/services_destination_alpha_senders.go +++ b/rest/messaging/v1/services_destination_alpha_senders.go @@ -40,7 +40,6 @@ func (params *CreateDestinationAlphaSenderParams) SetIsoCountryCode(IsoCountryCo return params } -// func (c *ApiService) CreateDestinationAlphaSender(ServiceSid string, params *CreateDestinationAlphaSenderParams) (*MessagingV1DestinationAlphaSender, error) { path := "/v1/Services/{ServiceSid}/DestinationAlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -72,7 +71,6 @@ func (c *ApiService) CreateDestinationAlphaSender(ServiceSid string, params *Cre return ps, err } -// func (c *ApiService) DeleteDestinationAlphaSender(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/DestinationAlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -93,7 +91,6 @@ func (c *ApiService) DeleteDestinationAlphaSender(ServiceSid string, Sid string) return nil } -// func (c *ApiService) FetchDestinationAlphaSender(ServiceSid string, Sid string) (*MessagingV1DestinationAlphaSender, error) { path := "/v1/Services/{ServiceSid}/DestinationAlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,16 +119,16 @@ func (c *ApiService) FetchDestinationAlphaSender(ServiceSid string, Sid string) // Optional parameters for the method 'ListDestinationAlphaSender' type ListDestinationAlphaSenderParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDestinationAlphaSenderParams) SetPageSize(PageSize int) *ListDestinationAlphaSenderParams { +func (params *ListDestinationAlphaSenderParams) SetPageSize(PageSize int64) *ListDestinationAlphaSenderParams { params.PageSize = &PageSize return params } -func (params *ListDestinationAlphaSenderParams) SetLimit(Limit int) *ListDestinationAlphaSenderParams { +func (params *ListDestinationAlphaSenderParams) SetLimit(Limit int64) *ListDestinationAlphaSenderParams { params.Limit = &Limit return params } @@ -212,7 +209,7 @@ func (c *ApiService) StreamDestinationAlphaSender(ServiceSid string, params *Lis } func (c *ApiService) streamDestinationAlphaSender(response *ListDestinationAlphaSenderResponse, params *ListDestinationAlphaSenderParams, recordChannel chan MessagingV1DestinationAlphaSender, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AlphaSenders diff --git a/rest/messaging/v1/services_phone_numbers.go b/rest/messaging/v1/services_phone_numbers.go index 644f38e34d..e375fa1a3d 100644 --- a/rest/messaging/v1/services_phone_numbers.go +++ b/rest/messaging/v1/services_phone_numbers.go @@ -34,7 +34,6 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) return params } -// func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNum return ps, err } -// func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*Messaging // Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListPhoneNumberParams) SetPageSize(PageSize int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetPageSize(PageSize int64) *ListPhoneNumberParams { params.PageSize = &PageSize return params } -func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetLimit(Limit int64) *ListPhoneNumberParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumbe } func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan MessagingV1PhoneNumber, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.PhoneNumbers diff --git a/rest/messaging/v1/services_preregistered_usa2p.go b/rest/messaging/v1/services_preregistered_usa2p.go index 548aa0733b..719285053b 100644 --- a/rest/messaging/v1/services_preregistered_usa2p.go +++ b/rest/messaging/v1/services_preregistered_usa2p.go @@ -43,7 +43,6 @@ func (params *CreateExternalCampaignParams) SetCnpMigration(CnpMigration bool) * return params } -// func (c *ApiService) CreateExternalCampaign(params *CreateExternalCampaignParams) (*MessagingV1ExternalCampaign, error) { path := "/v1/Services/PreregisteredUsa2p" diff --git a/rest/messaging/v1/services_short_codes.go b/rest/messaging/v1/services_short_codes.go index a776f509ff..67e16453bd 100644 --- a/rest/messaging/v1/services_short_codes.go +++ b/rest/messaging/v1/services_short_codes.go @@ -34,7 +34,6 @@ func (params *CreateShortCodeParams) SetShortCodeSid(ShortCodeSid string) *Creat return params } -// func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeP return ps, err } -// func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1 // Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListShortCodeParams) SetPageSize(PageSize int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetPageSize(PageSize int64) *ListShortCodeParams { params.PageSize = &PageSize return params } -func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetLimit(Limit int64) *ListShortCodeParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodePar } func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan MessagingV1ShortCode, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ShortCodes diff --git a/rest/messaging/v1/services_usecases.go b/rest/messaging/v1/services_usecases.go index af836ab9a7..c70764c405 100644 --- a/rest/messaging/v1/services_usecases.go +++ b/rest/messaging/v1/services_usecases.go @@ -19,7 +19,6 @@ import ( "net/url" ) -// func (c *ApiService) FetchUsecase() (*MessagingV1Usecase, error) { path := "/v1/Services/Usecases" diff --git a/rest/messaging/v1/tollfree_verifications.go b/rest/messaging/v1/tollfree_verifications.go index a7373a8700..8cbff54a90 100644 --- a/rest/messaging/v1/tollfree_verifications.go +++ b/rest/messaging/v1/tollfree_verifications.go @@ -166,7 +166,6 @@ func (params *CreateTollfreeVerificationParams) SetExternalReferenceId(ExternalR return params } -// func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications" @@ -264,7 +263,6 @@ func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificati return ps, err } -// func (c *ApiService) DeleteTollfreeVerification(Sid string) error { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -284,7 +282,6 @@ func (c *ApiService) DeleteTollfreeVerification(Sid string) error { return nil } -// func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -320,9 +317,9 @@ type ListTollfreeVerificationParams struct { // Whether to include Tollfree Verifications from sub accounts in list response. IncludeSubAccounts *bool `json:"IncludeSubAccounts,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *ListTollfreeVerificationParams { @@ -341,11 +338,11 @@ func (params *ListTollfreeVerificationParams) SetIncludeSubAccounts(IncludeSubAc params.IncludeSubAccounts = &IncludeSubAccounts return params } -func (params *ListTollfreeVerificationParams) SetPageSize(PageSize int) *ListTollfreeVerificationParams { +func (params *ListTollfreeVerificationParams) SetPageSize(PageSize int64) *ListTollfreeVerificationParams { params.PageSize = &PageSize return params } -func (params *ListTollfreeVerificationParams) SetLimit(Limit int) *ListTollfreeVerificationParams { +func (params *ListTollfreeVerificationParams) SetLimit(Limit int64) *ListTollfreeVerificationParams { params.Limit = &Limit return params } @@ -436,7 +433,7 @@ func (c *ApiService) StreamTollfreeVerification(params *ListTollfreeVerification } func (c *ApiService) streamTollfreeVerification(response *ListTollfreeVerificationResponse, params *ListTollfreeVerificationParams, recordChannel chan MessagingV1TollfreeVerification, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Verifications @@ -614,7 +611,6 @@ func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) return params } -// func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/microvisor/v1/apps.go b/rest/microvisor/v1/apps.go index b1a9a75941..6aa51d1008 100644 --- a/rest/microvisor/v1/apps.go +++ b/rest/microvisor/v1/apps.go @@ -71,16 +71,16 @@ func (c *ApiService) FetchApp(Sid string) (*MicrovisorV1App, error) { // Optional parameters for the method 'ListApp' type ListAppParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAppParams) SetPageSize(PageSize int) *ListAppParams { +func (params *ListAppParams) SetPageSize(PageSize int64) *ListAppParams { params.PageSize = &PageSize return params } -func (params *ListAppParams) SetLimit(Limit int) *ListAppParams { +func (params *ListAppParams) SetLimit(Limit int64) *ListAppParams { params.Limit = &Limit return params } @@ -159,7 +159,7 @@ func (c *ApiService) StreamApp(params *ListAppParams) (chan MicrovisorV1App, cha } func (c *ApiService) streamApp(response *ListAppResponse, params *ListAppParams, recordChannel chan MicrovisorV1App, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Apps diff --git a/rest/microvisor/v1/configs.go b/rest/microvisor/v1/configs.go index 5690f138b5..6ca3d0f9e6 100644 --- a/rest/microvisor/v1/configs.go +++ b/rest/microvisor/v1/configs.go @@ -119,16 +119,16 @@ func (c *ApiService) FetchAccountConfig(Key string) (*MicrovisorV1AccountConfig, // Optional parameters for the method 'ListAccountConfig' type ListAccountConfigParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAccountConfigParams) SetPageSize(PageSize int) *ListAccountConfigParams { +func (params *ListAccountConfigParams) SetPageSize(PageSize int64) *ListAccountConfigParams { params.PageSize = &PageSize return params } -func (params *ListAccountConfigParams) SetLimit(Limit int) *ListAccountConfigParams { +func (params *ListAccountConfigParams) SetLimit(Limit int64) *ListAccountConfigParams { params.Limit = &Limit return params } @@ -207,7 +207,7 @@ func (c *ApiService) StreamAccountConfig(params *ListAccountConfigParams) (chan } func (c *ApiService) streamAccountConfig(response *ListAccountConfigResponse, params *ListAccountConfigParams, recordChannel chan MicrovisorV1AccountConfig, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Configs diff --git a/rest/microvisor/v1/devices.go b/rest/microvisor/v1/devices.go index 99499a5d63..a55ca6b030 100644 --- a/rest/microvisor/v1/devices.go +++ b/rest/microvisor/v1/devices.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchDevice(Sid string) (*MicrovisorV1Device, error) { // Optional parameters for the method 'ListDevice' type ListDeviceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDeviceParams) SetPageSize(PageSize int) *ListDeviceParams { +func (params *ListDeviceParams) SetPageSize(PageSize int64) *ListDeviceParams { params.PageSize = &PageSize return params } -func (params *ListDeviceParams) SetLimit(Limit int) *ListDeviceParams { +func (params *ListDeviceParams) SetLimit(Limit int64) *ListDeviceParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamDevice(params *ListDeviceParams) (chan MicrovisorV1De } func (c *ApiService) streamDevice(response *ListDeviceResponse, params *ListDeviceParams, recordChannel chan MicrovisorV1Device, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Devices diff --git a/rest/microvisor/v1/devices_configs.go b/rest/microvisor/v1/devices_configs.go index 46dd40e0de..feb6ac50cb 100644 --- a/rest/microvisor/v1/devices_configs.go +++ b/rest/microvisor/v1/devices_configs.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchDeviceConfig(DeviceSid string, Key string) (*Microviso // Optional parameters for the method 'ListDeviceConfig' type ListDeviceConfigParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDeviceConfigParams) SetPageSize(PageSize int) *ListDeviceConfigParams { +func (params *ListDeviceConfigParams) SetPageSize(PageSize int64) *ListDeviceConfigParams { params.PageSize = &PageSize return params } -func (params *ListDeviceConfigParams) SetLimit(Limit int) *ListDeviceConfigParams { +func (params *ListDeviceConfigParams) SetLimit(Limit int64) *ListDeviceConfigParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamDeviceConfig(DeviceSid string, params *ListDeviceConf } func (c *ApiService) streamDeviceConfig(response *ListDeviceConfigResponse, params *ListDeviceConfigParams, recordChannel chan MicrovisorV1DeviceConfig, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Configs diff --git a/rest/microvisor/v1/devices_secrets.go b/rest/microvisor/v1/devices_secrets.go index 9558333f7e..27b72f2fcb 100644 --- a/rest/microvisor/v1/devices_secrets.go +++ b/rest/microvisor/v1/devices_secrets.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchDeviceSecret(DeviceSid string, Key string) (*Microviso // Optional parameters for the method 'ListDeviceSecret' type ListDeviceSecretParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDeviceSecretParams) SetPageSize(PageSize int) *ListDeviceSecretParams { +func (params *ListDeviceSecretParams) SetPageSize(PageSize int64) *ListDeviceSecretParams { params.PageSize = &PageSize return params } -func (params *ListDeviceSecretParams) SetLimit(Limit int) *ListDeviceSecretParams { +func (params *ListDeviceSecretParams) SetLimit(Limit int64) *ListDeviceSecretParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamDeviceSecret(DeviceSid string, params *ListDeviceSecr } func (c *ApiService) streamDeviceSecret(response *ListDeviceSecretResponse, params *ListDeviceSecretParams, recordChannel chan MicrovisorV1DeviceSecret, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Secrets diff --git a/rest/microvisor/v1/docs/AppsApi.md b/rest/microvisor/v1/docs/AppsApi.md index 5b7bc79d3e..fc20940cc8 100644 --- a/rest/microvisor/v1/docs/AppsApi.md +++ b/rest/microvisor/v1/docs/AppsApi.md @@ -113,8 +113,8 @@ Other parameters are passed through a pointer to a ListAppParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/docs/ConfigsApi.md b/rest/microvisor/v1/docs/ConfigsApi.md index ed0db1542e..d828dcd9c0 100644 --- a/rest/microvisor/v1/docs/ConfigsApi.md +++ b/rest/microvisor/v1/docs/ConfigsApi.md @@ -155,8 +155,8 @@ Other parameters are passed through a pointer to a ListAccountConfigParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/docs/DevicesApi.md b/rest/microvisor/v1/docs/DevicesApi.md index c5cf7f2502..0ad44e373a 100644 --- a/rest/microvisor/v1/docs/DevicesApi.md +++ b/rest/microvisor/v1/docs/DevicesApi.md @@ -71,8 +71,8 @@ Other parameters are passed through a pointer to a ListDeviceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/docs/DevicesConfigsApi.md b/rest/microvisor/v1/docs/DevicesConfigsApi.md index 848d2710ec..87158369c6 100644 --- a/rest/microvisor/v1/docs/DevicesConfigsApi.md +++ b/rest/microvisor/v1/docs/DevicesConfigsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListDeviceConfigParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/docs/DevicesSecretsApi.md b/rest/microvisor/v1/docs/DevicesSecretsApi.md index 4103d92d7b..71e345d1fa 100644 --- a/rest/microvisor/v1/docs/DevicesSecretsApi.md +++ b/rest/microvisor/v1/docs/DevicesSecretsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListDeviceSecretParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md b/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md index 779a1d4661..5e7a4ede07 100644 --- a/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md +++ b/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/microvisor/v1/docs/SecretsApi.md b/rest/microvisor/v1/docs/SecretsApi.md index 895b78c1a8..3fe88c65bc 100644 --- a/rest/microvisor/v1/docs/SecretsApi.md +++ b/rest/microvisor/v1/docs/SecretsApi.md @@ -155,8 +155,8 @@ Other parameters are passed through a pointer to a ListAccountSecretParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/microvisor/v1/model_list_account_config_response_meta.go b/rest/microvisor/v1/model_list_account_config_response_meta.go index 729c64d9b8..734126b35c 100644 --- a/rest/microvisor/v1/model_list_account_config_response_meta.go +++ b/rest/microvisor/v1/model_list_account_config_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAccountConfigResponseMeta struct for ListAccountConfigResponseMeta type ListAccountConfigResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/microvisor/v1/secrets.go b/rest/microvisor/v1/secrets.go index 39a5f80645..56f2201d28 100644 --- a/rest/microvisor/v1/secrets.go +++ b/rest/microvisor/v1/secrets.go @@ -119,16 +119,16 @@ func (c *ApiService) FetchAccountSecret(Key string) (*MicrovisorV1AccountSecret, // Optional parameters for the method 'ListAccountSecret' type ListAccountSecretParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAccountSecretParams) SetPageSize(PageSize int) *ListAccountSecretParams { +func (params *ListAccountSecretParams) SetPageSize(PageSize int64) *ListAccountSecretParams { params.PageSize = &PageSize return params } -func (params *ListAccountSecretParams) SetLimit(Limit int) *ListAccountSecretParams { +func (params *ListAccountSecretParams) SetLimit(Limit int64) *ListAccountSecretParams { params.Limit = &Limit return params } @@ -207,7 +207,7 @@ func (c *ApiService) StreamAccountSecret(params *ListAccountSecretParams) (chan } func (c *ApiService) streamAccountSecret(response *ListAccountSecretResponse, params *ListAccountSecretParams, recordChannel chan MicrovisorV1AccountSecret, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Secrets diff --git a/rest/monitor/v1/alerts.go b/rest/monitor/v1/alerts.go index 6421e30044..8c93bc964a 100644 --- a/rest/monitor/v1/alerts.go +++ b/rest/monitor/v1/alerts.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchAlert(Sid string) (*MonitorV1AlertInstance, error) { path := "/v1/Alerts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -58,9 +57,9 @@ type ListAlertParams struct { // 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. EndDate *time.Time `json:"EndDate,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAlertParams) SetLogLevel(LogLevel string) *ListAlertParams { @@ -75,11 +74,11 @@ func (params *ListAlertParams) SetEndDate(EndDate time.Time) *ListAlertParams { params.EndDate = &EndDate return params } -func (params *ListAlertParams) SetPageSize(PageSize int) *ListAlertParams { +func (params *ListAlertParams) SetPageSize(PageSize int64) *ListAlertParams { params.PageSize = &PageSize return params } -func (params *ListAlertParams) SetLimit(Limit int) *ListAlertParams { +func (params *ListAlertParams) SetLimit(Limit int64) *ListAlertParams { params.Limit = &Limit return params } @@ -167,7 +166,7 @@ func (c *ApiService) StreamAlert(params *ListAlertParams) (chan MonitorV1Alert, } func (c *ApiService) streamAlert(response *ListAlertResponse, params *ListAlertParams, recordChannel chan MonitorV1Alert, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Alerts diff --git a/rest/monitor/v1/docs/AlertsApi.md b/rest/monitor/v1/docs/AlertsApi.md index 1b6b622b89..0e9e836c0f 100644 --- a/rest/monitor/v1/docs/AlertsApi.md +++ b/rest/monitor/v1/docs/AlertsApi.md @@ -73,8 +73,8 @@ Name | Type | Description **LogLevel** | **string** | Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. **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. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/monitor/v1/docs/EventsApi.md b/rest/monitor/v1/docs/EventsApi.md index f0790e04d9..e76240d86b 100644 --- a/rest/monitor/v1/docs/EventsApi.md +++ b/rest/monitor/v1/docs/EventsApi.md @@ -76,8 +76,8 @@ Name | Type | Description **SourceIpAddress** | **string** | Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console. **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. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/monitor/v1/docs/ListAlertResponseMeta.md b/rest/monitor/v1/docs/ListAlertResponseMeta.md index d1149f4ee0..dcc1226e30 100644 --- a/rest/monitor/v1/docs/ListAlertResponseMeta.md +++ b/rest/monitor/v1/docs/ListAlertResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/events.go b/rest/monitor/v1/events.go index 7c778aa076..e4dcebe6ac 100644 --- a/rest/monitor/v1/events.go +++ b/rest/monitor/v1/events.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchEvent(Sid string) (*MonitorV1Event, error) { path := "/v1/Events/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -64,9 +63,9 @@ type ListEventParams struct { // 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. EndDate *time.Time `json:"EndDate,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListEventParams) SetActorSid(ActorSid string) *ListEventParams { @@ -93,11 +92,11 @@ func (params *ListEventParams) SetEndDate(EndDate time.Time) *ListEventParams { params.EndDate = &EndDate return params } -func (params *ListEventParams) SetPageSize(PageSize int) *ListEventParams { +func (params *ListEventParams) SetPageSize(PageSize int64) *ListEventParams { params.PageSize = &PageSize return params } -func (params *ListEventParams) SetLimit(Limit int) *ListEventParams { +func (params *ListEventParams) SetLimit(Limit int64) *ListEventParams { params.Limit = &Limit return params } @@ -194,7 +193,7 @@ func (c *ApiService) StreamEvent(params *ListEventParams) (chan MonitorV1Event, } func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan MonitorV1Event, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Events diff --git a/rest/monitor/v1/model_list_alert_response_meta.go b/rest/monitor/v1/model_list_alert_response_meta.go index a5c2f674bc..cfbc0259c7 100644 --- a/rest/monitor/v1/model_list_alert_response_meta.go +++ b/rest/monitor/v1/model_list_alert_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAlertResponseMeta struct for ListAlertResponseMeta type ListAlertResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/notify/v1/credentials.go b/rest/notify/v1/credentials.go index 46e3ad9b4c..3550f0d251 100644 --- a/rest/notify/v1/credentials.go +++ b/rest/notify/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials" @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1 return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchCredential(Sid string) (*NotifyV1Credential, error) { // Optional parameters for the method 'ListCredential' type ListCredentialParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams { +func (params *ListCredentialParams) SetPageSize(PageSize int64) *ListCredentialParams { params.PageSize = &PageSize return params } -func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { +func (params *ListCredentialParams) SetLimit(Limit int64) *ListCredentialParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan Notify } func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan NotifyV1Credential, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Credentials @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/notify/v1/docs/CredentialsApi.md b/rest/notify/v1/docs/CredentialsApi.md index 0b74ca2199..96be4712d3 100644 --- a/rest/notify/v1/docs/CredentialsApi.md +++ b/rest/notify/v1/docs/CredentialsApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListCredentialParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/notify/v1/docs/ListBindingResponseMeta.md b/rest/notify/v1/docs/ListBindingResponseMeta.md index fcd580e38c..f40b7bc190 100644 --- a/rest/notify/v1/docs/ListBindingResponseMeta.md +++ b/rest/notify/v1/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/notify/v1/docs/ServicesApi.md index a3998324d5..21321b2b40 100644 --- a/rest/notify/v1/docs/ServicesApi.md +++ b/rest/notify/v1/docs/ServicesApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The string that identifies the Service resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/notify/v1/docs/ServicesBindingsApi.md b/rest/notify/v1/docs/ServicesBindingsApi.md index 5a2dc60ad8..fffe3a39f8 100644 --- a/rest/notify/v1/docs/ServicesBindingsApi.md +++ b/rest/notify/v1/docs/ServicesBindingsApi.md @@ -173,8 +173,8 @@ Name | Type | Description **EndDate** | **string** | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. **Identity** | **[]string** | The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/notify/v1/model_list_binding_response_meta.go b/rest/notify/v1/model_list_binding_response_meta.go index aec528bf74..4da24841c4 100644 --- a/rest/notify/v1/model_list_binding_response_meta.go +++ b/rest/notify/v1/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/notify/v1/services.go b/rest/notify/v1/services.go index ea47b0e2ee..5dad7e60f7 100644 --- a/rest/notify/v1/services.go +++ b/rest/notify/v1/services.go @@ -112,7 +112,6 @@ func (params *CreateServiceParams) SetDeliveryCallbackEnabled(DeliveryCallbackEn return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services" @@ -179,7 +178,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*NotifyV1Servic return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -199,7 +197,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -229,20 +226,20 @@ type ListServiceParams struct { // The string that identifies the Service resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListServiceParams) SetFriendlyName(FriendlyName string) *ListServiceParams { params.FriendlyName = &FriendlyName return params } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -324,7 +321,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan NotifyV1Serv } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan NotifyV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -460,7 +457,6 @@ func (params *UpdateServiceParams) SetDeliveryCallbackEnabled(DeliveryCallbackEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/notify/v1/services_bindings.go b/rest/notify/v1/services_bindings.go index 053c891401..f8e16ebf50 100644 --- a/rest/notify/v1/services_bindings.go +++ b/rest/notify/v1/services_bindings.go @@ -70,7 +70,6 @@ func (params *CreateBindingParams) SetEndpoint(Endpoint string) *CreateBindingPa return params } -// func (c *ApiService) CreateBinding(ServiceSid string, params *CreateBindingParams) (*NotifyV1Binding, error) { path := "/v1/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -119,7 +118,6 @@ func (c *ApiService) CreateBinding(ServiceSid string, params *CreateBindingParam return ps, err } -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,7 +138,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*NotifyV1Binding, error) { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -177,9 +174,9 @@ type ListBindingParams struct { // 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. Tag *[]string `json:"Tag,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListBindingParams) SetStartDate(StartDate string) *ListBindingParams { @@ -198,11 +195,11 @@ func (params *ListBindingParams) SetTag(Tag []string) *ListBindingParams { params.Tag = &Tag return params } -func (params *ListBindingParams) SetPageSize(PageSize int) *ListBindingParams { +func (params *ListBindingParams) SetPageSize(PageSize int64) *ListBindingParams { params.PageSize = &PageSize return params } -func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { +func (params *ListBindingParams) SetLimit(Limit int64) *ListBindingParams { params.Limit = &Limit return params } @@ -299,7 +296,7 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) } func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan NotifyV1Binding, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Bindings diff --git a/rest/notify/v1/services_notifications.go b/rest/notify/v1/services_notifications.go index 79a85353f5..38815856ed 100644 --- a/rest/notify/v1/services_notifications.go +++ b/rest/notify/v1/services_notifications.go @@ -134,7 +134,6 @@ func (params *CreateNotificationParams) SetTag(Tag []string) *CreateNotification return params } -// func (c *ApiService) CreateNotification(ServiceSid string, params *CreateNotificationParams) (*NotifyV1Notification, error) { path := "/v1/Services/{ServiceSid}/Notifications" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/numbers/v1/README.md b/rest/numbers/v1/README.md index 4a42938fa7..c850a46268 100644 --- a/rest/numbers/v1/README.md +++ b/rest/numbers/v1/README.md @@ -31,19 +31,14 @@ All URIs are relative to *https://numbers.twilio.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*HostedNumberEligibilityApi* | [**CreateEligibility**](docs/HostedNumberEligibilityApi.md#createeligibility) | **Post** /v1/HostedNumber/Eligibility | -*HostedNumberEligibilityBulkApi* | [**CreateBulkEligibility**](docs/HostedNumberEligibilityBulkApi.md#createbulkeligibility) | **Post** /v1/HostedNumber/Eligibility/Bulk | *HostedNumberEligibilityBulkApi* | [**FetchBulkEligibility**](docs/HostedNumberEligibilityBulkApi.md#fetchbulkeligibility) | **Get** /v1/HostedNumber/Eligibility/Bulk/{RequestId} | -*PortingConfigurationWebhookApi* | [**CreatePortingWebhookConfiguration**](docs/PortingConfigurationWebhookApi.md#createportingwebhookconfiguration) | **Post** /v1/Porting/Configuration/Webhook | *PortingConfigurationWebhookApi* | [**DeletePortingWebhookConfigurationDelete**](docs/PortingConfigurationWebhookApi.md#deleteportingwebhookconfigurationdelete) | **Delete** /v1/Porting/Configuration/Webhook/{WebhookType} | *PortingConfigurationWebhookApi* | [**FetchPortingWebhookConfigurationFetch**](docs/PortingConfigurationWebhookApi.md#fetchportingwebhookconfigurationfetch) | **Get** /v1/Porting/Configuration/Webhook | -*PortingPortInApi* | [**CreatePortingPortIn**](docs/PortingPortInApi.md#createportingportin) | **Post** /v1/Porting/PortIn | *PortingPortInApi* | [**DeletePortingPortIn**](docs/PortingPortInApi.md#deleteportingportin) | **Delete** /v1/Porting/PortIn/{PortInRequestSid} | *PortingPortInApi* | [**FetchPortingPortIn**](docs/PortingPortInApi.md#fetchportingportin) | **Get** /v1/Porting/PortIn/{PortInRequestSid} | *PortingPortInPhoneNumberApi* | [**DeletePortingPortInPhoneNumber**](docs/PortingPortInPhoneNumberApi.md#deleteportingportinphonenumber) | **Delete** /v1/Porting/PortIn/{PortInRequestSid}/PhoneNumber/{PhoneNumberSid} | *PortingPortInPhoneNumberApi* | [**FetchPortingPortInPhoneNumber**](docs/PortingPortInPhoneNumberApi.md#fetchportingportinphonenumber) | **Get** /v1/Porting/PortIn/{PortInRequestSid}/PhoneNumber/{PhoneNumberSid} | *PortingPortabilityPhoneNumberApi* | [**FetchPortingPortability**](docs/PortingPortabilityPhoneNumberApi.md#fetchportingportability) | **Get** /v1/Porting/Portability/PhoneNumber/{PhoneNumber} | -*SigningRequestConfigurationApi* | [**CreateSigningRequestConfiguration**](docs/SigningRequestConfigurationApi.md#createsigningrequestconfiguration) | **Post** /v1/SigningRequest/Configuration | *SigningRequestConfigurationApi* | [**ListSigningRequestConfiguration**](docs/SigningRequestConfigurationApi.md#listsigningrequestconfiguration) | **Get** /v1/SigningRequest/Configuration | diff --git a/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md index ea7489e932..ea60f15fb1 100644 --- a/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md +++ b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md @@ -4,50 +4,10 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateBulkEligibility**](HostedNumberEligibilityBulkApi.md#CreateBulkEligibility) | **Post** /v1/HostedNumber/Eligibility/Bulk | [**FetchBulkEligibility**](HostedNumberEligibilityBulkApi.md#FetchBulkEligibility) | **Get** /v1/HostedNumber/Eligibility/Bulk/{RequestId} | -## CreateBulkEligibility - -> NumbersV1BulkEligibility CreateBulkEligibility(ctx, optional) - - - -Create a bulk eligibility check for a set of numbers that you want to host in Twilio. - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateBulkEligibilityParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**NumbersV1BulkEligibility**](NumbersV1BulkEligibility.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## FetchBulkEligibility > NumbersV1BulkEligibility FetchBulkEligibility(ctx, RequestId) diff --git a/rest/numbers/v1/docs/ListSigningRequestConfigurationResponseMeta.md b/rest/numbers/v1/docs/ListSigningRequestConfigurationResponseMeta.md index 4451d118b1..82691ea26c 100644 --- a/rest/numbers/v1/docs/ListSigningRequestConfigurationResponseMeta.md +++ b/rest/numbers/v1/docs/ListSigningRequestConfigurationResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/v1/docs/PortingConfigurationWebhookApi.md b/rest/numbers/v1/docs/PortingConfigurationWebhookApi.md index 37f1f53dd5..10d5642228 100644 --- a/rest/numbers/v1/docs/PortingConfigurationWebhookApi.md +++ b/rest/numbers/v1/docs/PortingConfigurationWebhookApi.md @@ -4,51 +4,11 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreatePortingWebhookConfiguration**](PortingConfigurationWebhookApi.md#CreatePortingWebhookConfiguration) | **Post** /v1/Porting/Configuration/Webhook | [**DeletePortingWebhookConfigurationDelete**](PortingConfigurationWebhookApi.md#DeletePortingWebhookConfigurationDelete) | **Delete** /v1/Porting/Configuration/Webhook/{WebhookType} | [**FetchPortingWebhookConfigurationFetch**](PortingConfigurationWebhookApi.md#FetchPortingWebhookConfigurationFetch) | **Get** /v1/Porting/Configuration/Webhook | -## CreatePortingWebhookConfiguration - -> NumbersV1PortingWebhookConfiguration CreatePortingWebhookConfiguration(ctx, optional) - - - -Create a Webhook Configuration - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreatePortingWebhookConfigurationParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**NumbersV1PortingWebhookConfiguration**](NumbersV1PortingWebhookConfiguration.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## DeletePortingWebhookConfigurationDelete > DeletePortingWebhookConfigurationDelete(ctx, WebhookType) diff --git a/rest/numbers/v1/docs/PortingPortInApi.md b/rest/numbers/v1/docs/PortingPortInApi.md index 26a881ed8b..45a13c6a5f 100644 --- a/rest/numbers/v1/docs/PortingPortInApi.md +++ b/rest/numbers/v1/docs/PortingPortInApi.md @@ -4,51 +4,11 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreatePortingPortIn**](PortingPortInApi.md#CreatePortingPortIn) | **Post** /v1/Porting/PortIn | [**DeletePortingPortIn**](PortingPortInApi.md#DeletePortingPortIn) | **Delete** /v1/Porting/PortIn/{PortInRequestSid} | [**FetchPortingPortIn**](PortingPortInApi.md#FetchPortingPortIn) | **Get** /v1/Porting/PortIn/{PortInRequestSid} | -## CreatePortingPortIn - -> NumbersV1PortingPortIn CreatePortingPortIn(ctx, optional) - - - -Allows to create a new port in request - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreatePortingPortInParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**NumbersV1PortingPortIn**](NumbersV1PortingPortIn.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## DeletePortingPortIn > DeletePortingPortIn(ctx, PortInRequestSid) diff --git a/rest/numbers/v1/docs/SigningRequestConfigurationApi.md b/rest/numbers/v1/docs/SigningRequestConfigurationApi.md index 2341361e4c..32489c0f74 100644 --- a/rest/numbers/v1/docs/SigningRequestConfigurationApi.md +++ b/rest/numbers/v1/docs/SigningRequestConfigurationApi.md @@ -4,50 +4,10 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateSigningRequestConfiguration**](SigningRequestConfigurationApi.md#CreateSigningRequestConfiguration) | **Post** /v1/SigningRequest/Configuration | [**ListSigningRequestConfiguration**](SigningRequestConfigurationApi.md#ListSigningRequestConfiguration) | **Get** /v1/SigningRequest/Configuration | -## CreateSigningRequestConfiguration - -> NumbersV1SigningRequestConfiguration CreateSigningRequestConfiguration(ctx, optional) - - - -Synchronous operation to insert or update a configuration for the customer. - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateSigningRequestConfigurationParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**NumbersV1SigningRequestConfiguration**](NumbersV1SigningRequestConfiguration.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## ListSigningRequestConfiguration > []NumbersV1SigningRequestConfiguration ListSigningRequestConfiguration(ctx, optional) @@ -69,8 +29,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Country** | **string** | The country ISO code to apply this configuration, this is an optional field, Example: US, MX **Product** | **string** | The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v1/hosted_number_eligibility_bulk.go b/rest/numbers/v1/hosted_number_eligibility_bulk.go index 80a3dcab4e..575ff23203 100644 --- a/rest/numbers/v1/hosted_number_eligibility_bulk.go +++ b/rest/numbers/v1/hosted_number_eligibility_bulk.go @@ -20,50 +20,6 @@ import ( "strings" ) -// Optional parameters for the method 'CreateBulkEligibility' -type CreateBulkEligibilityParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreateBulkEligibilityParams) SetBody(Body map[string]interface{}) *CreateBulkEligibilityParams { - params.Body = &Body - return params -} - -// Create a bulk eligibility check for a set of numbers that you want to host in Twilio. -func (c *ApiService) CreateBulkEligibility(params *CreateBulkEligibilityParams) (*NumbersV1BulkEligibility, error) { - path := "/v1/HostedNumber/Eligibility/Bulk" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV1BulkEligibility{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Fetch an eligibility bulk check that you requested to host in Twilio. func (c *ApiService) FetchBulkEligibility(RequestId string) (*NumbersV1BulkEligibility, error) { path := "/v1/HostedNumber/Eligibility/Bulk/{RequestId}" diff --git a/rest/numbers/v1/model_list_signing_request_configuration_response_meta.go b/rest/numbers/v1/model_list_signing_request_configuration_response_meta.go index 4dd754ca74..728370c828 100644 --- a/rest/numbers/v1/model_list_signing_request_configuration_response_meta.go +++ b/rest/numbers/v1/model_list_signing_request_configuration_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListSigningRequestConfigurationResponseMeta struct for ListSigningRequestConfigurationResponseMeta type ListSigningRequestConfigurationResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/numbers/v1/porting_configuration_webhook.go b/rest/numbers/v1/porting_configuration_webhook.go index fe1012b2cf..b99d4eaf38 100644 --- a/rest/numbers/v1/porting_configuration_webhook.go +++ b/rest/numbers/v1/porting_configuration_webhook.go @@ -20,50 +20,6 @@ import ( "strings" ) -// Optional parameters for the method 'CreatePortingWebhookConfiguration' -type CreatePortingWebhookConfigurationParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreatePortingWebhookConfigurationParams) SetBody(Body map[string]interface{}) *CreatePortingWebhookConfigurationParams { - params.Body = &Body - return params -} - -// Create a Webhook Configuration -func (c *ApiService) CreatePortingWebhookConfiguration(params *CreatePortingWebhookConfigurationParams) (*NumbersV1PortingWebhookConfiguration, error) { - path := "/v1/Porting/Configuration/Webhook" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV1PortingWebhookConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Allows the client to delete a webhook configuration. func (c *ApiService) DeletePortingWebhookConfigurationDelete(WebhookType string) error { path := "/v1/Porting/Configuration/Webhook/{WebhookType}" diff --git a/rest/numbers/v1/porting_port_in.go b/rest/numbers/v1/porting_port_in.go index 7b026458a3..f324c8439d 100644 --- a/rest/numbers/v1/porting_port_in.go +++ b/rest/numbers/v1/porting_port_in.go @@ -20,50 +20,6 @@ import ( "strings" ) -// Optional parameters for the method 'CreatePortingPortIn' -type CreatePortingPortInParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreatePortingPortInParams) SetBody(Body map[string]interface{}) *CreatePortingPortInParams { - params.Body = &Body - return params -} - -// Allows to create a new port in request -func (c *ApiService) CreatePortingPortIn(params *CreatePortingPortInParams) (*NumbersV1PortingPortIn, error) { - path := "/v1/Porting/PortIn" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV1PortingPortIn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Allows to cancel a port in request by SID func (c *ApiService) DeletePortingPortIn(PortInRequestSid string) error { path := "/v1/Porting/PortIn/{PortInRequestSid}" diff --git a/rest/numbers/v1/signing_request_configuration.go b/rest/numbers/v1/signing_request_configuration.go index bc1530b294..5abd75fdc0 100644 --- a/rest/numbers/v1/signing_request_configuration.go +++ b/rest/numbers/v1/signing_request_configuration.go @@ -22,50 +22,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// Optional parameters for the method 'CreateSigningRequestConfiguration' -type CreateSigningRequestConfigurationParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreateSigningRequestConfigurationParams) SetBody(Body map[string]interface{}) *CreateSigningRequestConfigurationParams { - params.Body = &Body - return params -} - -// Synchronous operation to insert or update a configuration for the customer. -func (c *ApiService) CreateSigningRequestConfiguration(params *CreateSigningRequestConfigurationParams) (*NumbersV1SigningRequestConfiguration, error) { - path := "/v1/SigningRequest/Configuration" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV1SigningRequestConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Optional parameters for the method 'ListSigningRequestConfiguration' type ListSigningRequestConfigurationParams struct { // The country ISO code to apply this configuration, this is an optional field, Example: US, MX @@ -73,9 +29,9 @@ type ListSigningRequestConfigurationParams struct { // The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting Product *string `json:"Product,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSigningRequestConfigurationParams) SetCountry(Country string) *ListSigningRequestConfigurationParams { @@ -86,11 +42,11 @@ func (params *ListSigningRequestConfigurationParams) SetProduct(Product string) params.Product = &Product return params } -func (params *ListSigningRequestConfigurationParams) SetPageSize(PageSize int) *ListSigningRequestConfigurationParams { +func (params *ListSigningRequestConfigurationParams) SetPageSize(PageSize int64) *ListSigningRequestConfigurationParams { params.PageSize = &PageSize return params } -func (params *ListSigningRequestConfigurationParams) SetLimit(Limit int) *ListSigningRequestConfigurationParams { +func (params *ListSigningRequestConfigurationParams) SetLimit(Limit int64) *ListSigningRequestConfigurationParams { params.Limit = &Limit return params } @@ -175,7 +131,7 @@ func (c *ApiService) StreamSigningRequestConfiguration(params *ListSigningReques } func (c *ApiService) streamSigningRequestConfiguration(response *ListSigningRequestConfigurationResponse, params *ListSigningRequestConfigurationParams, recordChannel chan NumbersV1SigningRequestConfiguration, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Configurations diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index 48560e983e..141d283215 100644 --- a/rest/numbers/v2/README.md +++ b/rest/numbers/v2/README.md @@ -41,7 +41,6 @@ Class | Method | HTTP request | Description *HostedNumberOrdersApi* | [**FetchHostedNumberOrder**](docs/HostedNumberOrdersApi.md#fetchhostednumberorder) | **Get** /v2/HostedNumber/Orders/{Sid} | *HostedNumberOrdersApi* | [**ListHostedNumberOrder**](docs/HostedNumberOrdersApi.md#listhostednumberorder) | **Get** /v2/HostedNumber/Orders | *HostedNumberOrdersApi* | [**UpdateHostedNumberOrder**](docs/HostedNumberOrdersApi.md#updatehostednumberorder) | **Post** /v2/HostedNumber/Orders/{Sid} | -*HostedNumberOrdersBulkApi* | [**CreateBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#createbulkhostednumberorder) | **Post** /v2/HostedNumber/Orders/Bulk | *HostedNumberOrdersBulkApi* | [**FetchBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#fetchbulkhostednumberorder) | **Get** /v2/HostedNumber/Orders/Bulk/{BulkHostingSid} | *RegulatoryComplianceBundlesApi* | [**CreateBundle**](docs/RegulatoryComplianceBundlesApi.md#createbundle) | **Post** /v2/RegulatoryCompliance/Bundles | *RegulatoryComplianceBundlesApi* | [**DeleteBundle**](docs/RegulatoryComplianceBundlesApi.md#deletebundle) | **Delete** /v2/RegulatoryCompliance/Bundles/{Sid} | diff --git a/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsApi.md b/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsApi.md index f8db843a80..890bae4ec1 100644 --- a/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsApi.md +++ b/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsApi.md @@ -160,8 +160,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Email** | **string** | Email that this AuthorizationDocument will be sent to for signing. **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/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsDependentHostedNumberOrdersApi.md b/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsDependentHostedNumberOrdersApi.md index ea516cb797..f596c0b278 100644 --- a/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsDependentHostedNumberOrdersApi.md +++ b/rest/numbers/v2/docs/HostedNumberAuthorizationDocumentsDependentHostedNumberOrdersApi.md @@ -35,8 +35,8 @@ Name | Type | Description **PhoneNumber** | **string** | An E164 formatted phone number hosted by this HostedNumberOrder. **IncomingPhoneNumberSid** | **string** | A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. **FriendlyName** | **string** | A human readable description of this resource, up to 128 characters. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/HostedNumberOrdersApi.md b/rest/numbers/v2/docs/HostedNumberOrdersApi.md index 43816091f0..503ee0f639 100644 --- a/rest/numbers/v2/docs/HostedNumberOrdersApi.md +++ b/rest/numbers/v2/docs/HostedNumberOrdersApi.md @@ -174,8 +174,8 @@ Name | Type | Description **PhoneNumber** | **string** | An E164 formatted phone number hosted by this HostedNumberOrder. **IncomingPhoneNumberSid** | **string** | A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. **FriendlyName** | **string** | A human readable description of this resource, up to 128 characters. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md b/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md index 2674757ec8..fbbcd3450f 100644 --- a/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md +++ b/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md @@ -4,50 +4,10 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateBulkHostedNumberOrder**](HostedNumberOrdersBulkApi.md#CreateBulkHostedNumberOrder) | **Post** /v2/HostedNumber/Orders/Bulk | [**FetchBulkHostedNumberOrder**](HostedNumberOrdersBulkApi.md#FetchBulkHostedNumberOrder) | **Get** /v2/HostedNumber/Orders/Bulk/{BulkHostingSid} | -## CreateBulkHostedNumberOrder - -> NumbersV2BulkHostedNumberOrder CreateBulkHostedNumberOrder(ctx, optional) - - - -Host multiple phone numbers on Twilio's platform. - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateBulkHostedNumberOrderParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**NumbersV2BulkHostedNumberOrder**](NumbersV2BulkHostedNumberOrder.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## FetchBulkHostedNumberOrder > NumbersV2BulkHostedNumberOrder FetchBulkHostedNumberOrder(ctx, BulkHostingSidoptional) diff --git a/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md b/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md index 326d23ece1..e26545bdd7 100644 --- a/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md +++ b/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/RegulatoryComplianceBundlesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md index b705b358f6..736c06f85b 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md @@ -172,8 +172,8 @@ Name | Type | Description **ValidUntilDate** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. **ValidUntilDateBefore** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. **ValidUntilDateAfter** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceBundlesCopiesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesCopiesApi.md index 5f86aa2ea4..b1e526fa12 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesCopiesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesCopiesApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListBundleCopyParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceBundlesEvaluationsApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesEvaluationsApi.md index abdfc18629..580d12b39c 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesEvaluationsApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesEvaluationsApi.md @@ -118,8 +118,8 @@ Other parameters are passed through a pointer to a ListEvaluationParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceBundlesItemAssignmentsApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesItemAssignmentsApi.md index 7fde0b3cbd..8a8e62fcd2 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesItemAssignmentsApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesItemAssignmentsApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListItemAssignmentParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceEndUserTypesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceEndUserTypesApi.md index 7b1fb77ab1..0fb5d672af 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceEndUserTypesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceEndUserTypesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListEndUserTypeParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceEndUsersApi.md b/rest/numbers/v2/docs/RegulatoryComplianceEndUsersApi.md index 226f4f5b33..2fb47b11a6 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceEndUsersApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceEndUsersApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListEndUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceRegulationsApi.md b/rest/numbers/v2/docs/RegulatoryComplianceRegulationsApi.md index beb1f3f11f..a8f22068a2 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceRegulationsApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceRegulationsApi.md @@ -75,8 +75,8 @@ Name | Type | Description **IsoCountry** | **string** | The ISO country code of the phone number's country. **NumberType** | **string** | The type of phone number that the regulatory requiremnt is restricting. **IncludeConstraints** | **bool** | A boolean parameter indicating whether to include constraints or not for supporting end user, documents and their fields -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentTypesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentTypesApi.md index 882903c19b..d7d0075a3c 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentTypesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentTypesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListSupportingDocumentTypePar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentsApi.md b/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentsApi.md index 360e5295ba..1ec7bb501d 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentsApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceSupportingDocumentsApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListSupportingDocumentParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/numbers/v2/hosted_number_authorization_documents.go b/rest/numbers/v2/hosted_number_authorization_documents.go index 9df92c3270..23eae5a958 100644 --- a/rest/numbers/v2/hosted_number_authorization_documents.go +++ b/rest/numbers/v2/hosted_number_authorization_documents.go @@ -163,9 +163,9 @@ type ListAuthorizationDocumentParams struct { // 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/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAuthorizationDocumentParams) SetEmail(Email string) *ListAuthorizationDocumentParams { @@ -176,11 +176,11 @@ func (params *ListAuthorizationDocumentParams) SetStatus(Status string) *ListAut params.Status = &Status return params } -func (params *ListAuthorizationDocumentParams) SetPageSize(PageSize int) *ListAuthorizationDocumentParams { +func (params *ListAuthorizationDocumentParams) SetPageSize(PageSize int64) *ListAuthorizationDocumentParams { params.PageSize = &PageSize return params } -func (params *ListAuthorizationDocumentParams) SetLimit(Limit int) *ListAuthorizationDocumentParams { +func (params *ListAuthorizationDocumentParams) SetLimit(Limit int64) *ListAuthorizationDocumentParams { params.Limit = &Limit return params } @@ -265,7 +265,7 @@ func (c *ApiService) StreamAuthorizationDocument(params *ListAuthorizationDocume } func (c *ApiService) streamAuthorizationDocument(response *ListAuthorizationDocumentResponse, params *ListAuthorizationDocumentParams, recordChannel chan NumbersV2AuthorizationDocument, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Items diff --git a/rest/numbers/v2/hosted_number_authorization_documents_dependent_hosted_number_orders.go b/rest/numbers/v2/hosted_number_authorization_documents_dependent_hosted_number_orders.go index d4bf9cf756..2f2058c22e 100644 --- a/rest/numbers/v2/hosted_number_authorization_documents_dependent_hosted_number_orders.go +++ b/rest/numbers/v2/hosted_number_authorization_documents_dependent_hosted_number_orders.go @@ -34,9 +34,9 @@ type ListDependentHostedNumberOrderParams struct { // A human readable description of this resource, up to 128 characters. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListDependentHostedNumberOrderParams) SetStatus(Status string) *ListDependentHostedNumberOrderParams { @@ -55,11 +55,11 @@ func (params *ListDependentHostedNumberOrderParams) SetFriendlyName(FriendlyName params.FriendlyName = &FriendlyName return params } -func (params *ListDependentHostedNumberOrderParams) SetPageSize(PageSize int) *ListDependentHostedNumberOrderParams { +func (params *ListDependentHostedNumberOrderParams) SetPageSize(PageSize int64) *ListDependentHostedNumberOrderParams { params.PageSize = &PageSize return params } -func (params *ListDependentHostedNumberOrderParams) SetLimit(Limit int) *ListDependentHostedNumberOrderParams { +func (params *ListDependentHostedNumberOrderParams) SetLimit(Limit int64) *ListDependentHostedNumberOrderParams { params.Limit = &Limit return params } @@ -152,7 +152,7 @@ func (c *ApiService) StreamDependentHostedNumberOrder(SigningDocumentSid string, } func (c *ApiService) streamDependentHostedNumberOrder(response *ListDependentHostedNumberOrderResponse, params *ListDependentHostedNumberOrderParams, recordChannel chan NumbersV2DependentHostedNumberOrder, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Items diff --git a/rest/numbers/v2/hosted_number_orders.go b/rest/numbers/v2/hosted_number_orders.go index ecbeedab64..74d8c71779 100644 --- a/rest/numbers/v2/hosted_number_orders.go +++ b/rest/numbers/v2/hosted_number_orders.go @@ -257,9 +257,9 @@ type ListHostedNumberOrderParams struct { // A human readable description of this resource, up to 128 characters. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListHostedNumberOrderParams) SetStatus(Status string) *ListHostedNumberOrderParams { @@ -282,11 +282,11 @@ func (params *ListHostedNumberOrderParams) SetFriendlyName(FriendlyName string) params.FriendlyName = &FriendlyName return params } -func (params *ListHostedNumberOrderParams) SetPageSize(PageSize int) *ListHostedNumberOrderParams { +func (params *ListHostedNumberOrderParams) SetPageSize(PageSize int64) *ListHostedNumberOrderParams { params.PageSize = &PageSize return params } -func (params *ListHostedNumberOrderParams) SetLimit(Limit int) *ListHostedNumberOrderParams { +func (params *ListHostedNumberOrderParams) SetLimit(Limit int64) *ListHostedNumberOrderParams { params.Limit = &Limit return params } @@ -380,7 +380,7 @@ func (c *ApiService) StreamHostedNumberOrder(params *ListHostedNumberOrderParams } func (c *ApiService) streamHostedNumberOrder(response *ListHostedNumberOrderResponse, params *ListHostedNumberOrderParams, recordChannel chan NumbersV2HostedNumberOrder, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Items diff --git a/rest/numbers/v2/hosted_number_orders_bulk.go b/rest/numbers/v2/hosted_number_orders_bulk.go index 61abc24573..66483ca5fe 100644 --- a/rest/numbers/v2/hosted_number_orders_bulk.go +++ b/rest/numbers/v2/hosted_number_orders_bulk.go @@ -20,50 +20,6 @@ import ( "strings" ) -// Optional parameters for the method 'CreateBulkHostedNumberOrder' -type CreateBulkHostedNumberOrderParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreateBulkHostedNumberOrderParams) SetBody(Body map[string]interface{}) *CreateBulkHostedNumberOrderParams { - params.Body = &Body - return params -} - -// Host multiple phone numbers on Twilio's platform. -func (c *ApiService) CreateBulkHostedNumberOrder(params *CreateBulkHostedNumberOrderParams) (*NumbersV2BulkHostedNumberOrder, error) { - path := "/v2/HostedNumber/Orders/Bulk" - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV2BulkHostedNumberOrder{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Optional parameters for the method 'FetchBulkHostedNumberOrder' type FetchBulkHostedNumberOrderParams struct { // Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'. diff --git a/rest/numbers/v2/model_list_authorization_document_response_meta.go b/rest/numbers/v2/model_list_authorization_document_response_meta.go index 67286527ae..65a29879e3 100644 --- a/rest/numbers/v2/model_list_authorization_document_response_meta.go +++ b/rest/numbers/v2/model_list_authorization_document_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAuthorizationDocumentResponseMeta struct for ListAuthorizationDocumentResponseMeta type ListAuthorizationDocumentResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/numbers/v2/regulatory_compliance_bundles.go b/rest/numbers/v2/regulatory_compliance_bundles.go index 8e80631395..9a87bc1f9b 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles.go +++ b/rest/numbers/v2/regulatory_compliance_bundles.go @@ -196,9 +196,9 @@ type ListBundleParams struct { // Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. ValidUntilDateAfter *time.Time `json:"ValidUntilDate>,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListBundleParams) SetStatus(Status string) *ListBundleParams { @@ -245,11 +245,11 @@ func (params *ListBundleParams) SetValidUntilDateAfter(ValidUntilDateAfter time. params.ValidUntilDateAfter = &ValidUntilDateAfter return params } -func (params *ListBundleParams) SetPageSize(PageSize int) *ListBundleParams { +func (params *ListBundleParams) SetPageSize(PageSize int64) *ListBundleParams { params.PageSize = &PageSize return params } -func (params *ListBundleParams) SetLimit(Limit int) *ListBundleParams { +func (params *ListBundleParams) SetLimit(Limit int64) *ListBundleParams { params.Limit = &Limit return params } @@ -361,7 +361,7 @@ func (c *ApiService) StreamBundle(params *ListBundleParams) (chan NumbersV2Bundl } func (c *ApiService) streamBundle(response *ListBundleResponse, params *ListBundleParams, recordChannel chan NumbersV2Bundle, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_bundles_copies.go b/rest/numbers/v2/regulatory_compliance_bundles_copies.go index 69835a3cbb..6178212bc2 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_copies.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_copies.go @@ -66,16 +66,16 @@ func (c *ApiService) CreateBundleCopy(BundleSid string, params *CreateBundleCopy // Optional parameters for the method 'ListBundleCopy' type ListBundleCopyParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListBundleCopyParams) SetPageSize(PageSize int) *ListBundleCopyParams { +func (params *ListBundleCopyParams) SetPageSize(PageSize int64) *ListBundleCopyParams { params.PageSize = &PageSize return params } -func (params *ListBundleCopyParams) SetLimit(Limit int) *ListBundleCopyParams { +func (params *ListBundleCopyParams) SetLimit(Limit int64) *ListBundleCopyParams { params.Limit = &Limit return params } @@ -156,7 +156,7 @@ func (c *ApiService) StreamBundleCopy(BundleSid string, params *ListBundleCopyPa } func (c *ApiService) streamBundleCopy(response *ListBundleCopyResponse, params *ListBundleCopyParams, recordChannel chan NumbersV2BundleCopy, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go b/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go index 2b69e24eca..c5b7d9dc2c 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go @@ -77,16 +77,16 @@ func (c *ApiService) FetchEvaluation(BundleSid string, Sid string) (*NumbersV2Ev // Optional parameters for the method 'ListEvaluation' type ListEvaluationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEvaluationParams) SetPageSize(PageSize int) *ListEvaluationParams { +func (params *ListEvaluationParams) SetPageSize(PageSize int64) *ListEvaluationParams { params.PageSize = &PageSize return params } -func (params *ListEvaluationParams) SetLimit(Limit int) *ListEvaluationParams { +func (params *ListEvaluationParams) SetLimit(Limit int64) *ListEvaluationParams { params.Limit = &Limit return params } @@ -167,7 +167,7 @@ func (c *ApiService) StreamEvaluation(BundleSid string, params *ListEvaluationPa } func (c *ApiService) streamEvaluation(response *ListEvaluationResponse, params *ListEvaluationParams, recordChannel chan NumbersV2Evaluation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go b/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go index d22ac33e12..84460cb6bf 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchItemAssignment(BundleSid string, Sid string) (*Numbers // Optional parameters for the method 'ListItemAssignment' type ListItemAssignmentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListItemAssignmentParams) SetPageSize(PageSize int) *ListItemAssignmentParams { +func (params *ListItemAssignmentParams) SetPageSize(PageSize int64) *ListItemAssignmentParams { params.PageSize = &PageSize return params } -func (params *ListItemAssignmentParams) SetLimit(Limit int) *ListItemAssignmentParams { +func (params *ListItemAssignmentParams) SetLimit(Limit int64) *ListItemAssignmentParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamItemAssignment(BundleSid string, params *ListItemAssi } func (c *ApiService) streamItemAssignment(response *ListItemAssignmentResponse, params *ListItemAssignmentParams, recordChannel chan NumbersV2ItemAssignment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_end_user_types.go b/rest/numbers/v2/regulatory_compliance_end_user_types.go index feb306891d..15a1e14d4f 100644 --- a/rest/numbers/v2/regulatory_compliance_end_user_types.go +++ b/rest/numbers/v2/regulatory_compliance_end_user_types.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchEndUserType(Sid string) (*NumbersV2EndUserType, error) // Optional parameters for the method 'ListEndUserType' type ListEndUserTypeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEndUserTypeParams) SetPageSize(PageSize int) *ListEndUserTypeParams { +func (params *ListEndUserTypeParams) SetPageSize(PageSize int64) *ListEndUserTypeParams { params.PageSize = &PageSize return params } -func (params *ListEndUserTypeParams) SetLimit(Limit int) *ListEndUserTypeParams { +func (params *ListEndUserTypeParams) SetLimit(Limit int64) *ListEndUserTypeParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamEndUserType(params *ListEndUserTypeParams) (chan Numb } func (c *ApiService) streamEndUserType(response *ListEndUserTypeResponse, params *ListEndUserTypeParams, recordChannel chan NumbersV2EndUserType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.EndUserTypes diff --git a/rest/numbers/v2/regulatory_compliance_end_users.go b/rest/numbers/v2/regulatory_compliance_end_users.go index 83d445939f..4e12a1c1ed 100644 --- a/rest/numbers/v2/regulatory_compliance_end_users.go +++ b/rest/numbers/v2/regulatory_compliance_end_users.go @@ -134,16 +134,16 @@ func (c *ApiService) FetchEndUser(Sid string) (*NumbersV2EndUser, error) { // Optional parameters for the method 'ListEndUser' type ListEndUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEndUserParams) SetPageSize(PageSize int) *ListEndUserParams { +func (params *ListEndUserParams) SetPageSize(PageSize int64) *ListEndUserParams { params.PageSize = &PageSize return params } -func (params *ListEndUserParams) SetLimit(Limit int) *ListEndUserParams { +func (params *ListEndUserParams) SetLimit(Limit int64) *ListEndUserParams { params.Limit = &Limit return params } @@ -222,7 +222,7 @@ func (c *ApiService) StreamEndUser(params *ListEndUserParams) (chan NumbersV2End } func (c *ApiService) streamEndUser(response *ListEndUserResponse, params *ListEndUserParams, recordChannel chan NumbersV2EndUser, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_regulations.go b/rest/numbers/v2/regulatory_compliance_regulations.go index f366a38695..ece0f560fd 100644 --- a/rest/numbers/v2/regulatory_compliance_regulations.go +++ b/rest/numbers/v2/regulatory_compliance_regulations.go @@ -74,9 +74,9 @@ type ListRegulationParams struct { // A boolean parameter indicating whether to include constraints or not for supporting end user, documents and their fields IncludeConstraints *bool `json:"IncludeConstraints,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRegulationParams) SetEndUserType(EndUserType string) *ListRegulationParams { @@ -95,11 +95,11 @@ func (params *ListRegulationParams) SetIncludeConstraints(IncludeConstraints boo params.IncludeConstraints = &IncludeConstraints return params } -func (params *ListRegulationParams) SetPageSize(PageSize int) *ListRegulationParams { +func (params *ListRegulationParams) SetPageSize(PageSize int64) *ListRegulationParams { params.PageSize = &PageSize return params } -func (params *ListRegulationParams) SetLimit(Limit int) *ListRegulationParams { +func (params *ListRegulationParams) SetLimit(Limit int64) *ListRegulationParams { params.Limit = &Limit return params } @@ -190,7 +190,7 @@ func (c *ApiService) StreamRegulation(params *ListRegulationParams) (chan Number } func (c *ApiService) streamRegulation(response *ListRegulationResponse, params *ListRegulationParams, recordChannel chan NumbersV2Regulation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/numbers/v2/regulatory_compliance_supporting_document_types.go b/rest/numbers/v2/regulatory_compliance_supporting_document_types.go index 7c6653ce85..6daf6e6b50 100644 --- a/rest/numbers/v2/regulatory_compliance_supporting_document_types.go +++ b/rest/numbers/v2/regulatory_compliance_supporting_document_types.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchSupportingDocumentType(Sid string) (*NumbersV2Supporti // Optional parameters for the method 'ListSupportingDocumentType' type ListSupportingDocumentTypeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSupportingDocumentTypeParams) SetPageSize(PageSize int) *ListSupportingDocumentTypeParams { +func (params *ListSupportingDocumentTypeParams) SetPageSize(PageSize int64) *ListSupportingDocumentTypeParams { params.PageSize = &PageSize return params } -func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int) *ListSupportingDocumentTypeParams { +func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int64) *ListSupportingDocumentTypeParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamSupportingDocumentType(params *ListSupportingDocument } func (c *ApiService) streamSupportingDocumentType(response *ListSupportingDocumentTypeResponse, params *ListSupportingDocumentTypeParams, recordChannel chan NumbersV2SupportingDocumentType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SupportingDocumentTypes diff --git a/rest/numbers/v2/regulatory_compliance_supporting_documents.go b/rest/numbers/v2/regulatory_compliance_supporting_documents.go index 07d5721303..2ef04ccbcc 100644 --- a/rest/numbers/v2/regulatory_compliance_supporting_documents.go +++ b/rest/numbers/v2/regulatory_compliance_supporting_documents.go @@ -134,16 +134,16 @@ func (c *ApiService) FetchSupportingDocument(Sid string) (*NumbersV2SupportingDo // Optional parameters for the method 'ListSupportingDocument' type ListSupportingDocumentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSupportingDocumentParams) SetPageSize(PageSize int) *ListSupportingDocumentParams { +func (params *ListSupportingDocumentParams) SetPageSize(PageSize int64) *ListSupportingDocumentParams { params.PageSize = &PageSize return params } -func (params *ListSupportingDocumentParams) SetLimit(Limit int) *ListSupportingDocumentParams { +func (params *ListSupportingDocumentParams) SetLimit(Limit int64) *ListSupportingDocumentParams { params.Limit = &Limit return params } @@ -222,7 +222,7 @@ func (c *ApiService) StreamSupportingDocument(params *ListSupportingDocumentPara } func (c *ApiService) streamSupportingDocument(response *ListSupportingDocumentResponse, params *ListSupportingDocumentParams, recordChannel chan NumbersV2SupportingDocument, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md index d98948f799..05b515649c 100644 --- a/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md +++ b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/MessagingCountriesApi.md b/rest/pricing/v1/docs/MessagingCountriesApi.md index 378437be41..f0ef5976ba 100644 --- a/rest/pricing/v1/docs/MessagingCountriesApi.md +++ b/rest/pricing/v1/docs/MessagingCountriesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListMessagingCountryParams st Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/pricing/v1/docs/PhoneNumbersCountriesApi.md b/rest/pricing/v1/docs/PhoneNumbersCountriesApi.md index 8191c25455..5bc1c7e3ca 100644 --- a/rest/pricing/v1/docs/PhoneNumbersCountriesApi.md +++ b/rest/pricing/v1/docs/PhoneNumbersCountriesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListPhoneNumberCountryParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/pricing/v1/docs/VoiceCountriesApi.md b/rest/pricing/v1/docs/VoiceCountriesApi.md index 39778f1f15..98443bd058 100644 --- a/rest/pricing/v1/docs/VoiceCountriesApi.md +++ b/rest/pricing/v1/docs/VoiceCountriesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListVoiceCountryParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/pricing/v1/messaging_countries.go b/rest/pricing/v1/messaging_countries.go index 623db10b8b..61a50ae2d2 100644 --- a/rest/pricing/v1/messaging_countries.go +++ b/rest/pricing/v1/messaging_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchMessagingCountry(IsoCountry string) (*PricingV1MessagingCountryInstance, error) { path := "/v1/Messaging/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) @@ -51,16 +50,16 @@ func (c *ApiService) FetchMessagingCountry(IsoCountry string) (*PricingV1Messagi // Optional parameters for the method 'ListMessagingCountry' type ListMessagingCountryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListMessagingCountryParams) SetPageSize(PageSize int) *ListMessagingCountryParams { +func (params *ListMessagingCountryParams) SetPageSize(PageSize int64) *ListMessagingCountryParams { params.PageSize = &PageSize return params } -func (params *ListMessagingCountryParams) SetLimit(Limit int) *ListMessagingCountryParams { +func (params *ListMessagingCountryParams) SetLimit(Limit int64) *ListMessagingCountryParams { params.Limit = &Limit return params } @@ -139,7 +138,7 @@ func (c *ApiService) StreamMessagingCountry(params *ListMessagingCountryParams) } func (c *ApiService) streamMessagingCountry(response *ListMessagingCountryResponse, params *ListMessagingCountryParams, recordChannel chan PricingV1MessagingCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/pricing/v1/model_list_messaging_country_response_meta.go b/rest/pricing/v1/model_list_messaging_country_response_meta.go index 855c24c007..aedea6d4a9 100644 --- a/rest/pricing/v1/model_list_messaging_country_response_meta.go +++ b/rest/pricing/v1/model_list_messaging_country_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListMessagingCountryResponseMeta struct for ListMessagingCountryResponseMeta type ListMessagingCountryResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/pricing/v1/phone_numbers_countries.go b/rest/pricing/v1/phone_numbers_countries.go index ee3b5cba1c..df901c2bd2 100644 --- a/rest/pricing/v1/phone_numbers_countries.go +++ b/rest/pricing/v1/phone_numbers_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchPhoneNumberCountry(IsoCountry string) (*PricingV1PhoneNumberCountryInstance, error) { path := "/v1/PhoneNumbers/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) @@ -51,16 +50,16 @@ func (c *ApiService) FetchPhoneNumberCountry(IsoCountry string) (*PricingV1Phone // Optional parameters for the method 'ListPhoneNumberCountry' type ListPhoneNumberCountryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListPhoneNumberCountryParams) SetPageSize(PageSize int) *ListPhoneNumberCountryParams { +func (params *ListPhoneNumberCountryParams) SetPageSize(PageSize int64) *ListPhoneNumberCountryParams { params.PageSize = &PageSize return params } -func (params *ListPhoneNumberCountryParams) SetLimit(Limit int) *ListPhoneNumberCountryParams { +func (params *ListPhoneNumberCountryParams) SetLimit(Limit int64) *ListPhoneNumberCountryParams { params.Limit = &Limit return params } @@ -139,7 +138,7 @@ func (c *ApiService) StreamPhoneNumberCountry(params *ListPhoneNumberCountryPara } func (c *ApiService) streamPhoneNumberCountry(response *ListPhoneNumberCountryResponse, params *ListPhoneNumberCountryParams, recordChannel chan PricingV1PhoneNumberCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/pricing/v1/voice_countries.go b/rest/pricing/v1/voice_countries.go index 48bd17bfcc..1091b9164c 100644 --- a/rest/pricing/v1/voice_countries.go +++ b/rest/pricing/v1/voice_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchVoiceCountry(IsoCountry string) (*PricingV1VoiceCountryInstance, error) { path := "/v1/Voice/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) @@ -51,16 +50,16 @@ func (c *ApiService) FetchVoiceCountry(IsoCountry string) (*PricingV1VoiceCountr // Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListVoiceCountryParams) SetPageSize(PageSize int) *ListVoiceCountryParams { +func (params *ListVoiceCountryParams) SetPageSize(PageSize int64) *ListVoiceCountryParams { params.PageSize = &PageSize return params } -func (params *ListVoiceCountryParams) SetLimit(Limit int) *ListVoiceCountryParams { +func (params *ListVoiceCountryParams) SetLimit(Limit int64) *ListVoiceCountryParams { params.Limit = &Limit return params } @@ -139,7 +138,7 @@ func (c *ApiService) StreamVoiceCountry(params *ListVoiceCountryParams) (chan Pr } func (c *ApiService) streamVoiceCountry(response *ListVoiceCountryResponse, params *ListVoiceCountryParams, recordChannel chan PricingV1VoiceCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/pricing/v1/voice_numbers.go b/rest/pricing/v1/voice_numbers.go index b4cdf97507..b4b132259d 100644 --- a/rest/pricing/v1/voice_numbers.go +++ b/rest/pricing/v1/voice_numbers.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchVoiceNumber(Number string) (*PricingV1VoiceNumber, error) { path := "/v1/Voice/Numbers/{Number}" path = strings.Replace(path, "{"+"Number"+"}", Number, -1) diff --git a/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md b/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md index 3979c487c7..4b6e3a4656 100644 --- a/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md +++ b/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/TrunkingCountriesApi.md b/rest/pricing/v2/docs/TrunkingCountriesApi.md index 4ed42ee095..06b1f73baa 100644 --- a/rest/pricing/v2/docs/TrunkingCountriesApi.md +++ b/rest/pricing/v2/docs/TrunkingCountriesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListTrunkingCountryParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/pricing/v2/docs/VoiceCountriesApi.md b/rest/pricing/v2/docs/VoiceCountriesApi.md index 65595997ef..fb44ec7706 100644 --- a/rest/pricing/v2/docs/VoiceCountriesApi.md +++ b/rest/pricing/v2/docs/VoiceCountriesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListVoiceCountryParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/pricing/v2/model_list_trunking_country_response_meta.go b/rest/pricing/v2/model_list_trunking_country_response_meta.go index ff48423632..7e9ddbbcf1 100644 --- a/rest/pricing/v2/model_list_trunking_country_response_meta.go +++ b/rest/pricing/v2/model_list_trunking_country_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListTrunkingCountryResponseMeta struct for ListTrunkingCountryResponseMeta type ListTrunkingCountryResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/pricing/v2/trunking_countries.go b/rest/pricing/v2/trunking_countries.go index 94c1d3395b..abc04e9282 100644 --- a/rest/pricing/v2/trunking_countries.go +++ b/rest/pricing/v2/trunking_countries.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchTrunkingCountry(IsoCountry string) (*PricingV2Trunking // Optional parameters for the method 'ListTrunkingCountry' type ListTrunkingCountryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListTrunkingCountryParams) SetPageSize(PageSize int) *ListTrunkingCountryParams { +func (params *ListTrunkingCountryParams) SetPageSize(PageSize int64) *ListTrunkingCountryParams { params.PageSize = &PageSize return params } -func (params *ListTrunkingCountryParams) SetLimit(Limit int) *ListTrunkingCountryParams { +func (params *ListTrunkingCountryParams) SetLimit(Limit int64) *ListTrunkingCountryParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamTrunkingCountry(params *ListTrunkingCountryParams) (c } func (c *ApiService) streamTrunkingCountry(response *ListTrunkingCountryResponse, params *ListTrunkingCountryParams, recordChannel chan PricingV2TrunkingCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/pricing/v2/voice_countries.go b/rest/pricing/v2/voice_countries.go index 5b68817be1..ea74272291 100644 --- a/rest/pricing/v2/voice_countries.go +++ b/rest/pricing/v2/voice_countries.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchVoiceCountry(IsoCountry string) (*PricingV2VoiceCountr // Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListVoiceCountryParams) SetPageSize(PageSize int) *ListVoiceCountryParams { +func (params *ListVoiceCountryParams) SetPageSize(PageSize int64) *ListVoiceCountryParams { params.PageSize = &PageSize return params } -func (params *ListVoiceCountryParams) SetLimit(Limit int) *ListVoiceCountryParams { +func (params *ListVoiceCountryParams) SetLimit(Limit int64) *ListVoiceCountryParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamVoiceCountry(params *ListVoiceCountryParams) (chan Pr } func (c *ApiService) streamVoiceCountry(response *ListVoiceCountryResponse, params *ListVoiceCountryParams, recordChannel chan PricingV2VoiceCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Countries diff --git a/rest/proxy/v1/docs/ListInteractionResponseMeta.md b/rest/proxy/v1/docs/ListInteractionResponseMeta.md index 61b92d9ec8..61f9404429 100644 --- a/rest/proxy/v1/docs/ListInteractionResponseMeta.md +++ b/rest/proxy/v1/docs/ListInteractionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ProxyV1ServicePhoneNumberCapabilities.md b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberCapabilities.md index 8885526dda..18457a167c 100644 --- a/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberCapabilities.md +++ b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberCapabilities.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Fax** | **bool** | |[optional] **Mms** | **bool** | |[optional] **Sms** | **bool** | |[optional] **Voice** | **bool** | |[optional] +**Fax** | **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/proxy/v1/docs/ProxyV1ServiceShortCodeCapabilities.md b/rest/proxy/v1/docs/ProxyV1ServiceShortCodeCapabilities.md index 72a6dd23d2..08268b730b 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceShortCodeCapabilities.md +++ b/rest/proxy/v1/docs/ProxyV1ServiceShortCodeCapabilities.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Fax** | **bool** | |[optional] **Mms** | **bool** | |[optional] **Sms** | **bool** | |[optional] **Voice** | **bool** | |[optional] +**Fax** | **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/proxy/v1/docs/ServicesApi.md b/rest/proxy/v1/docs/ServicesApi.md index 891633bcdc..f05723f4ca 100644 --- a/rest/proxy/v1/docs/ServicesApi.md +++ b/rest/proxy/v1/docs/ServicesApi.md @@ -161,8 +161,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesPhoneNumbersApi.md b/rest/proxy/v1/docs/ServicesPhoneNumbersApi.md index ee2f76d15a..ebc542eb2e 100644 --- a/rest/proxy/v1/docs/ServicesPhoneNumbersApi.md +++ b/rest/proxy/v1/docs/ServicesPhoneNumbersApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListPhoneNumberParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesSessionsApi.md b/rest/proxy/v1/docs/ServicesSessionsApi.md index f03fb42d5d..09a363bd4f 100644 --- a/rest/proxy/v1/docs/ServicesSessionsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListSessionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesSessionsInteractionsApi.md b/rest/proxy/v1/docs/ServicesSessionsInteractionsApi.md index bb1d70e6a4..02fd14c194 100644 --- a/rest/proxy/v1/docs/ServicesSessionsInteractionsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsInteractionsApi.md @@ -122,8 +122,8 @@ Other parameters are passed through a pointer to a ListInteractionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md b/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md index 920ec23040..84b20ee05b 100644 --- a/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md @@ -170,8 +170,8 @@ Other parameters are passed through a pointer to a ListParticipantParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesSessionsParticipantsMessageInteractionsApi.md b/rest/proxy/v1/docs/ServicesSessionsParticipantsMessageInteractionsApi.md index dbeccaf7f3..97bfb4c2d1 100644 --- a/rest/proxy/v1/docs/ServicesSessionsParticipantsMessageInteractionsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsParticipantsMessageInteractionsApi.md @@ -126,8 +126,8 @@ Other parameters are passed through a pointer to a ListMessageInteractionParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/docs/ServicesShortCodesApi.md b/rest/proxy/v1/docs/ServicesShortCodesApi.md index 4728740c60..57a2695184 100644 --- a/rest/proxy/v1/docs/ServicesShortCodesApi.md +++ b/rest/proxy/v1/docs/ServicesShortCodesApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListShortCodeParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/proxy/v1/model_list_interaction_response_meta.go b/rest/proxy/v1/model_list_interaction_response_meta.go index ea6515f13f..44ffdf711c 100644 --- a/rest/proxy/v1/model_list_interaction_response_meta.go +++ b/rest/proxy/v1/model_list_interaction_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListInteractionResponseMeta struct for ListInteractionResponseMeta type ListInteractionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number_capabilities.go b/rest/proxy/v1/model_proxy_v1_service_phone_number_capabilities.go index 00e56885c9..b87012aa1c 100644 --- a/rest/proxy/v1/model_proxy_v1_service_phone_number_capabilities.go +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number_capabilities.go @@ -16,8 +16,8 @@ package openapi // ProxyV1ServicePhoneNumberCapabilities The capabilities of the phone number. type ProxyV1ServicePhoneNumberCapabilities struct { - Fax bool `json:"fax,omitempty"` Mms bool `json:"mms,omitempty"` Sms bool `json:"sms,omitempty"` Voice bool `json:"voice,omitempty"` + Fax bool `json:"fax,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code_capabilities.go b/rest/proxy/v1/model_proxy_v1_service_short_code_capabilities.go index 5082fb8227..4dfb16af0c 100644 --- a/rest/proxy/v1/model_proxy_v1_service_short_code_capabilities.go +++ b/rest/proxy/v1/model_proxy_v1_service_short_code_capabilities.go @@ -16,8 +16,8 @@ package openapi // ProxyV1ServiceShortCodeCapabilities The capabilities of the short code. type ProxyV1ServiceShortCodeCapabilities struct { - Fax bool `json:"fax,omitempty"` Mms bool `json:"mms,omitempty"` Sms bool `json:"sms,omitempty"` Voice bool `json:"voice,omitempty"` + Fax bool `json:"fax,omitempty"` } diff --git a/rest/proxy/v1/services.go b/rest/proxy/v1/services.go index 7b48c41ac4..e529ee1cd2 100644 --- a/rest/proxy/v1/services.go +++ b/rest/proxy/v1/services.go @@ -173,16 +173,16 @@ func (c *ApiService) FetchService(Sid string) (*ProxyV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -261,7 +261,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ProxyV1Servi } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ProxyV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services diff --git a/rest/proxy/v1/services_phone_numbers.go b/rest/proxy/v1/services_phone_numbers.go index 1f6af50570..6f2c8ed47d 100644 --- a/rest/proxy/v1/services_phone_numbers.go +++ b/rest/proxy/v1/services_phone_numbers.go @@ -131,16 +131,16 @@ func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*ProxyV1Ph // Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListPhoneNumberParams) SetPageSize(PageSize int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetPageSize(PageSize int64) *ListPhoneNumberParams { params.PageSize = &PageSize return params } -func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetLimit(Limit int64) *ListPhoneNumberParams { params.Limit = &Limit return params } @@ -221,7 +221,7 @@ func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumbe } func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan ProxyV1PhoneNumber, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.PhoneNumbers diff --git a/rest/proxy/v1/services_sessions.go b/rest/proxy/v1/services_sessions.go index 68dd1c81bf..fad4f18308 100644 --- a/rest/proxy/v1/services_sessions.go +++ b/rest/proxy/v1/services_sessions.go @@ -167,16 +167,16 @@ func (c *ApiService) FetchSession(ServiceSid string, Sid string) (*ProxyV1Sessio // Optional parameters for the method 'ListSession' type ListSessionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSessionParams) SetPageSize(PageSize int) *ListSessionParams { +func (params *ListSessionParams) SetPageSize(PageSize int64) *ListSessionParams { params.PageSize = &PageSize return params } -func (params *ListSessionParams) SetLimit(Limit int) *ListSessionParams { +func (params *ListSessionParams) SetLimit(Limit int64) *ListSessionParams { params.Limit = &Limit return params } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSession(ServiceSid string, params *ListSessionParams) } func (c *ApiService) streamSession(response *ListSessionResponse, params *ListSessionParams, recordChannel chan ProxyV1Session, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sessions diff --git a/rest/proxy/v1/services_sessions_interactions.go b/rest/proxy/v1/services_sessions_interactions.go index 5fd3884be8..4596e4daf5 100644 --- a/rest/proxy/v1/services_sessions_interactions.go +++ b/rest/proxy/v1/services_sessions_interactions.go @@ -75,16 +75,16 @@ func (c *ApiService) FetchInteraction(ServiceSid string, SessionSid string, Sid // Optional parameters for the method 'ListInteraction' type ListInteractionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListInteractionParams) SetPageSize(PageSize int) *ListInteractionParams { +func (params *ListInteractionParams) SetPageSize(PageSize int64) *ListInteractionParams { params.PageSize = &PageSize return params } -func (params *ListInteractionParams) SetLimit(Limit int) *ListInteractionParams { +func (params *ListInteractionParams) SetLimit(Limit int64) *ListInteractionParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamInteraction(ServiceSid string, SessionSid string, par } func (c *ApiService) streamInteraction(response *ListInteractionResponse, params *ListInteractionParams, recordChannel chan ProxyV1Interaction, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Interactions diff --git a/rest/proxy/v1/services_sessions_participants.go b/rest/proxy/v1/services_sessions_participants.go index 6638e11c1e..78c66f217a 100644 --- a/rest/proxy/v1/services_sessions_participants.go +++ b/rest/proxy/v1/services_sessions_participants.go @@ -143,16 +143,16 @@ func (c *ApiService) FetchParticipant(ServiceSid string, SessionSid string, Sid // Optional parameters for the method 'ListParticipant' type ListParticipantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListParticipantParams) SetPageSize(PageSize int) *ListParticipantParams { +func (params *ListParticipantParams) SetPageSize(PageSize int64) *ListParticipantParams { params.PageSize = &PageSize return params } -func (params *ListParticipantParams) SetLimit(Limit int) *ListParticipantParams { +func (params *ListParticipantParams) SetLimit(Limit int64) *ListParticipantParams { params.Limit = &Limit return params } @@ -234,7 +234,7 @@ func (c *ApiService) StreamParticipant(ServiceSid string, SessionSid string, par } func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ProxyV1Participant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants diff --git a/rest/proxy/v1/services_sessions_participants_message_interactions.go b/rest/proxy/v1/services_sessions_participants_message_interactions.go index c492c1fc18..667659b94e 100644 --- a/rest/proxy/v1/services_sessions_participants_message_interactions.go +++ b/rest/proxy/v1/services_sessions_participants_message_interactions.go @@ -76,7 +76,6 @@ func (c *ApiService) CreateMessageInteraction(ServiceSid string, SessionSid stri return ps, err } -// func (c *ApiService) FetchMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, Sid string) (*ProxyV1MessageInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -107,16 +106,16 @@ func (c *ApiService) FetchMessageInteraction(ServiceSid string, SessionSid strin // Optional parameters for the method 'ListMessageInteraction' type ListMessageInteractionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListMessageInteractionParams) SetPageSize(PageSize int) *ListMessageInteractionParams { +func (params *ListMessageInteractionParams) SetPageSize(PageSize int64) *ListMessageInteractionParams { params.PageSize = &PageSize return params } -func (params *ListMessageInteractionParams) SetLimit(Limit int) *ListMessageInteractionParams { +func (params *ListMessageInteractionParams) SetLimit(Limit int64) *ListMessageInteractionParams { params.Limit = &Limit return params } @@ -199,7 +198,7 @@ func (c *ApiService) StreamMessageInteraction(ServiceSid string, SessionSid stri } func (c *ApiService) streamMessageInteraction(response *ListMessageInteractionResponse, params *ListMessageInteractionParams, recordChannel chan ProxyV1MessageInteraction, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Interactions diff --git a/rest/proxy/v1/services_short_codes.go b/rest/proxy/v1/services_short_codes.go index 74cb6541eb..c914f192b9 100644 --- a/rest/proxy/v1/services_short_codes.go +++ b/rest/proxy/v1/services_short_codes.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*ProxyV1Shor // Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListShortCodeParams) SetPageSize(PageSize int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetPageSize(PageSize int64) *ListShortCodeParams { params.PageSize = &PageSize return params } -func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { +func (params *ListShortCodeParams) SetLimit(Limit int64) *ListShortCodeParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodePar } func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ProxyV1ShortCode, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ShortCodes diff --git a/rest/routes/v2/sip_domains.go b/rest/routes/v2/sip_domains.go index e9f4deacd1..0807378059 100644 --- a/rest/routes/v2/sip_domains.go +++ b/rest/routes/v2/sip_domains.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchSipDomain(SipDomain string) (*RoutesV2SipDomain, error) { path := "/v2/SipDomains/{SipDomain}" path = strings.Replace(path, "{"+"SipDomain"+"}", SipDomain, -1) @@ -62,7 +61,6 @@ func (params *UpdateSipDomainParams) SetFriendlyName(FriendlyName string) *Updat return params } -// func (c *ApiService) UpdateSipDomain(SipDomain string, params *UpdateSipDomainParams) (*RoutesV2SipDomain, error) { path := "/v2/SipDomains/{SipDomain}" path = strings.Replace(path, "{"+"SipDomain"+"}", SipDomain, -1) diff --git a/rest/serverless/v1/docs/ListAssetResponseMeta.md b/rest/serverless/v1/docs/ListAssetResponseMeta.md index 481498612e..afc73efd8b 100644 --- a/rest/serverless/v1/docs/ListAssetResponseMeta.md +++ b/rest/serverless/v1/docs/ListAssetResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/serverless/v1/docs/ServicesApi.md index 57f944fb54..f0533e1230 100644 --- a/rest/serverless/v1/docs/ServicesApi.md +++ b/rest/serverless/v1/docs/ServicesApi.md @@ -157,8 +157,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesAssetsApi.md b/rest/serverless/v1/docs/ServicesAssetsApi.md index ae2008cb7c..b6bb820334 100644 --- a/rest/serverless/v1/docs/ServicesAssetsApi.md +++ b/rest/serverless/v1/docs/ServicesAssetsApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListAssetParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesAssetsVersionsApi.md b/rest/serverless/v1/docs/ServicesAssetsVersionsApi.md index bd52cf5987..bbb88d181c 100644 --- a/rest/serverless/v1/docs/ServicesAssetsVersionsApi.md +++ b/rest/serverless/v1/docs/ServicesAssetsVersionsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListAssetVersionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesBuildsApi.md b/rest/serverless/v1/docs/ServicesBuildsApi.md index dc040da624..d3c20d8dee 100644 --- a/rest/serverless/v1/docs/ServicesBuildsApi.md +++ b/rest/serverless/v1/docs/ServicesBuildsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListBuildParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesEnvironmentsApi.md b/rest/serverless/v1/docs/ServicesEnvironmentsApi.md index 5d5bc22480..7753b139a5 100644 --- a/rest/serverless/v1/docs/ServicesEnvironmentsApi.md +++ b/rest/serverless/v1/docs/ServicesEnvironmentsApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListEnvironmentParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesEnvironmentsDeploymentsApi.md b/rest/serverless/v1/docs/ServicesEnvironmentsDeploymentsApi.md index 78fa8ad11e..51405a0883 100644 --- a/rest/serverless/v1/docs/ServicesEnvironmentsDeploymentsApi.md +++ b/rest/serverless/v1/docs/ServicesEnvironmentsDeploymentsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListDeploymentParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesEnvironmentsLogsApi.md b/rest/serverless/v1/docs/ServicesEnvironmentsLogsApi.md index 3a576f6896..385984741e 100644 --- a/rest/serverless/v1/docs/ServicesEnvironmentsLogsApi.md +++ b/rest/serverless/v1/docs/ServicesEnvironmentsLogsApi.md @@ -80,8 +80,8 @@ Name | Type | Description **FunctionSid** | **string** | The SID of the function whose invocation produced the Log resources to read. **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. **EndDate** | **time.Time** | The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesEnvironmentsVariablesApi.md b/rest/serverless/v1/docs/ServicesEnvironmentsVariablesApi.md index 6c7c5f5f3c..846d74952c 100644 --- a/rest/serverless/v1/docs/ServicesEnvironmentsVariablesApi.md +++ b/rest/serverless/v1/docs/ServicesEnvironmentsVariablesApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListVariableParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesFunctionsApi.md b/rest/serverless/v1/docs/ServicesFunctionsApi.md index da031ae45d..309e98ec1a 100644 --- a/rest/serverless/v1/docs/ServicesFunctionsApi.md +++ b/rest/serverless/v1/docs/ServicesFunctionsApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListFunctionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/docs/ServicesFunctionsVersionsApi.md b/rest/serverless/v1/docs/ServicesFunctionsVersionsApi.md index efa6840ccd..04b31197fe 100644 --- a/rest/serverless/v1/docs/ServicesFunctionsVersionsApi.md +++ b/rest/serverless/v1/docs/ServicesFunctionsVersionsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListFunctionVersionParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/serverless/v1/model_list_asset_response_meta.go b/rest/serverless/v1/model_list_asset_response_meta.go index a3e9823401..7296a5abbd 100644 --- a/rest/serverless/v1/model_list_asset_response_meta.go +++ b/rest/serverless/v1/model_list_asset_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAssetResponseMeta struct for ListAssetResponseMeta type ListAssetResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/serverless/v1/services.go b/rest/serverless/v1/services.go index ead2cb99cd..268afcf658 100644 --- a/rest/serverless/v1/services.go +++ b/rest/serverless/v1/services.go @@ -137,16 +137,16 @@ func (c *ApiService) FetchService(Sid string) (*ServerlessV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -225,7 +225,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ServerlessV1 } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ServerlessV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services diff --git a/rest/serverless/v1/services_assets.go b/rest/serverless/v1/services_assets.go index c39c6ade4e..7bab8031e1 100644 --- a/rest/serverless/v1/services_assets.go +++ b/rest/serverless/v1/services_assets.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchAsset(ServiceSid string, Sid string) (*ServerlessV1Ass // Optional parameters for the method 'ListAsset' type ListAssetParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAssetParams) SetPageSize(PageSize int) *ListAssetParams { +func (params *ListAssetParams) SetPageSize(PageSize int64) *ListAssetParams { params.PageSize = &PageSize return params } -func (params *ListAssetParams) SetLimit(Limit int) *ListAssetParams { +func (params *ListAssetParams) SetLimit(Limit int64) *ListAssetParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamAsset(ServiceSid string, params *ListAssetParams) (ch } func (c *ApiService) streamAsset(response *ListAssetResponse, params *ListAssetParams, recordChannel chan ServerlessV1Asset, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Assets diff --git a/rest/serverless/v1/services_assets_versions.go b/rest/serverless/v1/services_assets_versions.go index 9974c7fb0b..31b6ef35da 100644 --- a/rest/serverless/v1/services_assets_versions.go +++ b/rest/serverless/v1/services_assets_versions.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchAssetVersion(ServiceSid string, AssetSid string, Sid s // Optional parameters for the method 'ListAssetVersion' type ListAssetVersionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListAssetVersionParams) SetPageSize(PageSize int) *ListAssetVersionParams { +func (params *ListAssetVersionParams) SetPageSize(PageSize int64) *ListAssetVersionParams { params.PageSize = &PageSize return params } -func (params *ListAssetVersionParams) SetLimit(Limit int) *ListAssetVersionParams { +func (params *ListAssetVersionParams) SetLimit(Limit int64) *ListAssetVersionParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamAssetVersion(ServiceSid string, AssetSid string, para } func (c *ApiService) streamAssetVersion(response *ListAssetVersionResponse, params *ListAssetVersionParams, recordChannel chan ServerlessV1AssetVersion, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.AssetVersions diff --git a/rest/serverless/v1/services_builds.go b/rest/serverless/v1/services_builds.go index 27b2fe4234..450a7ac7d8 100644 --- a/rest/serverless/v1/services_builds.go +++ b/rest/serverless/v1/services_builds.go @@ -144,16 +144,16 @@ func (c *ApiService) FetchBuild(ServiceSid string, Sid string) (*ServerlessV1Bui // Optional parameters for the method 'ListBuild' type ListBuildParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListBuildParams) SetPageSize(PageSize int) *ListBuildParams { +func (params *ListBuildParams) SetPageSize(PageSize int64) *ListBuildParams { params.PageSize = &PageSize return params } -func (params *ListBuildParams) SetLimit(Limit int) *ListBuildParams { +func (params *ListBuildParams) SetLimit(Limit int64) *ListBuildParams { params.Limit = &Limit return params } @@ -234,7 +234,7 @@ func (c *ApiService) StreamBuild(ServiceSid string, params *ListBuildParams) (ch } func (c *ApiService) streamBuild(response *ListBuildResponse, params *ListBuildParams, recordChannel chan ServerlessV1Build, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Builds diff --git a/rest/serverless/v1/services_environments.go b/rest/serverless/v1/services_environments.go index 5711e31d76..8e8b0c38a6 100644 --- a/rest/serverless/v1/services_environments.go +++ b/rest/serverless/v1/services_environments.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchEnvironment(ServiceSid string, Sid string) (*Serverles // Optional parameters for the method 'ListEnvironment' type ListEnvironmentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEnvironmentParams) SetPageSize(PageSize int) *ListEnvironmentParams { +func (params *ListEnvironmentParams) SetPageSize(PageSize int64) *ListEnvironmentParams { params.PageSize = &PageSize return params } -func (params *ListEnvironmentParams) SetLimit(Limit int) *ListEnvironmentParams { +func (params *ListEnvironmentParams) SetLimit(Limit int64) *ListEnvironmentParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamEnvironment(ServiceSid string, params *ListEnvironmen } func (c *ApiService) streamEnvironment(response *ListEnvironmentResponse, params *ListEnvironmentParams, recordChannel chan ServerlessV1Environment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Environments diff --git a/rest/serverless/v1/services_environments_deployments.go b/rest/serverless/v1/services_environments_deployments.go index da5816e6e0..b9ade8c21b 100644 --- a/rest/serverless/v1/services_environments_deployments.go +++ b/rest/serverless/v1/services_environments_deployments.go @@ -103,16 +103,16 @@ func (c *ApiService) FetchDeployment(ServiceSid string, EnvironmentSid string, S // Optional parameters for the method 'ListDeployment' type ListDeploymentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDeploymentParams) SetPageSize(PageSize int) *ListDeploymentParams { +func (params *ListDeploymentParams) SetPageSize(PageSize int64) *ListDeploymentParams { params.PageSize = &PageSize return params } -func (params *ListDeploymentParams) SetLimit(Limit int) *ListDeploymentParams { +func (params *ListDeploymentParams) SetLimit(Limit int64) *ListDeploymentParams { params.Limit = &Limit return params } @@ -194,7 +194,7 @@ func (c *ApiService) StreamDeployment(ServiceSid string, EnvironmentSid string, } func (c *ApiService) streamDeployment(response *ListDeploymentResponse, params *ListDeploymentParams, recordChannel chan ServerlessV1Deployment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Deployments diff --git a/rest/serverless/v1/services_environments_logs.go b/rest/serverless/v1/services_environments_logs.go index f37c3663db..8f8b522465 100644 --- a/rest/serverless/v1/services_environments_logs.go +++ b/rest/serverless/v1/services_environments_logs.go @@ -60,9 +60,9 @@ type ListLogParams struct { // The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. EndDate *time.Time `json:"EndDate,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListLogParams) SetFunctionSid(FunctionSid string) *ListLogParams { @@ -77,11 +77,11 @@ func (params *ListLogParams) SetEndDate(EndDate time.Time) *ListLogParams { params.EndDate = &EndDate return params } -func (params *ListLogParams) SetPageSize(PageSize int) *ListLogParams { +func (params *ListLogParams) SetPageSize(PageSize int64) *ListLogParams { params.PageSize = &PageSize return params } -func (params *ListLogParams) SetLimit(Limit int) *ListLogParams { +func (params *ListLogParams) SetLimit(Limit int64) *ListLogParams { params.Limit = &Limit return params } @@ -172,7 +172,7 @@ func (c *ApiService) StreamLog(ServiceSid string, EnvironmentSid string, params } func (c *ApiService) streamLog(response *ListLogResponse, params *ListLogParams, recordChannel chan ServerlessV1Log, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Logs diff --git a/rest/serverless/v1/services_environments_variables.go b/rest/serverless/v1/services_environments_variables.go index 13d4db41a7..ef86d85706 100644 --- a/rest/serverless/v1/services_environments_variables.go +++ b/rest/serverless/v1/services_environments_variables.go @@ -125,16 +125,16 @@ func (c *ApiService) FetchVariable(ServiceSid string, EnvironmentSid string, Sid // Optional parameters for the method 'ListVariable' type ListVariableParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListVariableParams) SetPageSize(PageSize int) *ListVariableParams { +func (params *ListVariableParams) SetPageSize(PageSize int64) *ListVariableParams { params.PageSize = &PageSize return params } -func (params *ListVariableParams) SetLimit(Limit int) *ListVariableParams { +func (params *ListVariableParams) SetLimit(Limit int64) *ListVariableParams { params.Limit = &Limit return params } @@ -216,7 +216,7 @@ func (c *ApiService) StreamVariable(ServiceSid string, EnvironmentSid string, pa } func (c *ApiService) streamVariable(response *ListVariableResponse, params *ListVariableParams, recordChannel chan ServerlessV1Variable, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Variables diff --git a/rest/serverless/v1/services_functions.go b/rest/serverless/v1/services_functions.go index 57201123df..dc03a3f30f 100644 --- a/rest/serverless/v1/services_functions.go +++ b/rest/serverless/v1/services_functions.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchFunction(ServiceSid string, Sid string) (*ServerlessV1 // Optional parameters for the method 'ListFunction' type ListFunctionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFunctionParams) SetPageSize(PageSize int) *ListFunctionParams { +func (params *ListFunctionParams) SetPageSize(PageSize int64) *ListFunctionParams { params.PageSize = &PageSize return params } -func (params *ListFunctionParams) SetLimit(Limit int) *ListFunctionParams { +func (params *ListFunctionParams) SetLimit(Limit int64) *ListFunctionParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamFunction(ServiceSid string, params *ListFunctionParam } func (c *ApiService) streamFunction(response *ListFunctionResponse, params *ListFunctionParams, recordChannel chan ServerlessV1Function, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Functions diff --git a/rest/serverless/v1/services_functions_versions.go b/rest/serverless/v1/services_functions_versions.go index 4a74b8d464..abf01f8b64 100644 --- a/rest/serverless/v1/services_functions_versions.go +++ b/rest/serverless/v1/services_functions_versions.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchFunctionVersion(ServiceSid string, FunctionSid string, // Optional parameters for the method 'ListFunctionVersion' type ListFunctionVersionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFunctionVersionParams) SetPageSize(PageSize int) *ListFunctionVersionParams { +func (params *ListFunctionVersionParams) SetPageSize(PageSize int64) *ListFunctionVersionParams { params.PageSize = &PageSize return params } -func (params *ListFunctionVersionParams) SetLimit(Limit int) *ListFunctionVersionParams { +func (params *ListFunctionVersionParams) SetLimit(Limit int64) *ListFunctionVersionParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamFunctionVersion(ServiceSid string, FunctionSid string } func (c *ApiService) streamFunctionVersion(response *ListFunctionVersionResponse, params *ListFunctionVersionParams, recordChannel chan ServerlessV1FunctionVersion, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.FunctionVersions diff --git a/rest/studio/v1/docs/FlowsApi.md b/rest/studio/v1/docs/FlowsApi.md index ad3954542d..ffca2f12b0 100644 --- a/rest/studio/v1/docs/FlowsApi.md +++ b/rest/studio/v1/docs/FlowsApi.md @@ -113,8 +113,8 @@ Other parameters are passed through a pointer to a ListFlowParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v1/docs/FlowsEngagementsApi.md b/rest/studio/v1/docs/FlowsEngagementsApi.md index 6ca914526b..c23d96d10b 100644 --- a/rest/studio/v1/docs/FlowsEngagementsApi.md +++ b/rest/studio/v1/docs/FlowsEngagementsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListEngagementParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v1/docs/FlowsEngagementsStepsApi.md b/rest/studio/v1/docs/FlowsEngagementsStepsApi.md index 27e1f440b9..cf48fc7f83 100644 --- a/rest/studio/v1/docs/FlowsEngagementsStepsApi.md +++ b/rest/studio/v1/docs/FlowsEngagementsStepsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListStepParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v1/docs/FlowsExecutionsApi.md b/rest/studio/v1/docs/FlowsExecutionsApi.md index 908ed0f9fa..e989085187 100644 --- a/rest/studio/v1/docs/FlowsExecutionsApi.md +++ b/rest/studio/v1/docs/FlowsExecutionsApi.md @@ -168,8 +168,8 @@ Name | Type | Description ------------- | ------------- | ------------- **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`. **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`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v1/docs/FlowsExecutionsStepsApi.md b/rest/studio/v1/docs/FlowsExecutionsStepsApi.md index 7723459a9a..935adda690 100644 --- a/rest/studio/v1/docs/FlowsExecutionsStepsApi.md +++ b/rest/studio/v1/docs/FlowsExecutionsStepsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListExecutionStepParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v1/docs/ListEngagementResponseMeta.md b/rest/studio/v1/docs/ListEngagementResponseMeta.md index 4abc6bede1..2abe5911d0 100644 --- a/rest/studio/v1/docs/ListEngagementResponseMeta.md +++ b/rest/studio/v1/docs/ListEngagementResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/flows.go b/rest/studio/v1/flows.go index ee82119fc9..2aca92e179 100644 --- a/rest/studio/v1/flows.go +++ b/rest/studio/v1/flows.go @@ -71,16 +71,16 @@ func (c *ApiService) FetchFlow(Sid string) (*StudioV1Flow, error) { // Optional parameters for the method 'ListFlow' type ListFlowParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFlowParams) SetPageSize(PageSize int) *ListFlowParams { +func (params *ListFlowParams) SetPageSize(PageSize int64) *ListFlowParams { params.PageSize = &PageSize return params } -func (params *ListFlowParams) SetLimit(Limit int) *ListFlowParams { +func (params *ListFlowParams) SetLimit(Limit int64) *ListFlowParams { params.Limit = &Limit return params } @@ -159,7 +159,7 @@ func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV1Flow, chan } func (c *ApiService) streamFlow(response *ListFlowResponse, params *ListFlowParams, recordChannel chan StudioV1Flow, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Flows diff --git a/rest/studio/v1/flows_engagements.go b/rest/studio/v1/flows_engagements.go index e4058cd79c..df4e3242d3 100644 --- a/rest/studio/v1/flows_engagements.go +++ b/rest/studio/v1/flows_engagements.go @@ -137,16 +137,16 @@ func (c *ApiService) FetchEngagement(FlowSid string, Sid string) (*StudioV1Engag // Optional parameters for the method 'ListEngagement' type ListEngagementParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEngagementParams) SetPageSize(PageSize int) *ListEngagementParams { +func (params *ListEngagementParams) SetPageSize(PageSize int64) *ListEngagementParams { params.PageSize = &PageSize return params } -func (params *ListEngagementParams) SetLimit(Limit int) *ListEngagementParams { +func (params *ListEngagementParams) SetLimit(Limit int64) *ListEngagementParams { params.Limit = &Limit return params } @@ -227,7 +227,7 @@ func (c *ApiService) StreamEngagement(FlowSid string, params *ListEngagementPara } func (c *ApiService) streamEngagement(response *ListEngagementResponse, params *ListEngagementParams, recordChannel chan StudioV1Engagement, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Engagements diff --git a/rest/studio/v1/flows_engagements_steps.go b/rest/studio/v1/flows_engagements_steps.go index c3e6eb33ad..2120414f53 100644 --- a/rest/studio/v1/flows_engagements_steps.go +++ b/rest/studio/v1/flows_engagements_steps.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchStep(FlowSid string, EngagementSid string, Sid string) // Optional parameters for the method 'ListStep' type ListStepParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListStepParams) SetPageSize(PageSize int) *ListStepParams { +func (params *ListStepParams) SetPageSize(PageSize int64) *ListStepParams { params.PageSize = &PageSize return params } -func (params *ListStepParams) SetLimit(Limit int) *ListStepParams { +func (params *ListStepParams) SetLimit(Limit int64) *ListStepParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamStep(FlowSid string, EngagementSid string, params *Li } func (c *ApiService) streamStep(response *ListStepResponse, params *ListStepParams, recordChannel chan StudioV1Step, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Steps diff --git a/rest/studio/v1/flows_executions.go b/rest/studio/v1/flows_executions.go index 9e0bb41da9..9ab08d8c91 100644 --- a/rest/studio/v1/flows_executions.go +++ b/rest/studio/v1/flows_executions.go @@ -142,9 +142,9 @@ type ListExecutionParams struct { // 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`. DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListExecutionParams) SetDateCreatedFrom(DateCreatedFrom time.Time) *ListExecutionParams { @@ -155,11 +155,11 @@ func (params *ListExecutionParams) SetDateCreatedTo(DateCreatedTo time.Time) *Li params.DateCreatedTo = &DateCreatedTo return params } -func (params *ListExecutionParams) SetPageSize(PageSize int) *ListExecutionParams { +func (params *ListExecutionParams) SetPageSize(PageSize int64) *ListExecutionParams { params.PageSize = &PageSize return params } -func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams { +func (params *ListExecutionParams) SetLimit(Limit int64) *ListExecutionParams { params.Limit = &Limit return params } @@ -246,7 +246,7 @@ func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams } func (c *ApiService) streamExecution(response *ListExecutionResponse, params *ListExecutionParams, recordChannel chan StudioV1Execution, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Executions diff --git a/rest/studio/v1/flows_executions_steps.go b/rest/studio/v1/flows_executions_steps.go index 4b52b49108..98444114f0 100644 --- a/rest/studio/v1/flows_executions_steps.go +++ b/rest/studio/v1/flows_executions_steps.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid // Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListExecutionStepParams) SetPageSize(PageSize int) *ListExecutionStepParams { +func (params *ListExecutionStepParams) SetPageSize(PageSize int64) *ListExecutionStepParams { params.PageSize = &PageSize return params } -func (params *ListExecutionStepParams) SetLimit(Limit int) *ListExecutionStepParams { +func (params *ListExecutionStepParams) SetLimit(Limit int64) *ListExecutionStepParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, pa } func (c *ApiService) streamExecutionStep(response *ListExecutionStepResponse, params *ListExecutionStepParams, recordChannel chan StudioV1ExecutionStep, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Steps diff --git a/rest/studio/v1/model_list_engagement_response_meta.go b/rest/studio/v1/model_list_engagement_response_meta.go index 365a3456ef..8e09cc6e24 100644 --- a/rest/studio/v1/model_list_engagement_response_meta.go +++ b/rest/studio/v1/model_list_engagement_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListEngagementResponseMeta struct for ListEngagementResponseMeta type ListEngagementResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/studio/v2/docs/FlowsApi.md b/rest/studio/v2/docs/FlowsApi.md index 536a65b8bd..cac840a198 100644 --- a/rest/studio/v2/docs/FlowsApi.md +++ b/rest/studio/v2/docs/FlowsApi.md @@ -157,8 +157,8 @@ Other parameters are passed through a pointer to a ListFlowParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v2/docs/FlowsExecutionsApi.md b/rest/studio/v2/docs/FlowsExecutionsApi.md index c09ad449c3..df1236cd43 100644 --- a/rest/studio/v2/docs/FlowsExecutionsApi.md +++ b/rest/studio/v2/docs/FlowsExecutionsApi.md @@ -168,8 +168,8 @@ Name | Type | Description ------------- | ------------- | ------------- **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`. **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`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v2/docs/FlowsExecutionsStepsApi.md b/rest/studio/v2/docs/FlowsExecutionsStepsApi.md index 4e3dd3804d..6f5bf9a306 100644 --- a/rest/studio/v2/docs/FlowsExecutionsStepsApi.md +++ b/rest/studio/v2/docs/FlowsExecutionsStepsApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListExecutionStepParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v2/docs/FlowsRevisionsApi.md b/rest/studio/v2/docs/FlowsRevisionsApi.md index 5ad60928ee..9451b8cd36 100644 --- a/rest/studio/v2/docs/FlowsRevisionsApi.md +++ b/rest/studio/v2/docs/FlowsRevisionsApi.md @@ -75,8 +75,8 @@ Other parameters are passed through a pointer to a ListFlowRevisionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/studio/v2/docs/ListExecutionResponseMeta.md b/rest/studio/v2/docs/ListExecutionResponseMeta.md index 48b614247f..1073842865 100644 --- a/rest/studio/v2/docs/ListExecutionResponseMeta.md +++ b/rest/studio/v2/docs/ListExecutionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/flows.go b/rest/studio/v2/flows.go index 9023e7a713..73b172c823 100644 --- a/rest/studio/v2/flows.go +++ b/rest/studio/v2/flows.go @@ -143,16 +143,16 @@ func (c *ApiService) FetchFlow(Sid string) (*StudioV2Flow, error) { // Optional parameters for the method 'ListFlow' type ListFlowParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFlowParams) SetPageSize(PageSize int) *ListFlowParams { +func (params *ListFlowParams) SetPageSize(PageSize int64) *ListFlowParams { params.PageSize = &PageSize return params } -func (params *ListFlowParams) SetLimit(Limit int) *ListFlowParams { +func (params *ListFlowParams) SetLimit(Limit int64) *ListFlowParams { params.Limit = &Limit return params } @@ -231,7 +231,7 @@ func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV2Flow, chan } func (c *ApiService) streamFlow(response *ListFlowResponse, params *ListFlowParams, recordChannel chan StudioV2Flow, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Flows diff --git a/rest/studio/v2/flows_executions.go b/rest/studio/v2/flows_executions.go index 3be32c3ba1..d2b8ac11e0 100644 --- a/rest/studio/v2/flows_executions.go +++ b/rest/studio/v2/flows_executions.go @@ -142,9 +142,9 @@ type ListExecutionParams struct { // 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`. DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListExecutionParams) SetDateCreatedFrom(DateCreatedFrom time.Time) *ListExecutionParams { @@ -155,11 +155,11 @@ func (params *ListExecutionParams) SetDateCreatedTo(DateCreatedTo time.Time) *Li params.DateCreatedTo = &DateCreatedTo return params } -func (params *ListExecutionParams) SetPageSize(PageSize int) *ListExecutionParams { +func (params *ListExecutionParams) SetPageSize(PageSize int64) *ListExecutionParams { params.PageSize = &PageSize return params } -func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams { +func (params *ListExecutionParams) SetLimit(Limit int64) *ListExecutionParams { params.Limit = &Limit return params } @@ -246,7 +246,7 @@ func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams } func (c *ApiService) streamExecution(response *ListExecutionResponse, params *ListExecutionParams, recordChannel chan StudioV2Execution, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Executions diff --git a/rest/studio/v2/flows_executions_steps.go b/rest/studio/v2/flows_executions_steps.go index 9b190ad3d0..69bcfef20d 100644 --- a/rest/studio/v2/flows_executions_steps.go +++ b/rest/studio/v2/flows_executions_steps.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid // Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListExecutionStepParams) SetPageSize(PageSize int) *ListExecutionStepParams { +func (params *ListExecutionStepParams) SetPageSize(PageSize int64) *ListExecutionStepParams { params.PageSize = &PageSize return params } -func (params *ListExecutionStepParams) SetLimit(Limit int) *ListExecutionStepParams { +func (params *ListExecutionStepParams) SetLimit(Limit int64) *ListExecutionStepParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, pa } func (c *ApiService) streamExecutionStep(response *ListExecutionStepResponse, params *ListExecutionStepParams, recordChannel chan StudioV2ExecutionStep, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Steps diff --git a/rest/studio/v2/flows_revisions.go b/rest/studio/v2/flows_revisions.go index b7471d5f18..c0d344c4f9 100644 --- a/rest/studio/v2/flows_revisions.go +++ b/rest/studio/v2/flows_revisions.go @@ -52,16 +52,16 @@ func (c *ApiService) FetchFlowRevision(Sid string, Revision string) (*StudioV2Fl // Optional parameters for the method 'ListFlowRevision' type ListFlowRevisionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFlowRevisionParams) SetPageSize(PageSize int) *ListFlowRevisionParams { +func (params *ListFlowRevisionParams) SetPageSize(PageSize int64) *ListFlowRevisionParams { params.PageSize = &PageSize return params } -func (params *ListFlowRevisionParams) SetLimit(Limit int) *ListFlowRevisionParams { +func (params *ListFlowRevisionParams) SetLimit(Limit int64) *ListFlowRevisionParams { params.Limit = &Limit return params } @@ -142,7 +142,7 @@ func (c *ApiService) StreamFlowRevision(Sid string, params *ListFlowRevisionPara } func (c *ApiService) streamFlowRevision(response *ListFlowRevisionResponse, params *ListFlowRevisionParams, recordChannel chan StudioV2FlowRevision, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Revisions diff --git a/rest/studio/v2/model_list_execution_response_meta.go b/rest/studio/v2/model_list_execution_response_meta.go index ee49e50a7e..ee5ece6897 100644 --- a/rest/studio/v2/model_list_execution_response_meta.go +++ b/rest/studio/v2/model_list_execution_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListExecutionResponseMeta struct for ListExecutionResponseMeta type ListExecutionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/supersim/v1/docs/ESimProfilesApi.md b/rest/supersim/v1/docs/ESimProfilesApi.md index 0e53f7d330..968796387c 100644 --- a/rest/supersim/v1/docs/ESimProfilesApi.md +++ b/rest/supersim/v1/docs/ESimProfilesApi.md @@ -116,8 +116,8 @@ Name | Type | Description **Eid** | **string** | List the eSIM Profiles that have been associated with an EId. **SimSid** | **string** | Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. **Status** | **string** | List the eSIM Profiles that are in a given status. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/FleetsApi.md b/rest/supersim/v1/docs/FleetsApi.md index b6e08774b8..ca86be2021 100644 --- a/rest/supersim/v1/docs/FleetsApi.md +++ b/rest/supersim/v1/docs/FleetsApi.md @@ -120,8 +120,8 @@ Other parameters are passed through a pointer to a ListFleetParams struct Name | Type | Description ------------- | ------------- | ------------- **NetworkAccessProfile** | **string** | The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/IpCommandsApi.md b/rest/supersim/v1/docs/IpCommandsApi.md index b5539e6c6c..b581159a7b 100644 --- a/rest/supersim/v1/docs/IpCommandsApi.md +++ b/rest/supersim/v1/docs/IpCommandsApi.md @@ -119,8 +119,8 @@ Name | Type | Description **SimIccid** | **string** | The ICCID of the Sim resource that IP Command was sent to or from. **Status** | **string** | The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each. **Direction** | **string** | The direction of the IP 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** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md b/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md index d0ef3d794f..4f3032e547 100644 --- a/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md +++ b/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/NetworkAccessProfilesApi.md b/rest/supersim/v1/docs/NetworkAccessProfilesApi.md index 655c8b146b..dd9b286c6c 100644 --- a/rest/supersim/v1/docs/NetworkAccessProfilesApi.md +++ b/rest/supersim/v1/docs/NetworkAccessProfilesApi.md @@ -112,8 +112,8 @@ Other parameters are passed through a pointer to a ListNetworkAccessProfileParam Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/NetworkAccessProfilesNetworksApi.md b/rest/supersim/v1/docs/NetworkAccessProfilesNetworksApi.md index 402d7ffdd9..513449f982 100644 --- a/rest/supersim/v1/docs/NetworkAccessProfilesNetworksApi.md +++ b/rest/supersim/v1/docs/NetworkAccessProfilesNetworksApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListNetworkAccessProfileNetwo Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/NetworksApi.md b/rest/supersim/v1/docs/NetworksApi.md index bd70dfd423..d97b0fd267 100644 --- a/rest/supersim/v1/docs/NetworksApi.md +++ b/rest/supersim/v1/docs/NetworksApi.md @@ -73,8 +73,8 @@ Name | Type | Description **IsoCountry** | **string** | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. **Mcc** | **string** | The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. **Mnc** | **string** | The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/SettingsUpdatesApi.md b/rest/supersim/v1/docs/SettingsUpdatesApi.md index bcd5275814..6a336387e6 100644 --- a/rest/supersim/v1/docs/SettingsUpdatesApi.md +++ b/rest/supersim/v1/docs/SettingsUpdatesApi.md @@ -29,8 +29,8 @@ Name | Type | Description ------------- | ------------- | ------------- **Sim** | **string** | Filter the Settings Updates by a Super SIM's SID or UniqueName. **Status** | **string** | Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/SimsApi.md b/rest/supersim/v1/docs/SimsApi.md index f1f934445e..829d1dfb35 100644 --- a/rest/supersim/v1/docs/SimsApi.md +++ b/rest/supersim/v1/docs/SimsApi.md @@ -115,8 +115,8 @@ Name | Type | Description **Status** | **string** | The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. **Fleet** | **string** | The SID or unique name of the Fleet to which a list of Sims are assigned. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/SimsBillingPeriodsApi.md b/rest/supersim/v1/docs/SimsBillingPeriodsApi.md index 1f5479f3a4..1b9bdb699b 100644 --- a/rest/supersim/v1/docs/SimsBillingPeriodsApi.md +++ b/rest/supersim/v1/docs/SimsBillingPeriodsApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListBillingPeriodParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/SimsIpAddressesApi.md b/rest/supersim/v1/docs/SimsIpAddressesApi.md index 98d394625f..a8e8a4e907 100644 --- a/rest/supersim/v1/docs/SimsIpAddressesApi.md +++ b/rest/supersim/v1/docs/SimsIpAddressesApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListSimIpAddressParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/SmsCommandsApi.md b/rest/supersim/v1/docs/SmsCommandsApi.md index 88acab8f27..bda0c98088 100644 --- a/rest/supersim/v1/docs/SmsCommandsApi.md +++ b/rest/supersim/v1/docs/SmsCommandsApi.md @@ -116,8 +116,8 @@ Name | Type | Description **Sim** | **string** | The SID or unique name of the Sim resource that SMS Command was sent to or from. **Status** | **string** | The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. **Direction** | **string** | The direction of the SMS 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** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/docs/UsageRecordsApi.md b/rest/supersim/v1/docs/UsageRecordsApi.md index 948c36eaad..cbd49ff592 100644 --- a/rest/supersim/v1/docs/UsageRecordsApi.md +++ b/rest/supersim/v1/docs/UsageRecordsApi.md @@ -35,8 +35,8 @@ Name | Type | Description **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. **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`. **EndTime** | **time.Time** | Only include usage that occurred before this time (exclusive), specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/supersim/v1/e_sim_profiles.go b/rest/supersim/v1/e_sim_profiles.go index 49d159410e..d263cf0183 100644 --- a/rest/supersim/v1/e_sim_profiles.go +++ b/rest/supersim/v1/e_sim_profiles.go @@ -123,9 +123,9 @@ type ListEsimProfileParams struct { // List the eSIM Profiles that are in a given status. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListEsimProfileParams) SetEid(Eid string) *ListEsimProfileParams { @@ -140,11 +140,11 @@ func (params *ListEsimProfileParams) SetStatus(Status string) *ListEsimProfilePa params.Status = &Status return params } -func (params *ListEsimProfileParams) SetPageSize(PageSize int) *ListEsimProfileParams { +func (params *ListEsimProfileParams) SetPageSize(PageSize int64) *ListEsimProfileParams { params.PageSize = &PageSize return params } -func (params *ListEsimProfileParams) SetLimit(Limit int) *ListEsimProfileParams { +func (params *ListEsimProfileParams) SetLimit(Limit int64) *ListEsimProfileParams { params.Limit = &Limit return params } @@ -232,7 +232,7 @@ func (c *ApiService) StreamEsimProfile(params *ListEsimProfileParams) (chan Supe } func (c *ApiService) streamEsimProfile(response *ListEsimProfileResponse, params *ListEsimProfileParams, recordChannel chan SupersimV1EsimProfile, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.EsimProfiles diff --git a/rest/supersim/v1/fleets.go b/rest/supersim/v1/fleets.go index ce99486a81..100831ec91 100644 --- a/rest/supersim/v1/fleets.go +++ b/rest/supersim/v1/fleets.go @@ -164,20 +164,20 @@ type ListFleetParams struct { // The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListFleetParams) SetNetworkAccessProfile(NetworkAccessProfile string) *ListFleetParams { params.NetworkAccessProfile = &NetworkAccessProfile return params } -func (params *ListFleetParams) SetPageSize(PageSize int) *ListFleetParams { +func (params *ListFleetParams) SetPageSize(PageSize int64) *ListFleetParams { params.PageSize = &PageSize return params } -func (params *ListFleetParams) SetLimit(Limit int) *ListFleetParams { +func (params *ListFleetParams) SetLimit(Limit int64) *ListFleetParams { params.Limit = &Limit return params } @@ -259,7 +259,7 @@ func (c *ApiService) StreamFleet(params *ListFleetParams) (chan SupersimV1Fleet, } func (c *ApiService) streamFleet(response *ListFleetResponse, params *ListFleetParams, recordChannel chan SupersimV1Fleet, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Fleets diff --git a/rest/supersim/v1/ip_commands.go b/rest/supersim/v1/ip_commands.go index 56daf32c39..057a18f400 100644 --- a/rest/supersim/v1/ip_commands.go +++ b/rest/supersim/v1/ip_commands.go @@ -143,9 +143,9 @@ type ListIpCommandParams struct { // The direction of the IP 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`. Direction *string `json:"Direction,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListIpCommandParams) SetSim(Sim string) *ListIpCommandParams { @@ -164,11 +164,11 @@ func (params *ListIpCommandParams) SetDirection(Direction string) *ListIpCommand params.Direction = &Direction return params } -func (params *ListIpCommandParams) SetPageSize(PageSize int) *ListIpCommandParams { +func (params *ListIpCommandParams) SetPageSize(PageSize int64) *ListIpCommandParams { params.PageSize = &PageSize return params } -func (params *ListIpCommandParams) SetLimit(Limit int) *ListIpCommandParams { +func (params *ListIpCommandParams) SetLimit(Limit int64) *ListIpCommandParams { params.Limit = &Limit return params } @@ -259,7 +259,7 @@ func (c *ApiService) StreamIpCommand(params *ListIpCommandParams) (chan Supersim } func (c *ApiService) streamIpCommand(response *ListIpCommandResponse, params *ListIpCommandParams, recordChannel chan SupersimV1IpCommand, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpCommands diff --git a/rest/supersim/v1/model_list_billing_period_response_meta.go b/rest/supersim/v1/model_list_billing_period_response_meta.go index bb26e594ed..d7bc08a1e3 100644 --- a/rest/supersim/v1/model_list_billing_period_response_meta.go +++ b/rest/supersim/v1/model_list_billing_period_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBillingPeriodResponseMeta struct for ListBillingPeriodResponseMeta type ListBillingPeriodResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/supersim/v1/network_access_profiles.go b/rest/supersim/v1/network_access_profiles.go index 245af52ec0..bc25287784 100644 --- a/rest/supersim/v1/network_access_profiles.go +++ b/rest/supersim/v1/network_access_profiles.go @@ -101,16 +101,16 @@ func (c *ApiService) FetchNetworkAccessProfile(Sid string) (*SupersimV1NetworkAc // Optional parameters for the method 'ListNetworkAccessProfile' type ListNetworkAccessProfileParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListNetworkAccessProfileParams) SetPageSize(PageSize int) *ListNetworkAccessProfileParams { +func (params *ListNetworkAccessProfileParams) SetPageSize(PageSize int64) *ListNetworkAccessProfileParams { params.PageSize = &PageSize return params } -func (params *ListNetworkAccessProfileParams) SetLimit(Limit int) *ListNetworkAccessProfileParams { +func (params *ListNetworkAccessProfileParams) SetLimit(Limit int64) *ListNetworkAccessProfileParams { params.Limit = &Limit return params } @@ -189,7 +189,7 @@ func (c *ApiService) StreamNetworkAccessProfile(params *ListNetworkAccessProfile } func (c *ApiService) streamNetworkAccessProfile(response *ListNetworkAccessProfileResponse, params *ListNetworkAccessProfileParams, recordChannel chan SupersimV1NetworkAccessProfile, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.NetworkAccessProfiles diff --git a/rest/supersim/v1/network_access_profiles_networks.go b/rest/supersim/v1/network_access_profiles_networks.go index b79c2d5839..52ca8761ea 100644 --- a/rest/supersim/v1/network_access_profiles_networks.go +++ b/rest/supersim/v1/network_access_profiles_networks.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchNetworkAccessProfileNetwork(NetworkAccessProfileSid st // Optional parameters for the method 'ListNetworkAccessProfileNetwork' type ListNetworkAccessProfileNetworkParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListNetworkAccessProfileNetworkParams) SetPageSize(PageSize int) *ListNetworkAccessProfileNetworkParams { +func (params *ListNetworkAccessProfileNetworkParams) SetPageSize(PageSize int64) *ListNetworkAccessProfileNetworkParams { params.PageSize = &PageSize return params } -func (params *ListNetworkAccessProfileNetworkParams) SetLimit(Limit int) *ListNetworkAccessProfileNetworkParams { +func (params *ListNetworkAccessProfileNetworkParams) SetLimit(Limit int64) *ListNetworkAccessProfileNetworkParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamNetworkAccessProfileNetwork(NetworkAccessProfileSid s } func (c *ApiService) streamNetworkAccessProfileNetwork(response *ListNetworkAccessProfileNetworkResponse, params *ListNetworkAccessProfileNetworkParams, recordChannel chan SupersimV1NetworkAccessProfileNetwork, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Networks diff --git a/rest/supersim/v1/networks.go b/rest/supersim/v1/networks.go index 84db1d32c6..ed36bac46d 100644 --- a/rest/supersim/v1/networks.go +++ b/rest/supersim/v1/networks.go @@ -57,9 +57,9 @@ type ListNetworkParams struct { // The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. Mnc *string `json:"Mnc,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListNetworkParams) SetIsoCountry(IsoCountry string) *ListNetworkParams { @@ -74,11 +74,11 @@ func (params *ListNetworkParams) SetMnc(Mnc string) *ListNetworkParams { params.Mnc = &Mnc return params } -func (params *ListNetworkParams) SetPageSize(PageSize int) *ListNetworkParams { +func (params *ListNetworkParams) SetPageSize(PageSize int64) *ListNetworkParams { params.PageSize = &PageSize return params } -func (params *ListNetworkParams) SetLimit(Limit int) *ListNetworkParams { +func (params *ListNetworkParams) SetLimit(Limit int64) *ListNetworkParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamNetwork(params *ListNetworkParams) (chan SupersimV1Ne } func (c *ApiService) streamNetwork(response *ListNetworkResponse, params *ListNetworkParams, recordChannel chan SupersimV1Network, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Networks diff --git a/rest/supersim/v1/settings_updates.go b/rest/supersim/v1/settings_updates.go index e8f71f0246..7514e9bb24 100644 --- a/rest/supersim/v1/settings_updates.go +++ b/rest/supersim/v1/settings_updates.go @@ -29,9 +29,9 @@ type ListSettingsUpdateParams struct { // Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSettingsUpdateParams) SetSim(Sim string) *ListSettingsUpdateParams { @@ -42,11 +42,11 @@ func (params *ListSettingsUpdateParams) SetStatus(Status string) *ListSettingsUp params.Status = &Status return params } -func (params *ListSettingsUpdateParams) SetPageSize(PageSize int) *ListSettingsUpdateParams { +func (params *ListSettingsUpdateParams) SetPageSize(PageSize int64) *ListSettingsUpdateParams { params.PageSize = &PageSize return params } -func (params *ListSettingsUpdateParams) SetLimit(Limit int) *ListSettingsUpdateParams { +func (params *ListSettingsUpdateParams) SetLimit(Limit int64) *ListSettingsUpdateParams { params.Limit = &Limit return params } @@ -131,7 +131,7 @@ func (c *ApiService) StreamSettingsUpdate(params *ListSettingsUpdateParams) (cha } func (c *ApiService) streamSettingsUpdate(response *ListSettingsUpdateResponse, params *ListSettingsUpdateParams, recordChannel chan SupersimV1SettingsUpdate, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SettingsUpdates diff --git a/rest/supersim/v1/sims.go b/rest/supersim/v1/sims.go index d1555a78b8..a66720ed4e 100644 --- a/rest/supersim/v1/sims.go +++ b/rest/supersim/v1/sims.go @@ -105,9 +105,9 @@ type ListSimParams struct { // 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. Iccid *string `json:"Iccid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSimParams) SetStatus(Status string) *ListSimParams { @@ -122,11 +122,11 @@ func (params *ListSimParams) SetIccid(Iccid string) *ListSimParams { params.Iccid = &Iccid return params } -func (params *ListSimParams) SetPageSize(PageSize int) *ListSimParams { +func (params *ListSimParams) SetPageSize(PageSize int64) *ListSimParams { params.PageSize = &PageSize return params } -func (params *ListSimParams) SetLimit(Limit int) *ListSimParams { +func (params *ListSimParams) SetLimit(Limit int64) *ListSimParams { params.Limit = &Limit return params } @@ -214,7 +214,7 @@ func (c *ApiService) StreamSim(params *ListSimParams) (chan SupersimV1Sim, chan } func (c *ApiService) streamSim(response *ListSimResponse, params *ListSimParams, recordChannel chan SupersimV1Sim, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sims diff --git a/rest/supersim/v1/sims_billing_periods.go b/rest/supersim/v1/sims_billing_periods.go index 727e8bbdd1..b9b635980f 100644 --- a/rest/supersim/v1/sims_billing_periods.go +++ b/rest/supersim/v1/sims_billing_periods.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListBillingPeriod' type ListBillingPeriodParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListBillingPeriodParams) SetPageSize(PageSize int) *ListBillingPeriodParams { +func (params *ListBillingPeriodParams) SetPageSize(PageSize int64) *ListBillingPeriodParams { params.PageSize = &PageSize return params } -func (params *ListBillingPeriodParams) SetLimit(Limit int) *ListBillingPeriodParams { +func (params *ListBillingPeriodParams) SetLimit(Limit int64) *ListBillingPeriodParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamBillingPeriod(SimSid string, params *ListBillingPerio } func (c *ApiService) streamBillingPeriod(response *ListBillingPeriodResponse, params *ListBillingPeriodParams, recordChannel chan SupersimV1BillingPeriod, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.BillingPeriods diff --git a/rest/supersim/v1/sims_ip_addresses.go b/rest/supersim/v1/sims_ip_addresses.go index 0c3793923c..71dd8221a9 100644 --- a/rest/supersim/v1/sims_ip_addresses.go +++ b/rest/supersim/v1/sims_ip_addresses.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListSimIpAddress' type ListSimIpAddressParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSimIpAddressParams) SetPageSize(PageSize int) *ListSimIpAddressParams { +func (params *ListSimIpAddressParams) SetPageSize(PageSize int64) *ListSimIpAddressParams { params.PageSize = &PageSize return params } -func (params *ListSimIpAddressParams) SetLimit(Limit int) *ListSimIpAddressParams { +func (params *ListSimIpAddressParams) SetLimit(Limit int64) *ListSimIpAddressParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamSimIpAddress(SimSid string, params *ListSimIpAddressP } func (c *ApiService) streamSimIpAddress(response *ListSimIpAddressResponse, params *ListSimIpAddressParams, recordChannel chan SupersimV1SimIpAddress, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpAddresses diff --git a/rest/supersim/v1/sms_commands.go b/rest/supersim/v1/sms_commands.go index a4d2bffbe9..1818630666 100644 --- a/rest/supersim/v1/sms_commands.go +++ b/rest/supersim/v1/sms_commands.go @@ -123,9 +123,9 @@ type ListSmsCommandParams struct { // The direction of the SMS 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`. Direction *string `json:"Direction,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSmsCommandParams) SetSim(Sim string) *ListSmsCommandParams { @@ -140,11 +140,11 @@ func (params *ListSmsCommandParams) SetDirection(Direction string) *ListSmsComma params.Direction = &Direction return params } -func (params *ListSmsCommandParams) SetPageSize(PageSize int) *ListSmsCommandParams { +func (params *ListSmsCommandParams) SetPageSize(PageSize int64) *ListSmsCommandParams { params.PageSize = &PageSize return params } -func (params *ListSmsCommandParams) SetLimit(Limit int) *ListSmsCommandParams { +func (params *ListSmsCommandParams) SetLimit(Limit int64) *ListSmsCommandParams { params.Limit = &Limit return params } @@ -232,7 +232,7 @@ func (c *ApiService) StreamSmsCommand(params *ListSmsCommandParams) (chan Supers } func (c *ApiService) streamSmsCommand(response *ListSmsCommandResponse, params *ListSmsCommandParams, recordChannel chan SupersimV1SmsCommand, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SmsCommands diff --git a/rest/supersim/v1/usage_records.go b/rest/supersim/v1/usage_records.go index a5b37ccb75..4a411e1198 100644 --- a/rest/supersim/v1/usage_records.go +++ b/rest/supersim/v1/usage_records.go @@ -42,9 +42,9 @@ type ListUsageRecordParams struct { // Only include usage that occurred before this time (exclusive), specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. EndTime *time.Time `json:"EndTime,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordParams) SetSim(Sim string) *ListUsageRecordParams { @@ -79,11 +79,11 @@ func (params *ListUsageRecordParams) SetEndTime(EndTime time.Time) *ListUsageRec params.EndTime = &EndTime return params } -func (params *ListUsageRecordParams) SetPageSize(PageSize int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetPageSize(PageSize int64) *ListUsageRecordParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetLimit(Limit int64) *ListUsageRecordParams { params.Limit = &Limit return params } @@ -186,7 +186,7 @@ func (c *ApiService) StreamUsageRecord(params *ListUsageRecordParams) (chan Supe } func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan SupersimV1UsageRecord, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/sync/v1/docs/ListDocumentResponseMeta.md b/rest/sync/v1/docs/ListDocumentResponseMeta.md index bf061ca090..721c3be617 100644 --- a/rest/sync/v1/docs/ListDocumentResponseMeta.md +++ b/rest/sync/v1/docs/ListDocumentResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/sync/v1/docs/ServicesApi.md index f04fdbe2a1..bcc3c28d9a 100644 --- a/rest/sync/v1/docs/ServicesApi.md +++ b/rest/sync/v1/docs/ServicesApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesDocumentsApi.md b/rest/sync/v1/docs/ServicesDocumentsApi.md index b90a5719a8..ab10bac586 100644 --- a/rest/sync/v1/docs/ServicesDocumentsApi.md +++ b/rest/sync/v1/docs/ServicesDocumentsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListDocumentParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesDocumentsPermissionsApi.md b/rest/sync/v1/docs/ServicesDocumentsPermissionsApi.md index 9d19996fd5..fb4f7ab6b3 100644 --- a/rest/sync/v1/docs/ServicesDocumentsPermissionsApi.md +++ b/rest/sync/v1/docs/ServicesDocumentsPermissionsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListDocumentPermissionParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesListsApi.md b/rest/sync/v1/docs/ServicesListsApi.md index 1c7e0c1a8d..e59b31039e 100644 --- a/rest/sync/v1/docs/ServicesListsApi.md +++ b/rest/sync/v1/docs/ServicesListsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListSyncListParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesListsItemsApi.md b/rest/sync/v1/docs/ServicesListsItemsApi.md index 4fc81d305b..43ad586fa6 100644 --- a/rest/sync/v1/docs/ServicesListsItemsApi.md +++ b/rest/sync/v1/docs/ServicesListsItemsApi.md @@ -175,8 +175,8 @@ Name | Type | Description **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. **From** | **string** | The `index` of the first Sync List Item resource to read. See also `bounds`. **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`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesListsPermissionsApi.md b/rest/sync/v1/docs/ServicesListsPermissionsApi.md index a346a7874a..a128d8cb8c 100644 --- a/rest/sync/v1/docs/ServicesListsPermissionsApi.md +++ b/rest/sync/v1/docs/ServicesListsPermissionsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListSyncListPermissionParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesMapsApi.md b/rest/sync/v1/docs/ServicesMapsApi.md index 5077899788..c0fbb4758e 100644 --- a/rest/sync/v1/docs/ServicesMapsApi.md +++ b/rest/sync/v1/docs/ServicesMapsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListSyncMapParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesMapsItemsApi.md b/rest/sync/v1/docs/ServicesMapsItemsApi.md index 40db153d1d..08759dc529 100644 --- a/rest/sync/v1/docs/ServicesMapsItemsApi.md +++ b/rest/sync/v1/docs/ServicesMapsItemsApi.md @@ -176,8 +176,8 @@ Name | Type | Description **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. **From** | **string** | The `key` of the first Sync Map Item resource to read. See also `bounds`. **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`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesMapsPermissionsApi.md b/rest/sync/v1/docs/ServicesMapsPermissionsApi.md index 424a466545..c4f22c3a71 100644 --- a/rest/sync/v1/docs/ServicesMapsPermissionsApi.md +++ b/rest/sync/v1/docs/ServicesMapsPermissionsApi.md @@ -123,8 +123,8 @@ Other parameters are passed through a pointer to a ListSyncMapPermissionParams s Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/docs/ServicesStreamsApi.md b/rest/sync/v1/docs/ServicesStreamsApi.md index 365508923e..ba32e3b1e2 100644 --- a/rest/sync/v1/docs/ServicesStreamsApi.md +++ b/rest/sync/v1/docs/ServicesStreamsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListSyncStreamParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/sync/v1/model_list_document_response_meta.go b/rest/sync/v1/model_list_document_response_meta.go index 7529232e1e..03cd5f4378 100644 --- a/rest/sync/v1/model_list_document_response_meta.go +++ b/rest/sync/v1/model_list_document_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListDocumentResponseMeta struct for ListDocumentResponseMeta type ListDocumentResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/sync/v1/services.go b/rest/sync/v1/services.go index c720651f5a..2057790d8b 100644 --- a/rest/sync/v1/services.go +++ b/rest/sync/v1/services.go @@ -70,7 +70,6 @@ func (params *CreateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEn return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error) { path := "/v1/Services" @@ -116,7 +115,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -164,16 +161,16 @@ func (c *ApiService) FetchService(Sid string) (*SyncV1Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan SyncV1Servic } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan SyncV1Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services @@ -346,7 +343,6 @@ func (params *UpdateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/sync/v1/services_documents.go b/rest/sync/v1/services_documents.go index 775a025d33..4dbad8f826 100644 --- a/rest/sync/v1/services_documents.go +++ b/rest/sync/v1/services_documents.go @@ -46,7 +46,6 @@ func (params *CreateDocumentParams) SetTtl(Ttl int) *CreateDocumentParams { return params } -// func (c *ApiService) CreateDocument(ServiceSid string, params *CreateDocumentParams) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -87,7 +86,6 @@ func (c *ApiService) CreateDocument(ServiceSid string, params *CreateDocumentPar return ps, err } -// func (c *ApiService) DeleteDocument(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -108,7 +106,6 @@ func (c *ApiService) DeleteDocument(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,16 +134,16 @@ func (c *ApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1Docume // Optional parameters for the method 'ListDocument' type ListDocumentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDocumentParams) SetPageSize(PageSize int) *ListDocumentParams { +func (params *ListDocumentParams) SetPageSize(PageSize int64) *ListDocumentParams { params.PageSize = &PageSize return params } -func (params *ListDocumentParams) SetLimit(Limit int) *ListDocumentParams { +func (params *ListDocumentParams) SetLimit(Limit int64) *ListDocumentParams { params.Limit = &Limit return params } @@ -227,7 +224,7 @@ func (c *ApiService) StreamDocument(ServiceSid string, params *ListDocumentParam } func (c *ApiService) streamDocument(response *ListDocumentResponse, params *ListDocumentParams, recordChannel chan SyncV1Document, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Documents @@ -297,7 +294,6 @@ func (params *UpdateDocumentParams) SetTtl(Ttl int) *UpdateDocumentParams { return params } -// func (c *ApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_documents_permissions.go b/rest/sync/v1/services_documents_permissions.go index 4b9ae9253b..8649f7cb70 100644 --- a/rest/sync/v1/services_documents_permissions.go +++ b/rest/sync/v1/services_documents_permissions.go @@ -75,16 +75,16 @@ func (c *ApiService) FetchDocumentPermission(ServiceSid string, DocumentSid stri // Optional parameters for the method 'ListDocumentPermission' type ListDocumentPermissionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDocumentPermissionParams) SetPageSize(PageSize int) *ListDocumentPermissionParams { +func (params *ListDocumentPermissionParams) SetPageSize(PageSize int64) *ListDocumentPermissionParams { params.PageSize = &PageSize return params } -func (params *ListDocumentPermissionParams) SetLimit(Limit int) *ListDocumentPermissionParams { +func (params *ListDocumentPermissionParams) SetLimit(Limit int64) *ListDocumentPermissionParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamDocumentPermission(ServiceSid string, DocumentSid str } func (c *ApiService) streamDocumentPermission(response *ListDocumentPermissionResponse, params *ListDocumentPermissionParams, recordChannel chan SyncV1DocumentPermission, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Permissions diff --git a/rest/sync/v1/services_lists.go b/rest/sync/v1/services_lists.go index e9a1977cef..7484da5540 100644 --- a/rest/sync/v1/services_lists.go +++ b/rest/sync/v1/services_lists.go @@ -46,7 +46,6 @@ func (params *CreateSyncListParams) SetCollectionTtl(CollectionTtl int) *CreateS return params } -// func (c *ApiService) CreateSyncList(ServiceSid string, params *CreateSyncListParams) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateSyncList(ServiceSid string, params *CreateSyncListPar return ps, err } -// func (c *ApiService) DeleteSyncList(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -102,7 +100,6 @@ func (c *ApiService) DeleteSyncList(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -131,16 +128,16 @@ func (c *ApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1SyncLi // Optional parameters for the method 'ListSyncList' type ListSyncListParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSyncListParams) SetPageSize(PageSize int) *ListSyncListParams { +func (params *ListSyncListParams) SetPageSize(PageSize int64) *ListSyncListParams { params.PageSize = &PageSize return params } -func (params *ListSyncListParams) SetLimit(Limit int) *ListSyncListParams { +func (params *ListSyncListParams) SetLimit(Limit int64) *ListSyncListParams { params.Limit = &Limit return params } @@ -221,7 +218,7 @@ func (c *ApiService) StreamSyncList(ServiceSid string, params *ListSyncListParam } func (c *ApiService) streamSyncList(response *ListSyncListResponse, params *ListSyncListParams, recordChannel chan SyncV1SyncList, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Lists @@ -285,7 +282,6 @@ func (params *UpdateSyncListParams) SetCollectionTtl(CollectionTtl int) *UpdateS return params } -// func (c *ApiService) UpdateSyncList(ServiceSid string, Sid string, params *UpdateSyncListParams) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_lists_items.go b/rest/sync/v1/services_lists_items.go index f985f59d5a..a43809bf16 100644 --- a/rest/sync/v1/services_lists_items.go +++ b/rest/sync/v1/services_lists_items.go @@ -52,7 +52,6 @@ func (params *CreateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Cre return params } -// func (c *ApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -108,7 +107,6 @@ func (params *DeleteSyncListItemParams) SetIfMatch(IfMatch string) *DeleteSyncLi return params } -// func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int, params *DeleteSyncListItemParams) error { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,7 +131,6 @@ func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index return nil } -// func (c *ApiService) FetchSyncListItem(ServiceSid string, ListSid string, Index int) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -169,9 +166,9 @@ type ListSyncListItemParams struct { // 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`. Bounds *string `json:"Bounds,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSyncListItemParams) SetOrder(Order string) *ListSyncListItemParams { @@ -186,11 +183,11 @@ func (params *ListSyncListItemParams) SetBounds(Bounds string) *ListSyncListItem params.Bounds = &Bounds return params } -func (params *ListSyncListItemParams) SetPageSize(PageSize int) *ListSyncListItemParams { +func (params *ListSyncListItemParams) SetPageSize(PageSize int64) *ListSyncListItemParams { params.PageSize = &PageSize return params } -func (params *ListSyncListItemParams) SetLimit(Limit int) *ListSyncListItemParams { +func (params *ListSyncListItemParams) SetLimit(Limit int64) *ListSyncListItemParams { params.Limit = &Limit return params } @@ -281,7 +278,7 @@ func (c *ApiService) StreamSyncListItem(ServiceSid string, ListSid string, param } func (c *ApiService) streamSyncListItem(response *ListSyncListItemResponse, params *ListSyncListItemParams, recordChannel chan SyncV1SyncListItem, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Items @@ -363,7 +360,6 @@ func (params *UpdateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Upd return params } -// func (c *ApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int, params *UpdateSyncListItemParams) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_lists_permissions.go b/rest/sync/v1/services_lists_permissions.go index abb29c592a..175b8107ad 100644 --- a/rest/sync/v1/services_lists_permissions.go +++ b/rest/sync/v1/services_lists_permissions.go @@ -75,16 +75,16 @@ func (c *ApiService) FetchSyncListPermission(ServiceSid string, ListSid string, // Optional parameters for the method 'ListSyncListPermission' type ListSyncListPermissionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSyncListPermissionParams) SetPageSize(PageSize int) *ListSyncListPermissionParams { +func (params *ListSyncListPermissionParams) SetPageSize(PageSize int64) *ListSyncListPermissionParams { params.PageSize = &PageSize return params } -func (params *ListSyncListPermissionParams) SetLimit(Limit int) *ListSyncListPermissionParams { +func (params *ListSyncListPermissionParams) SetLimit(Limit int64) *ListSyncListPermissionParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamSyncListPermission(ServiceSid string, ListSid string, } func (c *ApiService) streamSyncListPermission(response *ListSyncListPermissionResponse, params *ListSyncListPermissionParams, recordChannel chan SyncV1SyncListPermission, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Permissions diff --git a/rest/sync/v1/services_maps.go b/rest/sync/v1/services_maps.go index 2b4c4897dc..54caf7e1d1 100644 --- a/rest/sync/v1/services_maps.go +++ b/rest/sync/v1/services_maps.go @@ -46,7 +46,6 @@ func (params *CreateSyncMapParams) SetCollectionTtl(CollectionTtl int) *CreateSy return params } -// func (c *ApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParams) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParam return ps, err } -// func (c *ApiService) DeleteSyncMap(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -102,7 +100,6 @@ func (c *ApiService) DeleteSyncMap(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -131,16 +128,16 @@ func (c *ApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1SyncMap // Optional parameters for the method 'ListSyncMap' type ListSyncMapParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSyncMapParams) SetPageSize(PageSize int) *ListSyncMapParams { +func (params *ListSyncMapParams) SetPageSize(PageSize int64) *ListSyncMapParams { params.PageSize = &PageSize return params } -func (params *ListSyncMapParams) SetLimit(Limit int) *ListSyncMapParams { +func (params *ListSyncMapParams) SetLimit(Limit int64) *ListSyncMapParams { params.Limit = &Limit return params } @@ -221,7 +218,7 @@ func (c *ApiService) StreamSyncMap(ServiceSid string, params *ListSyncMapParams) } func (c *ApiService) streamSyncMap(response *ListSyncMapResponse, params *ListSyncMapParams, recordChannel chan SyncV1SyncMap, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Maps @@ -285,7 +282,6 @@ func (params *UpdateSyncMapParams) SetCollectionTtl(CollectionTtl int) *UpdateSy return params } -// func (c *ApiService) UpdateSyncMap(ServiceSid string, Sid string, params *UpdateSyncMapParams) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_maps_items.go b/rest/sync/v1/services_maps_items.go index f56ff76951..733e55a61a 100644 --- a/rest/sync/v1/services_maps_items.go +++ b/rest/sync/v1/services_maps_items.go @@ -58,7 +58,6 @@ func (params *CreateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Crea return params } -// func (c *ApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -117,7 +116,6 @@ func (params *DeleteSyncMapItemParams) SetIfMatch(IfMatch string) *DeleteSyncMap return params } -// func (c *ApiService) 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) @@ -142,7 +140,6 @@ func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key str return nil } -// func (c *ApiService) FetchSyncMapItem(ServiceSid string, MapSid string, Key string) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -178,9 +175,9 @@ type ListSyncMapItemParams struct { // 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`. Bounds *string `json:"Bounds,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSyncMapItemParams) SetOrder(Order string) *ListSyncMapItemParams { @@ -195,11 +192,11 @@ func (params *ListSyncMapItemParams) SetBounds(Bounds string) *ListSyncMapItemPa params.Bounds = &Bounds return params } -func (params *ListSyncMapItemParams) SetPageSize(PageSize int) *ListSyncMapItemParams { +func (params *ListSyncMapItemParams) SetPageSize(PageSize int64) *ListSyncMapItemParams { params.PageSize = &PageSize return params } -func (params *ListSyncMapItemParams) SetLimit(Limit int) *ListSyncMapItemParams { +func (params *ListSyncMapItemParams) SetLimit(Limit int64) *ListSyncMapItemParams { params.Limit = &Limit return params } @@ -290,7 +287,7 @@ func (c *ApiService) StreamSyncMapItem(ServiceSid string, MapSid string, params } func (c *ApiService) streamSyncMapItem(response *ListSyncMapItemResponse, params *ListSyncMapItemParams, recordChannel chan SyncV1SyncMapItem, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Items @@ -372,7 +369,6 @@ func (params *UpdateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Upda return params } -// func (c *ApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_maps_permissions.go b/rest/sync/v1/services_maps_permissions.go index 6668be3a27..d82bf48d65 100644 --- a/rest/sync/v1/services_maps_permissions.go +++ b/rest/sync/v1/services_maps_permissions.go @@ -75,16 +75,16 @@ func (c *ApiService) FetchSyncMapPermission(ServiceSid string, MapSid string, Id // Optional parameters for the method 'ListSyncMapPermission' type ListSyncMapPermissionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSyncMapPermissionParams) SetPageSize(PageSize int) *ListSyncMapPermissionParams { +func (params *ListSyncMapPermissionParams) SetPageSize(PageSize int64) *ListSyncMapPermissionParams { params.PageSize = &PageSize return params } -func (params *ListSyncMapPermissionParams) SetLimit(Limit int) *ListSyncMapPermissionParams { +func (params *ListSyncMapPermissionParams) SetLimit(Limit int64) *ListSyncMapPermissionParams { params.Limit = &Limit return params } @@ -166,7 +166,7 @@ func (c *ApiService) StreamSyncMapPermission(ServiceSid string, MapSid string, p } func (c *ApiService) streamSyncMapPermission(response *ListSyncMapPermissionResponse, params *ListSyncMapPermissionParams, recordChannel chan SyncV1SyncMapPermission, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Permissions diff --git a/rest/sync/v1/services_streams.go b/rest/sync/v1/services_streams.go index 1a187324aa..f391015df2 100644 --- a/rest/sync/v1/services_streams.go +++ b/rest/sync/v1/services_streams.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchSyncStream(ServiceSid string, Sid string) (*SyncV1Sync // Optional parameters for the method 'ListSyncStream' type ListSyncStreamParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSyncStreamParams) SetPageSize(PageSize int) *ListSyncStreamParams { +func (params *ListSyncStreamParams) SetPageSize(PageSize int64) *ListSyncStreamParams { params.PageSize = &PageSize return params } -func (params *ListSyncStreamParams) SetLimit(Limit int) *ListSyncStreamParams { +func (params *ListSyncStreamParams) SetLimit(Limit int64) *ListSyncStreamParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamSyncStream(ServiceSid string, params *ListSyncStreamP } func (c *ApiService) streamSyncStream(response *ListSyncStreamResponse, params *ListSyncStreamParams, recordChannel chan SyncV1SyncStream, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Streams diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md index 15f6f834fd..0dc6b285d1 100644 --- a/rest/taskrouter/v1/README.md +++ b/rest/taskrouter/v1/README.md @@ -57,7 +57,6 @@ Class | Method | HTTP request | Description *WorkspacesTaskQueuesApi* | [**ListTaskQueue**](docs/WorkspacesTaskQueuesApi.md#listtaskqueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues | *WorkspacesTaskQueuesApi* | [**UpdateTaskQueue**](docs/WorkspacesTaskQueuesApi.md#updatetaskqueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | *WorkspacesTaskQueuesCumulativeStatisticsApi* | [**FetchTaskQueueCumulativeStatistics**](docs/WorkspacesTaskQueuesCumulativeStatisticsApi.md#fetchtaskqueuecumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics | -*WorkspacesTaskQueuesRealTimeStatisticsApi* | [**CreateTaskQueueBulkRealTimeStatistics**](docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md#createtaskqueuebulkrealtimestatistics) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics | *WorkspacesTaskQueuesRealTimeStatisticsApi* | [**FetchTaskQueueRealTimeStatistics**](docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md#fetchtaskqueuerealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | *WorkspacesTaskQueuesStatisticsApi* | [**FetchTaskQueueStatistics**](docs/WorkspacesTaskQueuesStatisticsApi.md#fetchtaskqueuestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | *WorkspacesTaskQueuesStatisticsApi* | [**ListTaskQueuesStatistics**](docs/WorkspacesTaskQueuesStatisticsApi.md#listtaskqueuesstatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics | diff --git a/rest/taskrouter/v1/docs/ListActivityResponseMeta.md b/rest/taskrouter/v1/docs/ListActivityResponseMeta.md index 757ae1515b..49a6ec8857 100644 --- a/rest/taskrouter/v1/docs/ListActivityResponseMeta.md +++ b/rest/taskrouter/v1/docs/ListActivityResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/WorkspacesActivitiesApi.md b/rest/taskrouter/v1/docs/WorkspacesActivitiesApi.md index 8c9994701e..22e1cf5d2b 100644 --- a/rest/taskrouter/v1/docs/WorkspacesActivitiesApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesActivitiesApi.md @@ -167,8 +167,8 @@ Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The `friendly_name` of the Activity resources to read. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesApi.md b/rest/taskrouter/v1/docs/WorkspacesApi.md index f1d24f1243..603ba66e3f 100644 --- a/rest/taskrouter/v1/docs/WorkspacesApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesApi.md @@ -160,8 +160,8 @@ Other parameters are passed through a pointer to a ListWorkspaceParams struct Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesEventsApi.md b/rest/taskrouter/v1/docs/WorkspacesEventsApi.md index 604158d9cd..6c0427a775 100644 --- a/rest/taskrouter/v1/docs/WorkspacesEventsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesEventsApi.md @@ -86,8 +86,8 @@ Name | Type | Description **WorkflowSid** | **string** | The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow. **TaskChannel** | **string** | The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. **Sid** | **string** | The SID of the Event resource to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskChannelsApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskChannelsApi.md index cb5da5ed5d..71f298c9d6 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskChannelsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskChannelsApi.md @@ -166,8 +166,8 @@ Other parameters are passed through a pointer to a ListTaskChannelParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md index eff7972ce2..6e4dab99c4 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md @@ -173,8 +173,8 @@ Name | Type | Description **EvaluateWorkerAttributes** | **string** | The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. **WorkerSid** | **string** | The SID of the Worker with the TaskQueue resources to read. **Ordering** | **string** | Sorting parameter for TaskQueues -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md index b38ac15635..ec87f6c1dd 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md @@ -4,54 +4,10 @@ All URIs are relative to *https://taskrouter.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateTaskQueueBulkRealTimeStatistics**](WorkspacesTaskQueuesRealTimeStatisticsApi.md#CreateTaskQueueBulkRealTimeStatistics) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics | [**FetchTaskQueueRealTimeStatistics**](WorkspacesTaskQueuesRealTimeStatisticsApi.md#FetchTaskQueueRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | -## CreateTaskQueueBulkRealTimeStatistics - -> TaskrouterV1TaskQueueBulkRealTimeStatistics CreateTaskQueueBulkRealTimeStatistics(ctx, WorkspaceSidoptional) - - - -Fetch a Task Queue Real Time Statistics in bulk for the array of TaskQueue SIDs, support upto 50 in a request. - -### Path Parameters - - -Name | Type | Description -------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**WorkspaceSid** | **string** | The unique SID identifier of the Workspace. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateTaskQueueBulkRealTimeStatisticsParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**Body** | **map[string]interface{}** | - -### Return type - -[**TaskrouterV1TaskQueueBulkRealTimeStatistics**](TaskrouterV1TaskQueueBulkRealTimeStatistics.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[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 > TaskrouterV1TaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, WorkspaceSidTaskQueueSidoptional) diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesStatisticsApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesStatisticsApi.md index 938b2ea4d2..3d1e82cd32 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesStatisticsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesStatisticsApi.md @@ -86,8 +86,8 @@ Name | Type | Description **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. **TaskChannel** | **string** | Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesTasksApi.md b/rest/taskrouter/v1/docs/WorkspacesTasksApi.md index 3366bb8044..0f9e899c31 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTasksApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTasksApi.md @@ -183,8 +183,8 @@ Name | Type | Description **RoutingTarget** | **string** | A SID of a Worker, Queue, or Workflow to route a Task to **Ordering** | **string** | How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of 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. The only ordering pairing not allowed is DateCreated and VirtualStartTime. **HasAddons** | **bool** | Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md b/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md index 6e607f74a7..fdd05c74ab 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md @@ -80,8 +80,8 @@ Name | Type | Description ------------- | ------------- | ------------- **ReservationStatus** | **string** | Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. **WorkerSid** | **string** | The SID of the reserved Worker resource to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md b/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md index e86c0156a8..c42b774ecf 100644 --- a/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md @@ -175,8 +175,8 @@ Name | Type | Description **TaskQueueName** | **string** | The `friendly_name` of the TaskQueue that the Workers to read are eligible for. **TaskQueueSid** | **string** | The SID of the TaskQueue that the Workers to read are eligible for. **Ordering** | **string** | Sorting parameter for Workers -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesWorkersChannelsApi.md b/rest/taskrouter/v1/docs/WorkspacesWorkersChannelsApi.md index 37df09067a..8e3b5f4bfc 100644 --- a/rest/taskrouter/v1/docs/WorkspacesWorkersChannelsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesWorkersChannelsApi.md @@ -78,8 +78,8 @@ Other parameters are passed through a pointer to a ListWorkerChannelParams struc Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesWorkersReservationsApi.md b/rest/taskrouter/v1/docs/WorkspacesWorkersReservationsApi.md index 35a8eb41ff..37d595384b 100644 --- a/rest/taskrouter/v1/docs/WorkspacesWorkersReservationsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesWorkersReservationsApi.md @@ -79,8 +79,8 @@ Other parameters are passed through a pointer to a ListWorkerReservationParams s Name | Type | Description ------------- | ------------- | ------------- **ReservationStatus** | **string** | Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/docs/WorkspacesWorkflowsApi.md b/rest/taskrouter/v1/docs/WorkspacesWorkflowsApi.md index bf661f17ac..0ff1cd0805 100644 --- a/rest/taskrouter/v1/docs/WorkspacesWorkflowsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesWorkflowsApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListWorkflowParams struct Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The `friendly_name` of the Workflow resources to read. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/taskrouter/v1/model_list_activity_response_meta.go b/rest/taskrouter/v1/model_list_activity_response_meta.go index d281fabe89..31c21b0c57 100644 --- a/rest/taskrouter/v1/model_list_activity_response_meta.go +++ b/rest/taskrouter/v1/model_list_activity_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListActivityResponseMeta struct for ListActivityResponseMeta type ListActivityResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/taskrouter/v1/workspaces.go b/rest/taskrouter/v1/workspaces.go index 590d5a6ccf..5a5a709460 100644 --- a/rest/taskrouter/v1/workspaces.go +++ b/rest/taskrouter/v1/workspaces.go @@ -64,7 +64,6 @@ func (params *CreateWorkspaceParams) SetPrioritizeQueueOrder(PrioritizeQueueOrde return params } -// func (c *ApiService) CreateWorkspace(params *CreateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces" @@ -107,7 +106,6 @@ func (c *ApiService) CreateWorkspace(params *CreateWorkspaceParams) (*Taskrouter return ps, err } -// func (c *ApiService) DeleteWorkspace(Sid string) error { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -127,7 +125,6 @@ func (c *ApiService) DeleteWorkspace(Sid string) error { return nil } -// func (c *ApiService) FetchWorkspace(Sid string) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -157,20 +154,20 @@ type ListWorkspaceParams struct { // The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListWorkspaceParams) SetFriendlyName(FriendlyName string) *ListWorkspaceParams { params.FriendlyName = &FriendlyName return params } -func (params *ListWorkspaceParams) SetPageSize(PageSize int) *ListWorkspaceParams { +func (params *ListWorkspaceParams) SetPageSize(PageSize int64) *ListWorkspaceParams { params.PageSize = &PageSize return params } -func (params *ListWorkspaceParams) SetLimit(Limit int) *ListWorkspaceParams { +func (params *ListWorkspaceParams) SetLimit(Limit int64) *ListWorkspaceParams { params.Limit = &Limit return params } @@ -252,7 +249,7 @@ func (c *ApiService) StreamWorkspace(params *ListWorkspaceParams) (chan Taskrout } func (c *ApiService) streamWorkspace(response *ListWorkspaceResponse, params *ListWorkspaceParams, recordChannel chan TaskrouterV1Workspace, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Workspaces @@ -346,7 +343,6 @@ func (params *UpdateWorkspaceParams) SetPrioritizeQueueOrder(PrioritizeQueueOrde return params } -// func (c *ApiService) UpdateWorkspace(Sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_activities.go b/rest/taskrouter/v1/workspaces_activities.go index e056d5e478..f0c19f4ce3 100644 --- a/rest/taskrouter/v1/workspaces_activities.go +++ b/rest/taskrouter/v1/workspaces_activities.go @@ -40,7 +40,6 @@ func (params *CreateActivityParams) SetAvailable(Available bool) *CreateActivity return params } -// func (c *ApiService) CreateActivity(WorkspaceSid string, params *CreateActivityParams) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -72,7 +71,6 @@ func (c *ApiService) CreateActivity(WorkspaceSid string, params *CreateActivityP return ps, err } -// func (c *ApiService) DeleteActivity(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -93,7 +91,6 @@ func (c *ApiService) DeleteActivity(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchActivity(WorkspaceSid string, Sid string) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -126,9 +123,9 @@ type ListActivityParams struct { // 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. Available *string `json:"Available,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListActivityParams) SetFriendlyName(FriendlyName string) *ListActivityParams { @@ -139,11 +136,11 @@ func (params *ListActivityParams) SetAvailable(Available string) *ListActivityPa params.Available = &Available return params } -func (params *ListActivityParams) SetPageSize(PageSize int) *ListActivityParams { +func (params *ListActivityParams) SetPageSize(PageSize int64) *ListActivityParams { params.PageSize = &PageSize return params } -func (params *ListActivityParams) SetLimit(Limit int) *ListActivityParams { +func (params *ListActivityParams) SetLimit(Limit int64) *ListActivityParams { params.Limit = &Limit return params } @@ -230,7 +227,7 @@ func (c *ApiService) StreamActivity(WorkspaceSid string, params *ListActivityPar } func (c *ApiService) streamActivity(response *ListActivityResponse, params *ListActivityParams, recordChannel chan TaskrouterV1Activity, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Activities @@ -288,7 +285,6 @@ func (params *UpdateActivityParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateActivity(WorkspaceSid string, Sid string, params *UpdateActivityParams) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_cumulative_statistics.go index 2ebf39d3a8..dc30a31a75 100644 --- a/rest/taskrouter/v1/workspaces_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkspaceCumulativeStatisticsParams) SetSplitByWaitTime(Split return params } -// func (c *ApiService) FetchWorkspaceCumulativeStatistics(WorkspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_events.go b/rest/taskrouter/v1/workspaces_events.go index c66a5bb0f0..c33bb98d7a 100644 --- a/rest/taskrouter/v1/workspaces_events.go +++ b/rest/taskrouter/v1/workspaces_events.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchEvent(WorkspaceSid string, Sid string) (*TaskrouterV1Event, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -75,9 +74,9 @@ type ListEventParams struct { // The SID of the Event resource to read. Sid *string `json:"Sid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListEventParams) SetEndDate(EndDate time.Time) *ListEventParams { @@ -124,11 +123,11 @@ func (params *ListEventParams) SetSid(Sid string) *ListEventParams { params.Sid = &Sid return params } -func (params *ListEventParams) SetPageSize(PageSize int) *ListEventParams { +func (params *ListEventParams) SetPageSize(PageSize int64) *ListEventParams { params.PageSize = &PageSize return params } -func (params *ListEventParams) SetLimit(Limit int) *ListEventParams { +func (params *ListEventParams) SetLimit(Limit int64) *ListEventParams { params.Limit = &Limit return params } @@ -242,7 +241,7 @@ func (c *ApiService) StreamEvent(WorkspaceSid string, params *ListEventParams) ( } func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan TaskrouterV1Event, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Events diff --git a/rest/taskrouter/v1/workspaces_real_time_statistics.go b/rest/taskrouter/v1/workspaces_real_time_statistics.go index e4de938fcd..093f0fdd28 100644 --- a/rest/taskrouter/v1/workspaces_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkspaceRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkspaceRealTimeStatistics(WorkspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_statistics.go b/rest/taskrouter/v1/workspaces_statistics.go index c1df80e2a7..0b5630ee86 100644 --- a/rest/taskrouter/v1/workspaces_statistics.go +++ b/rest/taskrouter/v1/workspaces_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkspaceStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchWorkspaceStatistics(WorkspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_channels.go b/rest/taskrouter/v1/workspaces_task_channels.go index 10ee10e278..5ce6caa9ef 100644 --- a/rest/taskrouter/v1/workspaces_task_channels.go +++ b/rest/taskrouter/v1/workspaces_task_channels.go @@ -46,7 +46,6 @@ func (params *CreateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz return params } -// func (c *ApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskCh return ps, err } -// func (c *ApiService) DeleteTaskChannel(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -102,7 +100,6 @@ func (c *ApiService) DeleteTaskChannel(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchTaskChannel(WorkspaceSid string, Sid string) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -131,16 +128,16 @@ func (c *ApiService) FetchTaskChannel(WorkspaceSid string, Sid string) (*Taskrou // Optional parameters for the method 'ListTaskChannel' type ListTaskChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListTaskChannelParams) SetPageSize(PageSize int) *ListTaskChannelParams { +func (params *ListTaskChannelParams) SetPageSize(PageSize int64) *ListTaskChannelParams { params.PageSize = &PageSize return params } -func (params *ListTaskChannelParams) SetLimit(Limit int) *ListTaskChannelParams { +func (params *ListTaskChannelParams) SetLimit(Limit int64) *ListTaskChannelParams { params.Limit = &Limit return params } @@ -221,7 +218,7 @@ func (c *ApiService) StreamTaskChannel(WorkspaceSid string, params *ListTaskChan } func (c *ApiService) streamTaskChannel(response *ListTaskChannelResponse, params *ListTaskChannelParams, recordChannel chan TaskrouterV1TaskChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -285,7 +282,6 @@ func (params *UpdateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz return params } -// func (c *ApiService) UpdateTaskChannel(WorkspaceSid string, Sid string, params *UpdateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues.go b/rest/taskrouter/v1/workspaces_task_queues.go index 9bc56258fc..4df0a36c9e 100644 --- a/rest/taskrouter/v1/workspaces_task_queues.go +++ b/rest/taskrouter/v1/workspaces_task_queues.go @@ -64,7 +64,6 @@ func (params *CreateTaskQueueParams) SetAssignmentActivitySid(AssignmentActivity return params } -// func (c *ApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -108,7 +107,6 @@ func (c *ApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueu return ps, err } -// func (c *ApiService) DeleteTaskQueue(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -129,7 +127,6 @@ func (c *ApiService) DeleteTaskQueue(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchTaskQueue(WorkspaceSid string, Sid string) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -166,9 +163,9 @@ type ListTaskQueueParams struct { // Sorting parameter for TaskQueues Ordering *string `json:"Ordering,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTaskQueueParams) SetFriendlyName(FriendlyName string) *ListTaskQueueParams { @@ -187,11 +184,11 @@ func (params *ListTaskQueueParams) SetOrdering(Ordering string) *ListTaskQueuePa params.Ordering = &Ordering return params } -func (params *ListTaskQueueParams) SetPageSize(PageSize int) *ListTaskQueueParams { +func (params *ListTaskQueueParams) SetPageSize(PageSize int64) *ListTaskQueueParams { params.PageSize = &PageSize return params } -func (params *ListTaskQueueParams) SetLimit(Limit int) *ListTaskQueueParams { +func (params *ListTaskQueueParams) SetLimit(Limit int64) *ListTaskQueueParams { params.Limit = &Limit return params } @@ -284,7 +281,7 @@ func (c *ApiService) StreamTaskQueue(WorkspaceSid string, params *ListTaskQueueP } func (c *ApiService) streamTaskQueue(response *ListTaskQueueResponse, params *ListTaskQueueParams, recordChannel chan TaskrouterV1TaskQueue, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.TaskQueues @@ -372,7 +369,6 @@ func (params *UpdateTaskQueueParams) SetTaskOrder(TaskOrder string) *UpdateTaskQ return params } -// func (c *ApiService) UpdateTaskQueue(WorkspaceSid string, Sid string, params *UpdateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go index cf9b44f7c6..f70023254a 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchTaskQueueCumulativeStatisticsParams) SetSplitByWaitTime(Split return params } -// func (c *ApiService) FetchTaskQueueCumulativeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1TaskQueueCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go index f024b24e3d..af51706177 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go @@ -20,51 +20,6 @@ import ( "strings" ) -// Optional parameters for the method 'CreateTaskQueueBulkRealTimeStatistics' -type CreateTaskQueueBulkRealTimeStatisticsParams struct { - // - Body *map[string]interface{} `json:"body,omitempty"` -} - -func (params *CreateTaskQueueBulkRealTimeStatisticsParams) SetBody(Body map[string]interface{}) *CreateTaskQueueBulkRealTimeStatisticsParams { - params.Body = &Body - return params -} - -// Fetch a Task Queue Real Time Statistics in bulk for the array of TaskQueue SIDs, support upto 50 in a request. -func (c *ApiService) CreateTaskQueueBulkRealTimeStatistics(WorkspaceSid string, params *CreateTaskQueueBulkRealTimeStatisticsParams) (*TaskrouterV1TaskQueueBulkRealTimeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) - - data := url.Values{} - headers := map[string]interface{}{ - "Content-Type": "application/json", - } - - body := []byte{} - if params != nil && params.Body != nil { - b, err := json.Marshal(*params.Body) - if err != nil { - return nil, err - } - body = b - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1TaskQueueBulkRealTimeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - // Optional parameters for the method 'FetchTaskQueueRealTimeStatistics' type FetchTaskQueueRealTimeStatisticsParams struct { // The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @@ -76,7 +31,6 @@ func (params *FetchTaskQueueRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchTaskQueueRealTimeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1TaskQueueRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_statistics.go index c70d5f8545..8ab163730c 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_statistics.go @@ -59,7 +59,6 @@ func (params *FetchTaskQueueStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchTaskQueueStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1TaskQueueStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -116,9 +115,9 @@ type ListTaskQueuesStatisticsParams struct { // 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. SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTaskQueuesStatisticsParams) SetEndDate(EndDate time.Time) *ListTaskQueuesStatisticsParams { @@ -145,11 +144,11 @@ func (params *ListTaskQueuesStatisticsParams) SetSplitByWaitTime(SplitByWaitTime params.SplitByWaitTime = &SplitByWaitTime return params } -func (params *ListTaskQueuesStatisticsParams) SetPageSize(PageSize int) *ListTaskQueuesStatisticsParams { +func (params *ListTaskQueuesStatisticsParams) SetPageSize(PageSize int64) *ListTaskQueuesStatisticsParams { params.PageSize = &PageSize return params } -func (params *ListTaskQueuesStatisticsParams) SetLimit(Limit int) *ListTaskQueuesStatisticsParams { +func (params *ListTaskQueuesStatisticsParams) SetLimit(Limit int64) *ListTaskQueuesStatisticsParams { params.Limit = &Limit return params } @@ -248,7 +247,7 @@ func (c *ApiService) StreamTaskQueuesStatistics(WorkspaceSid string, params *Lis } func (c *ApiService) streamTaskQueuesStatistics(response *ListTaskQueuesStatisticsResponse, params *ListTaskQueuesStatisticsParams, recordChannel chan TaskrouterV1TaskQueuesStatistics, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.TaskQueuesStatistics diff --git a/rest/taskrouter/v1/workspaces_tasks.go b/rest/taskrouter/v1/workspaces_tasks.go index 31e1bc236e..f79f141127 100644 --- a/rest/taskrouter/v1/workspaces_tasks.go +++ b/rest/taskrouter/v1/workspaces_tasks.go @@ -83,7 +83,6 @@ func (params *CreateTaskParams) SetTaskQueueSid(TaskQueueSid string) *CreateTask return params } -// func (c *ApiService) CreateTask(WorkspaceSid string, params *CreateTaskParams) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -147,7 +146,6 @@ func (params *DeleteTaskParams) SetIfMatch(IfMatch string) *DeleteTaskParams { return params } -// func (c *ApiService) DeleteTask(WorkspaceSid string, Sid string, params *DeleteTaskParams) error { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -171,7 +169,6 @@ func (c *ApiService) DeleteTask(WorkspaceSid string, Sid string, params *DeleteT return nil } -// func (c *ApiService) FetchTask(WorkspaceSid string, Sid string) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -220,9 +217,9 @@ type ListTaskParams struct { // Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. HasAddons *bool `json:"HasAddons,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTaskParams) SetPriority(Priority int) *ListTaskParams { @@ -265,11 +262,11 @@ func (params *ListTaskParams) SetHasAddons(HasAddons bool) *ListTaskParams { params.HasAddons = &HasAddons return params } -func (params *ListTaskParams) SetPageSize(PageSize int) *ListTaskParams { +func (params *ListTaskParams) SetPageSize(PageSize int64) *ListTaskParams { params.PageSize = &PageSize return params } -func (params *ListTaskParams) SetLimit(Limit int) *ListTaskParams { +func (params *ListTaskParams) SetLimit(Limit int64) *ListTaskParams { params.Limit = &Limit return params } @@ -382,7 +379,7 @@ func (c *ApiService) StreamTask(WorkspaceSid string, params *ListTaskParams) (ch } func (c *ApiService) streamTask(response *ListTaskResponse, params *ListTaskParams, recordChannel chan TaskrouterV1Task, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Tasks @@ -476,7 +473,6 @@ func (params *UpdateTaskParams) SetVirtualStartTime(VirtualStartTime time.Time) return params } -// func (c *ApiService) UpdateTask(WorkspaceSid string, Sid string, params *UpdateTaskParams) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_tasks_reservations.go b/rest/taskrouter/v1/workspaces_tasks_reservations.go index f337399b3f..51cac79841 100644 --- a/rest/taskrouter/v1/workspaces_tasks_reservations.go +++ b/rest/taskrouter/v1/workspaces_tasks_reservations.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchTaskReservation(WorkspaceSid string, TaskSid string, Sid string) (*TaskrouterV1TaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -57,9 +56,9 @@ type ListTaskReservationParams struct { // The SID of the reserved Worker resource to read. WorkerSid *string `json:"WorkerSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTaskReservationParams) SetReservationStatus(ReservationStatus string) *ListTaskReservationParams { @@ -70,11 +69,11 @@ func (params *ListTaskReservationParams) SetWorkerSid(WorkerSid string) *ListTas params.WorkerSid = &WorkerSid return params } -func (params *ListTaskReservationParams) SetPageSize(PageSize int) *ListTaskReservationParams { +func (params *ListTaskReservationParams) SetPageSize(PageSize int64) *ListTaskReservationParams { params.PageSize = &PageSize return params } -func (params *ListTaskReservationParams) SetLimit(Limit int) *ListTaskReservationParams { +func (params *ListTaskReservationParams) SetLimit(Limit int64) *ListTaskReservationParams { params.Limit = &Limit return params } @@ -162,7 +161,7 @@ func (c *ApiService) StreamTaskReservation(WorkspaceSid string, TaskSid string, } func (c *ApiService) streamTaskReservation(response *ListTaskReservationResponse, params *ListTaskReservationParams, recordChannel chan TaskrouterV1TaskReservation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Reservations @@ -544,7 +543,6 @@ func (params *UpdateTaskReservationParams) SetJitterBufferSize(JitterBufferSize return params } -// func (c *ApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid string, Sid string, params *UpdateTaskReservationParams) (*TaskrouterV1TaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers.go b/rest/taskrouter/v1/workspaces_workers.go index f4971390d1..9986ead328 100644 --- a/rest/taskrouter/v1/workspaces_workers.go +++ b/rest/taskrouter/v1/workspaces_workers.go @@ -46,7 +46,6 @@ func (params *CreateWorkerParams) SetAttributes(Attributes string) *CreateWorker return params } -// func (c *ApiService) CreateWorker(WorkspaceSid string, params *CreateWorkerParams) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -92,7 +91,6 @@ func (params *DeleteWorkerParams) SetIfMatch(IfMatch string) *DeleteWorkerParams return params } -// func (c *ApiService) DeleteWorker(WorkspaceSid string, Sid string, params *DeleteWorkerParams) error { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteWorker(WorkspaceSid string, Sid string, params *Delet return nil } -// func (c *ApiService) FetchWorker(WorkspaceSid string, Sid string) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -161,9 +158,9 @@ type ListWorkerParams struct { // Sorting parameter for Workers Ordering *string `json:"Ordering,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListWorkerParams) SetActivityName(ActivityName string) *ListWorkerParams { @@ -198,11 +195,11 @@ func (params *ListWorkerParams) SetOrdering(Ordering string) *ListWorkerParams { params.Ordering = &Ordering return params } -func (params *ListWorkerParams) SetPageSize(PageSize int) *ListWorkerParams { +func (params *ListWorkerParams) SetPageSize(PageSize int64) *ListWorkerParams { params.PageSize = &PageSize return params } -func (params *ListWorkerParams) SetLimit(Limit int) *ListWorkerParams { +func (params *ListWorkerParams) SetLimit(Limit int64) *ListWorkerParams { params.Limit = &Limit return params } @@ -307,7 +304,7 @@ func (c *ApiService) StreamWorker(WorkspaceSid string, params *ListWorkerParams) } func (c *ApiService) streamWorker(response *ListWorkerResponse, params *ListWorkerParams, recordChannel chan TaskrouterV1Worker, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Workers @@ -389,7 +386,6 @@ func (params *UpdateWorkerParams) SetRejectPendingReservations(RejectPendingRese return params } -// func (c *ApiService) UpdateWorker(WorkspaceSid string, Sid string, params *UpdateWorkerParams) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_channels.go b/rest/taskrouter/v1/workspaces_workers_channels.go index 00676b2488..e882cfee92 100644 --- a/rest/taskrouter/v1/workspaces_workers_channels.go +++ b/rest/taskrouter/v1/workspaces_workers_channels.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -53,16 +52,16 @@ func (c *ApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid string, S // Optional parameters for the method 'ListWorkerChannel' type ListWorkerChannelParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListWorkerChannelParams) SetPageSize(PageSize int) *ListWorkerChannelParams { +func (params *ListWorkerChannelParams) SetPageSize(PageSize int64) *ListWorkerChannelParams { params.PageSize = &PageSize return params } -func (params *ListWorkerChannelParams) SetLimit(Limit int) *ListWorkerChannelParams { +func (params *ListWorkerChannelParams) SetLimit(Limit int64) *ListWorkerChannelParams { params.Limit = &Limit return params } @@ -144,7 +143,7 @@ func (c *ApiService) StreamWorkerChannel(WorkspaceSid string, WorkerSid string, } func (c *ApiService) streamWorkerChannel(response *ListWorkerChannelResponse, params *ListWorkerChannelParams, recordChannel chan TaskrouterV1WorkerChannel, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Channels @@ -208,7 +207,6 @@ func (params *UpdateWorkerChannelParams) SetAvailable(Available bool) *UpdateWor return params } -// func (c *ApiService) UpdateWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go index 62e0d68453..17b7fa7063 100644 --- a/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go @@ -51,7 +51,6 @@ func (params *FetchWorkersCumulativeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkersCumulativeStatistics(WorkspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkersCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go b/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go index c7500bb808..80d87c585f 100644 --- a/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkersRealTimeStatisticsParams) SetTaskChannel(TaskChannel s return params } -// func (c *ApiService) FetchWorkersRealTimeStatistics(WorkspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkersRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_reservations.go b/rest/taskrouter/v1/workspaces_workers_reservations.go index 172ef30bdb..c158994715 100644 --- a/rest/taskrouter/v1/workspaces_workers_reservations.go +++ b/rest/taskrouter/v1/workspaces_workers_reservations.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -55,20 +54,20 @@ type ListWorkerReservationParams struct { // Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. ReservationStatus *string `json:"ReservationStatus,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListWorkerReservationParams) SetReservationStatus(ReservationStatus string) *ListWorkerReservationParams { params.ReservationStatus = &ReservationStatus return params } -func (params *ListWorkerReservationParams) SetPageSize(PageSize int) *ListWorkerReservationParams { +func (params *ListWorkerReservationParams) SetPageSize(PageSize int64) *ListWorkerReservationParams { params.PageSize = &PageSize return params } -func (params *ListWorkerReservationParams) SetLimit(Limit int) *ListWorkerReservationParams { +func (params *ListWorkerReservationParams) SetLimit(Limit int64) *ListWorkerReservationParams { params.Limit = &Limit return params } @@ -153,7 +152,7 @@ func (c *ApiService) StreamWorkerReservation(WorkspaceSid string, WorkerSid stri } func (c *ApiService) streamWorkerReservation(response *ListWorkerReservationResponse, params *ListWorkerReservationParams, recordChannel chan TaskrouterV1WorkerReservation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Reservations @@ -523,7 +522,6 @@ func (params *UpdateWorkerReservationParams) SetJitterBufferSize(JitterBufferSiz return params } -// func (c *ApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_statistics.go b/rest/taskrouter/v1/workspaces_workers_statistics.go index c7f1e2a081..6463953c88 100644 --- a/rest/taskrouter/v1/workspaces_workers_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_statistics.go @@ -51,7 +51,6 @@ func (params *FetchWorkerInstanceStatisticsParams) SetTaskChannel(TaskChannel st return params } -// func (c *ApiService) FetchWorkerInstanceStatistics(WorkspaceSid string, WorkerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkerInstanceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -137,7 +136,6 @@ func (params *FetchWorkerStatisticsParams) SetTaskChannel(TaskChannel string) *F return params } -// func (c *ApiService) FetchWorkerStatistics(WorkspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkerStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows.go b/rest/taskrouter/v1/workspaces_workflows.go index 43b1e2d90c..b784d2d050 100644 --- a/rest/taskrouter/v1/workspaces_workflows.go +++ b/rest/taskrouter/v1/workspaces_workflows.go @@ -58,7 +58,6 @@ func (params *CreateWorkflowParams) SetTaskReservationTimeout(TaskReservationTim return params } -// func (c *ApiService) CreateWorkflow(WorkspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -99,7 +98,6 @@ func (c *ApiService) CreateWorkflow(WorkspaceSid string, params *CreateWorkflowP return ps, err } -// func (c *ApiService) DeleteWorkflow(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -120,7 +118,6 @@ func (c *ApiService) DeleteWorkflow(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchWorkflow(WorkspaceSid string, Sid string) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -151,20 +148,20 @@ type ListWorkflowParams struct { // The `friendly_name` of the Workflow resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListWorkflowParams) SetFriendlyName(FriendlyName string) *ListWorkflowParams { params.FriendlyName = &FriendlyName return params } -func (params *ListWorkflowParams) SetPageSize(PageSize int) *ListWorkflowParams { +func (params *ListWorkflowParams) SetPageSize(PageSize int64) *ListWorkflowParams { params.PageSize = &PageSize return params } -func (params *ListWorkflowParams) SetLimit(Limit int) *ListWorkflowParams { +func (params *ListWorkflowParams) SetLimit(Limit int64) *ListWorkflowParams { params.Limit = &Limit return params } @@ -248,7 +245,7 @@ func (c *ApiService) StreamWorkflow(WorkspaceSid string, params *ListWorkflowPar } func (c *ApiService) streamWorkflow(response *ListWorkflowResponse, params *ListWorkflowParams, recordChannel chan TaskrouterV1Workflow, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Workflows @@ -336,7 +333,6 @@ func (params *UpdateWorkflowParams) SetReEvaluateTasks(ReEvaluateTasks string) * return params } -// func (c *ApiService) UpdateWorkflow(WorkspaceSid string, Sid string, params *UpdateWorkflowParams) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go index 295411579f..2e175564e0 100644 --- a/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkflowCumulativeStatisticsParams) SetSplitByWaitTime(SplitB return params } -// func (c *ApiService) FetchWorkflowCumulativeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkflowCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go b/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go index f0aeb96560..f1ce4a0aa5 100644 --- a/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkflowRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkflowRealTimeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkflowRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_statistics.go b/rest/taskrouter/v1/workspaces_workflows_statistics.go index 123d3b981d..87c55e03e4 100644 --- a/rest/taskrouter/v1/workspaces_workflows_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkflowStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchWorkflowStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkflowStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/trunking/v1/docs/ListCredentialListResponseMeta.md b/rest/trunking/v1/docs/ListCredentialListResponseMeta.md index 940c52bdd6..02409fba25 100644 --- a/rest/trunking/v1/docs/ListCredentialListResponseMeta.md +++ b/rest/trunking/v1/docs/ListCredentialListResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/TrunksApi.md b/rest/trunking/v1/docs/TrunksApi.md index daa5a486be..1b7dcd0fe3 100644 --- a/rest/trunking/v1/docs/TrunksApi.md +++ b/rest/trunking/v1/docs/TrunksApi.md @@ -161,8 +161,8 @@ Other parameters are passed through a pointer to a ListTrunkParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trunking/v1/docs/TrunksCredentialListsApi.md b/rest/trunking/v1/docs/TrunksCredentialListsApi.md index c55cf65c3b..c8ae21f44c 100644 --- a/rest/trunking/v1/docs/TrunksCredentialListsApi.md +++ b/rest/trunking/v1/docs/TrunksCredentialListsApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListCredentialListParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trunking/v1/docs/TrunksIpAccessControlListsApi.md b/rest/trunking/v1/docs/TrunksIpAccessControlListsApi.md index 8325eca808..0100a58075 100644 --- a/rest/trunking/v1/docs/TrunksIpAccessControlListsApi.md +++ b/rest/trunking/v1/docs/TrunksIpAccessControlListsApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListIpAccessControlListParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trunking/v1/docs/TrunksOriginationUrlsApi.md b/rest/trunking/v1/docs/TrunksOriginationUrlsApi.md index c9a88571fe..3c54e566eb 100644 --- a/rest/trunking/v1/docs/TrunksOriginationUrlsApi.md +++ b/rest/trunking/v1/docs/TrunksOriginationUrlsApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListOriginationUrlParams stru Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trunking/v1/docs/TrunksPhoneNumbersApi.md b/rest/trunking/v1/docs/TrunksPhoneNumbersApi.md index 8ec4a5c57d..4ea9496d2e 100644 --- a/rest/trunking/v1/docs/TrunksPhoneNumbersApi.md +++ b/rest/trunking/v1/docs/TrunksPhoneNumbersApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListPhoneNumberParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trunking/v1/model_list_credential_list_response_meta.go b/rest/trunking/v1/model_list_credential_list_response_meta.go index b11874a93d..570982f7aa 100644 --- a/rest/trunking/v1/model_list_credential_list_response_meta.go +++ b/rest/trunking/v1/model_list_credential_list_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCredentialListResponseMeta struct for ListCredentialListResponseMeta type ListCredentialListResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/trunking/v1/trunks.go b/rest/trunking/v1/trunks.go index 151892281e..e79609e71a 100644 --- a/rest/trunking/v1/trunks.go +++ b/rest/trunking/v1/trunks.go @@ -76,7 +76,6 @@ func (params *CreateTrunkParams) SetTransferCallerId(TransferCallerId string) *C return params } -// func (c *ApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks" @@ -125,7 +124,6 @@ func (c *ApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, e return ps, err } -// func (c *ApiService) DeleteTrunk(Sid string) error { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -145,7 +143,6 @@ func (c *ApiService) DeleteTrunk(Sid string) error { return nil } -// func (c *ApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -173,16 +170,16 @@ func (c *ApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error) { // Optional parameters for the method 'ListTrunk' type ListTrunkParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListTrunkParams) SetPageSize(PageSize int) *ListTrunkParams { +func (params *ListTrunkParams) SetPageSize(PageSize int64) *ListTrunkParams { params.PageSize = &PageSize return params } -func (params *ListTrunkParams) SetLimit(Limit int) *ListTrunkParams { +func (params *ListTrunkParams) SetLimit(Limit int64) *ListTrunkParams { params.Limit = &Limit return params } @@ -261,7 +258,7 @@ func (c *ApiService) StreamTrunk(params *ListTrunkParams) (chan TrunkingV1Trunk, } func (c *ApiService) streamTrunk(response *ListTrunkResponse, params *ListTrunkParams, recordChannel chan TrunkingV1Trunk, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Trunks @@ -361,7 +358,6 @@ func (params *UpdateTrunkParams) SetTransferCallerId(TransferCallerId string) *U return params } -// func (c *ApiService) UpdateTrunk(Sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trunking/v1/trunks_credential_lists.go b/rest/trunking/v1/trunks_credential_lists.go index d7d1042d82..79a78204ee 100644 --- a/rest/trunking/v1/trunks_credential_lists.go +++ b/rest/trunking/v1/trunks_credential_lists.go @@ -34,7 +34,6 @@ func (params *CreateCredentialListParams) SetCredentialListSid(CredentialListSid return params } -// func (c *ApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1CredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreateCredentialList(TrunkSid string, params *CreateCredent return ps, err } -// func (c *ApiService) DeleteCredentialList(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeleteCredentialList(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchCredentialList(TrunkSid string, Sid string) (*TrunkingV1CredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchCredentialList(TrunkSid string, Sid string) (*Trunking // Optional parameters for the method 'ListCredentialList' type ListCredentialListParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCredentialListParams) SetPageSize(PageSize int) *ListCredentialListParams { +func (params *ListCredentialListParams) SetPageSize(PageSize int64) *ListCredentialListParams { params.PageSize = &PageSize return params } -func (params *ListCredentialListParams) SetLimit(Limit int) *ListCredentialListParams { +func (params *ListCredentialListParams) SetLimit(Limit int64) *ListCredentialListParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamCredentialList(TrunkSid string, params *ListCredentia } func (c *ApiService) streamCredentialList(response *ListCredentialListResponse, params *ListCredentialListParams, recordChannel chan TrunkingV1CredentialList, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.CredentialLists diff --git a/rest/trunking/v1/trunks_ip_access_control_lists.go b/rest/trunking/v1/trunks_ip_access_control_lists.go index 87fa47ae29..f4f061b2de 100644 --- a/rest/trunking/v1/trunks_ip_access_control_lists.go +++ b/rest/trunking/v1/trunks_ip_access_control_lists.go @@ -84,7 +84,6 @@ func (c *ApiService) DeleteIpAccessControlList(TrunkSid string, Sid string) erro return nil } -// func (c *ApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*TrunkingV1IpAccessControlList, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -113,16 +112,16 @@ func (c *ApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*Tru // Optional parameters for the method 'ListIpAccessControlList' type ListIpAccessControlListParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListIpAccessControlListParams) SetPageSize(PageSize int) *ListIpAccessControlListParams { +func (params *ListIpAccessControlListParams) SetPageSize(PageSize int64) *ListIpAccessControlListParams { params.PageSize = &PageSize return params } -func (params *ListIpAccessControlListParams) SetLimit(Limit int) *ListIpAccessControlListParams { +func (params *ListIpAccessControlListParams) SetLimit(Limit int64) *ListIpAccessControlListParams { params.Limit = &Limit return params } @@ -203,7 +202,7 @@ func (c *ApiService) StreamIpAccessControlList(TrunkSid string, params *ListIpAc } func (c *ApiService) streamIpAccessControlList(response *ListIpAccessControlListResponse, params *ListIpAccessControlListParams, recordChannel chan TrunkingV1IpAccessControlList, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpAccessControlLists diff --git a/rest/trunking/v1/trunks_origination_urls.go b/rest/trunking/v1/trunks_origination_urls.go index 135109c9c4..a235e74f1e 100644 --- a/rest/trunking/v1/trunks_origination_urls.go +++ b/rest/trunking/v1/trunks_origination_urls.go @@ -58,7 +58,6 @@ func (params *CreateOriginationUrlParams) SetSipUrl(SipUrl string) *CreateOrigin return params } -// func (c *ApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -99,7 +98,6 @@ func (c *ApiService) CreateOriginationUrl(TrunkSid string, params *CreateOrigina return ps, err } -// func (c *ApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -120,7 +118,6 @@ func (c *ApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -149,16 +146,16 @@ func (c *ApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*Trunking // Optional parameters for the method 'ListOriginationUrl' type ListOriginationUrlParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListOriginationUrlParams) SetPageSize(PageSize int) *ListOriginationUrlParams { +func (params *ListOriginationUrlParams) SetPageSize(PageSize int64) *ListOriginationUrlParams { params.PageSize = &PageSize return params } -func (params *ListOriginationUrlParams) SetLimit(Limit int) *ListOriginationUrlParams { +func (params *ListOriginationUrlParams) SetLimit(Limit int64) *ListOriginationUrlParams { params.Limit = &Limit return params } @@ -239,7 +236,7 @@ func (c *ApiService) StreamOriginationUrl(TrunkSid string, params *ListOriginati } func (c *ApiService) streamOriginationUrl(response *ListOriginationUrlResponse, params *ListOriginationUrlParams, recordChannel chan TrunkingV1OriginationUrl, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.OriginationUrls @@ -321,7 +318,6 @@ func (params *UpdateOriginationUrlParams) SetSipUrl(SipUrl string) *UpdateOrigin return params } -// func (c *ApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trunking/v1/trunks_phone_numbers.go b/rest/trunking/v1/trunks_phone_numbers.go index 4f83a26728..fc87277469 100644 --- a/rest/trunking/v1/trunks_phone_numbers.go +++ b/rest/trunking/v1/trunks_phone_numbers.go @@ -34,7 +34,6 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) return params } -// func (c *ApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1PhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -63,7 +62,6 @@ func (c *ApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumbe return ps, err } -// func (c *ApiService) DeletePhoneNumber(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -84,7 +82,6 @@ func (c *ApiService) DeletePhoneNumber(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1PhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -113,16 +110,16 @@ func (c *ApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1P // Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListPhoneNumberParams) SetPageSize(PageSize int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetPageSize(PageSize int64) *ListPhoneNumberParams { params.PageSize = &PageSize return params } -func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams { +func (params *ListPhoneNumberParams) SetLimit(Limit int64) *ListPhoneNumberParams { params.Limit = &Limit return params } @@ -203,7 +200,7 @@ func (c *ApiService) StreamPhoneNumber(TrunkSid string, params *ListPhoneNumberP } func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan TrunkingV1PhoneNumber, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.PhoneNumbers diff --git a/rest/trunking/v1/trunks_recording.go b/rest/trunking/v1/trunks_recording.go index e4a0b8d082..ca9de9df83 100644 --- a/rest/trunking/v1/trunks_recording.go +++ b/rest/trunking/v1/trunks_recording.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchRecording(TrunkSid string) (*TrunkingV1Recording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -62,7 +61,6 @@ func (params *UpdateRecordingParams) SetTrim(Trim string) *UpdateRecordingParams return params } -// func (c *ApiService) UpdateRecording(TrunkSid string, params *UpdateRecordingParams) (*TrunkingV1Recording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trusthub/v1/customer_profiles.go b/rest/trusthub/v1/customer_profiles.go index c75b0b1fbc..101064323e 100644 --- a/rest/trusthub/v1/customer_profiles.go +++ b/rest/trusthub/v1/customer_profiles.go @@ -143,9 +143,9 @@ type ListCustomerProfileParams struct { // The unique string of a policy that is associated to the Customer-Profile resource. PolicySid *string `json:"PolicySid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCustomerProfileParams) SetStatus(Status string) *ListCustomerProfileParams { @@ -160,11 +160,11 @@ func (params *ListCustomerProfileParams) SetPolicySid(PolicySid string) *ListCus params.PolicySid = &PolicySid return params } -func (params *ListCustomerProfileParams) SetPageSize(PageSize int) *ListCustomerProfileParams { +func (params *ListCustomerProfileParams) SetPageSize(PageSize int64) *ListCustomerProfileParams { params.PageSize = &PageSize return params } -func (params *ListCustomerProfileParams) SetLimit(Limit int) *ListCustomerProfileParams { +func (params *ListCustomerProfileParams) SetLimit(Limit int64) *ListCustomerProfileParams { params.Limit = &Limit return params } @@ -252,7 +252,7 @@ func (c *ApiService) StreamCustomerProfile(params *ListCustomerProfileParams) (c } func (c *ApiService) streamCustomerProfile(response *ListCustomerProfileResponse, params *ListCustomerProfileParams, recordChannel chan TrusthubV1CustomerProfile, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go b/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go index ce70ae79a8..2e1a0afe26 100644 --- a/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go +++ b/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go @@ -126,9 +126,9 @@ type ListCustomerProfileChannelEndpointAssignmentParams struct { // comma separated list of channel endpoint sids ChannelEndpointSids *string `json:"ChannelEndpointSids,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetChannelEndpointSid(ChannelEndpointSid string) *ListCustomerProfileChannelEndpointAssignmentParams { @@ -139,11 +139,11 @@ func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetChannelEndp params.ChannelEndpointSids = &ChannelEndpointSids return params } -func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetPageSize(PageSize int) *ListCustomerProfileChannelEndpointAssignmentParams { +func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetPageSize(PageSize int64) *ListCustomerProfileChannelEndpointAssignmentParams { params.PageSize = &PageSize return params } -func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetLimit(Limit int) *ListCustomerProfileChannelEndpointAssignmentParams { +func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetLimit(Limit int64) *ListCustomerProfileChannelEndpointAssignmentParams { params.Limit = &Limit return params } @@ -230,7 +230,7 @@ func (c *ApiService) StreamCustomerProfileChannelEndpointAssignment(CustomerProf } func (c *ApiService) streamCustomerProfileChannelEndpointAssignment(response *ListCustomerProfileChannelEndpointAssignmentResponse, params *ListCustomerProfileChannelEndpointAssignmentParams, recordChannel chan TrusthubV1CustomerProfileChannelEndpointAssignment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/customer_profiles_entity_assignments.go b/rest/trusthub/v1/customer_profiles_entity_assignments.go index 4c02e6bff7..6df03689c3 100644 --- a/rest/trusthub/v1/customer_profiles_entity_assignments.go +++ b/rest/trusthub/v1/customer_profiles_entity_assignments.go @@ -115,20 +115,20 @@ type ListCustomerProfileEntityAssignmentParams struct { // A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. ObjectType *string `json:"ObjectType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCustomerProfileEntityAssignmentParams) SetObjectType(ObjectType string) *ListCustomerProfileEntityAssignmentParams { params.ObjectType = &ObjectType return params } -func (params *ListCustomerProfileEntityAssignmentParams) SetPageSize(PageSize int) *ListCustomerProfileEntityAssignmentParams { +func (params *ListCustomerProfileEntityAssignmentParams) SetPageSize(PageSize int64) *ListCustomerProfileEntityAssignmentParams { params.PageSize = &PageSize return params } -func (params *ListCustomerProfileEntityAssignmentParams) SetLimit(Limit int) *ListCustomerProfileEntityAssignmentParams { +func (params *ListCustomerProfileEntityAssignmentParams) SetLimit(Limit int64) *ListCustomerProfileEntityAssignmentParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamCustomerProfileEntityAssignment(CustomerProfileSid st } func (c *ApiService) streamCustomerProfileEntityAssignment(response *ListCustomerProfileEntityAssignmentResponse, params *ListCustomerProfileEntityAssignmentParams, recordChannel chan TrusthubV1CustomerProfileEntityAssignment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/customer_profiles_evaluations.go b/rest/trusthub/v1/customer_profiles_evaluations.go index 5ac4aca2d8..ffbec8168a 100644 --- a/rest/trusthub/v1/customer_profiles_evaluations.go +++ b/rest/trusthub/v1/customer_profiles_evaluations.go @@ -92,16 +92,16 @@ func (c *ApiService) FetchCustomerProfileEvaluation(CustomerProfileSid string, S // Optional parameters for the method 'ListCustomerProfileEvaluation' type ListCustomerProfileEvaluationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListCustomerProfileEvaluationParams) SetPageSize(PageSize int) *ListCustomerProfileEvaluationParams { +func (params *ListCustomerProfileEvaluationParams) SetPageSize(PageSize int64) *ListCustomerProfileEvaluationParams { params.PageSize = &PageSize return params } -func (params *ListCustomerProfileEvaluationParams) SetLimit(Limit int) *ListCustomerProfileEvaluationParams { +func (params *ListCustomerProfileEvaluationParams) SetLimit(Limit int64) *ListCustomerProfileEvaluationParams { params.Limit = &Limit return params } @@ -182,7 +182,7 @@ func (c *ApiService) StreamCustomerProfileEvaluation(CustomerProfileSid string, } func (c *ApiService) streamCustomerProfileEvaluation(response *ListCustomerProfileEvaluationResponse, params *ListCustomerProfileEvaluationParams, recordChannel chan TrusthubV1CustomerProfileEvaluation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/docs/CustomerProfilesApi.md b/rest/trusthub/v1/docs/CustomerProfilesApi.md index 9d8710ff00..4d8a9f9c3c 100644 --- a/rest/trusthub/v1/docs/CustomerProfilesApi.md +++ b/rest/trusthub/v1/docs/CustomerProfilesApi.md @@ -160,8 +160,8 @@ Name | Type | Description **Status** | **string** | The verification status of the Customer-Profile resource. **FriendlyName** | **string** | The string that you assigned to describe the resource. **PolicySid** | **string** | The unique string of a policy that is associated to the Customer-Profile resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/CustomerProfilesChannelEndpointAssignmentsApi.md b/rest/trusthub/v1/docs/CustomerProfilesChannelEndpointAssignmentsApi.md index 71eac0bd22..a47e9822d3 100644 --- a/rest/trusthub/v1/docs/CustomerProfilesChannelEndpointAssignmentsApi.md +++ b/rest/trusthub/v1/docs/CustomerProfilesChannelEndpointAssignmentsApi.md @@ -166,8 +166,8 @@ Name | Type | Description ------------- | ------------- | ------------- **ChannelEndpointSid** | **string** | The SID of an channel endpoint **ChannelEndpointSids** | **string** | comma separated list of channel endpoint sids -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md b/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md index aba29a7aa1..952aab5814 100644 --- a/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md +++ b/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListCustomerProfileEntityAssi Name | Type | Description ------------- | ------------- | ------------- **ObjectType** | **string** | A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/CustomerProfilesEvaluationsApi.md b/rest/trusthub/v1/docs/CustomerProfilesEvaluationsApi.md index 1c4a1f9815..34899e69cf 100644 --- a/rest/trusthub/v1/docs/CustomerProfilesEvaluationsApi.md +++ b/rest/trusthub/v1/docs/CustomerProfilesEvaluationsApi.md @@ -119,8 +119,8 @@ Other parameters are passed through a pointer to a ListCustomerProfileEvaluation Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/EndUserTypesApi.md b/rest/trusthub/v1/docs/EndUserTypesApi.md index eff6889753..18fdcbbbf7 100644 --- a/rest/trusthub/v1/docs/EndUserTypesApi.md +++ b/rest/trusthub/v1/docs/EndUserTypesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListEndUserTypeParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/EndUsersApi.md b/rest/trusthub/v1/docs/EndUsersApi.md index ffb57da0c9..1cb02ff429 100644 --- a/rest/trusthub/v1/docs/EndUsersApi.md +++ b/rest/trusthub/v1/docs/EndUsersApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListEndUserParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md b/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md index 8c80c7490d..39e75d704f 100644 --- a/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md +++ b/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/trusthub/v1/docs/PoliciesApi.md b/rest/trusthub/v1/docs/PoliciesApi.md index 9007486bc0..e94266622a 100644 --- a/rest/trusthub/v1/docs/PoliciesApi.md +++ b/rest/trusthub/v1/docs/PoliciesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListPoliciesParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/SupportingDocumentTypesApi.md b/rest/trusthub/v1/docs/SupportingDocumentTypesApi.md index 832496da53..6066134fb5 100644 --- a/rest/trusthub/v1/docs/SupportingDocumentTypesApi.md +++ b/rest/trusthub/v1/docs/SupportingDocumentTypesApi.md @@ -70,8 +70,8 @@ Other parameters are passed through a pointer to a ListSupportingDocumentTypePar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/SupportingDocumentsApi.md b/rest/trusthub/v1/docs/SupportingDocumentsApi.md index bac4559906..1466e4b7c0 100644 --- a/rest/trusthub/v1/docs/SupportingDocumentsApi.md +++ b/rest/trusthub/v1/docs/SupportingDocumentsApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListSupportingDocumentParams Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/TrustProductsApi.md b/rest/trusthub/v1/docs/TrustProductsApi.md index c572866be4..089e0e728e 100644 --- a/rest/trusthub/v1/docs/TrustProductsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsApi.md @@ -160,8 +160,8 @@ Name | Type | Description **Status** | **string** | The verification status of the Trust Product resource. **FriendlyName** | **string** | The string that you assigned to describe the resource. **PolicySid** | **string** | The unique string of a policy that is associated to the Trust Product resource. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/TrustProductsChannelEndpointAssignmentsApi.md b/rest/trusthub/v1/docs/TrustProductsChannelEndpointAssignmentsApi.md index 82c62d0aae..b0ae64d8e5 100644 --- a/rest/trusthub/v1/docs/TrustProductsChannelEndpointAssignmentsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsChannelEndpointAssignmentsApi.md @@ -166,8 +166,8 @@ Name | Type | Description ------------- | ------------- | ------------- **ChannelEndpointSid** | **string** | The SID of an channel endpoint **ChannelEndpointSids** | **string** | comma separated list of channel endpoint sids -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md b/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md index f59cfcfb9a..0a200b8a3a 100644 --- a/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListTrustProductEntityAssignm Name | Type | Description ------------- | ------------- | ------------- **ObjectType** | **string** | A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/docs/TrustProductsEvaluationsApi.md b/rest/trusthub/v1/docs/TrustProductsEvaluationsApi.md index 6e230c3950..a7d02dbfbd 100644 --- a/rest/trusthub/v1/docs/TrustProductsEvaluationsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsEvaluationsApi.md @@ -119,8 +119,8 @@ Other parameters are passed through a pointer to a ListTrustProductEvaluationPar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/trusthub/v1/end_user_types.go b/rest/trusthub/v1/end_user_types.go index 2a34629639..98fe4219ab 100644 --- a/rest/trusthub/v1/end_user_types.go +++ b/rest/trusthub/v1/end_user_types.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchEndUserType(Sid string) (*TrusthubV1EndUserType, error // Optional parameters for the method 'ListEndUserType' type ListEndUserTypeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEndUserTypeParams) SetPageSize(PageSize int) *ListEndUserTypeParams { +func (params *ListEndUserTypeParams) SetPageSize(PageSize int64) *ListEndUserTypeParams { params.PageSize = &PageSize return params } -func (params *ListEndUserTypeParams) SetLimit(Limit int) *ListEndUserTypeParams { +func (params *ListEndUserTypeParams) SetLimit(Limit int64) *ListEndUserTypeParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamEndUserType(params *ListEndUserTypeParams) (chan Trus } func (c *ApiService) streamEndUserType(response *ListEndUserTypeResponse, params *ListEndUserTypeParams, recordChannel chan TrusthubV1EndUserType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.EndUserTypes diff --git a/rest/trusthub/v1/end_users.go b/rest/trusthub/v1/end_users.go index c1da4b7d72..a27327c7f1 100644 --- a/rest/trusthub/v1/end_users.go +++ b/rest/trusthub/v1/end_users.go @@ -134,16 +134,16 @@ func (c *ApiService) FetchEndUser(Sid string) (*TrusthubV1EndUser, error) { // Optional parameters for the method 'ListEndUser' type ListEndUserParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEndUserParams) SetPageSize(PageSize int) *ListEndUserParams { +func (params *ListEndUserParams) SetPageSize(PageSize int64) *ListEndUserParams { params.PageSize = &PageSize return params } -func (params *ListEndUserParams) SetLimit(Limit int) *ListEndUserParams { +func (params *ListEndUserParams) SetLimit(Limit int64) *ListEndUserParams { params.Limit = &Limit return params } @@ -222,7 +222,7 @@ func (c *ApiService) StreamEndUser(params *ListEndUserParams) (chan TrusthubV1En } func (c *ApiService) streamEndUser(response *ListEndUserResponse, params *ListEndUserParams, recordChannel chan TrusthubV1EndUser, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/model_list_customer_profile_response_meta.go b/rest/trusthub/v1/model_list_customer_profile_response_meta.go index a29e19770a..a3592289ab 100644 --- a/rest/trusthub/v1/model_list_customer_profile_response_meta.go +++ b/rest/trusthub/v1/model_list_customer_profile_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCustomerProfileResponseMeta struct for ListCustomerProfileResponseMeta type ListCustomerProfileResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/trusthub/v1/policies.go b/rest/trusthub/v1/policies.go index b518ba0da7..a9aceae57a 100644 --- a/rest/trusthub/v1/policies.go +++ b/rest/trusthub/v1/policies.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchPolicies(Sid string) (*TrusthubV1Policies, error) { // Optional parameters for the method 'ListPolicies' type ListPoliciesParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListPoliciesParams) SetPageSize(PageSize int) *ListPoliciesParams { +func (params *ListPoliciesParams) SetPageSize(PageSize int64) *ListPoliciesParams { params.PageSize = &PageSize return params } -func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams { +func (params *ListPoliciesParams) SetLimit(Limit int64) *ListPoliciesParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan TrusthubV1 } func (c *ApiService) streamPolicies(response *ListPoliciesResponse, params *ListPoliciesParams, recordChannel chan TrusthubV1Policies, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/supporting_document_types.go b/rest/trusthub/v1/supporting_document_types.go index 2edfa91be4..bc7fc43eb1 100644 --- a/rest/trusthub/v1/supporting_document_types.go +++ b/rest/trusthub/v1/supporting_document_types.go @@ -51,16 +51,16 @@ func (c *ApiService) FetchSupportingDocumentType(Sid string) (*TrusthubV1Support // Optional parameters for the method 'ListSupportingDocumentType' type ListSupportingDocumentTypeParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSupportingDocumentTypeParams) SetPageSize(PageSize int) *ListSupportingDocumentTypeParams { +func (params *ListSupportingDocumentTypeParams) SetPageSize(PageSize int64) *ListSupportingDocumentTypeParams { params.PageSize = &PageSize return params } -func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int) *ListSupportingDocumentTypeParams { +func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int64) *ListSupportingDocumentTypeParams { params.Limit = &Limit return params } @@ -139,7 +139,7 @@ func (c *ApiService) StreamSupportingDocumentType(params *ListSupportingDocument } func (c *ApiService) streamSupportingDocumentType(response *ListSupportingDocumentTypeResponse, params *ListSupportingDocumentTypeParams, recordChannel chan TrusthubV1SupportingDocumentType, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SupportingDocumentTypes diff --git a/rest/trusthub/v1/supporting_documents.go b/rest/trusthub/v1/supporting_documents.go index 9484e6d91c..675ea4806c 100644 --- a/rest/trusthub/v1/supporting_documents.go +++ b/rest/trusthub/v1/supporting_documents.go @@ -134,16 +134,16 @@ func (c *ApiService) FetchSupportingDocument(Sid string) (*TrusthubV1SupportingD // Optional parameters for the method 'ListSupportingDocument' type ListSupportingDocumentParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSupportingDocumentParams) SetPageSize(PageSize int) *ListSupportingDocumentParams { +func (params *ListSupportingDocumentParams) SetPageSize(PageSize int64) *ListSupportingDocumentParams { params.PageSize = &PageSize return params } -func (params *ListSupportingDocumentParams) SetLimit(Limit int) *ListSupportingDocumentParams { +func (params *ListSupportingDocumentParams) SetLimit(Limit int64) *ListSupportingDocumentParams { params.Limit = &Limit return params } @@ -222,7 +222,7 @@ func (c *ApiService) StreamSupportingDocument(params *ListSupportingDocumentPara } func (c *ApiService) streamSupportingDocument(response *ListSupportingDocumentResponse, params *ListSupportingDocumentParams, recordChannel chan TrusthubV1SupportingDocument, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/trust_products.go b/rest/trusthub/v1/trust_products.go index 02555dd2fb..ffa6a94599 100644 --- a/rest/trusthub/v1/trust_products.go +++ b/rest/trusthub/v1/trust_products.go @@ -143,9 +143,9 @@ type ListTrustProductParams struct { // The unique string of a policy that is associated to the Trust Product resource. PolicySid *string `json:"PolicySid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTrustProductParams) SetStatus(Status string) *ListTrustProductParams { @@ -160,11 +160,11 @@ func (params *ListTrustProductParams) SetPolicySid(PolicySid string) *ListTrustP params.PolicySid = &PolicySid return params } -func (params *ListTrustProductParams) SetPageSize(PageSize int) *ListTrustProductParams { +func (params *ListTrustProductParams) SetPageSize(PageSize int64) *ListTrustProductParams { params.PageSize = &PageSize return params } -func (params *ListTrustProductParams) SetLimit(Limit int) *ListTrustProductParams { +func (params *ListTrustProductParams) SetLimit(Limit int64) *ListTrustProductParams { params.Limit = &Limit return params } @@ -252,7 +252,7 @@ func (c *ApiService) StreamTrustProduct(params *ListTrustProductParams) (chan Tr } func (c *ApiService) streamTrustProduct(response *ListTrustProductResponse, params *ListTrustProductParams, recordChannel chan TrusthubV1TrustProduct, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go b/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go index 2f25823d1e..2eef8c62ef 100644 --- a/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go +++ b/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go @@ -126,9 +126,9 @@ type ListTrustProductChannelEndpointAssignmentParams struct { // comma separated list of channel endpoint sids ChannelEndpointSids *string `json:"ChannelEndpointSids,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTrustProductChannelEndpointAssignmentParams) SetChannelEndpointSid(ChannelEndpointSid string) *ListTrustProductChannelEndpointAssignmentParams { @@ -139,11 +139,11 @@ func (params *ListTrustProductChannelEndpointAssignmentParams) SetChannelEndpoin params.ChannelEndpointSids = &ChannelEndpointSids return params } -func (params *ListTrustProductChannelEndpointAssignmentParams) SetPageSize(PageSize int) *ListTrustProductChannelEndpointAssignmentParams { +func (params *ListTrustProductChannelEndpointAssignmentParams) SetPageSize(PageSize int64) *ListTrustProductChannelEndpointAssignmentParams { params.PageSize = &PageSize return params } -func (params *ListTrustProductChannelEndpointAssignmentParams) SetLimit(Limit int) *ListTrustProductChannelEndpointAssignmentParams { +func (params *ListTrustProductChannelEndpointAssignmentParams) SetLimit(Limit int64) *ListTrustProductChannelEndpointAssignmentParams { params.Limit = &Limit return params } @@ -230,7 +230,7 @@ func (c *ApiService) StreamTrustProductChannelEndpointAssignment(TrustProductSid } func (c *ApiService) streamTrustProductChannelEndpointAssignment(response *ListTrustProductChannelEndpointAssignmentResponse, params *ListTrustProductChannelEndpointAssignmentParams, recordChannel chan TrusthubV1TrustProductChannelEndpointAssignment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/trust_products_entity_assignments.go b/rest/trusthub/v1/trust_products_entity_assignments.go index d8accdc659..33b3a4258e 100644 --- a/rest/trusthub/v1/trust_products_entity_assignments.go +++ b/rest/trusthub/v1/trust_products_entity_assignments.go @@ -115,20 +115,20 @@ type ListTrustProductEntityAssignmentParams struct { // A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. ObjectType *string `json:"ObjectType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListTrustProductEntityAssignmentParams) SetObjectType(ObjectType string) *ListTrustProductEntityAssignmentParams { params.ObjectType = &ObjectType return params } -func (params *ListTrustProductEntityAssignmentParams) SetPageSize(PageSize int) *ListTrustProductEntityAssignmentParams { +func (params *ListTrustProductEntityAssignmentParams) SetPageSize(PageSize int64) *ListTrustProductEntityAssignmentParams { params.PageSize = &PageSize return params } -func (params *ListTrustProductEntityAssignmentParams) SetLimit(Limit int) *ListTrustProductEntityAssignmentParams { +func (params *ListTrustProductEntityAssignmentParams) SetLimit(Limit int64) *ListTrustProductEntityAssignmentParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamTrustProductEntityAssignment(TrustProductSid string, } func (c *ApiService) streamTrustProductEntityAssignment(response *ListTrustProductEntityAssignmentResponse, params *ListTrustProductEntityAssignmentParams, recordChannel chan TrusthubV1TrustProductEntityAssignment, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/trusthub/v1/trust_products_evaluations.go b/rest/trusthub/v1/trust_products_evaluations.go index 3799fca771..24e4c48f02 100644 --- a/rest/trusthub/v1/trust_products_evaluations.go +++ b/rest/trusthub/v1/trust_products_evaluations.go @@ -92,16 +92,16 @@ func (c *ApiService) FetchTrustProductEvaluation(TrustProductSid string, Sid str // Optional parameters for the method 'ListTrustProductEvaluation' type ListTrustProductEvaluationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListTrustProductEvaluationParams) SetPageSize(PageSize int) *ListTrustProductEvaluationParams { +func (params *ListTrustProductEvaluationParams) SetPageSize(PageSize int64) *ListTrustProductEvaluationParams { params.PageSize = &PageSize return params } -func (params *ListTrustProductEvaluationParams) SetLimit(Limit int) *ListTrustProductEvaluationParams { +func (params *ListTrustProductEvaluationParams) SetLimit(Limit int64) *ListTrustProductEvaluationParams { params.Limit = &Limit return params } @@ -182,7 +182,7 @@ func (c *ApiService) StreamTrustProductEvaluation(TrustProductSid string, params } func (c *ApiService) streamTrustProductEvaluation(response *ListTrustProductEvaluationResponse, params *ListTrustProductEvaluationParams, recordChannel chan TrusthubV1TrustProductEvaluation, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Results diff --git a/rest/verify/v2/attempts.go b/rest/verify/v2/attempts.go index 22a7726e08..f7b1e44ff0 100644 --- a/rest/verify/v2/attempts.go +++ b/rest/verify/v2/attempts.go @@ -68,9 +68,9 @@ type ListVerificationAttemptParams struct { // Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. Status *string `json:"Status,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListVerificationAttemptParams) SetDateCreatedAfter(DateCreatedAfter time.Time) *ListVerificationAttemptParams { @@ -105,11 +105,11 @@ func (params *ListVerificationAttemptParams) SetStatus(Status string) *ListVerif params.Status = &Status return params } -func (params *ListVerificationAttemptParams) SetPageSize(PageSize int) *ListVerificationAttemptParams { +func (params *ListVerificationAttemptParams) SetPageSize(PageSize int64) *ListVerificationAttemptParams { params.PageSize = &PageSize return params } -func (params *ListVerificationAttemptParams) SetLimit(Limit int) *ListVerificationAttemptParams { +func (params *ListVerificationAttemptParams) SetLimit(Limit int64) *ListVerificationAttemptParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamVerificationAttempt(params *ListVerificationAttemptPa } func (c *ApiService) streamVerificationAttempt(response *ListVerificationAttemptResponse, params *ListVerificationAttemptParams, recordChannel chan VerifyV2VerificationAttempt, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Attempts diff --git a/rest/verify/v2/docs/AttemptsApi.md b/rest/verify/v2/docs/AttemptsApi.md index 7a01f9881b..886dc8a794 100644 --- a/rest/verify/v2/docs/AttemptsApi.md +++ b/rest/verify/v2/docs/AttemptsApi.md @@ -78,8 +78,8 @@ Name | Type | Description **VerifyServiceSid** | **string** | Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned. **VerificationSid** | **string** | Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned. **Status** | **string** | Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ListBucketResponseMeta.md b/rest/verify/v2/docs/ListBucketResponseMeta.md index 648b2b04e1..43e65a61c9 100644 --- a/rest/verify/v2/docs/ListBucketResponseMeta.md +++ b/rest/verify/v2/docs/ListBucketResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/ServicesApi.md b/rest/verify/v2/docs/ServicesApi.md index 3d96883bdd..ab65883970 100644 --- a/rest/verify/v2/docs/ServicesApi.md +++ b/rest/verify/v2/docs/ServicesApi.md @@ -173,8 +173,8 @@ Other parameters are passed through a pointer to a ListServiceParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesEntitiesApi.md b/rest/verify/v2/docs/ServicesEntitiesApi.md index 511823b116..3f544111d9 100644 --- a/rest/verify/v2/docs/ServicesEntitiesApi.md +++ b/rest/verify/v2/docs/ServicesEntitiesApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListEntityParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesEntitiesChallengesApi.md b/rest/verify/v2/docs/ServicesEntitiesChallengesApi.md index f8a37dee4a..9be21d79b2 100644 --- a/rest/verify/v2/docs/ServicesEntitiesChallengesApi.md +++ b/rest/verify/v2/docs/ServicesEntitiesChallengesApi.md @@ -131,8 +131,8 @@ Name | Type | Description **FactorSid** | **string** | The unique SID identifier of the Factor. **Status** | **string** | The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. **Order** | **string** | The desired sort order of the Challenges list. One of `asc` or `desc` for ascending and descending respectively. Defaults to `asc`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesEntitiesFactorsApi.md b/rest/verify/v2/docs/ServicesEntitiesFactorsApi.md index abf2ecf07e..2c78a6d0cf 100644 --- a/rest/verify/v2/docs/ServicesEntitiesFactorsApi.md +++ b/rest/verify/v2/docs/ServicesEntitiesFactorsApi.md @@ -181,8 +181,8 @@ Other parameters are passed through a pointer to a ListFactorParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesMessagingConfigurationsApi.md b/rest/verify/v2/docs/ServicesMessagingConfigurationsApi.md index 66ae566a4a..2d7ca39a08 100644 --- a/rest/verify/v2/docs/ServicesMessagingConfigurationsApi.md +++ b/rest/verify/v2/docs/ServicesMessagingConfigurationsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListMessagingConfigurationPar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesRateLimitsApi.md b/rest/verify/v2/docs/ServicesRateLimitsApi.md index 2acf97ddab..b3b57df968 100644 --- a/rest/verify/v2/docs/ServicesRateLimitsApi.md +++ b/rest/verify/v2/docs/ServicesRateLimitsApi.md @@ -165,8 +165,8 @@ Other parameters are passed through a pointer to a ListRateLimitParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesRateLimitsBucketsApi.md b/rest/verify/v2/docs/ServicesRateLimitsBucketsApi.md index 517a426858..59fb01a0af 100644 --- a/rest/verify/v2/docs/ServicesRateLimitsBucketsApi.md +++ b/rest/verify/v2/docs/ServicesRateLimitsBucketsApi.md @@ -169,8 +169,8 @@ Other parameters are passed through a pointer to a ListBucketParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/ServicesWebhooksApi.md b/rest/verify/v2/docs/ServicesWebhooksApi.md index 397e26b4b9..080ccd2456 100644 --- a/rest/verify/v2/docs/ServicesWebhooksApi.md +++ b/rest/verify/v2/docs/ServicesWebhooksApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListWebhookParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/docs/TemplatesApi.md b/rest/verify/v2/docs/TemplatesApi.md index 1288f49d4b..00b04f40e5 100644 --- a/rest/verify/v2/docs/TemplatesApi.md +++ b/rest/verify/v2/docs/TemplatesApi.md @@ -28,8 +28,8 @@ Other parameters are passed through a pointer to a ListVerificationTemplateParam Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | String filter used to query templates with a given friendly name. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/verify/v2/model_list_bucket_response_meta.go b/rest/verify/v2/model_list_bucket_response_meta.go index c22d9e4b91..749697319c 100644 --- a/rest/verify/v2/model_list_bucket_response_meta.go +++ b/rest/verify/v2/model_list_bucket_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBucketResponseMeta struct for ListBucketResponseMeta type ListBucketResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/verify/v2/services.go b/rest/verify/v2/services.go index 3e0c13f9dc..4ab0c4afc9 100644 --- a/rest/verify/v2/services.go +++ b/rest/verify/v2/services.go @@ -281,16 +281,16 @@ func (c *ApiService) FetchService(Sid string) (*VerifyV2Service, error) { // Optional parameters for the method 'ListService' type ListServiceParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams { +func (params *ListServiceParams) SetPageSize(PageSize int64) *ListServiceParams { params.PageSize = &PageSize return params } -func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { +func (params *ListServiceParams) SetLimit(Limit int64) *ListServiceParams { params.Limit = &Limit return params } @@ -369,7 +369,7 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan VerifyV2Serv } func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan VerifyV2Service, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Services diff --git a/rest/verify/v2/services_entities.go b/rest/verify/v2/services_entities.go index c3b52698cf..1e34ca9964 100644 --- a/rest/verify/v2/services_entities.go +++ b/rest/verify/v2/services_entities.go @@ -113,16 +113,16 @@ func (c *ApiService) FetchEntity(ServiceSid string, Identity string) (*VerifyV2E // Optional parameters for the method 'ListEntity' type ListEntityParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListEntityParams) SetPageSize(PageSize int) *ListEntityParams { +func (params *ListEntityParams) SetPageSize(PageSize int64) *ListEntityParams { params.PageSize = &PageSize return params } -func (params *ListEntityParams) SetLimit(Limit int) *ListEntityParams { +func (params *ListEntityParams) SetLimit(Limit int64) *ListEntityParams { params.Limit = &Limit return params } @@ -203,7 +203,7 @@ func (c *ApiService) StreamEntity(ServiceSid string, params *ListEntityParams) ( } func (c *ApiService) streamEntity(response *ListEntityResponse, params *ListEntityParams, recordChannel chan VerifyV2Entity, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Entities diff --git a/rest/verify/v2/services_entities_challenges.go b/rest/verify/v2/services_entities_challenges.go index fe09acb809..fae517cb00 100644 --- a/rest/verify/v2/services_entities_challenges.go +++ b/rest/verify/v2/services_entities_challenges.go @@ -160,9 +160,9 @@ type ListChallengeParams struct { // The desired sort order of the Challenges list. One of `asc` or `desc` for ascending and descending respectively. Defaults to `asc`. Order *string `json:"Order,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListChallengeParams) SetFactorSid(FactorSid string) *ListChallengeParams { @@ -177,11 +177,11 @@ func (params *ListChallengeParams) SetOrder(Order string) *ListChallengeParams { params.Order = &Order return params } -func (params *ListChallengeParams) SetPageSize(PageSize int) *ListChallengeParams { +func (params *ListChallengeParams) SetPageSize(PageSize int64) *ListChallengeParams { params.PageSize = &PageSize return params } -func (params *ListChallengeParams) SetLimit(Limit int) *ListChallengeParams { +func (params *ListChallengeParams) SetLimit(Limit int64) *ListChallengeParams { params.Limit = &Limit return params } @@ -272,7 +272,7 @@ func (c *ApiService) StreamChallenge(ServiceSid string, Identity string, params } func (c *ApiService) streamChallenge(response *ListChallengeResponse, params *ListChallengeParams, recordChannel chan VerifyV2Challenge, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Challenges diff --git a/rest/verify/v2/services_entities_factors.go b/rest/verify/v2/services_entities_factors.go index 536f72e760..9c81c8478c 100644 --- a/rest/verify/v2/services_entities_factors.go +++ b/rest/verify/v2/services_entities_factors.go @@ -239,16 +239,16 @@ func (c *ApiService) FetchFactor(ServiceSid string, Identity string, Sid string) // Optional parameters for the method 'ListFactor' type ListFactorParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListFactorParams) SetPageSize(PageSize int) *ListFactorParams { +func (params *ListFactorParams) SetPageSize(PageSize int64) *ListFactorParams { params.PageSize = &PageSize return params } -func (params *ListFactorParams) SetLimit(Limit int) *ListFactorParams { +func (params *ListFactorParams) SetLimit(Limit int64) *ListFactorParams { params.Limit = &Limit return params } @@ -330,7 +330,7 @@ func (c *ApiService) StreamFactor(ServiceSid string, Identity string, params *Li } func (c *ApiService) streamFactor(response *ListFactorResponse, params *ListFactorParams, recordChannel chan VerifyV2Factor, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Factors diff --git a/rest/verify/v2/services_messaging_configurations.go b/rest/verify/v2/services_messaging_configurations.go index 011021fe64..602ceac1ad 100644 --- a/rest/verify/v2/services_messaging_configurations.go +++ b/rest/verify/v2/services_messaging_configurations.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchMessagingConfiguration(ServiceSid string, Country stri // Optional parameters for the method 'ListMessagingConfiguration' type ListMessagingConfigurationParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListMessagingConfigurationParams) SetPageSize(PageSize int) *ListMessagingConfigurationParams { +func (params *ListMessagingConfigurationParams) SetPageSize(PageSize int64) *ListMessagingConfigurationParams { params.PageSize = &PageSize return params } -func (params *ListMessagingConfigurationParams) SetLimit(Limit int) *ListMessagingConfigurationParams { +func (params *ListMessagingConfigurationParams) SetLimit(Limit int64) *ListMessagingConfigurationParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamMessagingConfiguration(ServiceSid string, params *Lis } func (c *ApiService) streamMessagingConfiguration(response *ListMessagingConfigurationResponse, params *ListMessagingConfigurationParams, recordChannel chan VerifyV2MessagingConfiguration, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.MessagingConfigurations diff --git a/rest/verify/v2/services_rate_limits.go b/rest/verify/v2/services_rate_limits.go index 4e29bc55de..d1a7489932 100644 --- a/rest/verify/v2/services_rate_limits.go +++ b/rest/verify/v2/services_rate_limits.go @@ -122,16 +122,16 @@ func (c *ApiService) FetchRateLimit(ServiceSid string, Sid string) (*VerifyV2Rat // Optional parameters for the method 'ListRateLimit' type ListRateLimitParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRateLimitParams) SetPageSize(PageSize int) *ListRateLimitParams { +func (params *ListRateLimitParams) SetPageSize(PageSize int64) *ListRateLimitParams { params.PageSize = &PageSize return params } -func (params *ListRateLimitParams) SetLimit(Limit int) *ListRateLimitParams { +func (params *ListRateLimitParams) SetLimit(Limit int64) *ListRateLimitParams { params.Limit = &Limit return params } @@ -212,7 +212,7 @@ func (c *ApiService) StreamRateLimit(ServiceSid string, params *ListRateLimitPar } func (c *ApiService) streamRateLimit(response *ListRateLimitResponse, params *ListRateLimitParams, recordChannel chan VerifyV2RateLimit, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.RateLimits diff --git a/rest/verify/v2/services_rate_limits_buckets.go b/rest/verify/v2/services_rate_limits_buckets.go index c835b280e7..2d46bb3214 100644 --- a/rest/verify/v2/services_rate_limits_buckets.go +++ b/rest/verify/v2/services_rate_limits_buckets.go @@ -125,16 +125,16 @@ func (c *ApiService) FetchBucket(ServiceSid string, RateLimitSid string, Sid str // Optional parameters for the method 'ListBucket' type ListBucketParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListBucketParams) SetPageSize(PageSize int) *ListBucketParams { +func (params *ListBucketParams) SetPageSize(PageSize int64) *ListBucketParams { params.PageSize = &PageSize return params } -func (params *ListBucketParams) SetLimit(Limit int) *ListBucketParams { +func (params *ListBucketParams) SetLimit(Limit int64) *ListBucketParams { params.Limit = &Limit return params } @@ -216,7 +216,7 @@ func (c *ApiService) StreamBucket(ServiceSid string, RateLimitSid string, params } func (c *ApiService) streamBucket(response *ListBucketResponse, params *ListBucketParams, recordChannel chan VerifyV2Bucket, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Buckets diff --git a/rest/verify/v2/services_webhooks.go b/rest/verify/v2/services_webhooks.go index d057d8efa8..3eb050cb37 100644 --- a/rest/verify/v2/services_webhooks.go +++ b/rest/verify/v2/services_webhooks.go @@ -151,16 +151,16 @@ func (c *ApiService) FetchWebhook(ServiceSid string, Sid string) (*VerifyV2Webho // Optional parameters for the method 'ListWebhook' type ListWebhookParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListWebhookParams) SetPageSize(PageSize int) *ListWebhookParams { +func (params *ListWebhookParams) SetPageSize(PageSize int64) *ListWebhookParams { params.PageSize = &PageSize return params } -func (params *ListWebhookParams) SetLimit(Limit int) *ListWebhookParams { +func (params *ListWebhookParams) SetLimit(Limit int64) *ListWebhookParams { params.Limit = &Limit return params } @@ -241,7 +241,7 @@ func (c *ApiService) StreamWebhook(ServiceSid string, params *ListWebhookParams) } func (c *ApiService) streamWebhook(response *ListWebhookResponse, params *ListWebhookParams, recordChannel chan VerifyV2Webhook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Webhooks @@ -323,7 +323,6 @@ func (params *UpdateWebhookParams) SetVersion(Version string) *UpdateWebhookPara return params } -// func (c *ApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2Webhook, error) { path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/verify/v2/templates.go b/rest/verify/v2/templates.go index ac664378d5..489fd56580 100644 --- a/rest/verify/v2/templates.go +++ b/rest/verify/v2/templates.go @@ -27,20 +27,20 @@ type ListVerificationTemplateParams struct { // String filter used to query templates with a given friendly name. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListVerificationTemplateParams) SetFriendlyName(FriendlyName string) *ListVerificationTemplateParams { params.FriendlyName = &FriendlyName return params } -func (params *ListVerificationTemplateParams) SetPageSize(PageSize int) *ListVerificationTemplateParams { +func (params *ListVerificationTemplateParams) SetPageSize(PageSize int64) *ListVerificationTemplateParams { params.PageSize = &PageSize return params } -func (params *ListVerificationTemplateParams) SetLimit(Limit int) *ListVerificationTemplateParams { +func (params *ListVerificationTemplateParams) SetLimit(Limit int64) *ListVerificationTemplateParams { params.Limit = &Limit return params } @@ -122,7 +122,7 @@ func (c *ApiService) StreamVerificationTemplate(params *ListVerificationTemplate } func (c *ApiService) streamVerificationTemplate(response *ListVerificationTemplateResponse, params *ListVerificationTemplateParams, recordChannel chan VerifyV2VerificationTemplate, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Templates diff --git a/rest/video/v1/composition_hooks.go b/rest/video/v1/composition_hooks.go index b39e858102..4d5300f46a 100644 --- a/rest/video/v1/composition_hooks.go +++ b/rest/video/v1/composition_hooks.go @@ -89,7 +89,6 @@ func (params *CreateCompositionHookParams) SetTrim(Trim bool) *CreateComposition return params } -// func (c *ApiService) CreateCompositionHook(params *CreateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks" @@ -210,9 +209,9 @@ type ListCompositionHookParams struct { // 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. FriendlyName *string `json:"FriendlyName,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCompositionHookParams) SetEnabled(Enabled bool) *ListCompositionHookParams { @@ -231,11 +230,11 @@ func (params *ListCompositionHookParams) SetFriendlyName(FriendlyName string) *L params.FriendlyName = &FriendlyName return params } -func (params *ListCompositionHookParams) SetPageSize(PageSize int) *ListCompositionHookParams { +func (params *ListCompositionHookParams) SetPageSize(PageSize int64) *ListCompositionHookParams { params.PageSize = &PageSize return params } -func (params *ListCompositionHookParams) SetLimit(Limit int) *ListCompositionHookParams { +func (params *ListCompositionHookParams) SetLimit(Limit int64) *ListCompositionHookParams { params.Limit = &Limit return params } @@ -326,7 +325,7 @@ func (c *ApiService) StreamCompositionHook(params *ListCompositionHookParams) (c } func (c *ApiService) streamCompositionHook(response *ListCompositionHookResponse, params *ListCompositionHookParams, recordChannel chan VideoV1CompositionHook, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.CompositionHooks @@ -438,7 +437,6 @@ func (params *UpdateCompositionHookParams) SetStatusCallbackMethod(StatusCallbac return params } -// func (c *ApiService) UpdateCompositionHook(Sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/video/v1/composition_settings_default.go b/rest/video/v1/composition_settings_default.go index 11e12253e6..ff7d0d6fbe 100644 --- a/rest/video/v1/composition_settings_default.go +++ b/rest/video/v1/composition_settings_default.go @@ -61,7 +61,6 @@ func (params *CreateCompositionSettingsParams) SetEncryptionEnabled(EncryptionEn return params } -// func (c *ApiService) CreateCompositionSettings(params *CreateCompositionSettingsParams) (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" @@ -104,7 +103,6 @@ func (c *ApiService) CreateCompositionSettings(params *CreateCompositionSettings return ps, err } -// func (c *ApiService) FetchCompositionSettings() (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" diff --git a/rest/video/v1/compositions.go b/rest/video/v1/compositions.go index c244604bf1..a869dfa1d6 100644 --- a/rest/video/v1/compositions.go +++ b/rest/video/v1/compositions.go @@ -83,7 +83,6 @@ func (params *CreateCompositionParams) SetTrim(Trim bool) *CreateCompositionPara return params } -// func (c *ApiService) CreateComposition(params *CreateCompositionParams) (*VideoV1Composition, error) { path := "/v1/Compositions" @@ -201,9 +200,9 @@ type ListCompositionParams struct { // Read only Composition resources with this Room SID. RoomSid *string `json:"RoomSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCompositionParams) SetStatus(Status string) *ListCompositionParams { @@ -222,11 +221,11 @@ func (params *ListCompositionParams) SetRoomSid(RoomSid string) *ListComposition params.RoomSid = &RoomSid return params } -func (params *ListCompositionParams) SetPageSize(PageSize int) *ListCompositionParams { +func (params *ListCompositionParams) SetPageSize(PageSize int64) *ListCompositionParams { params.PageSize = &PageSize return params } -func (params *ListCompositionParams) SetLimit(Limit int) *ListCompositionParams { +func (params *ListCompositionParams) SetLimit(Limit int64) *ListCompositionParams { params.Limit = &Limit return params } @@ -317,7 +316,7 @@ func (c *ApiService) StreamComposition(params *ListCompositionParams) (chan Vide } func (c *ApiService) streamComposition(response *ListCompositionResponse, params *ListCompositionParams, recordChannel chan VideoV1Composition, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Compositions diff --git a/rest/video/v1/docs/CompositionHooksApi.md b/rest/video/v1/docs/CompositionHooksApi.md index 60f7dfa434..5f6e93681f 100644 --- a/rest/video/v1/docs/CompositionHooksApi.md +++ b/rest/video/v1/docs/CompositionHooksApi.md @@ -167,8 +167,8 @@ Name | Type | Description **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. **DateCreatedBefore** | **time.Time** | Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/CompositionsApi.md b/rest/video/v1/docs/CompositionsApi.md index 871e2b42a7..ff858c88c4 100644 --- a/rest/video/v1/docs/CompositionsApi.md +++ b/rest/video/v1/docs/CompositionsApi.md @@ -165,8 +165,8 @@ Name | Type | Description **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. **DateCreatedBefore** | **time.Time** | Read only Composition resources created before this ISO 8601 date-time with time zone. **RoomSid** | **string** | Read only Composition resources with this Room SID. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/ListCompositionResponseMeta.md b/rest/video/v1/docs/ListCompositionResponseMeta.md index 54b852310f..d1b1a753d3 100644 --- a/rest/video/v1/docs/ListCompositionResponseMeta.md +++ b/rest/video/v1/docs/ListCompositionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/RecordingsApi.md b/rest/video/v1/docs/RecordingsApi.md index b9c91591b7..ffa59b6c25 100644 --- a/rest/video/v1/docs/RecordingsApi.md +++ b/rest/video/v1/docs/RecordingsApi.md @@ -119,8 +119,8 @@ Name | Type | Description **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. **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`. **MediaType** | **string** | Read only recordings that have this media type. Can be either `audio` or `video`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/RoomsApi.md b/rest/video/v1/docs/RoomsApi.md index 59aa35d7fe..962d8fc3a2 100644 --- a/rest/video/v1/docs/RoomsApi.md +++ b/rest/video/v1/docs/RoomsApi.md @@ -129,8 +129,8 @@ Name | Type | Description **UniqueName** | **string** | Read only rooms with the this `unique_name`. **DateCreatedAfter** | **time.Time** | Read only rooms that started on or after this date, given as `YYYY-MM-DD`. **DateCreatedBefore** | **time.Time** | Read only rooms that started before this date, given as `YYYY-MM-DD`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/RoomsParticipantsApi.md b/rest/video/v1/docs/RoomsParticipantsApi.md index c2a0123192..e3d73165b3 100644 --- a/rest/video/v1/docs/RoomsParticipantsApi.md +++ b/rest/video/v1/docs/RoomsParticipantsApi.md @@ -80,8 +80,8 @@ Name | Type | Description **Identity** | **string** | Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. **DateCreatedAfter** | **time.Time** | Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. **DateCreatedBefore** | **time.Time** | Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/RoomsParticipantsPublishedTracksApi.md b/rest/video/v1/docs/RoomsParticipantsPublishedTracksApi.md index fd889ac33d..2338be22bc 100644 --- a/rest/video/v1/docs/RoomsParticipantsPublishedTracksApi.md +++ b/rest/video/v1/docs/RoomsParticipantsPublishedTracksApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListRoomParticipantPublishedT Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/RoomsParticipantsSubscribedTracksApi.md b/rest/video/v1/docs/RoomsParticipantsSubscribedTracksApi.md index 747cd4852d..c0b483f828 100644 --- a/rest/video/v1/docs/RoomsParticipantsSubscribedTracksApi.md +++ b/rest/video/v1/docs/RoomsParticipantsSubscribedTracksApi.md @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a ListRoomParticipantSubscribed Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/docs/RoomsRecordingsApi.md b/rest/video/v1/docs/RoomsRecordingsApi.md index f4b57b08cf..ce6bab6ad1 100644 --- a/rest/video/v1/docs/RoomsRecordingsApi.md +++ b/rest/video/v1/docs/RoomsRecordingsApi.md @@ -123,8 +123,8 @@ Name | Type | Description **SourceSid** | **string** | Read only the recordings that have this `source_sid`. **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. **DateCreatedBefore** | **time.Time** | Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/video/v1/model_list_composition_response_meta.go b/rest/video/v1/model_list_composition_response_meta.go index 372a4513c8..06c6c69c9c 100644 --- a/rest/video/v1/model_list_composition_response_meta.go +++ b/rest/video/v1/model_list_composition_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCompositionResponseMeta struct for ListCompositionResponseMeta type ListCompositionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/video/v1/recording_settings_default.go b/rest/video/v1/recording_settings_default.go index 6c590d55fa..d84d3a44dc 100644 --- a/rest/video/v1/recording_settings_default.go +++ b/rest/video/v1/recording_settings_default.go @@ -61,7 +61,6 @@ func (params *CreateRecordingSettingsParams) SetEncryptionEnabled(EncryptionEnab return params } -// func (c *ApiService) CreateRecordingSettings(params *CreateRecordingSettingsParams) (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" @@ -104,7 +103,6 @@ func (c *ApiService) CreateRecordingSettings(params *CreateRecordingSettingsPara return ps, err } -// func (c *ApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" diff --git a/rest/video/v1/recordings.go b/rest/video/v1/recordings.go index f0821053cb..9fda8cf38b 100644 --- a/rest/video/v1/recordings.go +++ b/rest/video/v1/recordings.go @@ -84,9 +84,9 @@ type ListRecordingParams struct { // Read only recordings that have this media type. Can be either `audio` or `video`. MediaType *string `json:"MediaType,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRecordingParams) SetStatus(Status string) *ListRecordingParams { @@ -113,11 +113,11 @@ func (params *ListRecordingParams) SetMediaType(MediaType string) *ListRecording params.MediaType = &MediaType return params } -func (params *ListRecordingParams) SetPageSize(PageSize int) *ListRecordingParams { +func (params *ListRecordingParams) SetPageSize(PageSize int64) *ListRecordingParams { params.PageSize = &PageSize return params } -func (params *ListRecordingParams) SetLimit(Limit int) *ListRecordingParams { +func (params *ListRecordingParams) SetLimit(Limit int64) *ListRecordingParams { params.Limit = &Limit return params } @@ -216,7 +216,7 @@ func (c *ApiService) StreamRecording(params *ListRecordingParams) (chan VideoV1R } func (c *ApiService) streamRecording(response *ListRecordingResponse, params *ListRecordingParams, recordChannel chan VideoV1Recording, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Recordings diff --git a/rest/video/v1/rooms.go b/rest/video/v1/rooms.go index f9b12cda8c..abe694af7e 100644 --- a/rest/video/v1/rooms.go +++ b/rest/video/v1/rooms.go @@ -119,7 +119,6 @@ func (params *CreateRoomParams) SetLargeRoom(LargeRoom bool) *CreateRoomParams { return params } -// func (c *ApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms" @@ -197,7 +196,6 @@ func (c *ApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) return ps, err } -// func (c *ApiService) FetchRoom(Sid string) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -233,9 +231,9 @@ type ListRoomParams struct { // Read only rooms that started before this date, given as `YYYY-MM-DD`. DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRoomParams) SetStatus(Status string) *ListRoomParams { @@ -254,11 +252,11 @@ func (params *ListRoomParams) SetDateCreatedBefore(DateCreatedBefore time.Time) params.DateCreatedBefore = &DateCreatedBefore return params } -func (params *ListRoomParams) SetPageSize(PageSize int) *ListRoomParams { +func (params *ListRoomParams) SetPageSize(PageSize int64) *ListRoomParams { params.PageSize = &PageSize return params } -func (params *ListRoomParams) SetLimit(Limit int) *ListRoomParams { +func (params *ListRoomParams) SetLimit(Limit int64) *ListRoomParams { params.Limit = &Limit return params } @@ -349,7 +347,7 @@ func (c *ApiService) StreamRoom(params *ListRoomParams) (chan VideoV1Room, chan } func (c *ApiService) streamRoom(response *ListRoomResponse, params *ListRoomParams, recordChannel chan VideoV1Room, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Rooms @@ -407,7 +405,6 @@ func (params *UpdateRoomParams) SetStatus(Status string) *UpdateRoomParams { return params } -// func (c *ApiService) UpdateRoom(Sid string, params *UpdateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/video/v1/rooms_participants.go b/rest/video/v1/rooms_participants.go index 9ece25ab5e..fa16cdf72d 100644 --- a/rest/video/v1/rooms_participants.go +++ b/rest/video/v1/rooms_participants.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchRoomParticipant(RoomSid string, Sid string) (*VideoV1RoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -61,9 +60,9 @@ type ListRoomParticipantParams struct { // Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRoomParticipantParams) SetStatus(Status string) *ListRoomParticipantParams { @@ -82,11 +81,11 @@ func (params *ListRoomParticipantParams) SetDateCreatedBefore(DateCreatedBefore params.DateCreatedBefore = &DateCreatedBefore return params } -func (params *ListRoomParticipantParams) SetPageSize(PageSize int) *ListRoomParticipantParams { +func (params *ListRoomParticipantParams) SetPageSize(PageSize int64) *ListRoomParticipantParams { params.PageSize = &PageSize return params } -func (params *ListRoomParticipantParams) SetLimit(Limit int) *ListRoomParticipantParams { +func (params *ListRoomParticipantParams) SetLimit(Limit int64) *ListRoomParticipantParams { params.Limit = &Limit return params } @@ -179,7 +178,7 @@ func (c *ApiService) StreamRoomParticipant(RoomSid string, params *ListRoomParti } func (c *ApiService) streamRoomParticipant(response *ListRoomParticipantResponse, params *ListRoomParticipantParams, recordChannel chan VideoV1RoomParticipant, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Participants @@ -237,7 +236,6 @@ func (params *UpdateRoomParticipantParams) SetStatus(Status string) *UpdateRoomP return params } -// func (c *ApiService) UpdateRoomParticipant(RoomSid string, Sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) diff --git a/rest/video/v1/rooms_participants_anonymize.go b/rest/video/v1/rooms_participants_anonymize.go index bee96b1c9a..59808e505a 100644 --- a/rest/video/v1/rooms_participants_anonymize.go +++ b/rest/video/v1/rooms_participants_anonymize.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) UpdateRoomParticipantAnonymize(RoomSid string, Sid string) (*VideoV1RoomParticipantAnonymize, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}/Anonymize" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) diff --git a/rest/video/v1/rooms_participants_published_tracks.go b/rest/video/v1/rooms_participants_published_tracks.go index a0bf1f6691..542a4496fd 100644 --- a/rest/video/v1/rooms_participants_published_tracks.go +++ b/rest/video/v1/rooms_participants_published_tracks.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchRoomParticipantPublishedTrack(RoomSid string, Particip // Optional parameters for the method 'ListRoomParticipantPublishedTrack' type ListRoomParticipantPublishedTrackParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoomParticipantPublishedTrackParams) SetPageSize(PageSize int) *ListRoomParticipantPublishedTrackParams { +func (params *ListRoomParticipantPublishedTrackParams) SetPageSize(PageSize int64) *ListRoomParticipantPublishedTrackParams { params.PageSize = &PageSize return params } -func (params *ListRoomParticipantPublishedTrackParams) SetLimit(Limit int) *ListRoomParticipantPublishedTrackParams { +func (params *ListRoomParticipantPublishedTrackParams) SetLimit(Limit int64) *ListRoomParticipantPublishedTrackParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamRoomParticipantPublishedTrack(RoomSid string, Partici } func (c *ApiService) streamRoomParticipantPublishedTrack(response *ListRoomParticipantPublishedTrackResponse, params *ListRoomParticipantPublishedTrackParams, recordChannel chan VideoV1RoomParticipantPublishedTrack, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.PublishedTracks diff --git a/rest/video/v1/rooms_participants_subscribed_tracks.go b/rest/video/v1/rooms_participants_subscribed_tracks.go index 5419a1f903..393b85ef51 100644 --- a/rest/video/v1/rooms_participants_subscribed_tracks.go +++ b/rest/video/v1/rooms_participants_subscribed_tracks.go @@ -53,16 +53,16 @@ func (c *ApiService) FetchRoomParticipantSubscribedTrack(RoomSid string, Partici // Optional parameters for the method 'ListRoomParticipantSubscribedTrack' type ListRoomParticipantSubscribedTrackParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRoomParticipantSubscribedTrackParams) SetPageSize(PageSize int) *ListRoomParticipantSubscribedTrackParams { +func (params *ListRoomParticipantSubscribedTrackParams) SetPageSize(PageSize int64) *ListRoomParticipantSubscribedTrackParams { params.PageSize = &PageSize return params } -func (params *ListRoomParticipantSubscribedTrackParams) SetLimit(Limit int) *ListRoomParticipantSubscribedTrackParams { +func (params *ListRoomParticipantSubscribedTrackParams) SetLimit(Limit int64) *ListRoomParticipantSubscribedTrackParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamRoomParticipantSubscribedTrack(RoomSid string, Partic } func (c *ApiService) streamRoomParticipantSubscribedTrack(response *ListRoomParticipantSubscribedTrackResponse, params *ListRoomParticipantSubscribedTrackParams, recordChannel chan VideoV1RoomParticipantSubscribedTrack, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SubscribedTracks diff --git a/rest/video/v1/rooms_recordings.go b/rest/video/v1/rooms_recordings.go index 822adb5569..bd0c7de32f 100644 --- a/rest/video/v1/rooms_recordings.go +++ b/rest/video/v1/rooms_recordings.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteRoomRecording(RoomSid string, Sid string) error { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -45,7 +44,6 @@ func (c *ApiService) DeleteRoomRecording(RoomSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRoomRecording(RoomSid string, Sid string) (*VideoV1RoomRecording, error) { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -82,9 +80,9 @@ type ListRoomRecordingParams struct { // Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListRoomRecordingParams) SetStatus(Status string) *ListRoomRecordingParams { @@ -103,11 +101,11 @@ func (params *ListRoomRecordingParams) SetDateCreatedBefore(DateCreatedBefore ti params.DateCreatedBefore = &DateCreatedBefore return params } -func (params *ListRoomRecordingParams) SetPageSize(PageSize int) *ListRoomRecordingParams { +func (params *ListRoomRecordingParams) SetPageSize(PageSize int64) *ListRoomRecordingParams { params.PageSize = &PageSize return params } -func (params *ListRoomRecordingParams) SetLimit(Limit int) *ListRoomRecordingParams { +func (params *ListRoomRecordingParams) SetLimit(Limit int64) *ListRoomRecordingParams { params.Limit = &Limit return params } @@ -200,7 +198,7 @@ func (c *ApiService) StreamRoomRecording(RoomSid string, params *ListRoomRecordi } func (c *ApiService) streamRoomRecording(response *ListRoomRecordingResponse, params *ListRoomRecordingParams, recordChannel chan VideoV1RoomRecording, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Recordings diff --git a/rest/voice/v1/byoc_trunks.go b/rest/voice/v1/byoc_trunks.go index f3c72996fd..a380743bb0 100644 --- a/rest/voice/v1/byoc_trunks.go +++ b/rest/voice/v1/byoc_trunks.go @@ -88,7 +88,6 @@ func (params *CreateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *Cre return params } -// func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks" @@ -143,7 +142,6 @@ func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1Byo return ps, err } -// func (c *ApiService) DeleteByocTrunk(Sid string) error { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -163,7 +161,6 @@ func (c *ApiService) DeleteByocTrunk(Sid string) error { return nil } -// func (c *ApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -191,16 +188,16 @@ func (c *ApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error) { // Optional parameters for the method 'ListByocTrunk' type ListByocTrunkParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListByocTrunkParams) SetPageSize(PageSize int) *ListByocTrunkParams { +func (params *ListByocTrunkParams) SetPageSize(PageSize int64) *ListByocTrunkParams { params.PageSize = &PageSize return params } -func (params *ListByocTrunkParams) SetLimit(Limit int) *ListByocTrunkParams { +func (params *ListByocTrunkParams) SetLimit(Limit int64) *ListByocTrunkParams { params.Limit = &Limit return params } @@ -279,7 +276,7 @@ func (c *ApiService) StreamByocTrunk(params *ListByocTrunkParams) (chan VoiceV1B } func (c *ApiService) streamByocTrunk(response *ListByocTrunkResponse, params *ListByocTrunkParams, recordChannel chan VoiceV1ByocTrunk, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ByocTrunks @@ -391,7 +388,6 @@ func (params *UpdateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *Upd return params } -// func (c *ApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/connection_policies.go b/rest/voice/v1/connection_policies.go index 667161f4ca..66a8709005 100644 --- a/rest/voice/v1/connection_policies.go +++ b/rest/voice/v1/connection_policies.go @@ -34,7 +34,6 @@ func (params *CreateConnectionPolicyParams) SetFriendlyName(FriendlyName string) return params } -// func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies" @@ -62,7 +61,6 @@ func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams return ps, err } -// func (c *ApiService) DeleteConnectionPolicy(Sid string) error { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -82,7 +80,6 @@ func (c *ApiService) DeleteConnectionPolicy(Sid string) error { return nil } -// func (c *ApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -110,16 +107,16 @@ func (c *ApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy // Optional parameters for the method 'ListConnectionPolicy' type ListConnectionPolicyParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListConnectionPolicyParams) SetPageSize(PageSize int) *ListConnectionPolicyParams { +func (params *ListConnectionPolicyParams) SetPageSize(PageSize int64) *ListConnectionPolicyParams { params.PageSize = &PageSize return params } -func (params *ListConnectionPolicyParams) SetLimit(Limit int) *ListConnectionPolicyParams { +func (params *ListConnectionPolicyParams) SetLimit(Limit int64) *ListConnectionPolicyParams { params.Limit = &Limit return params } @@ -198,7 +195,7 @@ func (c *ApiService) StreamConnectionPolicy(params *ListConnectionPolicyParams) } func (c *ApiService) streamConnectionPolicy(response *ListConnectionPolicyResponse, params *ListConnectionPolicyParams, recordChannel chan VoiceV1ConnectionPolicy, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.ConnectionPolicies @@ -256,7 +253,6 @@ func (params *UpdateConnectionPolicyParams) SetFriendlyName(FriendlyName string) return params } -// func (c *ApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/connection_policies_targets.go b/rest/voice/v1/connection_policies_targets.go index 1bc98a8e55..3a2c85e7f6 100644 --- a/rest/voice/v1/connection_policies_targets.go +++ b/rest/voice/v1/connection_policies_targets.go @@ -58,7 +58,6 @@ func (params *CreateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Crea return params } -// func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -99,7 +98,6 @@ func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, pa return ps, err } -// func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Sid string) error { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -120,7 +118,6 @@ func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Si return nil } -// func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -149,16 +146,16 @@ func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid // Optional parameters for the method 'ListConnectionPolicyTarget' type ListConnectionPolicyTargetParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListConnectionPolicyTargetParams) SetPageSize(PageSize int) *ListConnectionPolicyTargetParams { +func (params *ListConnectionPolicyTargetParams) SetPageSize(PageSize int64) *ListConnectionPolicyTargetParams { params.PageSize = &PageSize return params } -func (params *ListConnectionPolicyTargetParams) SetLimit(Limit int) *ListConnectionPolicyTargetParams { +func (params *ListConnectionPolicyTargetParams) SetLimit(Limit int64) *ListConnectionPolicyTargetParams { params.Limit = &Limit return params } @@ -239,7 +236,7 @@ func (c *ApiService) StreamConnectionPolicyTarget(ConnectionPolicySid string, pa } func (c *ApiService) streamConnectionPolicyTarget(response *ListConnectionPolicyTargetResponse, params *ListConnectionPolicyTargetParams, recordChannel chan VoiceV1ConnectionPolicyTarget, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Targets @@ -321,7 +318,6 @@ func (params *UpdateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Upda return params } -// func (c *ApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) diff --git a/rest/voice/v1/dialing_permissions_countries.go b/rest/voice/v1/dialing_permissions_countries.go index fadf1dac22..18475c0af3 100644 --- a/rest/voice/v1/dialing_permissions_countries.go +++ b/rest/voice/v1/dialing_permissions_countries.go @@ -63,9 +63,9 @@ type ListDialingPermissionsCountryParams struct { // Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/blog/how-to-protect-your-account-from-toll-fraud-with-voice-dialing-geo-permissions-html) numbers enabled. Can be: `true` or `false`. HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListDialingPermissionsCountryParams) SetIsoCode(IsoCode string) *ListDialingPermissionsCountryParams { @@ -92,11 +92,11 @@ func (params *ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEn params.HighRiskTollfraudNumbersEnabled = &HighRiskTollfraudNumbersEnabled return params } -func (params *ListDialingPermissionsCountryParams) SetPageSize(PageSize int) *ListDialingPermissionsCountryParams { +func (params *ListDialingPermissionsCountryParams) SetPageSize(PageSize int64) *ListDialingPermissionsCountryParams { params.PageSize = &PageSize return params } -func (params *ListDialingPermissionsCountryParams) SetLimit(Limit int) *ListDialingPermissionsCountryParams { +func (params *ListDialingPermissionsCountryParams) SetLimit(Limit int64) *ListDialingPermissionsCountryParams { params.Limit = &Limit return params } @@ -193,7 +193,7 @@ func (c *ApiService) StreamDialingPermissionsCountry(params *ListDialingPermissi } func (c *ApiService) streamDialingPermissionsCountry(response *ListDialingPermissionsCountryResponse, params *ListDialingPermissionsCountryParams, recordChannel chan VoiceV1DialingPermissionsCountry, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Content diff --git a/rest/voice/v1/dialing_permissions_countries_high_risk_special_prefixes.go b/rest/voice/v1/dialing_permissions_countries_high_risk_special_prefixes.go index 6adfc1667b..ef9ce05067 100644 --- a/rest/voice/v1/dialing_permissions_countries_high_risk_special_prefixes.go +++ b/rest/voice/v1/dialing_permissions_countries_high_risk_special_prefixes.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListDialingPermissionsHrsPrefixes' type ListDialingPermissionsHrsPrefixesParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDialingPermissionsHrsPrefixesParams) SetPageSize(PageSize int) *ListDialingPermissionsHrsPrefixesParams { +func (params *ListDialingPermissionsHrsPrefixesParams) SetPageSize(PageSize int64) *ListDialingPermissionsHrsPrefixesParams { params.PageSize = &PageSize return params } -func (params *ListDialingPermissionsHrsPrefixesParams) SetLimit(Limit int) *ListDialingPermissionsHrsPrefixesParams { +func (params *ListDialingPermissionsHrsPrefixesParams) SetLimit(Limit int64) *ListDialingPermissionsHrsPrefixesParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamDialingPermissionsHrsPrefixes(IsoCode string, params } func (c *ApiService) streamDialingPermissionsHrsPrefixes(response *ListDialingPermissionsHrsPrefixesResponse, params *ListDialingPermissionsHrsPrefixesParams, recordChannel chan VoiceV1DialingPermissionsHrsPrefixes, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Content diff --git a/rest/voice/v1/docs/ByocTrunksApi.md b/rest/voice/v1/docs/ByocTrunksApi.md index f2b1c2bd99..9c2b3768d8 100644 --- a/rest/voice/v1/docs/ByocTrunksApi.md +++ b/rest/voice/v1/docs/ByocTrunksApi.md @@ -163,8 +163,8 @@ Other parameters are passed through a pointer to a ListByocTrunkParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/ConnectionPoliciesApi.md b/rest/voice/v1/docs/ConnectionPoliciesApi.md index f6147e5c80..957043289a 100644 --- a/rest/voice/v1/docs/ConnectionPoliciesApi.md +++ b/rest/voice/v1/docs/ConnectionPoliciesApi.md @@ -154,8 +154,8 @@ Other parameters are passed through a pointer to a ListConnectionPolicyParams st Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/ConnectionPoliciesTargetsApi.md b/rest/voice/v1/docs/ConnectionPoliciesTargetsApi.md index f61a4345bb..0efeee9a29 100644 --- a/rest/voice/v1/docs/ConnectionPoliciesTargetsApi.md +++ b/rest/voice/v1/docs/ConnectionPoliciesTargetsApi.md @@ -168,8 +168,8 @@ Other parameters are passed through a pointer to a ListConnectionPolicyTargetPar Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/DialingPermissionsCountriesApi.md b/rest/voice/v1/docs/DialingPermissionsCountriesApi.md index 00b8133e6a..49e0c5cbc0 100644 --- a/rest/voice/v1/docs/DialingPermissionsCountriesApi.md +++ b/rest/voice/v1/docs/DialingPermissionsCountriesApi.md @@ -76,8 +76,8 @@ Name | Type | Description **LowRiskNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. **HighRiskSpecialNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` **HighRiskTollfraudNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/blog/how-to-protect-your-account-from-toll-fraud-with-voice-dialing-geo-permissions-html) numbers enabled. Can be: `true` or `false`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/DialingPermissionsCountriesHighRiskSpecialPrefixesApi.md b/rest/voice/v1/docs/DialingPermissionsCountriesHighRiskSpecialPrefixesApi.md index c77f6f8550..f4e7cde81f 100644 --- a/rest/voice/v1/docs/DialingPermissionsCountriesHighRiskSpecialPrefixesApi.md +++ b/rest/voice/v1/docs/DialingPermissionsCountriesHighRiskSpecialPrefixesApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListDialingPermissionsHrsPref Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/IpRecordsApi.md b/rest/voice/v1/docs/IpRecordsApi.md index f21746fd53..9eae77bce9 100644 --- a/rest/voice/v1/docs/IpRecordsApi.md +++ b/rest/voice/v1/docs/IpRecordsApi.md @@ -156,8 +156,8 @@ Other parameters are passed through a pointer to a ListIpRecordParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/docs/ListByocTrunkResponseMeta.md b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md index 475eded291..667b85c773 100644 --- a/rest/voice/v1/docs/ListByocTrunkResponseMeta.md +++ b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/SourceIpMappingsApi.md b/rest/voice/v1/docs/SourceIpMappingsApi.md index e3d037d046..366a033161 100644 --- a/rest/voice/v1/docs/SourceIpMappingsApi.md +++ b/rest/voice/v1/docs/SourceIpMappingsApi.md @@ -155,8 +155,8 @@ Other parameters are passed through a pointer to a ListSourceIpMappingParams str Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/voice/v1/ip_records.go b/rest/voice/v1/ip_records.go index 834c5b3246..380cbc724c 100644 --- a/rest/voice/v1/ip_records.go +++ b/rest/voice/v1/ip_records.go @@ -46,7 +46,6 @@ func (params *CreateIpRecordParams) SetCidrPrefixLength(CidrPrefixLength int) *C return params } -// func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords" @@ -80,7 +79,6 @@ func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRec return ps, err } -// func (c *ApiService) DeleteIpRecord(Sid string) error { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteIpRecord(Sid string) error { return nil } -// func (c *ApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -128,16 +125,16 @@ func (c *ApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error) { // Optional parameters for the method 'ListIpRecord' type ListIpRecordParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListIpRecordParams) SetPageSize(PageSize int) *ListIpRecordParams { +func (params *ListIpRecordParams) SetPageSize(PageSize int64) *ListIpRecordParams { params.PageSize = &PageSize return params } -func (params *ListIpRecordParams) SetLimit(Limit int) *ListIpRecordParams { +func (params *ListIpRecordParams) SetLimit(Limit int64) *ListIpRecordParams { params.Limit = &Limit return params } @@ -216,7 +213,7 @@ func (c *ApiService) StreamIpRecord(params *ListIpRecordParams) (chan VoiceV1IpR } func (c *ApiService) streamIpRecord(response *ListIpRecordResponse, params *ListIpRecordParams, recordChannel chan VoiceV1IpRecord, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.IpRecords @@ -274,7 +271,6 @@ func (params *UpdateIpRecordParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/model_list_byoc_trunk_response_meta.go b/rest/voice/v1/model_list_byoc_trunk_response_meta.go index a182370186..a87c8964a9 100644 --- a/rest/voice/v1/model_list_byoc_trunk_response_meta.go +++ b/rest/voice/v1/model_list_byoc_trunk_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListByocTrunkResponseMeta struct for ListByocTrunkResponseMeta type ListByocTrunkResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/voice/v1/source_ip_mappings.go b/rest/voice/v1/source_ip_mappings.go index 900078349d..683e5d8b14 100644 --- a/rest/voice/v1/source_ip_mappings.go +++ b/rest/voice/v1/source_ip_mappings.go @@ -40,7 +40,6 @@ func (params *CreateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) return params } -// func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings" @@ -71,7 +70,6 @@ func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) return ps, err } -// func (c *ApiService) DeleteSourceIpMapping(Sid string) error { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteSourceIpMapping(Sid string) error { return nil } -// func (c *ApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -119,16 +116,16 @@ func (c *ApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, // Optional parameters for the method 'ListSourceIpMapping' type ListSourceIpMappingParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListSourceIpMappingParams) SetPageSize(PageSize int) *ListSourceIpMappingParams { +func (params *ListSourceIpMappingParams) SetPageSize(PageSize int64) *ListSourceIpMappingParams { params.PageSize = &PageSize return params } -func (params *ListSourceIpMappingParams) SetLimit(Limit int) *ListSourceIpMappingParams { +func (params *ListSourceIpMappingParams) SetLimit(Limit int64) *ListSourceIpMappingParams { params.Limit = &Limit return params } @@ -207,7 +204,7 @@ func (c *ApiService) StreamSourceIpMapping(params *ListSourceIpMappingParams) (c } func (c *ApiService) streamSourceIpMapping(response *ListSourceIpMappingResponse, params *ListSourceIpMappingParams, recordChannel chan VoiceV1SourceIpMapping, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.SourceIpMappings @@ -265,7 +262,6 @@ func (params *UpdateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) return params } -// func (c *ApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/wireless/v1/commands.go b/rest/wireless/v1/commands.go index b2dce53d93..b24a88d900 100644 --- a/rest/wireless/v1/commands.go +++ b/rest/wireless/v1/commands.go @@ -172,9 +172,9 @@ type ListCommandParams struct { // Only return Commands with this transport value. Can be: `sms` or `ip`. Transport *string `json:"Transport,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListCommandParams) SetSim(Sim string) *ListCommandParams { @@ -193,11 +193,11 @@ func (params *ListCommandParams) SetTransport(Transport string) *ListCommandPara params.Transport = &Transport return params } -func (params *ListCommandParams) SetPageSize(PageSize int) *ListCommandParams { +func (params *ListCommandParams) SetPageSize(PageSize int64) *ListCommandParams { params.PageSize = &PageSize return params } -func (params *ListCommandParams) SetLimit(Limit int) *ListCommandParams { +func (params *ListCommandParams) SetLimit(Limit int64) *ListCommandParams { params.Limit = &Limit return params } @@ -288,7 +288,7 @@ func (c *ApiService) StreamCommand(params *ListCommandParams) (chan WirelessV1Co } func (c *ApiService) streamCommand(response *ListCommandResponse, params *ListCommandParams, recordChannel chan WirelessV1Command, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Commands diff --git a/rest/wireless/v1/docs/CommandsApi.md b/rest/wireless/v1/docs/CommandsApi.md index 4fb8a0d5fc..a27b642f09 100644 --- a/rest/wireless/v1/docs/CommandsApi.md +++ b/rest/wireless/v1/docs/CommandsApi.md @@ -163,8 +163,8 @@ Name | Type | Description **Status** | **string** | The status of the resources to read. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. **Direction** | **string** | Only return Commands with this direction value. **Transport** | **string** | Only return Commands with this transport value. Can be: `sms` or `ip`. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md b/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md index 84a867933b..e734ccaccc 100644 --- a/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md +++ b/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] -**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] +**Key** | **string** | |[optional] [[Back to Model list]](../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/RatePlansApi.md b/rest/wireless/v1/docs/RatePlansApi.md index ad12bef5a6..9a99347d0b 100644 --- a/rest/wireless/v1/docs/RatePlansApi.md +++ b/rest/wireless/v1/docs/RatePlansApi.md @@ -164,8 +164,8 @@ Other parameters are passed through a pointer to a ListRatePlanParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/docs/SimsApi.md b/rest/wireless/v1/docs/SimsApi.md index d58ef64f02..51b3d24d0a 100644 --- a/rest/wireless/v1/docs/SimsApi.md +++ b/rest/wireless/v1/docs/SimsApi.md @@ -119,8 +119,8 @@ Name | Type | Description **RatePlan** | **string** | The SID or unique name of a [RatePlan resource](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource). Only return Sim resources assigned to this RatePlan resource. **EId** | **string** | Deprecated. **SimRegistrationCode** | **string** | Only return Sim resources with this registration code. This will return a list with a maximum size of 1. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/docs/SimsDataSessionsApi.md b/rest/wireless/v1/docs/SimsDataSessionsApi.md index 287ed80f3e..fa4486d73e 100644 --- a/rest/wireless/v1/docs/SimsDataSessionsApi.md +++ b/rest/wireless/v1/docs/SimsDataSessionsApi.md @@ -31,8 +31,8 @@ Other parameters are passed through a pointer to a ListDataSessionParams struct Name | Type | Description ------------- | ------------- | ------------- -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/docs/SimsUsageRecordsApi.md b/rest/wireless/v1/docs/SimsUsageRecordsApi.md index 722b5fbc19..3c099417ee 100644 --- a/rest/wireless/v1/docs/SimsUsageRecordsApi.md +++ b/rest/wireless/v1/docs/SimsUsageRecordsApi.md @@ -34,8 +34,8 @@ Name | Type | Description **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. **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. **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/docs/UsageRecordsApi.md b/rest/wireless/v1/docs/UsageRecordsApi.md index 985a6e84eb..c4585915ec 100644 --- a/rest/wireless/v1/docs/UsageRecordsApi.md +++ b/rest/wireless/v1/docs/UsageRecordsApi.md @@ -30,8 +30,8 @@ Name | Type | Description **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). **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). **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. -**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. -**Limit** | **int** | Max number of records to return. +**PageSize** | **int64** | How many resources to return in each list page. The default is 50, and the maximum is 1000. +**Limit** | **int64** | Max number of records to return. ### Return type diff --git a/rest/wireless/v1/model_list_account_usage_record_response_meta.go b/rest/wireless/v1/model_list_account_usage_record_response_meta.go index 77e9106cfc..41221e5fee 100644 --- a/rest/wireless/v1/model_list_account_usage_record_response_meta.go +++ b/rest/wireless/v1/model_list_account_usage_record_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAccountUsageRecordResponseMeta struct for ListAccountUsageRecordResponseMeta type ListAccountUsageRecordResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` + Key string `json:"key,omitempty"` } diff --git a/rest/wireless/v1/rate_plans.go b/rest/wireless/v1/rate_plans.go index 971b2147d9..15949c58dc 100644 --- a/rest/wireless/v1/rate_plans.go +++ b/rest/wireless/v1/rate_plans.go @@ -94,7 +94,6 @@ func (params *CreateRatePlanParams) SetInternationalRoamingDataLimit(Internation return params } -// func (c *ApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans" @@ -154,7 +153,6 @@ func (c *ApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1Ra return ps, err } -// func (c *ApiService) DeleteRatePlan(Sid string) error { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -174,7 +172,6 @@ func (c *ApiService) DeleteRatePlan(Sid string) error { return nil } -// func (c *ApiService) FetchRatePlan(Sid string) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -202,16 +199,16 @@ func (c *ApiService) FetchRatePlan(Sid string) (*WirelessV1RatePlan, error) { // Optional parameters for the method 'ListRatePlan' type ListRatePlanParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListRatePlanParams) SetPageSize(PageSize int) *ListRatePlanParams { +func (params *ListRatePlanParams) SetPageSize(PageSize int64) *ListRatePlanParams { params.PageSize = &PageSize return params } -func (params *ListRatePlanParams) SetLimit(Limit int) *ListRatePlanParams { +func (params *ListRatePlanParams) SetLimit(Limit int64) *ListRatePlanParams { params.Limit = &Limit return params } @@ -290,7 +287,7 @@ func (c *ApiService) StreamRatePlan(params *ListRatePlanParams) (chan WirelessV1 } func (c *ApiService) streamRatePlan(response *ListRatePlanResponse, params *ListRatePlanParams, recordChannel chan WirelessV1RatePlan, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.RatePlans @@ -354,7 +351,6 @@ func (params *UpdateRatePlanParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/wireless/v1/sims.go b/rest/wireless/v1/sims.go index 52dc1f1e7e..307bc826a0 100644 --- a/rest/wireless/v1/sims.go +++ b/rest/wireless/v1/sims.go @@ -81,9 +81,9 @@ type ListSimParams struct { // Only return Sim resources with this registration code. This will return a list with a maximum size of 1. SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListSimParams) SetStatus(Status string) *ListSimParams { @@ -106,11 +106,11 @@ func (params *ListSimParams) SetSimRegistrationCode(SimRegistrationCode string) params.SimRegistrationCode = &SimRegistrationCode return params } -func (params *ListSimParams) SetPageSize(PageSize int) *ListSimParams { +func (params *ListSimParams) SetPageSize(PageSize int64) *ListSimParams { params.PageSize = &PageSize return params } -func (params *ListSimParams) SetLimit(Limit int) *ListSimParams { +func (params *ListSimParams) SetLimit(Limit int64) *ListSimParams { params.Limit = &Limit return params } @@ -204,7 +204,7 @@ func (c *ApiService) StreamSim(params *ListSimParams) (chan WirelessV1Sim, chan } func (c *ApiService) streamSim(response *ListSimResponse, params *ListSimParams, recordChannel chan WirelessV1Sim, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.Sims diff --git a/rest/wireless/v1/sims_data_sessions.go b/rest/wireless/v1/sims_data_sessions.go index 3133db4b42..077759cc0f 100644 --- a/rest/wireless/v1/sims_data_sessions.go +++ b/rest/wireless/v1/sims_data_sessions.go @@ -26,16 +26,16 @@ import ( // Optional parameters for the method 'ListDataSession' type ListDataSessionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } -func (params *ListDataSessionParams) SetPageSize(PageSize int) *ListDataSessionParams { +func (params *ListDataSessionParams) SetPageSize(PageSize int64) *ListDataSessionParams { params.PageSize = &PageSize return params } -func (params *ListDataSessionParams) SetLimit(Limit int) *ListDataSessionParams { +func (params *ListDataSessionParams) SetLimit(Limit int64) *ListDataSessionParams { params.Limit = &Limit return params } @@ -116,7 +116,7 @@ func (c *ApiService) StreamDataSession(SimSid string, params *ListDataSessionPar } func (c *ApiService) streamDataSession(response *ListDataSessionResponse, params *ListDataSessionParams, recordChannel chan WirelessV1DataSession, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.DataSessions diff --git a/rest/wireless/v1/sims_usage_records.go b/rest/wireless/v1/sims_usage_records.go index 9e63beb5d6..ea67fa1424 100644 --- a/rest/wireless/v1/sims_usage_records.go +++ b/rest/wireless/v1/sims_usage_records.go @@ -33,9 +33,9 @@ type ListUsageRecordParams struct { // 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. Granularity *string `json:"Granularity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListUsageRecordParams) SetEnd(End time.Time) *ListUsageRecordParams { @@ -50,11 +50,11 @@ func (params *ListUsageRecordParams) SetGranularity(Granularity string) *ListUsa params.Granularity = &Granularity return params } -func (params *ListUsageRecordParams) SetPageSize(PageSize int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetPageSize(PageSize int64) *ListUsageRecordParams { params.PageSize = &PageSize return params } -func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams { +func (params *ListUsageRecordParams) SetLimit(Limit int64) *ListUsageRecordParams { params.Limit = &Limit return params } @@ -144,7 +144,7 @@ func (c *ApiService) StreamUsageRecord(SimSid string, params *ListUsageRecordPar } func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan WirelessV1UsageRecord, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/rest/wireless/v1/usage_records.go b/rest/wireless/v1/usage_records.go index eeed7bfaaa..c468254a9a 100644 --- a/rest/wireless/v1/usage_records.go +++ b/rest/wireless/v1/usage_records.go @@ -32,9 +32,9 @@ type ListAccountUsageRecordParams struct { // 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. Granularity *string `json:"Granularity,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. - PageSize *int `json:"PageSize,omitempty"` + PageSize *int64 `json:"PageSize,omitempty"` // Max number of records to return. - Limit *int `json:"limit,omitempty"` + Limit *int64 `json:"limit,omitempty"` } func (params *ListAccountUsageRecordParams) SetEnd(End time.Time) *ListAccountUsageRecordParams { @@ -49,11 +49,11 @@ func (params *ListAccountUsageRecordParams) SetGranularity(Granularity string) * params.Granularity = &Granularity return params } -func (params *ListAccountUsageRecordParams) SetPageSize(PageSize int) *ListAccountUsageRecordParams { +func (params *ListAccountUsageRecordParams) SetPageSize(PageSize int64) *ListAccountUsageRecordParams { params.PageSize = &PageSize return params } -func (params *ListAccountUsageRecordParams) SetLimit(Limit int) *ListAccountUsageRecordParams { +func (params *ListAccountUsageRecordParams) SetLimit(Limit int64) *ListAccountUsageRecordParams { params.Limit = &Limit return params } @@ -141,7 +141,7 @@ func (c *ApiService) StreamAccountUsageRecord(params *ListAccountUsageRecordPara } func (c *ApiService) streamAccountUsageRecord(response *ListAccountUsageRecordResponse, params *ListAccountUsageRecordParams, recordChannel chan WirelessV1AccountUsageRecord, errorChannel chan error) { - curRecord := 1 + var curRecord int64 = 1 for response != nil { responseRecords := response.UsageRecords diff --git a/twiml/messaging_response.go b/twiml/messaging_response.go index e36e96fd67..06a6ba772b 100644 --- a/twiml/messaging_response.go +++ b/twiml/messaging_response.go @@ -13,7 +13,7 @@ func Messages(verbs []Element) (string, error) { return ToXML(doc) } -//MessagingRedirect TwiML Verb +// MessagingRedirect TwiML Verb type MessagingRedirect struct { // url: Redirect URL // method: Redirect URL method @@ -43,7 +43,7 @@ func (m MessagingRedirect) GetInnerElements() []Element { return m.InnerElements } -//MessagingMessage TwiML Verb +// MessagingMessage TwiML Verb type MessagingMessage struct { // body: Message Body // to: Phone Number to send Message to @@ -85,7 +85,7 @@ func (m MessagingMessage) GetInnerElements() []Element { return m.InnerElements } -//MessagingMedia TwiML Noun +// MessagingMedia TwiML Noun type MessagingMedia struct { // url: Media URL // OptionalAttributes: additional attributes @@ -110,7 +110,7 @@ func (m MessagingMedia) GetInnerElements() []Element { return m.InnerElements } -//MessagingBody TwiML Noun +// MessagingBody TwiML Noun type MessagingBody struct { // message: Message Body // OptionalAttributes: additional attributes diff --git a/twiml/voice_response.go b/twiml/voice_response.go index d52b2ac753..53cc21d87d 100644 --- a/twiml/voice_response.go +++ b/twiml/voice_response.go @@ -13,7 +13,7 @@ func Voice(verbs []Element) (string, error) { return ToXML(doc) } -//VoiceRefer TwiML Verb +// VoiceRefer TwiML Verb type VoiceRefer struct { // action: Action URL // method: Action URL method @@ -44,7 +44,7 @@ func (m VoiceRefer) GetInnerElements() []Element { return m.InnerElements } -//VoiceReferSip TwiML Noun used in +// VoiceReferSip TwiML Noun used in type VoiceReferSip struct { // sip_url: SIP URL // OptionalAttributes: additional attributes @@ -69,7 +69,7 @@ func (m VoiceReferSip) GetInnerElements() []Element { return m.InnerElements } -//VoiceStop TwiML Verb +// VoiceStop TwiML Verb type VoiceStop struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -92,7 +92,7 @@ func (m VoiceStop) GetInnerElements() []Element { return m.InnerElements } -//VoiceTranscription TwiML Noun +// VoiceTranscription TwiML Noun type VoiceTranscription struct { // name: Friendly name given to the Transcription // track: Track to be analyze by the provider @@ -159,7 +159,7 @@ func (m VoiceTranscription) GetInnerElements() []Element { return m.InnerElements } -//VoiceParameter TwiML Noun +// VoiceParameter TwiML Noun type VoiceParameter struct { // name: The name of the custom parameter // value: The value of the custom parameter @@ -190,7 +190,7 @@ func (m VoiceParameter) GetInnerElements() []Element { return m.InnerElements } -//VoiceConfig TwiML Noun +// VoiceConfig TwiML Noun type VoiceConfig struct { // name: The name of the custom config // value: The value of the custom config @@ -221,7 +221,7 @@ func (m VoiceConfig) GetInnerElements() []Element { return m.InnerElements } -//VoiceSipRec TwiML Noun +// VoiceSipRec TwiML Noun type VoiceSipRec struct { // name: Friendly name given to SIPREC // connector_name: Unique name for Connector @@ -261,7 +261,7 @@ func (m VoiceSipRec) GetInnerElements() []Element { return m.InnerElements } -//VoiceStream TwiML Noun +// VoiceStream TwiML Noun type VoiceStream struct { // name: Friendly name given to the Stream // connector_name: Unique name for Stream Connector @@ -304,7 +304,7 @@ func (m VoiceStream) GetInnerElements() []Element { return m.InnerElements } -//VoiceStart TwiML Verb +// VoiceStart TwiML Verb type VoiceStart struct { // action: Action URL // method: Action URL method @@ -335,7 +335,7 @@ func (m VoiceStart) GetInnerElements() []Element { return m.InnerElements } -//VoicePrompt Twiml Verb +// VoicePrompt Twiml Verb type VoicePrompt struct { // for_: Name of the payment source data element // error_type: Type of error @@ -375,7 +375,7 @@ func (m VoicePrompt) GetInnerElements() []Element { return m.InnerElements } -//VoicePause TwiML Verb +// VoicePause TwiML Verb type VoicePause struct { // length: Length in seconds to pause // OptionalAttributes: additional attributes @@ -403,7 +403,7 @@ func (m VoicePause) GetInnerElements() []Element { return m.InnerElements } -//VoicePlay TwiML Verb +// VoicePlay TwiML Verb type VoicePlay struct { // url: Media URL // loop: Times to loop media @@ -436,7 +436,7 @@ func (m VoicePlay) GetInnerElements() []Element { return m.InnerElements } -//VoiceSay TwiML Verb +// VoiceSay TwiML Verb type VoiceSay struct { // message: Message to say // voice: Voice to use @@ -472,7 +472,7 @@ func (m VoiceSay) GetInnerElements() []Element { return m.InnerElements } -//VoiceW Improving Pronunciation by Specifying Parts of Speech in +// VoiceW Improving Pronunciation by Specifying Parts of Speech in type VoiceW struct { // words: Words to speak // role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning @@ -502,7 +502,7 @@ func (m VoiceW) GetInnerElements() []Element { return m.InnerElements } -//VoiceSub Pronouncing Acronyms and Abbreviations in +// VoiceSub Pronouncing Acronyms and Abbreviations in type VoiceSub struct { // words: Words to be substituted // alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation @@ -532,7 +532,7 @@ func (m VoiceSub) GetInnerElements() []Element { return m.InnerElements } -//VoiceSayAs Controlling How Special Types of Words Are Spoken in +// VoiceSayAs Controlling How Special Types of Words Are Spoken in type VoiceSayAs struct { // words: Words to be interpreted // interpret-as: Specify the type of words are spoken @@ -565,7 +565,7 @@ func (m VoiceSayAs) GetInnerElements() []Element { return m.InnerElements } -//VoiceProsody Controling Volume, Speaking Rate, and Pitch in +// VoiceProsody Controling Volume, Speaking Rate, and Pitch in type VoiceProsody struct { // words: Words to speak // volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB @@ -601,7 +601,7 @@ func (m VoiceProsody) GetInnerElements() []Element { return m.InnerElements } -//VoiceS Adding A Pause Between Sentences in +// VoiceS Adding A Pause Between Sentences in type VoiceS struct { // words: Words to speak // OptionalAttributes: additional attributes @@ -626,7 +626,7 @@ func (m VoiceS) GetInnerElements() []Element { return m.InnerElements } -//VoicePhoneme Using Phonetic Pronunciation in +// VoicePhoneme Using Phonetic Pronunciation in type VoicePhoneme struct { // words: Words to speak // alphabet: Specify the phonetic alphabet @@ -659,7 +659,7 @@ func (m VoicePhoneme) GetInnerElements() []Element { return m.InnerElements } -//VoiceLang Specifying Another Language for Specific Words in +// VoiceLang Specifying Another Language for Specific Words in type VoiceLang struct { // words: Words to speak // xml:lang: Specify the language @@ -689,7 +689,7 @@ func (m VoiceLang) GetInnerElements() []Element { return m.InnerElements } -//VoiceP Adding a Pause Between Paragraphs in +// VoiceP Adding a Pause Between Paragraphs in type VoiceP struct { // words: Words to speak // OptionalAttributes: additional attributes @@ -714,7 +714,7 @@ func (m VoiceP) GetInnerElements() []Element { return m.InnerElements } -//VoiceEmphasis Emphasizing Words in +// VoiceEmphasis Emphasizing Words in type VoiceEmphasis struct { // words: Words to emphasize // level: Specify the degree of emphasis @@ -744,7 +744,7 @@ func (m VoiceEmphasis) GetInnerElements() []Element { return m.InnerElements } -//VoiceBreak Adding a Pause in +// VoiceBreak Adding a Pause in type VoiceBreak struct { // strength: Set a pause based on strength // time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms @@ -775,7 +775,7 @@ func (m VoiceBreak) GetInnerElements() []Element { return m.InnerElements } -//VoicePay Twiml Verb +// VoicePay Twiml Verb type VoicePay struct { // input: Input type Twilio should accept // action: Action URL @@ -854,7 +854,7 @@ func (m VoicePay) GetInnerElements() []Element { return m.InnerElements } -//VoiceSms TwiML Noun +// VoiceSms TwiML Noun type VoiceSms struct { // message: Message body // to: Number to send message to @@ -896,7 +896,7 @@ func (m VoiceSms) GetInnerElements() []Element { return m.InnerElements } -//VoiceReject TwiML Verb +// VoiceReject TwiML Verb type VoiceReject struct { // reason: Rejection reason // OptionalAttributes: additional attributes @@ -924,7 +924,7 @@ func (m VoiceReject) GetInnerElements() []Element { return m.InnerElements } -//VoiceRedirect TwiML Verb +// VoiceRedirect TwiML Verb type VoiceRedirect struct { // url: Redirect URL // method: Redirect URL method @@ -954,7 +954,7 @@ func (m VoiceRedirect) GetInnerElements() []Element { return m.InnerElements } -//VoiceRecord TwiML Verb +// VoiceRecord TwiML Verb type VoiceRecord struct { // action: Action URL // method: Action URL method @@ -1015,7 +1015,7 @@ func (m VoiceRecord) GetInnerElements() []Element { return m.InnerElements } -//VoiceQueue TwiML Noun +// VoiceQueue TwiML Noun type VoiceQueue struct { // name: Queue name // url: Action URL @@ -1054,7 +1054,7 @@ func (m VoiceQueue) GetInnerElements() []Element { return m.InnerElements } -//VoiceLeave TwiML Verb +// VoiceLeave TwiML Verb type VoiceLeave struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -1077,7 +1077,7 @@ func (m VoiceLeave) GetInnerElements() []Element { return m.InnerElements } -//VoiceHangup TwiML Verb +// VoiceHangup TwiML Verb type VoiceHangup struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -1100,7 +1100,7 @@ func (m VoiceHangup) GetInnerElements() []Element { return m.InnerElements } -//VoiceGather TwiML Verb +// VoiceGather TwiML Verb type VoiceGather struct { // input: Input type Twilio should accept // action: Action URL @@ -1179,7 +1179,7 @@ func (m VoiceGather) GetInnerElements() []Element { return m.InnerElements } -//VoiceEnqueue TwiML Noun +// VoiceEnqueue TwiML Noun type VoiceEnqueue struct { // name: Friendly name // action: Action URL @@ -1224,7 +1224,7 @@ func (m VoiceEnqueue) GetInnerElements() []Element { return m.InnerElements } -//VoiceTask TwiML Noun +// VoiceTask TwiML Noun type VoiceTask struct { // body: TaskRouter task attributes // priority: Task priority @@ -1257,7 +1257,7 @@ func (m VoiceTask) GetInnerElements() []Element { return m.InnerElements } -//VoiceEcho TwiML Verb +// VoiceEcho TwiML Verb type VoiceEcho struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -1280,7 +1280,7 @@ func (m VoiceEcho) GetInnerElements() []Element { return m.InnerElements } -//VoiceDial TwiML Verb +// VoiceDial TwiML Verb type VoiceDial struct { // number: Phone number to dial // action: Action URL @@ -1361,7 +1361,7 @@ func (m VoiceDial) GetInnerElements() []Element { return m.InnerElements } -//VoiceApplication TwiML Noun +// VoiceApplication TwiML Noun type VoiceApplication struct { // application_sid: Application sid // url: TwiML URL @@ -1409,7 +1409,7 @@ func (m VoiceApplication) GetInnerElements() []Element { return m.InnerElements } -//VoiceApplicationSid TwiML Noun +// VoiceApplicationSid TwiML Noun type VoiceApplicationSid struct { // sid: Application sid to dial // OptionalAttributes: additional attributes @@ -1434,7 +1434,7 @@ func (m VoiceApplicationSid) GetInnerElements() []Element { return m.InnerElements } -//VoiceSip TwiML Noun +// VoiceSip TwiML Noun type VoiceSip struct { // sip_url: SIP URL // username: SIP Username @@ -1503,7 +1503,7 @@ func (m VoiceSip) GetInnerElements() []Element { return m.InnerElements } -//VoiceSim TwiML Noun +// VoiceSim TwiML Noun type VoiceSim struct { // sim_sid: SIM SID // OptionalAttributes: additional attributes @@ -1528,7 +1528,7 @@ func (m VoiceSim) GetInnerElements() []Element { return m.InnerElements } -//VoiceNumber TwiML Noun +// VoiceNumber TwiML Noun type VoiceNumber struct { // phone_number: Phone Number to dial // send_digits: DTMF tones to play when the call is answered @@ -1597,7 +1597,7 @@ func (m VoiceNumber) GetInnerElements() []Element { return m.InnerElements } -//VoiceConference TwiML Noun +// VoiceConference TwiML Noun type VoiceConference struct { // name: Conference name // muted: Join the conference muted @@ -1684,7 +1684,7 @@ func (m VoiceConference) GetInnerElements() []Element { return m.InnerElements } -//VoiceClient TwiML Noun +// VoiceClient TwiML Noun type VoiceClient struct { // identity: Client identity // url: Client URL @@ -1726,7 +1726,7 @@ func (m VoiceClient) GetInnerElements() []Element { return m.InnerElements } -//VoiceIdentity TwiML Noun +// VoiceIdentity TwiML Noun type VoiceIdentity struct { // client_identity: Identity of the client to dial // OptionalAttributes: additional attributes @@ -1751,7 +1751,7 @@ func (m VoiceIdentity) GetInnerElements() []Element { return m.InnerElements } -//VoiceConnect TwiML Verb +// VoiceConnect TwiML Verb type VoiceConnect struct { // action: Action URL // method: Action URL method @@ -1782,7 +1782,7 @@ func (m VoiceConnect) GetInnerElements() []Element { return m.InnerElements } -//VoiceAssistant TwiML Noun +// VoiceAssistant TwiML Noun type VoiceAssistant struct { // id: The assistant ID of the AI Assistant // language: Language to be used for both text-to-speech and transcription @@ -1855,7 +1855,7 @@ func (m VoiceAssistant) GetInnerElements() []Element { return m.InnerElements } -//VoiceLanguage TwiML Noun +// VoiceLanguage TwiML Noun type VoiceLanguage struct { // code: Language code of this language setting is for // tts_provider: Provider to be used for text-to-speech of this language @@ -1895,7 +1895,7 @@ func (m VoiceLanguage) GetInnerElements() []Element { return m.InnerElements } -//VoiceConversationRelay TwiML Noun +// VoiceConversationRelay TwiML Noun type VoiceConversationRelay struct { // url: URL of the remote service where the session is connected to // language: Language to be used for both text-to-speech and transcription @@ -1968,7 +1968,7 @@ func (m VoiceConversationRelay) GetInnerElements() []Element { return m.InnerElements } -//VoiceConversation TwiML Noun +// VoiceConversation TwiML Noun type VoiceConversation struct { // service_instance_sid: Service instance Sid // inbound_autocreation: Inbound autocreation @@ -2035,7 +2035,7 @@ func (m VoiceConversation) GetInnerElements() []Element { return m.InnerElements } -//VoiceVirtualAgent TwiML Noun +// VoiceVirtualAgent TwiML Noun type VoiceVirtualAgent struct { // connector_name: Defines the conversation profile Dialogflow needs to use // language: Language to be used by Dialogflow to transcribe speech @@ -2075,7 +2075,7 @@ func (m VoiceVirtualAgent) GetInnerElements() []Element { return m.InnerElements } -//VoiceAutopilot TwiML Noun +// VoiceAutopilot TwiML Noun type VoiceAutopilot struct { // name: Autopilot assistant sid or unique name // OptionalAttributes: additional attributes @@ -2100,7 +2100,7 @@ func (m VoiceAutopilot) GetInnerElements() []Element { return m.InnerElements } -//VoiceRoom TwiML Noun +// VoiceRoom TwiML Noun type VoiceRoom struct { // name: Room name // participant_identity: Participant identity when connecting to the Room