From dbffd7340f51ea674a2a50559361ef14e3b88b9c Mon Sep 17 00:00:00 2001 From: Poros David Date: Tue, 7 May 2024 10:14:12 +0200 Subject: [PATCH 1/6] rename package domain to ghostmonitor --- client/client.go | 19 +- client/client_test.go | 254 ++++++++++-------- client/error_test.go | 2 +- client/jwt/access_token.go | 2 +- client/jwt/jwt.go | 19 +- client/jwt/jwt_test.go | 3 +- client/jwt/taskrouter/capability_token.go | 4 +- client/request_handler_test.go | 58 ++-- client/unmarshal_test.go | 2 +- cluster_test.go | 6 +- go.mod | 2 +- rest/accounts/v1/api_service.go | 2 +- rest/accounts/v1/credentials_aws.go | 19 +- rest/accounts/v1/credentials_public_keys.go | 19 +- rest/api/v2010/accounts.go | 14 +- rest/api/v2010/accounts_addresses.go | 14 +- ...ounts_addresses_dependent_phone_numbers.go | 25 +- rest/api/v2010/accounts_applications.go | 14 +- .../v2010/accounts_authorized_connect_apps.go | 19 +- .../v2010/accounts_available_phone_numbers.go | 19 +- .../accounts_available_phone_numbers_local.go | 25 +- ...ilable_phone_numbers_machine_to_machine.go | 25 +- ...accounts_available_phone_numbers_mobile.go | 25 +- ...counts_available_phone_numbers_national.go | 25 +- ...nts_available_phone_numbers_shared_cost.go | 25 +- ...ounts_available_phone_numbers_toll_free.go | 25 +- .../accounts_available_phone_numbers_voip.go | 25 +- rest/api/v2010/accounts_calls.go | 9 +- rest/api/v2010/accounts_calls_events.go | 15 +- .../api/v2010/accounts_calls_notifications.go | 31 ++- rest/api/v2010/accounts_calls_recordings.go | 42 ++- rest/api/v2010/accounts_conferences.go | 14 +- .../accounts_conferences_participants.go | 42 ++- .../v2010/accounts_conferences_recordings.go | 43 ++- rest/api/v2010/accounts_connect_apps.go | 14 +- .../v2010/accounts_incoming_phone_numbers.go | 24 +- ...incoming_phone_numbers_assigned_add_ons.go | 42 ++- ...one_numbers_assigned_add_ons_extensions.go | 41 ++- .../accounts_incoming_phone_numbers_local.go | 14 +- .../accounts_incoming_phone_numbers_mobile.go | 14 +- ...counts_incoming_phone_numbers_toll_free.go | 14 +- rest/api/v2010/accounts_keys.go | 9 +- rest/api/v2010/accounts_messages.go | 14 +- rest/api/v2010/accounts_messages_media.go | 15 +- rest/api/v2010/accounts_notifications.go | 19 +- .../api/v2010/accounts_outgoing_caller_ids.go | 24 +- rest/api/v2010/accounts_queues.go | 9 +- rest/api/v2010/accounts_queues_members.go | 21 +- rest/api/v2010/accounts_recordings.go | 14 +- .../accounts_recordings_add_on_results.go | 37 ++- ...unts_recordings_add_on_results_payloads.go | 42 ++- .../accounts_recordings_transcriptions.go | 37 ++- rest/api/v2010/accounts_signing_keys.go | 14 +- .../v2010/accounts_sip_credential_lists.go | 24 +- ...counts_sip_credential_lists_credentials.go | 48 +++- rest/api/v2010/accounts_sip_domains.go | 14 +- ...ins_auth_calls_credential_list_mappings.go | 42 ++- ...h_calls_ip_access_control_list_mappings.go | 42 ++- ..._registrations_credential_list_mappings.go | 48 +++- ...ts_sip_domains_credential_list_mappings.go | 42 ++- ...domains_ip_access_control_list_mappings.go | 42 ++- .../accounts_sipip_access_control_lists.go | 24 +- ...sipip_access_control_lists_ip_addresses.go | 48 +++- rest/api/v2010/accounts_sms_short_codes.go | 14 +- rest/api/v2010/accounts_transcriptions.go | 14 +- rest/api/v2010/accounts_usage_records.go | 14 +- .../v2010/accounts_usage_records_all_time.go | 14 +- .../api/v2010/accounts_usage_records_daily.go | 14 +- .../accounts_usage_records_last_month.go | 14 +- .../v2010/accounts_usage_records_monthly.go | 14 +- .../accounts_usage_records_this_month.go | 14 +- .../api/v2010/accounts_usage_records_today.go | 14 +- .../v2010/accounts_usage_records_yearly.go | 14 +- .../v2010/accounts_usage_records_yesterday.go | 14 +- rest/api/v2010/accounts_usage_triggers.go | 14 +- rest/api/v2010/api_service.go | 2 +- ..._api_v2010_available_phone_number_local.go | 2 +- ...ailable_phone_number_machine_to_machine.go | 2 +- ...api_v2010_available_phone_number_mobile.go | 2 +- ...i_v2010_available_phone_number_national.go | 2 +- ...2010_available_phone_number_shared_cost.go | 2 +- ..._v2010_available_phone_number_toll_free.go | 2 +- ...l_api_v2010_available_phone_number_voip.go | 2 +- .../v2010/model_api_v2010_call_recording.go | 2 +- ...model_api_v2010_recording_transcription.go | 2 +- .../v2010/model_api_v2010_transcription.go | 2 +- .../api/v2010/model_api_v2010_usage_record.go | 2 +- .../model_api_v2010_usage_record_all_time.go | 2 +- .../model_api_v2010_usage_record_daily.go | 2 +- ...model_api_v2010_usage_record_last_month.go | 2 +- .../model_api_v2010_usage_record_monthly.go | 2 +- ...model_api_v2010_usage_record_this_month.go | 2 +- .../model_api_v2010_usage_record_today.go | 2 +- .../model_api_v2010_usage_record_yearly.go | 2 +- .../model_api_v2010_usage_record_yesterday.go | 2 +- rest/bulkexports/v1/api_service.go | 2 +- rest/bulkexports/v1/exports_days.go | 15 +- rest/bulkexports/v1/exports_jobs.go | 30 ++- rest/chat/v1/api_service.go | 2 +- rest/chat/v1/credentials.go | 14 +- rest/chat/v1/services.go | 14 +- rest/chat/v1/services_channels.go | 15 +- rest/chat/v1/services_channels_invites.go | 34 ++- rest/chat/v1/services_channels_members.go | 41 ++- rest/chat/v1/services_channels_messages.go | 41 ++- rest/chat/v1/services_roles.go | 15 +- rest/chat/v1/services_users.go | 15 +- rest/chat/v1/services_users_channels.go | 28 +- rest/chat/v2/api_service.go | 2 +- rest/chat/v2/credentials.go | 14 +- rest/chat/v2/services.go | 19 +- rest/chat/v2/services_bindings.go | 15 +- rest/chat/v2/services_channels.go | 15 +- rest/chat/v2/services_channels_invites.go | 34 ++- rest/chat/v2/services_channels_members.go | 41 ++- rest/chat/v2/services_channels_messages.go | 48 +++- rest/chat/v2/services_channels_webhooks.go | 47 +++- rest/chat/v2/services_roles.go | 15 +- rest/chat/v2/services_users.go | 15 +- rest/chat/v2/services_users_bindings.go | 28 +- rest/chat/v2/services_users_channels.go | 48 +++- rest/chat/v3/api_service.go | 2 +- rest/content/v1/api_service.go | 2 +- rest/content/v1/content.go | 14 +- rest/content/v1/content_and_approvals.go | 14 +- rest/content/v1/legacy_content.go | 14 +- rest/content/v1/model_catalog_item.go | 2 +- rest/content/v1/model_twilio_location.go | 2 +- .../v1/model_whatsapp_authentication.go | 2 +- rest/conversations/v1/api_service.go | 2 +- .../v1/configuration_addresses.go | 19 +- rest/conversations/v1/conversations.go | 19 +- .../v1/conversations_messages.go | 47 +++- .../v1/conversations_messages_receipts.go | 34 ++- .../v1/conversations_participants.go | 47 +++- .../v1/conversations_webhooks.go | 41 ++- rest/conversations/v1/credentials.go | 14 +- .../v1/participant_conversations.go | 14 +- rest/conversations/v1/roles.go | 9 +- rest/conversations/v1/services.go | 14 +- rest/conversations/v1/services_bindings.go | 25 +- .../v1/services_conversations.go | 47 +++- .../v1/services_conversations_messages.go | 54 +++- ...ervices_conversations_messages_receipts.go | 47 +++- .../v1/services_conversations_participants.go | 54 +++- .../v1/services_conversations_webhooks.go | 53 +++- .../v1/services_participant_conversations.go | 25 +- rest/conversations/v1/services_roles.go | 36 ++- rest/conversations/v1/services_users.go | 36 ++- .../v1/services_users_conversations.go | 47 +++- rest/conversations/v1/users.go | 9 +- rest/conversations/v1/users_conversations.go | 36 ++- rest/events/v1/api_service.go | 2 +- rest/events/v1/schemas_versions.go | 20 +- rest/events/v1/sinks.go | 9 +- rest/events/v1/subscriptions.go | 14 +- .../v1/subscriptions_subscribed_events.go | 36 ++- rest/events/v1/types.go | 14 +- rest/flex/v1/api_service.go | 2 +- rest/flex/v1/channels.go | 14 +- rest/flex/v1/flex_flows.go | 14 +- rest/flex/v1/insights_conversations.go | 14 +- ...insights_quality_management_assessments.go | 19 +- ...quality_management_assessments_comments.go | 14 +- .../insights_quality_management_categories.go | 24 +- ...ights_quality_management_questionnaires.go | 29 +- .../insights_quality_management_questions.go | 24 +- rest/flex/v1/insights_segments.go | 14 +- rest/flex/v1/interactions_channels.go | 31 ++- rest/flex/v1/interactions_channels_invites.go | 34 ++- .../v1/interactions_channels_participants.go | 41 ++- .../v1/model_flex_v1_insights_assessments.go | 2 +- ...el_flex_v1_insights_assessments_comment.go | 2 +- rest/flex/v1/plugin_service_configurations.go | 19 +- .../plugin_service_configurations_plugins.go | 31 ++- rest/flex/v1/plugin_service_plugins.go | 9 +- .../v1/plugin_service_plugins_versions.go | 36 ++- rest/flex/v1/plugin_service_releases.go | 14 +- rest/flex/v1/web_channels.go | 14 +- rest/flex/v2/api_service.go | 2 +- rest/frontline/v1/api_service.go | 2 +- rest/insights/v1/api_service.go | 2 +- rest/insights/v1/conferences.go | 14 +- rest/insights/v1/conferences_participants.go | 31 ++- rest/insights/v1/video_rooms.go | 14 +- rest/insights/v1/video_rooms_participants.go | 30 ++- rest/insights/v1/voice_events.go | 15 +- rest/insights/v1/voice_metrics.go | 15 +- rest/insights/v1/voice_summaries.go | 14 +- rest/intelligence/v2/api_service.go | 2 +- .../model_intelligence_v2_operator_result.go | 2 +- .../v2/model_intelligence_v2_sentence.go | 2 +- rest/intelligence/v2/services.go | 14 +- rest/intelligence/v2/transcripts.go | 14 +- .../v2/transcripts_operator_results.go | 31 ++- rest/intelligence/v2/transcripts_sentences.go | 20 +- rest/ip_messaging/v1/api_service.go | 2 +- rest/ip_messaging/v1/credentials.go | 14 +- rest/ip_messaging/v1/services.go | 14 +- rest/ip_messaging/v1/services_channels.go | 26 +- .../v1/services_channels_invites.go | 34 ++- .../v1/services_channels_members.go | 41 ++- .../v1/services_channels_messages.go | 41 ++- rest/ip_messaging/v1/services_roles.go | 15 +- rest/ip_messaging/v1/services_users.go | 15 +- .../v1/services_users_channels.go | 28 +- rest/ip_messaging/v2/api_service.go | 2 +- rest/ip_messaging/v2/credentials.go | 14 +- rest/ip_messaging/v2/services.go | 19 +- rest/ip_messaging/v2/services_bindings.go | 20 +- rest/ip_messaging/v2/services_channels.go | 26 +- .../v2/services_channels_invites.go | 34 ++- .../v2/services_channels_members.go | 41 ++- .../v2/services_channels_messages.go | 48 +++- .../v2/services_channels_webhooks.go | 47 +++- rest/ip_messaging/v2/services_roles.go | 15 +- rest/ip_messaging/v2/services_users.go | 15 +- .../v2/services_users_bindings.go | 34 ++- .../v2/services_users_channels.go | 41 ++- rest/lookups/v1/api_service.go | 2 +- rest/lookups/v2/api_service.go | 2 +- rest/messaging/v1/a2p_brand_registrations.go | 14 +- .../v1/a2p_brand_registrations_vettings.go | 30 ++- rest/messaging/v1/api_service.go | 2 +- rest/messaging/v1/services.go | 14 +- rest/messaging/v1/services_alpha_senders.go | 30 ++- rest/messaging/v1/services_channel_senders.go | 25 +- .../messaging/v1/services_compliance_usa2p.go | 36 ++- rest/messaging/v1/services_phone_numbers.go | 30 ++- rest/messaging/v1/services_short_codes.go | 20 +- rest/messaging/v1/tollfree_verifications.go | 19 +- rest/microvisor/v1/api_service.go | 2 +- rest/microvisor/v1/apps.go | 9 +- rest/microvisor/v1/configs.go | 19 +- rest/microvisor/v1/devices.go | 9 +- rest/microvisor/v1/devices_configs.go | 36 ++- rest/microvisor/v1/devices_secrets.go | 36 ++- rest/microvisor/v1/secrets.go | 19 +- rest/monitor/v1/alerts.go | 9 +- rest/monitor/v1/api_service.go | 2 +- rest/monitor/v1/events.go | 9 +- rest/notify/v1/api_service.go | 2 +- rest/notify/v1/credentials.go | 14 +- rest/notify/v1/services.go | 14 +- rest/notify/v1/services_bindings.go | 15 +- rest/numbers/v1/api_service.go | 2 +- rest/numbers/v2/api_service.go | 2 +- .../hosted_number_authorization_documents.go | 14 +- ...ocuments_dependent_hosted_number_orders.go | 25 +- rest/numbers/v2/hosted_number_orders.go | 14 +- .../v2/regulatory_compliance_bundles.go | 9 +- .../regulatory_compliance_bundles_copies.go | 20 +- ...gulatory_compliance_bundles_evaluations.go | 20 +- ...ory_compliance_bundles_item_assignments.go | 30 ++- .../regulatory_compliance_end_user_types.go | 14 +- .../v2/regulatory_compliance_end_users.go | 14 +- .../v2/regulatory_compliance_regulations.go | 14 +- ...ry_compliance_supporting_document_types.go | 14 +- ...ulatory_compliance_supporting_documents.go | 19 +- rest/oauth/v1/api_service.go | 2 +- rest/preview_messaging/v1/api_service.go | 2 +- .../v1/model_create_messages_request.go | 2 +- rest/pricing/v1/api_service.go | 2 +- rest/pricing/v1/messaging_countries.go | 14 +- ...ing_country_instance_inbound_sms_prices.go | 2 +- ...try_instance_outbound_sms_prices_prices.go | 2 +- ...er_country_instance_phone_number_prices.go | 2 +- ...ce_country_instance_inbound_call_prices.go | 2 +- ...country_instance_outbound_prefix_prices.go | 2 +- ...1_voice_voice_number_inbound_call_price.go | 2 +- ..._voice_voice_number_outbound_call_price.go | 2 +- rest/pricing/v1/phone_numbers_countries.go | 14 +- rest/pricing/v1/voice_countries.go | 14 +- rest/pricing/v2/api_service.go | 2 +- ...ountry_instance_originating_call_prices.go | 2 +- ...ntry_instance_terminating_prefix_prices.go | 2 +- ..._trunking_number_originating_call_price.go | 2 +- ...2_voice_voice_number_inbound_call_price.go | 2 +- ...voice_voice_number_outbound_call_prices.go | 2 +- rest/pricing/v2/trunking_countries.go | 14 +- rest/pricing/v2/voice_countries.go | 14 +- rest/proxy/v1/api_service.go | 2 +- rest/proxy/v1/services.go | 14 +- rest/proxy/v1/services_phone_numbers.go | 31 ++- rest/proxy/v1/services_sessions.go | 21 +- .../v1/services_sessions_interactions.go | 28 +- .../v1/services_sessions_participants.go | 34 ++- ...sions_participants_message_interactions.go | 45 +++- rest/proxy/v1/services_short_codes.go | 26 +- rest/routes/v2/api_service.go | 2 +- rest/serverless/v1/api_service.go | 2 +- rest/serverless/v1/services.go | 14 +- rest/serverless/v1/services_assets.go | 15 +- .../serverless/v1/services_assets_versions.go | 34 ++- rest/serverless/v1/services_builds.go | 15 +- rest/serverless/v1/services_environments.go | 30 ++- .../v1/services_environments_deployments.go | 40 ++- .../v1/services_environments_logs.go | 28 +- .../v1/services_environments_variables.go | 47 +++- rest/serverless/v1/services_functions.go | 26 +- .../v1/services_functions_versions.go | 34 ++- rest/studio/v1/api_service.go | 2 +- rest/studio/v1/flows.go | 9 +- rest/studio/v1/flows_engagements.go | 20 +- rest/studio/v1/flows_engagements_steps.go | 22 +- rest/studio/v1/flows_executions.go | 21 +- rest/studio/v1/flows_executions_steps.go | 34 ++- rest/studio/v2/api_service.go | 2 +- rest/studio/v2/flows.go | 9 +- rest/studio/v2/flows_executions.go | 21 +- rest/studio/v2/flows_executions_steps.go | 34 ++- rest/studio/v2/flows_revisions.go | 20 +- rest/supersim/v1/api_service.go | 2 +- rest/supersim/v1/e_sim_profiles.go | 14 +- rest/supersim/v1/fleets.go | 9 +- rest/supersim/v1/ip_commands.go | 14 +- .../v1/model_supersim_v1_usage_record.go | 2 +- rest/supersim/v1/network_access_profiles.go | 19 +- .../v1/network_access_profiles_networks.go | 35 ++- rest/supersim/v1/networks.go | 14 +- rest/supersim/v1/settings_updates.go | 14 +- rest/supersim/v1/sims.go | 9 +- rest/supersim/v1/sims_billing_periods.go | 25 +- rest/supersim/v1/sims_ip_addresses.go | 20 +- rest/supersim/v1/sms_commands.go | 14 +- rest/supersim/v1/usage_records.go | 14 +- rest/sync/v1/api_service.go | 2 +- rest/sync/v1/services.go | 14 +- rest/sync/v1/services_documents.go | 21 +- .../sync/v1/services_documents_permissions.go | 41 ++- rest/sync/v1/services_lists.go | 21 +- rest/sync/v1/services_lists_items.go | 48 +++- rest/sync/v1/services_lists_permissions.go | 41 ++- rest/sync/v1/services_maps.go | 15 +- rest/sync/v1/services_maps_items.go | 48 +++- rest/sync/v1/services_maps_permissions.go | 41 ++- rest/sync/v1/services_streams.go | 26 +- rest/taskrouter/v1/api_service.go | 2 +- rest/taskrouter/v1/workspaces.go | 14 +- rest/taskrouter/v1/workspaces_activities.go | 26 +- rest/taskrouter/v1/workspaces_events.go | 15 +- .../taskrouter/v1/workspaces_task_channels.go | 36 ++- rest/taskrouter/v1/workspaces_task_queues.go | 31 ++- .../v1/workspaces_task_queues_statistics.go | 31 ++- rest/taskrouter/v1/workspaces_tasks.go | 15 +- .../v1/workspaces_tasks_reservations.go | 41 ++- rest/taskrouter/v1/workspaces_workers.go | 21 +- .../v1/workspaces_workers_channels.go | 41 ++- .../v1/workspaces_workers_reservations.go | 41 ++- rest/taskrouter/v1/workspaces_workflows.go | 26 +- rest/trunking/v1/api_service.go | 2 +- rest/trunking/v1/trunks.go | 9 +- rest/trunking/v1/trunks_credential_lists.go | 30 ++- .../v1/trunks_ip_access_control_lists.go | 30 ++- rest/trunking/v1/trunks_origination_urls.go | 36 ++- rest/trunking/v1/trunks_phone_numbers.go | 25 +- rest/trusthub/v1/api_service.go | 2 +- rest/trusthub/v1/customer_profiles.go | 19 +- ...r_profiles_channel_endpoint_assignments.go | 41 ++- .../customer_profiles_entity_assignments.go | 35 ++- .../v1/customer_profiles_evaluations.go | 35 ++- rest/trusthub/v1/end_user_types.go | 14 +- rest/trusthub/v1/end_users.go | 14 +- rest/trusthub/v1/policies.go | 14 +- rest/trusthub/v1/supporting_document_types.go | 14 +- rest/trusthub/v1/supporting_documents.go | 19 +- rest/trusthub/v1/trust_products.go | 14 +- ...t_products_channel_endpoint_assignments.go | 35 ++- .../v1/trust_products_entity_assignments.go | 35 ++- .../trusthub/v1/trust_products_evaluations.go | 35 ++- rest/verify/v2/api_service.go | 2 +- rest/verify/v2/attempts.go | 14 +- ...verify_v2_verification_attempts_summary.go | 2 +- rest/verify/v2/services.go | 14 +- rest/verify/v2/services_entities.go | 15 +- .../verify/v2/services_entities_challenges.go | 41 ++- rest/verify/v2/services_entities_factors.go | 41 ++- .../v2/services_messaging_configurations.go | 41 ++- rest/verify/v2/services_rate_limits.go | 26 +- .../verify/v2/services_rate_limits_buckets.go | 41 ++- rest/verify/v2/services_webhooks.go | 21 +- rest/verify/v2/templates.go | 14 +- rest/video/v1/api_service.go | 2 +- rest/video/v1/composition_hooks.go | 19 +- rest/video/v1/compositions.go | 14 +- rest/video/v1/recordings.go | 14 +- rest/video/v1/rooms.go | 9 +- rest/video/v1/rooms_participants.go | 31 ++- .../v1/rooms_participants_published_tracks.go | 34 ++- .../rooms_participants_subscribed_tracks.go | 34 ++- rest/video/v1/rooms_recordings.go | 25 +- rest/voice/v1/api_service.go | 2 +- rest/voice/v1/byoc_trunks.go | 14 +- rest/voice/v1/connection_policies.go | 19 +- rest/voice/v1/connection_policies_targets.go | 41 ++- .../voice/v1/dialing_permissions_countries.go | 14 +- ...ns_countries_high_risk_special_prefixes.go | 25 +- rest/voice/v1/ip_records.go | 14 +- rest/voice/v1/source_ip_mappings.go | 19 +- rest/wireless/v1/api_service.go | 2 +- rest/wireless/v1/commands.go | 14 +- rest/wireless/v1/rate_plans.go | 14 +- rest/wireless/v1/sims.go | 9 +- rest/wireless/v1/sims_data_sessions.go | 20 +- rest/wireless/v1/sims_usage_records.go | 20 +- rest/wireless/v1/usage_records.go | 14 +- twilio.go | 86 +++--- twiml/twiml_test.go | 23 +- twiml/voice_response_test.go | 26 +- webhook_cluster_test.go | 42 +-- 410 files changed, 6436 insertions(+), 1754 deletions(-) diff --git a/client/client.go b/client/client.go index 7519adc79..68b760c0a 100644 --- a/client/client.go +++ b/client/client.go @@ -13,8 +13,8 @@ import ( "strings" "time" + "github.com/ghostmonitor/twilio-go/client/form" "github.com/pkg/errors" - "github.com/twilio/twilio-go/client/form" ) var alphanumericRegex *regexp.Regexp @@ -97,7 +97,10 @@ func (c *Client) doWithErr(req *http.Request) (*http.Response, error) { if res.StatusCode < 200 || res.StatusCode >= 400 { err = &TwilioRestError{} if decodeErr := json.NewDecoder(res.Body).Decode(err); decodeErr != nil { - err = errors.Wrap(decodeErr, "error decoding the response for an HTTP error code: "+strconv.Itoa(res.StatusCode)) + err = errors.Wrap( + decodeErr, + "error decoding the response for an HTTP error code: "+strconv.Itoa(res.StatusCode), + ) return nil, err } @@ -114,21 +117,25 @@ func (c *Client) validateCredentials() error { Status: 400, Code: 21222, Message: "Invalid Username. Illegal chars", - MoreInfo: "https://www.twilio.com/docs/errors/21222"} + MoreInfo: "https://www.twilio.com/docs/errors/21222", + } } if !alphanumericRegex.MatchString(password) { return &TwilioRestError{ Status: 400, Code: 21224, Message: "Invalid Password. Illegal chars", - MoreInfo: "https://www.twilio.com/docs/errors/21224"} + MoreInfo: "https://www.twilio.com/docs/errors/21224", + } } return nil } // SendRequest verifies, constructs, and authorizes an HTTP request. -func (c *Client) SendRequest(method string, rawURL string, data url.Values, - headers map[string]interface{}, body ...byte) (*http.Response, error) { +func (c *Client) SendRequest( + method string, rawURL string, data url.Values, + headers map[string]interface{}, body ...byte, +) (*http.Response, error) { contentType := extractContentTypeHeader(headers) diff --git a/client/client_test.go b/client/client_test.go index e949d293f..33ec06c4f 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" + twilio "github.com/ghostmonitor/twilio-go/client" "github.com/stretchr/testify/assert" - twilio "github.com/twilio/twilio-go/client" ) var mockServer *httptest.Server @@ -29,14 +29,17 @@ func NewClient(accountSid string, authToken string) *twilio.Client { } func TestMain(m *testing.M) { - mockServer = httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - d := map[string]interface{}{ - "response": "ok", - } - encoder := json.NewEncoder(writer) - _ = encoder.Encode(&d) - })) + mockServer = httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + d := map[string]interface{}{ + "response": "ok", + } + encoder := json.NewEncoder(writer) + _ = encoder.Encode(&d) + }, + ), + ) defer mockServer.Close() testClient = NewClient("user", "pass") @@ -50,11 +53,14 @@ func TestClient_SendRequestError(t *testing.T) { "message":"Bad request", "more_info":"https://www.twilio.com/docs/errors/20001" }` - errorServer := httptest.NewServer(http.HandlerFunc( - func(resp http.ResponseWriter, req *http.Request) { - resp.WriteHeader(400) - _, _ = resp.Write([]byte(errorResponse)) - })) + errorServer := httptest.NewServer( + http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + }, + ), + ) defer errorServer.Close() resp, err := testClient.SendRequest("GET", errorServer.URL, nil, nil) //nolint:bodyclose @@ -74,11 +80,14 @@ func TestClient_SendRequestDecodeError(t *testing.T) { "message":"Bad request", "more_info":"https://www.twilio.com/docs/errors/20001", }` - errorServer := httptest.NewServer(http.HandlerFunc( - func(resp http.ResponseWriter, req *http.Request) { - resp.WriteHeader(400) - _, _ = resp.Write([]byte(errorResponse)) - })) + errorServer := httptest.NewServer( + http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + }, + ), + ) defer errorServer.Close() resp, err := testClient.SendRequest("GET", errorServer.URL, nil, nil) //nolint:bodyclose @@ -97,11 +106,14 @@ func TestClient_SendRequestErrorWithDetails(t *testing.T) { "foo": "bar" } }`) - errorServer := httptest.NewServer(http.HandlerFunc( - func(resp http.ResponseWriter, req *http.Request) { - resp.WriteHeader(400) - _, _ = resp.Write(errorResponse) - })) + errorServer := httptest.NewServer( + http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write(errorResponse) + }, + ), + ) defer errorServer.Close() resp, err := testClient.SendRequest("GET", errorServer.URL, nil, nil) //nolint:bodyclose @@ -139,11 +151,14 @@ func TestClient_SendRequestPasswordError(t *testing.T) { } func TestClient_SendRequestWithRedirect(t *testing.T) { - redirectServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - writer.WriteHeader(307) - _, _ = writer.Write([]byte(`{"redirect_to": "some_place"}`)) - })) + redirectServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + writer.WriteHeader(307) + _, _ = writer.Write([]byte(`{"redirect_to": "some_place"}`)) + }, + ), + ) defer redirectServer.Close() resp, _ := testClient.SendRequest("GET", redirectServer.URL, nil, nil) //nolint:bodyclose @@ -160,46 +175,54 @@ func TestClient_SendRequestCreatesClient(t *testing.T) { } func TestClient_SendRequestWithData(t *testing.T) { - dataServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - _ = request.ParseForm() - assert.Equal(t, "bar", request.FormValue("foo")) - d := map[string]interface{}{ - "response": "ok", - } - encoder := json.NewEncoder(writer) - err := encoder.Encode(&d) - if err != nil { - t.Error(err) - } - })) + dataServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + _ = request.ParseForm() + assert.Equal(t, "bar", request.FormValue("foo")) + d := map[string]interface{}{ + "response": "ok", + } + encoder := json.NewEncoder(writer) + err := encoder.Encode(&d) + if err != nil { + t.Error(err) + } + }, + ), + ) defer dataServer.Close() tests := []string{http.MethodGet, http.MethodPost} for _, tc := range tests { - t.Run(tc, func(t *testing.T) { - data := url.Values{} - data.Set("foo", "bar") - resp, err := testClient.SendRequest(tc, dataServer.URL, data, nil) //nolint:bodyclose - assert.NoError(t, err) - assert.Equal(t, 200, resp.StatusCode) - }) + t.Run( + tc, func(t *testing.T) { + data := url.Values{} + data.Set("foo", "bar") + resp, err := testClient.SendRequest(tc, dataServer.URL, data, nil) //nolint:bodyclose + assert.NoError(t, err) + assert.Equal(t, 200, resp.StatusCode) + }, + ) } } func TestClient_SendRequestWithHeaders(t *testing.T) { - headerServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - assert.Equal(t, "bar", request.Header.Get("foo")) - d := map[string]interface{}{ - "response": "ok", - } - encoder := json.NewEncoder(writer) - err := encoder.Encode(&d) - if err != nil { - t.Error(err) - } - })) + headerServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + assert.Equal(t, "bar", request.Header.Get("foo")) + d := map[string]interface{}{ + "response": "ok", + } + encoder := json.NewEncoder(writer) + err := encoder.Encode(&d) + if err != nil { + t.Error(err) + } + }, + ), + ) defer headerServer.Close() headers := map[string]interface{}{ @@ -211,19 +234,22 @@ func TestClient_SendRequestWithHeaders(t *testing.T) { } func TestClient_SetTimeoutTimesOut(t *testing.T) { - timeoutServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - d := map[string]interface{}{ - "response": "ok", - } - time.Sleep(100 * time.Microsecond) - encoder := json.NewEncoder(writer) - err := encoder.Encode(&d) - if err != nil { - t.Error(err) - } - writer.WriteHeader(http.StatusOK) - })) + timeoutServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + d := map[string]interface{}{ + "response": "ok", + } + time.Sleep(100 * time.Microsecond) + encoder := json.NewEncoder(writer) + err := encoder.Encode(&d) + if err != nil { + t.Error(err) + } + writer.WriteHeader(http.StatusOK) + }, + ), + ) defer timeoutServer.Close() c := NewClient("user", "pass") @@ -233,18 +259,21 @@ func TestClient_SetTimeoutTimesOut(t *testing.T) { } func TestClient_SetTimeoutSucceeds(t *testing.T) { - timeoutServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - d := map[string]interface{}{ - "response": "ok", - } - time.Sleep(100 * time.Microsecond) - encoder := json.NewEncoder(writer) - err := encoder.Encode(&d) - if err != nil { - t.Error(err) - } - })) + timeoutServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + d := map[string]interface{}{ + "response": "ok", + } + time.Sleep(100 * time.Microsecond) + encoder := json.NewEncoder(writer) + err := encoder.Encode(&d) + if err != nil { + t.Error(err) + } + }, + ), + ) defer timeoutServer.Close() c := NewClient("user", "pass") @@ -265,17 +294,20 @@ func TestClient_SetTimeoutCreatesClient(t *testing.T) { } func TestClient_UnicodeResponse(t *testing.T) { - unicodeServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - d := map[string]interface{}{ - "testing-unicode": "Ω≈ç√, 💩", - } - encoder := json.NewEncoder(writer) - err := encoder.Encode(&d) - if err != nil { - t.Error(err) - } - })) + unicodeServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + d := map[string]interface{}{ + "testing-unicode": "Ω≈ç√, 💩", + } + encoder := json.NewEncoder(writer) + err := encoder.Encode(&d) + if err != nil { + t.Error(err) + } + }, + ), + ) defer unicodeServer.Close() c := NewClient("user", "pass") @@ -292,10 +324,17 @@ func TestClient_SetAccountSid(t *testing.T) { } func TestClient_DefaultUserAgentHeaders(t *testing.T) { - headerServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - assert.Regexp(t, regexp.MustCompile(`^twilio-go/[0-9.]+(-rc.[0-9])*\s\(\w+\s\w+\)\sgo/\S+$`), request.Header.Get("User-Agent")) - })) + headerServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + assert.Regexp( + t, + regexp.MustCompile(`^twilio-go/[0-9.]+(-rc.[0-9])*\s\(\w+\s\w+\)\sgo/\S+$`), + request.Header.Get("User-Agent"), + ) + }, + ), + ) resp, _ := testClient.SendRequest("GET", headerServer.URL, nil, nil) assert.Equal(t, 200, resp.StatusCode) @@ -304,11 +343,14 @@ func TestClient_DefaultUserAgentHeaders(t *testing.T) { func TestClient_UserAgentExtensionsHeaders(t *testing.T) { var expectedExtensions = []string{"twilio-run/2.0.0-test", "flex-plugin/3.4.0"} testClient.UserAgentExtensions = expectedExtensions - headerServer := httptest.NewServer(http.HandlerFunc( - func(writer http.ResponseWriter, request *http.Request) { - var headersList = strings.Split(request.Header.Get("User-Agent"), " ") - assert.Equal(t, headersList[len(headersList)-len(expectedExtensions):], expectedExtensions) - })) + headerServer := httptest.NewServer( + http.HandlerFunc( + func(writer http.ResponseWriter, request *http.Request) { + var headersList = strings.Split(request.Header.Get("User-Agent"), " ") + assert.Equal(t, headersList[len(headersList)-len(expectedExtensions):], expectedExtensions) + }, + ), + ) resp, _ := testClient.SendRequest("GET", headerServer.URL, nil, nil) assert.Equal(t, 200, resp.StatusCode) } diff --git a/client/error_test.go b/client/error_test.go index 431ce1355..92e31bfff 100644 --- a/client/error_test.go +++ b/client/error_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" + "github.com/ghostmonitor/twilio-go/client" assert "github.com/stretchr/testify/require" - "github.com/twilio/twilio-go/client" ) const ( diff --git a/client/jwt/access_token.go b/client/jwt/access_token.go index 89dcf2588..bf004b7a9 100644 --- a/client/jwt/access_token.go +++ b/client/jwt/access_token.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - . "github.com/twilio/twilio-go/client/jwt/util" + . "github.com/ghostmonitor/twilio-go/client/jwt/util" ) type AccessToken struct { diff --git a/client/jwt/jwt.go b/client/jwt/jwt.go index 893c7de41..9799aff9d 100644 --- a/client/jwt/jwt.go +++ b/client/jwt/jwt.go @@ -7,7 +7,8 @@ import ( "time" "github.com/golang-jwt/jwt" - . "github.com/twilio/twilio-go/client/jwt/util" + + . "github.com/ghostmonitor/twilio-go/client/jwt/util" ) type TokenType string @@ -64,14 +65,16 @@ func (token *Jwt) FromJwt(jwtStr string, key string) (*Jwt, error) { // useful if you use multiple keys for your application. The standard is to use 'kid' in the // head of the token to identify which key to use, but the parsed token (head and claims) is provided // to the callback, providing flexibility. - decodedToken, err := jwt.Parse(jwtStr, func(token *jwt.Token) (interface{}, error) { - // Validate the alg is what you expect - if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok { - return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) - } + decodedToken, err := jwt.Parse( + jwtStr, func(token *jwt.Token) (interface{}, error) { + // Validate the alg is what you expect + if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok { + return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) + } - return []byte(key), nil - }) + return []byte(key), nil + }, + ) if decodedToken != nil { if claims, ok := decodedToken.Claims.(jwt.MapClaims); ok { diff --git a/client/jwt/jwt_test.go b/client/jwt/jwt_test.go index 2ab6568e8..e514a4dc4 100644 --- a/client/jwt/jwt_test.go +++ b/client/jwt/jwt_test.go @@ -4,7 +4,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - . "github.com/twilio/twilio-go/client/jwt/util" + + . "github.com/ghostmonitor/twilio-go/client/jwt/util" ) func TestGetHeaders(t *testing.T) { diff --git a/client/jwt/taskrouter/capability_token.go b/client/jwt/taskrouter/capability_token.go index e36a58b3f..37e00ae0e 100644 --- a/client/jwt/taskrouter/capability_token.go +++ b/client/jwt/taskrouter/capability_token.go @@ -7,8 +7,8 @@ import ( "strings" "time" - baseJwt "github.com/twilio/twilio-go/client/jwt" - . "github.com/twilio/twilio-go/client/jwt/util" + baseJwt "github.com/ghostmonitor/twilio-go/client/jwt" + . "github.com/ghostmonitor/twilio-go/client/jwt/util" ) type CapabilityToken struct { diff --git a/client/request_handler_test.go b/client/request_handler_test.go index 1756ae521..a74399a74 100644 --- a/client/request_handler_test.go +++ b/client/request_handler_test.go @@ -7,8 +7,8 @@ import ( "net/url" "testing" + "github.com/ghostmonitor/twilio-go/client" "github.com/stretchr/testify/assert" - "github.com/twilio/twilio-go/client" ) func NewRequestHandler(accountSid string, authToken string) *client.RequestHandler { @@ -19,12 +19,20 @@ func NewRequestHandler(accountSid string, authToken string) *client.RequestHandl func TestRequestHandler_BuildUrlSetRegion(t *testing.T) { // Region set via url requestHandler := NewRequestHandler("user", "pass") - assert.Equal(t, "https://api.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.region.twilio.com")) + assert.Equal( + t, + "https://api.region.twilio.com", + assertAndGetURL(t, requestHandler, "https://api.region.twilio.com"), + ) // Region set via requestHandler requestHandler.Region = "region" assert.Equal(t, "https://api.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.twilio.com")) - assert.Equal(t, "https://api.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.urlRegion.twilio.com")) + assert.Equal( + t, + "https://api.region.twilio.com", + assertAndGetURL(t, requestHandler, "https://api.urlRegion.twilio.com"), + ) } func TestRequestHandler_BuildUrlSetEdgeDefaultRegion(t *testing.T) { @@ -37,14 +45,26 @@ func TestRequestHandler_BuildUrlSetEdgeDefaultRegion(t *testing.T) { func TestRequestHandler_BuildUrlSetEdgeRegion(t *testing.T) { //Edge and Region set via url requestHandler := NewRequestHandler("user", "pass") - assert.Equal(t, "https://api.edge.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.edge.region.twilio.com")) + assert.Equal( + t, + "https://api.edge.region.twilio.com", + assertAndGetURL(t, requestHandler, "https://api.edge.region.twilio.com"), + ) // Edge and Region set via client requestHandler.Edge = "edge" - assert.Equal(t, "https://api.edge.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.region.twilio.com")) + assert.Equal( + t, + "https://api.edge.region.twilio.com", + assertAndGetURL(t, requestHandler, "https://api.region.twilio.com"), + ) requestHandler.Region = "region" assert.Equal(t, "https://api.edge.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.twilio.com")) - assert.Equal(t, "https://api.edge.region.twilio.com", assertAndGetURL(t, requestHandler, "https://api.urlEdge.urlRegion.twilio.com")) + assert.Equal( + t, + "https://api.edge.region.twilio.com", + assertAndGetURL(t, requestHandler, "https://api.urlEdge.urlRegion.twilio.com"), + ) } func TestRequestHandler_BuildHostRawHostWithoutPeriods(t *testing.T) { @@ -75,11 +95,14 @@ func TestRequestHandler_SendGetRequest(t *testing.T) { "message":"Bad request", "more_info":"https://www.twilio.com/docs/errors/20001" }` - errorServer := httptest.NewServer(http.HandlerFunc( - func(resp http.ResponseWriter, req *http.Request) { - resp.WriteHeader(400) - _, _ = resp.Write([]byte(errorResponse)) - })) + errorServer := httptest.NewServer( + http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + }, + ), + ) defer errorServer.Close() requestHandler := NewRequestHandler("user", "pass") @@ -100,11 +123,14 @@ func TestRequestHandler_SendPostRequest(t *testing.T) { "message":"Bad request", "more_info":"https://www.twilio.com/docs/errors/20001" }` - errorServer := httptest.NewServer(http.HandlerFunc( - func(resp http.ResponseWriter, req *http.Request) { - resp.WriteHeader(400) - _, _ = resp.Write([]byte(errorResponse)) - })) + errorServer := httptest.NewServer( + http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + }, + ), + ) defer errorServer.Close() requestHandler := NewRequestHandler("user", "pass") diff --git a/client/unmarshal_test.go b/client/unmarshal_test.go index 23d632127..9c373c2f4 100644 --- a/client/unmarshal_test.go +++ b/client/unmarshal_test.go @@ -3,8 +3,8 @@ package client_test import ( "testing" + "github.com/ghostmonitor/twilio-go/client" "github.com/stretchr/testify/assert" - "github.com/twilio/twilio-go/client" ) func TestUnmarshalFloat32(t *testing.T) { diff --git a/cluster_test.go b/cluster_test.go index 29dd7a9fe..e6ed32379 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -7,10 +7,10 @@ import ( "os" "testing" + Api "github.com/ghostmonitor/twilio-go/rest/api/v2010" + ChatV2 "github.com/ghostmonitor/twilio-go/rest/chat/v2" + EventsV1 "github.com/ghostmonitor/twilio-go/rest/events/v1" "github.com/stretchr/testify/assert" - Api "github.com/twilio/twilio-go/rest/api/v2010" - ChatV2 "github.com/twilio/twilio-go/rest/chat/v2" - EventsV1 "github.com/twilio/twilio-go/rest/events/v1" ) var from string diff --git a/go.mod b/go.mod index db4588098..12c29360f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/twilio/twilio-go +module github.com/ghostmonitor/twilio-go go 1.16 diff --git a/rest/accounts/v1/api_service.go b/rest/accounts/v1/api_service.go index 4ed284a19..de39a1bf9 100644 --- a/rest/accounts/v1/api_service.go +++ b/rest/accounts/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/accounts/v1/credentials_aws.go b/rest/accounts/v1/credentials_aws.go index 3ec1b2945..79062fae0 100644 --- a/rest/accounts/v1/credentials_aws.go +++ b/rest/accounts/v1/credentials_aws.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredentialAws' @@ -137,7 +137,10 @@ func (params *ListCredentialAwsParams) SetLimit(Limit int) *ListCredentialAwsPar } // Retrieve a single page of CredentialAws records from the API. Request is executed immediately. -func (c *ApiService) PageCredentialAws(params *ListCredentialAwsParams, pageToken, pageNumber string) (*ListCredentialAwsResponse, error) { +func (c *ApiService) PageCredentialAws( + params *ListCredentialAwsParams, + pageToken, pageNumber string, +) (*ListCredentialAwsResponse, error) { path := "/v1/Credentials/AWS" data := url.Values{} @@ -207,7 +210,12 @@ func (c *ApiService) StreamCredentialAws(params *ListCredentialAwsParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamCredentialAws(response *ListCredentialAwsResponse, params *ListCredentialAwsParams, recordChannel chan AccountsV1CredentialAws, errorChannel chan error) { +func (c *ApiService) streamCredentialAws( + response *ListCredentialAwsResponse, + params *ListCredentialAwsParams, + recordChannel chan AccountsV1CredentialAws, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -267,7 +275,10 @@ func (params *UpdateCredentialAwsParams) SetFriendlyName(FriendlyName string) *U } // Modify the properties of a given Account -func (c *ApiService) UpdateCredentialAws(Sid string, params *UpdateCredentialAwsParams) (*AccountsV1CredentialAws, error) { +func (c *ApiService) UpdateCredentialAws( + Sid string, + params *UpdateCredentialAwsParams, +) (*AccountsV1CredentialAws, error) { path := "/v1/Credentials/AWS/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/accounts/v1/credentials_public_keys.go b/rest/accounts/v1/credentials_public_keys.go index 8e78888e7..7b1c55502 100644 --- a/rest/accounts/v1/credentials_public_keys.go +++ b/rest/accounts/v1/credentials_public_keys.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredentialPublicKey' @@ -137,7 +137,10 @@ func (params *ListCredentialPublicKeyParams) SetLimit(Limit int) *ListCredential } // Retrieve a single page of CredentialPublicKey records from the API. Request is executed immediately. -func (c *ApiService) PageCredentialPublicKey(params *ListCredentialPublicKeyParams, pageToken, pageNumber string) (*ListCredentialPublicKeyResponse, error) { +func (c *ApiService) PageCredentialPublicKey( + params *ListCredentialPublicKeyParams, + pageToken, pageNumber string, +) (*ListCredentialPublicKeyResponse, error) { path := "/v1/Credentials/PublicKeys" data := url.Values{} @@ -207,7 +210,12 @@ func (c *ApiService) StreamCredentialPublicKey(params *ListCredentialPublicKeyPa return recordChannel, errorChannel } -func (c *ApiService) streamCredentialPublicKey(response *ListCredentialPublicKeyResponse, params *ListCredentialPublicKeyParams, recordChannel chan AccountsV1CredentialPublicKey, errorChannel chan error) { +func (c *ApiService) streamCredentialPublicKey( + response *ListCredentialPublicKeyResponse, + params *ListCredentialPublicKeyParams, + recordChannel chan AccountsV1CredentialPublicKey, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -267,7 +275,10 @@ func (params *UpdateCredentialPublicKeyParams) SetFriendlyName(FriendlyName stri } // Modify the properties of a given Account -func (c *ApiService) UpdateCredentialPublicKey(Sid string, params *UpdateCredentialPublicKeyParams) (*AccountsV1CredentialPublicKey, error) { +func (c *ApiService) UpdateCredentialPublicKey( + Sid string, + params *UpdateCredentialPublicKeyParams, +) (*AccountsV1CredentialPublicKey, error) { path := "/v1/Credentials/PublicKeys/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/api/v2010/accounts.go b/rest/api/v2010/accounts.go index 9d72732d9..13027d3a0 100644 --- a/rest/api/v2010/accounts.go +++ b/rest/api/v2010/accounts.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAccount' @@ -113,7 +113,10 @@ func (params *ListAccountParams) SetLimit(Limit int) *ListAccountParams { } // Retrieve a single page of Account records from the API. Request is executed immediately. -func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumber string) (*ListAccountResponse, error) { +func (c *ApiService) PageAccount( + params *ListAccountParams, + pageToken, pageNumber string, +) (*ListAccountResponse, error) { path := "/2010-04-01/Accounts.json" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamAccount(params *ListAccountParams) (chan ApiV2010Acco return recordChannel, errorChannel } -func (c *ApiService) streamAccount(response *ListAccountResponse, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { +func (c *ApiService) streamAccount( + response *ListAccountResponse, + params *ListAccountParams, + recordChannel chan ApiV2010Account, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_addresses.go b/rest/api/v2010/accounts_addresses.go index 053910881..42f603e63 100644 --- a/rest/api/v2010/accounts_addresses.go +++ b/rest/api/v2010/accounts_addresses.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAddress' @@ -267,7 +267,10 @@ func (params *ListAddressParams) SetLimit(Limit int) *ListAddressParams { } // Retrieve a single page of Address records from the API. Request is executed immediately. -func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumber string) (*ListAddressResponse, error) { +func (c *ApiService) PageAddress( + params *ListAddressParams, + pageToken, pageNumber string, +) (*ListAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" if params != nil && params.PathAccountSid != nil { @@ -352,7 +355,12 @@ func (c *ApiService) StreamAddress(params *ListAddressParams) (chan ApiV2010Addr return recordChannel, errorChannel } -func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { +func (c *ApiService) streamAddress( + response *ListAddressResponse, + params *ListAddressParams, + recordChannel chan ApiV2010Address, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go index f1cf03f13..fb99e9e4c 100644 --- a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go +++ b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListDependentPhoneNumber' @@ -47,7 +47,11 @@ func (params *ListDependentPhoneNumberParams) SetLimit(Limit int) *ListDependent } // Retrieve a single page of DependentPhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams, pageToken, pageNumber string) (*ListDependentPhoneNumberResponse, error) { +func (c *ApiService) PageDependentPhoneNumber( + AddressSid string, + params *ListDependentPhoneNumberParams, + pageToken, pageNumber string, +) (*ListDependentPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -87,7 +91,10 @@ func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDep } // Lists DependentPhoneNumber records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams) ([]ApiV2010DependentPhoneNumber, error) { +func (c *ApiService) ListDependentPhoneNumber( + AddressSid string, + params *ListDependentPhoneNumberParams, +) ([]ApiV2010DependentPhoneNumber, error) { response, errors := c.StreamDependentPhoneNumber(AddressSid, params) records := make([]ApiV2010DependentPhoneNumber, 0) @@ -103,7 +110,10 @@ func (c *ApiService) ListDependentPhoneNumber(AddressSid string, params *ListDep } // Streams DependentPhoneNumber records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams) (chan ApiV2010DependentPhoneNumber, chan error) { +func (c *ApiService) StreamDependentPhoneNumber( + AddressSid string, + params *ListDependentPhoneNumberParams, +) (chan ApiV2010DependentPhoneNumber, chan error) { if params == nil { params = &ListDependentPhoneNumberParams{} } @@ -124,7 +134,12 @@ func (c *ApiService) StreamDependentPhoneNumber(AddressSid string, params *ListD return recordChannel, errorChannel } -func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumberResponse, params *ListDependentPhoneNumberParams, recordChannel chan ApiV2010DependentPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamDependentPhoneNumber( + response *ListDependentPhoneNumberResponse, + params *ListDependentPhoneNumberParams, + recordChannel chan ApiV2010DependentPhoneNumber, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_applications.go b/rest/api/v2010/accounts_applications.go index 1a2d7f678..6972cd4f8 100644 --- a/rest/api/v2010/accounts_applications.go +++ b/rest/api/v2010/accounts_applications.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateApplication' @@ -309,7 +309,10 @@ func (params *ListApplicationParams) SetLimit(Limit int) *ListApplicationParams } // Retrieve a single page of Application records from the API. Request is executed immediately. -func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, pageNumber string) (*ListApplicationResponse, error) { +func (c *ApiService) PageApplication( + params *ListApplicationParams, + pageToken, pageNumber string, +) (*ListApplicationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" if params != nil && params.PathAccountSid != nil { @@ -388,7 +391,12 @@ func (c *ApiService) StreamApplication(params *ListApplicationParams) (chan ApiV return recordChannel, errorChannel } -func (c *ApiService) streamApplication(response *ListApplicationResponse, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { +func (c *ApiService) streamApplication( + response *ListApplicationResponse, + params *ListApplicationParams, + recordChannel chan ApiV2010Application, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_authorized_connect_apps.go b/rest/api/v2010/accounts_authorized_connect_apps.go index c6c0b4e0b..58898b736 100644 --- a/rest/api/v2010/accounts_authorized_connect_apps.go +++ b/rest/api/v2010/accounts_authorized_connect_apps.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchAuthorizedConnectApp' @@ -35,7 +35,10 @@ func (params *FetchAuthorizedConnectAppParams) SetPathAccountSid(PathAccountSid } // Fetch an instance of an authorized-connect-app -func (c *ApiService) FetchAuthorizedConnectApp(ConnectAppSid string, params *FetchAuthorizedConnectAppParams) (*ApiV2010AuthorizedConnectApp, error) { +func (c *ApiService) FetchAuthorizedConnectApp( + ConnectAppSid string, + params *FetchAuthorizedConnectAppParams, +) (*ApiV2010AuthorizedConnectApp, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -86,7 +89,10 @@ func (params *ListAuthorizedConnectAppParams) SetLimit(Limit int) *ListAuthorize } // Retrieve a single page of AuthorizedConnectApp records from the API. Request is executed immediately. -func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppParams, pageToken, pageNumber string) (*ListAuthorizedConnectAppResponse, error) { +func (c *ApiService) PageAuthorizedConnectApp( + params *ListAuthorizedConnectAppParams, + pageToken, pageNumber string, +) (*ListAuthorizedConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" if params != nil && params.PathAccountSid != nil { @@ -162,7 +168,12 @@ func (c *ApiService) StreamAuthorizedConnectApp(params *ListAuthorizedConnectApp return recordChannel, errorChannel } -func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectAppResponse, params *ListAuthorizedConnectAppParams, recordChannel chan ApiV2010AuthorizedConnectApp, errorChannel chan error) { +func (c *ApiService) streamAuthorizedConnectApp( + response *ListAuthorizedConnectAppResponse, + params *ListAuthorizedConnectAppParams, + recordChannel chan ApiV2010AuthorizedConnectApp, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_available_phone_numbers.go b/rest/api/v2010/accounts_available_phone_numbers.go index 5cc813f87..441894292 100644 --- a/rest/api/v2010/accounts_available_phone_numbers.go +++ b/rest/api/v2010/accounts_available_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchAvailablePhoneNumberCountry' @@ -35,7 +35,10 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco } // -func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) { +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 { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -86,7 +89,10 @@ func (params *ListAvailablePhoneNumberCountryParams) SetLimit(Limit int) *ListAv } // Retrieve a single page of AvailablePhoneNumberCountry records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneNumberCountryParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberCountryResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberCountry( + params *ListAvailablePhoneNumberCountryParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberCountryResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -162,7 +168,12 @@ func (c *ApiService) StreamAvailablePhoneNumberCountry(params *ListAvailablePhon return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountryResponse, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberCountry( + response *ListAvailablePhoneNumberCountryResponse, + params *ListAvailablePhoneNumberCountryParams, + recordChannel chan ApiV2010AvailablePhoneNumberCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_available_phone_numbers_local.go b/rest/api/v2010/accounts_available_phone_numbers_local.go index 9d7ffaecf..96de3bbae 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_local.go +++ b/rest/api/v2010/accounts_available_phone_numbers_local.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberLocal' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberLocalParams) SetLimit(Limit int) *ListAvai } // Retrieve a single page of AvailablePhoneNumberLocal records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberLocalResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberLocal( + CountryCode string, + params *ListAvailablePhoneNumberLocalParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *L } // Lists AvailablePhoneNumberLocal records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams) ([]ApiV2010AvailablePhoneNumberLocal, error) { +func (c *ApiService) ListAvailablePhoneNumberLocal( + CountryCode string, + params *ListAvailablePhoneNumberLocalParams, +) ([]ApiV2010AvailablePhoneNumberLocal, error) { response, errors := c.StreamAvailablePhoneNumberLocal(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberLocal, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberLocal(CountryCode string, params *L } // Streams AvailablePhoneNumberLocal records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams) (chan ApiV2010AvailablePhoneNumberLocal, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberLocal( + CountryCode string, + params *ListAvailablePhoneNumberLocalParams, +) (chan ApiV2010AvailablePhoneNumberLocal, chan error) { if params == nil { params = &ListAvailablePhoneNumberLocalParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberLocal(CountryCode string, params return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhoneNumberLocalResponse, params *ListAvailablePhoneNumberLocalParams, recordChannel chan ApiV2010AvailablePhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberLocal( + response *ListAvailablePhoneNumberLocalResponse, + params *ListAvailablePhoneNumberLocalParams, + recordChannel chan ApiV2010AvailablePhoneNumberLocal, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 30f22af46..2a0ae7091 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberMachineToMachine' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberMachineToMachineParams) SetLimit(Limit int } // Retrieve a single page of AvailablePhoneNumberMachineToMachine records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMachineToMachineResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberMachineToMachine( + CountryCode string, + params *ListAvailablePhoneNumberMachineToMachineParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberMachineToMachineResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string } // Lists AvailablePhoneNumberMachineToMachine records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) ([]ApiV2010AvailablePhoneNumberMachineToMachine, error) { +func (c *ApiService) ListAvailablePhoneNumberMachineToMachine( + CountryCode string, + params *ListAvailablePhoneNumberMachineToMachineParams, +) ([]ApiV2010AvailablePhoneNumberMachineToMachine, error) { response, errors := c.StreamAvailablePhoneNumberMachineToMachine(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberMachineToMachine, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberMachineToMachine(CountryCode string } // Streams AvailablePhoneNumberMachineToMachine records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (chan ApiV2010AvailablePhoneNumberMachineToMachine, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberMachineToMachine( + CountryCode string, + params *ListAvailablePhoneNumberMachineToMachineParams, +) (chan ApiV2010AvailablePhoneNumberMachineToMachine, chan error) { if params == nil { params = &ListAvailablePhoneNumberMachineToMachineParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberMachineToMachine(CountryCode stri return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAvailablePhoneNumberMachineToMachineResponse, params *ListAvailablePhoneNumberMachineToMachineParams, recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMachineToMachine( + response *ListAvailablePhoneNumberMachineToMachineResponse, + params *ListAvailablePhoneNumberMachineToMachineParams, + recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_available_phone_numbers_mobile.go b/rest/api/v2010/accounts_available_phone_numbers_mobile.go index df649b4d0..cbbcfb2f2 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_available_phone_numbers_mobile.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberMobile' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberMobileParams) SetLimit(Limit int) *ListAva } // Retrieve a single page of AvailablePhoneNumberMobile records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMobileResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberMobile( + CountryCode string, + params *ListAvailablePhoneNumberMobileParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params * } // Lists AvailablePhoneNumberMobile records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams) ([]ApiV2010AvailablePhoneNumberMobile, error) { +func (c *ApiService) ListAvailablePhoneNumberMobile( + CountryCode string, + params *ListAvailablePhoneNumberMobileParams, +) ([]ApiV2010AvailablePhoneNumberMobile, error) { response, errors := c.StreamAvailablePhoneNumberMobile(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberMobile, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberMobile(CountryCode string, params * } // Streams AvailablePhoneNumberMobile records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams) (chan ApiV2010AvailablePhoneNumberMobile, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberMobile( + CountryCode string, + params *ListAvailablePhoneNumberMobileParams, +) (chan ApiV2010AvailablePhoneNumberMobile, chan error) { if params == nil { params = &ListAvailablePhoneNumberMobileParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberMobile(CountryCode string, params return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePhoneNumberMobileResponse, params *ListAvailablePhoneNumberMobileParams, recordChannel chan ApiV2010AvailablePhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMobile( + response *ListAvailablePhoneNumberMobileResponse, + params *ListAvailablePhoneNumberMobileParams, + recordChannel chan ApiV2010AvailablePhoneNumberMobile, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_available_phone_numbers_national.go b/rest/api/v2010/accounts_available_phone_numbers_national.go index 46f936ea2..7226a710a 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_national.go +++ b/rest/api/v2010/accounts_available_phone_numbers_national.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberNational' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberNationalParams) SetLimit(Limit int) *ListA } // Retrieve a single page of AvailablePhoneNumberNational records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberNationalResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberNational( + CountryCode string, + params *ListAvailablePhoneNumberNationalParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberNationalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params } // Lists AvailablePhoneNumberNational records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams) ([]ApiV2010AvailablePhoneNumberNational, error) { +func (c *ApiService) ListAvailablePhoneNumberNational( + CountryCode string, + params *ListAvailablePhoneNumberNationalParams, +) ([]ApiV2010AvailablePhoneNumberNational, error) { response, errors := c.StreamAvailablePhoneNumberNational(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberNational, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberNational(CountryCode string, params } // Streams AvailablePhoneNumberNational records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams) (chan ApiV2010AvailablePhoneNumberNational, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberNational( + CountryCode string, + params *ListAvailablePhoneNumberNationalParams, +) (chan ApiV2010AvailablePhoneNumberNational, chan error) { if params == nil { params = &ListAvailablePhoneNumberNationalParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberNational(CountryCode string, para return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailablePhoneNumberNationalResponse, params *ListAvailablePhoneNumberNationalParams, recordChannel chan ApiV2010AvailablePhoneNumberNational, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberNational( + response *ListAvailablePhoneNumberNationalResponse, + params *ListAvailablePhoneNumberNationalParams, + recordChannel chan ApiV2010AvailablePhoneNumberNational, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 9c6abff87..6b49458d9 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go +++ b/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberSharedCost' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberSharedCostParams) SetLimit(Limit int) *Lis } // Retrieve a single page of AvailablePhoneNumberSharedCost records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberSharedCostResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberSharedCost( + CountryCode string, + params *ListAvailablePhoneNumberSharedCostParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberSharedCostResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, para } // Lists AvailablePhoneNumberSharedCost records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams) ([]ApiV2010AvailablePhoneNumberSharedCost, error) { +func (c *ApiService) ListAvailablePhoneNumberSharedCost( + CountryCode string, + params *ListAvailablePhoneNumberSharedCostParams, +) ([]ApiV2010AvailablePhoneNumberSharedCost, error) { response, errors := c.StreamAvailablePhoneNumberSharedCost(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberSharedCost, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberSharedCost(CountryCode string, para } // Streams AvailablePhoneNumberSharedCost records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams) (chan ApiV2010AvailablePhoneNumberSharedCost, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberSharedCost( + CountryCode string, + params *ListAvailablePhoneNumberSharedCostParams, +) (chan ApiV2010AvailablePhoneNumberSharedCost, chan error) { if params == nil { params = &ListAvailablePhoneNumberSharedCostParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberSharedCost(CountryCode string, pa return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailablePhoneNumberSharedCostResponse, params *ListAvailablePhoneNumberSharedCostParams, recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberSharedCost( + response *ListAvailablePhoneNumberSharedCostResponse, + params *ListAvailablePhoneNumberSharedCostParams, + recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 7d4be3c1f..4a7235389 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_available_phone_numbers_toll_free.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberTollFree' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberTollFreeParams) SetLimit(Limit int) *ListA } // Retrieve a single page of AvailablePhoneNumberTollFree records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberTollFreeResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberTollFree( + CountryCode string, + params *ListAvailablePhoneNumberTollFreeParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params } // Lists AvailablePhoneNumberTollFree records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams) ([]ApiV2010AvailablePhoneNumberTollFree, error) { +func (c *ApiService) ListAvailablePhoneNumberTollFree( + CountryCode string, + params *ListAvailablePhoneNumberTollFreeParams, +) ([]ApiV2010AvailablePhoneNumberTollFree, error) { response, errors := c.StreamAvailablePhoneNumberTollFree(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberTollFree, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberTollFree(CountryCode string, params } // Streams AvailablePhoneNumberTollFree records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams) (chan ApiV2010AvailablePhoneNumberTollFree, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberTollFree( + CountryCode string, + params *ListAvailablePhoneNumberTollFreeParams, +) (chan ApiV2010AvailablePhoneNumberTollFree, chan error) { if params == nil { params = &ListAvailablePhoneNumberTollFreeParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberTollFree(CountryCode string, para return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailablePhoneNumberTollFreeResponse, params *ListAvailablePhoneNumberTollFreeParams, recordChannel chan ApiV2010AvailablePhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberTollFree( + response *ListAvailablePhoneNumberTollFreeResponse, + params *ListAvailablePhoneNumberTollFreeParams, + recordChannel chan ApiV2010AvailablePhoneNumberTollFree, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_available_phone_numbers_voip.go b/rest/api/v2010/accounts_available_phone_numbers_voip.go index a2534d8e5..ee7582b66 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_voip.go +++ b/rest/api/v2010/accounts_available_phone_numbers_voip.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAvailablePhoneNumberVoip' @@ -155,7 +155,11 @@ func (params *ListAvailablePhoneNumberVoipParams) SetLimit(Limit int) *ListAvail } // Retrieve a single page of AvailablePhoneNumberVoip records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberVoipResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberVoip( + CountryCode string, + params *ListAvailablePhoneNumberVoipParams, + pageToken, pageNumber string, +) (*ListAvailablePhoneNumberVoipResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" if params != nil && params.PathAccountSid != nil { @@ -249,7 +253,10 @@ func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *Li } // Lists AvailablePhoneNumberVoip records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams) ([]ApiV2010AvailablePhoneNumberVoip, error) { +func (c *ApiService) ListAvailablePhoneNumberVoip( + CountryCode string, + params *ListAvailablePhoneNumberVoipParams, +) ([]ApiV2010AvailablePhoneNumberVoip, error) { response, errors := c.StreamAvailablePhoneNumberVoip(CountryCode, params) records := make([]ApiV2010AvailablePhoneNumberVoip, 0) @@ -265,7 +272,10 @@ func (c *ApiService) ListAvailablePhoneNumberVoip(CountryCode string, params *Li } // Streams AvailablePhoneNumberVoip records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams) (chan ApiV2010AvailablePhoneNumberVoip, chan error) { +func (c *ApiService) StreamAvailablePhoneNumberVoip( + CountryCode string, + params *ListAvailablePhoneNumberVoipParams, +) (chan ApiV2010AvailablePhoneNumberVoip, chan error) { if params == nil { params = &ListAvailablePhoneNumberVoipParams{} } @@ -286,7 +296,12 @@ func (c *ApiService) StreamAvailablePhoneNumberVoip(CountryCode string, params * return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhoneNumberVoipResponse, params *ListAvailablePhoneNumberVoipParams, recordChannel chan ApiV2010AvailablePhoneNumberVoip, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberVoip( + response *ListAvailablePhoneNumberVoipResponse, + params *ListAvailablePhoneNumberVoipParams, + recordChannel chan ApiV2010AvailablePhoneNumberVoip, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_calls.go b/rest/api/v2010/accounts_calls.go index 21df276d3..53014c739 100644 --- a/rest/api/v2010/accounts_calls.go +++ b/rest/api/v2010/accounts_calls.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCall' @@ -645,7 +645,12 @@ func (c *ApiService) StreamCall(params *ListCallParams) (chan ApiV2010Call, chan return recordChannel, errorChannel } -func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { +func (c *ApiService) streamCall( + response *ListCallResponse, + params *ListCallParams, + recordChannel chan ApiV2010Call, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_calls_events.go b/rest/api/v2010/accounts_calls_events.go index 07ce9789a..02a925fa0 100644 --- a/rest/api/v2010/accounts_calls_events.go +++ b/rest/api/v2010/accounts_calls_events.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListCallEvent' @@ -47,7 +47,11 @@ func (params *ListCallEventParams) SetLimit(Limit int) *ListCallEventParams { } // Retrieve a single page of CallEvent records from the API. Request is executed immediately. -func (c *ApiService) PageCallEvent(CallSid string, params *ListCallEventParams, pageToken, pageNumber string) (*ListCallEventResponse, error) { +func (c *ApiService) PageCallEvent( + CallSid string, + params *ListCallEventParams, + pageToken, pageNumber string, +) (*ListCallEventResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" if params != nil && params.PathAccountSid != nil { @@ -124,7 +128,12 @@ func (c *ApiService) StreamCallEvent(CallSid string, params *ListCallEventParams return recordChannel, errorChannel } -func (c *ApiService) streamCallEvent(response *ListCallEventResponse, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { +func (c *ApiService) streamCallEvent( + response *ListCallEventResponse, + params *ListCallEventParams, + recordChannel chan ApiV2010CallEvent, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_calls_notifications.go b/rest/api/v2010/accounts_calls_notifications.go index 4004ae82b..2ad529a6b 100644 --- a/rest/api/v2010/accounts_calls_notifications.go +++ b/rest/api/v2010/accounts_calls_notifications.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchCallNotification' @@ -35,7 +35,11 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri } // -func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) { +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 { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -111,7 +115,11 @@ func (params *ListCallNotificationParams) SetLimit(Limit int) *ListCallNotificat } // Retrieve a single page of CallNotification records from the API. Request is executed immediately. -func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotificationParams, pageToken, pageNumber string) (*ListCallNotificationResponse, error) { +func (c *ApiService) PageCallNotification( + CallSid string, + params *ListCallNotificationParams, + pageToken, pageNumber string, +) (*ListCallNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" if params != nil && params.PathAccountSid != nil { @@ -163,7 +171,10 @@ func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotifi } // Lists CallNotification records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCallNotification(CallSid string, params *ListCallNotificationParams) ([]ApiV2010CallNotification, error) { +func (c *ApiService) ListCallNotification( + CallSid string, + params *ListCallNotificationParams, +) ([]ApiV2010CallNotification, error) { response, errors := c.StreamCallNotification(CallSid, params) records := make([]ApiV2010CallNotification, 0) @@ -179,7 +190,10 @@ func (c *ApiService) ListCallNotification(CallSid string, params *ListCallNotifi } // Streams CallNotification records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCallNotification(CallSid string, params *ListCallNotificationParams) (chan ApiV2010CallNotification, chan error) { +func (c *ApiService) StreamCallNotification( + CallSid string, + params *ListCallNotificationParams, +) (chan ApiV2010CallNotification, chan error) { if params == nil { params = &ListCallNotificationParams{} } @@ -200,7 +214,12 @@ func (c *ApiService) StreamCallNotification(CallSid string, params *ListCallNoti return recordChannel, errorChannel } -func (c *ApiService) streamCallNotification(response *ListCallNotificationResponse, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { +func (c *ApiService) streamCallNotification( + response *ListCallNotificationResponse, + params *ListCallNotificationParams, + recordChannel chan ApiV2010CallNotification, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_calls_recordings.go b/rest/api/v2010/accounts_calls_recordings.go index 955ded6e5..5f6c092f4 100644 --- a/rest/api/v2010/accounts_calls_recordings.go +++ b/rest/api/v2010/accounts_calls_recordings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCallRecording' @@ -71,7 +71,10 @@ func (params *CreateCallRecordingParams) SetRecordingTrack(RecordingTrack string } // Create a recording for the call -func (c *ApiService) CreateCallRecording(CallSid string, params *CreateCallRecordingParams) (*ApiV2010CallRecording, error) { +func (c *ApiService) CreateCallRecording( + CallSid string, + params *CreateCallRecordingParams, +) (*ApiV2010CallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -166,7 +169,11 @@ func (params *FetchCallRecordingParams) SetPathAccountSid(PathAccountSid string) } // Fetch an instance of a recording for a call -func (c *ApiService) FetchCallRecording(CallSid string, Sid string, params *FetchCallRecordingParams) (*ApiV2010CallRecording, error) { +func (c *ApiService) FetchCallRecording( + CallSid string, + Sid string, + params *FetchCallRecordingParams, +) (*ApiV2010CallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -236,7 +243,11 @@ func (params *ListCallRecordingParams) SetLimit(Limit int) *ListCallRecordingPar } // Retrieve a single page of CallRecording records from the API. Request is executed immediately. -func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecordingParams, pageToken, pageNumber string) (*ListCallRecordingResponse, error) { +func (c *ApiService) PageCallRecording( + CallSid string, + params *ListCallRecordingParams, + pageToken, pageNumber string, +) (*ListCallRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -285,7 +296,10 @@ func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecording } // Lists CallRecording records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCallRecording(CallSid string, params *ListCallRecordingParams) ([]ApiV2010CallRecording, error) { +func (c *ApiService) ListCallRecording( + CallSid string, + params *ListCallRecordingParams, +) ([]ApiV2010CallRecording, error) { response, errors := c.StreamCallRecording(CallSid, params) records := make([]ApiV2010CallRecording, 0) @@ -301,7 +315,10 @@ func (c *ApiService) ListCallRecording(CallSid string, params *ListCallRecording } // Streams CallRecording records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCallRecording(CallSid string, params *ListCallRecordingParams) (chan ApiV2010CallRecording, chan error) { +func (c *ApiService) StreamCallRecording( + CallSid string, + params *ListCallRecordingParams, +) (chan ApiV2010CallRecording, chan error) { if params == nil { params = &ListCallRecordingParams{} } @@ -322,7 +339,12 @@ func (c *ApiService) StreamCallRecording(CallSid string, params *ListCallRecordi return recordChannel, errorChannel } -func (c *ApiService) streamCallRecording(response *ListCallRecordingResponse, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { +func (c *ApiService) streamCallRecording( + response *ListCallRecordingResponse, + params *ListCallRecordingParams, + recordChannel chan ApiV2010CallRecording, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -394,7 +416,11 @@ func (params *UpdateCallRecordingParams) SetPauseBehavior(PauseBehavior string) } // Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording. -func (c *ApiService) UpdateCallRecording(CallSid string, Sid string, params *UpdateCallRecordingParams) (*ApiV2010CallRecording, error) { +func (c *ApiService) UpdateCallRecording( + CallSid string, + Sid string, + params *UpdateCallRecordingParams, +) (*ApiV2010CallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_conferences.go b/rest/api/v2010/accounts_conferences.go index f14939760..80fcf25ac 100644 --- a/rest/api/v2010/accounts_conferences.go +++ b/rest/api/v2010/accounts_conferences.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchConference' @@ -134,7 +134,10 @@ func (params *ListConferenceParams) SetLimit(Limit int) *ListConferenceParams { } // Retrieve a single page of Conference records from the API. Request is executed immediately. -func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pageNumber string) (*ListConferenceResponse, error) { +func (c *ApiService) PageConference( + params *ListConferenceParams, + pageToken, pageNumber string, +) (*ListConferenceResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" if params != nil && params.PathAccountSid != nil { @@ -234,7 +237,12 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { +func (c *ApiService) streamConference( + response *ListConferenceResponse, + params *ListConferenceParams, + recordChannel chan ApiV2010Conference, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_conferences_participants.go b/rest/api/v2010/accounts_conferences_participants.go index 32ba1ec10..5561750bc 100644 --- a/rest/api/v2010/accounts_conferences_participants.go +++ b/rest/api/v2010/accounts_conferences_participants.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateParticipant' @@ -323,7 +323,10 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar } // -func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) { +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 { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -550,7 +553,11 @@ func (params *FetchParticipantParams) SetPathAccountSid(PathAccountSid string) * } // Fetch an instance of a participant -func (c *ApiService) FetchParticipant(ConferenceSid string, CallSid string, params *FetchParticipantParams) (*ApiV2010Participant, error) { +func (c *ApiService) FetchParticipant( + ConferenceSid string, + CallSid string, + params *FetchParticipantParams, +) (*ApiV2010Participant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -620,7 +627,11 @@ func (params *ListParticipantParams) SetLimit(Limit int) *ListParticipantParams } // Retrieve a single page of Participant records from the API. Request is executed immediately. -func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipantParams, pageToken, pageNumber string) (*ListParticipantResponse, error) { +func (c *ApiService) PageParticipant( + ConferenceSid string, + params *ListParticipantParams, + pageToken, pageNumber string, +) (*ListParticipantResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" if params != nil && params.PathAccountSid != nil { @@ -669,7 +680,10 @@ func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipa } // Lists Participant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListParticipant(ConferenceSid string, params *ListParticipantParams) ([]ApiV2010Participant, error) { +func (c *ApiService) ListParticipant( + ConferenceSid string, + params *ListParticipantParams, +) ([]ApiV2010Participant, error) { response, errors := c.StreamParticipant(ConferenceSid, params) records := make([]ApiV2010Participant, 0) @@ -685,7 +699,10 @@ func (c *ApiService) ListParticipant(ConferenceSid string, params *ListParticipa } // Streams Participant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamParticipant(ConferenceSid string, params *ListParticipantParams) (chan ApiV2010Participant, chan error) { +func (c *ApiService) StreamParticipant( + ConferenceSid string, + params *ListParticipantParams, +) (chan ApiV2010Participant, chan error) { if params == nil { params = &ListParticipantParams{} } @@ -706,7 +723,12 @@ func (c *ApiService) StreamParticipant(ConferenceSid string, params *ListPartici return recordChannel, errorChannel } -func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { +func (c *ApiService) streamParticipant( + response *ListParticipantResponse, + params *ListParticipantParams, + recordChannel chan ApiV2010Participant, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -838,7 +860,11 @@ func (params *UpdateParticipantParams) SetCallSidToCoach(CallSidToCoach string) } // Update the properties of the participant -func (c *ApiService) UpdateParticipant(ConferenceSid string, CallSid string, params *UpdateParticipantParams) (*ApiV2010Participant, error) { +func (c *ApiService) UpdateParticipant( + ConferenceSid string, + CallSid string, + params *UpdateParticipantParams, +) (*ApiV2010Participant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_conferences_recordings.go b/rest/api/v2010/accounts_conferences_recordings.go index 4d0783ea1..d06c382a9 100644 --- a/rest/api/v2010/accounts_conferences_recordings.go +++ b/rest/api/v2010/accounts_conferences_recordings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteConferenceRecording' @@ -35,7 +35,11 @@ func (params *DeleteConferenceRecordingParams) SetPathAccountSid(PathAccountSid } // Delete a recording from your account -func (c *ApiService) DeleteConferenceRecording(ConferenceSid string, Sid string, params *DeleteConferenceRecordingParams) error { +func (c *ApiService) DeleteConferenceRecording( + ConferenceSid string, + Sid string, + params *DeleteConferenceRecordingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -70,7 +74,11 @@ func (params *FetchConferenceRecordingParams) SetPathAccountSid(PathAccountSid s } // Fetch an instance of a recording for a call -func (c *ApiService) FetchConferenceRecording(ConferenceSid string, Sid string, params *FetchConferenceRecordingParams) (*ApiV2010ConferenceRecording, error) { +func (c *ApiService) FetchConferenceRecording( + ConferenceSid string, + Sid string, + params *FetchConferenceRecordingParams, +) (*ApiV2010ConferenceRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -140,7 +148,11 @@ func (params *ListConferenceRecordingParams) SetLimit(Limit int) *ListConference } // Retrieve a single page of ConferenceRecording records from the API. Request is executed immediately. -func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams, pageToken, pageNumber string) (*ListConferenceRecordingResponse, error) { +func (c *ApiService) PageConferenceRecording( + ConferenceSid string, + params *ListConferenceRecordingParams, + pageToken, pageNumber string, +) (*ListConferenceRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -189,7 +201,10 @@ func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListC } // Lists ConferenceRecording records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams) ([]ApiV2010ConferenceRecording, error) { +func (c *ApiService) ListConferenceRecording( + ConferenceSid string, + params *ListConferenceRecordingParams, +) ([]ApiV2010ConferenceRecording, error) { response, errors := c.StreamConferenceRecording(ConferenceSid, params) records := make([]ApiV2010ConferenceRecording, 0) @@ -205,7 +220,10 @@ func (c *ApiService) ListConferenceRecording(ConferenceSid string, params *ListC } // Streams ConferenceRecording records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams) (chan ApiV2010ConferenceRecording, chan error) { +func (c *ApiService) StreamConferenceRecording( + ConferenceSid string, + params *ListConferenceRecordingParams, +) (chan ApiV2010ConferenceRecording, chan error) { if params == nil { params = &ListConferenceRecordingParams{} } @@ -226,7 +244,12 @@ func (c *ApiService) StreamConferenceRecording(ConferenceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamConferenceRecording(response *ListConferenceRecordingResponse, params *ListConferenceRecordingParams, recordChannel chan ApiV2010ConferenceRecording, errorChannel chan error) { +func (c *ApiService) streamConferenceRecording( + response *ListConferenceRecordingResponse, + params *ListConferenceRecordingParams, + recordChannel chan ApiV2010ConferenceRecording, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -298,7 +321,11 @@ func (params *UpdateConferenceRecordingParams) SetPauseBehavior(PauseBehavior st } // Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. -func (c *ApiService) UpdateConferenceRecording(ConferenceSid string, Sid string, params *UpdateConferenceRecordingParams) (*ApiV2010ConferenceRecording, error) { +func (c *ApiService) UpdateConferenceRecording( + ConferenceSid string, + Sid string, + params *UpdateConferenceRecordingParams, +) (*ApiV2010ConferenceRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_connect_apps.go b/rest/api/v2010/accounts_connect_apps.go index f37ece34c..df8933154 100644 --- a/rest/api/v2010/accounts_connect_apps.go +++ b/rest/api/v2010/accounts_connect_apps.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteConnectApp' @@ -120,7 +120,10 @@ func (params *ListConnectAppParams) SetLimit(Limit int) *ListConnectAppParams { } // Retrieve a single page of ConnectApp records from the API. Request is executed immediately. -func (c *ApiService) PageConnectApp(params *ListConnectAppParams, pageToken, pageNumber string) (*ListConnectAppResponse, error) { +func (c *ApiService) PageConnectApp( + params *ListConnectAppParams, + pageToken, pageNumber string, +) (*ListConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" if params != nil && params.PathAccountSid != nil { @@ -196,7 +199,12 @@ func (c *ApiService) StreamConnectApp(params *ListConnectAppParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamConnectApp(response *ListConnectAppResponse, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { +func (c *ApiService) streamConnectApp( + response *ListConnectAppResponse, + params *ListConnectAppParams, + recordChannel chan ApiV2010ConnectApp, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_incoming_phone_numbers.go b/rest/api/v2010/accounts_incoming_phone_numbers.go index a97f6e225..aaecd9997 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIncomingPhoneNumber' @@ -324,7 +324,10 @@ func (params *FetchIncomingPhoneNumberParams) SetPathAccountSid(PathAccountSid s } // Fetch an incoming-phone-number belonging to the account used to make the request. -func (c *ApiService) FetchIncomingPhoneNumber(Sid string, params *FetchIncomingPhoneNumberParams) (*ApiV2010IncomingPhoneNumber, error) { +func (c *ApiService) FetchIncomingPhoneNumber( + Sid string, + params *FetchIncomingPhoneNumberParams, +) (*ApiV2010IncomingPhoneNumber, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -399,7 +402,10 @@ func (params *ListIncomingPhoneNumberParams) SetLimit(Limit int) *ListIncomingPh } // Retrieve a single page of IncomingPhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumber(params *ListIncomingPhoneNumberParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberResponse, error) { +func (c *ApiService) PageIncomingPhoneNumber( + params *ListIncomingPhoneNumberParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -487,7 +493,12 @@ func (c *ApiService) StreamIncomingPhoneNumber(params *ListIncomingPhoneNumberPa return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumberResponse, params *ListIncomingPhoneNumberParams, recordChannel chan ApiV2010IncomingPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumber( + response *ListIncomingPhoneNumberResponse, + params *ListIncomingPhoneNumberParams, + recordChannel chan ApiV2010IncomingPhoneNumber, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -685,7 +696,10 @@ func (params *UpdateIncomingPhoneNumberParams) SetBundleSid(BundleSid string) *U } // Update an incoming-phone-number instance. -func (c *ApiService) UpdateIncomingPhoneNumber(Sid string, params *UpdateIncomingPhoneNumberParams) (*ApiV2010IncomingPhoneNumber, error) { +func (c *ApiService) UpdateIncomingPhoneNumber( + Sid string, + params *UpdateIncomingPhoneNumberParams, +) (*ApiV2010IncomingPhoneNumber, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) 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 c6ccd00d5..79e52fe74 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIncomingPhoneNumberAssignedAddOn' @@ -41,7 +41,10 @@ func (params *CreateIncomingPhoneNumberAssignedAddOnParams) SetInstalledAddOnSid } // Assign an Add-on installation to the Number specified. -func (c *ApiService) CreateIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *CreateIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010IncomingPhoneNumberAssignedAddOn, error) { +func (c *ApiService) CreateIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + params *CreateIncomingPhoneNumberAssignedAddOnParams, +) (*ApiV2010IncomingPhoneNumberAssignedAddOn, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteIncomingPhoneNumberAssignedAddOnParams) SetPathAccountSid(Pa } // Remove the assignment of an Add-on installation from the Number specified. -func (c *ApiService) DeleteIncomingPhoneNumberAssignedAddOn(ResourceSid string, Sid string, params *DeleteIncomingPhoneNumberAssignedAddOnParams) error { +func (c *ApiService) DeleteIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + Sid string, + params *DeleteIncomingPhoneNumberAssignedAddOnParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchIncomingPhoneNumberAssignedAddOnParams) SetPathAccountSid(Pat } // Fetch an instance of an Add-on installation currently assigned to this Number. -func (c *ApiService) FetchIncomingPhoneNumberAssignedAddOn(ResourceSid string, Sid string, params *FetchIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010IncomingPhoneNumberAssignedAddOn, error) { +func (c *ApiService) FetchIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + Sid string, + params *FetchIncomingPhoneNumberAssignedAddOnParams, +) (*ApiV2010IncomingPhoneNumberAssignedAddOn, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetLimit(Limit int) *L } // Retrieve a single page of IncomingPhoneNumberAssignedAddOn records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + params *ListIncomingPhoneNumberAssignedAddOnParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberAssignedAddOnResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, pa } // Lists IncomingPhoneNumberAssignedAddOn records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) ([]ApiV2010IncomingPhoneNumberAssignedAddOn, error) { +func (c *ApiService) ListIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + params *ListIncomingPhoneNumberAssignedAddOnParams, +) ([]ApiV2010IncomingPhoneNumberAssignedAddOn, error) { response, errors := c.StreamIncomingPhoneNumberAssignedAddOn(ResourceSid, params) records := make([]ApiV2010IncomingPhoneNumberAssignedAddOn, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListIncomingPhoneNumberAssignedAddOn(ResourceSid string, pa } // Streams IncomingPhoneNumberAssignedAddOn records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (chan ApiV2010IncomingPhoneNumberAssignedAddOn, chan error) { +func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOn( + ResourceSid string, + params *ListIncomingPhoneNumberAssignedAddOnParams, +) (chan ApiV2010IncomingPhoneNumberAssignedAddOn, chan error) { if params == nil { params = &ListIncomingPhoneNumberAssignedAddOnParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOn(ResourceSid string, return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomingPhoneNumberAssignedAddOnResponse, params *ListIncomingPhoneNumberAssignedAddOnParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn( + response *ListIncomingPhoneNumberAssignedAddOnResponse, + params *ListIncomingPhoneNumberAssignedAddOnParams, + recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 981b2137a..7502c35f2 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchIncomingPhoneNumberAssignedAddOnExtension' @@ -35,7 +35,12 @@ func (params *FetchIncomingPhoneNumberAssignedAddOnExtensionParams) SetPathAccou } // Fetch an instance of an Extension for the Assigned Add-on. -func (c *ApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, Sid string, params *FetchIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010IncomingPhoneNumberAssignedAddOnExtension, error) { +func (c *ApiService) FetchIncomingPhoneNumberAssignedAddOnExtension( + ResourceSid string, + AssignedAddOnSid string, + Sid string, + params *FetchIncomingPhoneNumberAssignedAddOnExtensionParams, +) (*ApiV2010IncomingPhoneNumberAssignedAddOnExtension, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -88,7 +93,12 @@ func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetLimit(Limi } // Retrieve a single page of IncomingPhoneNumberAssignedAddOnExtension records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnExtensionResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension( + ResourceSid string, + AssignedAddOnSid string, + params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberAssignedAddOnExtensionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" if params != nil && params.PathAccountSid != nil { @@ -129,7 +139,11 @@ func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid s } // Lists IncomingPhoneNumberAssignedAddOnExtension records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) ([]ApiV2010IncomingPhoneNumberAssignedAddOnExtension, error) { +func (c *ApiService) ListIncomingPhoneNumberAssignedAddOnExtension( + ResourceSid string, + AssignedAddOnSid string, + params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, +) ([]ApiV2010IncomingPhoneNumberAssignedAddOnExtension, error) { response, errors := c.StreamIncomingPhoneNumberAssignedAddOnExtension(ResourceSid, AssignedAddOnSid, params) records := make([]ApiV2010IncomingPhoneNumberAssignedAddOnExtension, 0) @@ -145,7 +159,11 @@ func (c *ApiService) ListIncomingPhoneNumberAssignedAddOnExtension(ResourceSid s } // Streams IncomingPhoneNumberAssignedAddOnExtension records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, chan error) { +func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOnExtension( + ResourceSid string, + AssignedAddOnSid string, + params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, +) (chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, chan error) { if params == nil { params = &ListIncomingPhoneNumberAssignedAddOnExtensionParams{} } @@ -166,7 +184,12 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOnExtension(ResourceSid return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *ListIncomingPhoneNumberAssignedAddOnExtensionResponse, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension( + response *ListIncomingPhoneNumberAssignedAddOnExtensionResponse, + params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, + recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -181,7 +204,11 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *L } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse) + record, err := client.GetNext( + c.baseURL, + response, + c.getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse, + ) if err != nil { errorChannel <- err break diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_local.go b/rest/api/v2010/accounts_incoming_phone_numbers_local.go index e40f5ff44..c33fab429 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_local.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_local.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIncomingPhoneNumberLocal' @@ -317,7 +317,10 @@ func (params *ListIncomingPhoneNumberLocalParams) SetLimit(Limit int) *ListIncom } // Retrieve a single page of IncomingPhoneNumberLocal records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumberLocalParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberLocalResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberLocal( + params *ListIncomingPhoneNumberLocalParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" if params != nil && params.PathAccountSid != nil { @@ -405,7 +408,12 @@ func (c *ApiService) StreamIncomingPhoneNumberLocal(params *ListIncomingPhoneNum return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocalResponse, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberLocal( + response *ListIncomingPhoneNumberLocalResponse, + params *ListIncomingPhoneNumberLocalParams, + recordChannel chan ApiV2010IncomingPhoneNumberLocal, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go index feaef417a..bc1c5cd07 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIncomingPhoneNumberMobile' @@ -317,7 +317,10 @@ func (params *ListIncomingPhoneNumberMobileParams) SetLimit(Limit int) *ListInco } // Retrieve a single page of IncomingPhoneNumberMobile records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumberMobileParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberMobileResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberMobile( + params *ListIncomingPhoneNumberMobileParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -405,7 +408,12 @@ func (c *ApiService) StreamIncomingPhoneNumberMobile(params *ListIncomingPhoneNu return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobileResponse, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberMobile( + response *ListIncomingPhoneNumberMobileResponse, + params *ListIncomingPhoneNumberMobileParams, + recordChannel chan ApiV2010IncomingPhoneNumberMobile, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 f178aed9e..3b1c6b3de 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIncomingPhoneNumberTollFree' @@ -317,7 +317,10 @@ func (params *ListIncomingPhoneNumberTollFreeParams) SetLimit(Limit int) *ListIn } // Retrieve a single page of IncomingPhoneNumberTollFree records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberTollFreeResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberTollFree( + params *ListIncomingPhoneNumberTollFreeParams, + pageToken, pageNumber string, +) (*ListIncomingPhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -405,7 +408,12 @@ func (c *ApiService) StreamIncomingPhoneNumberTollFree(params *ListIncomingPhone return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFreeResponse, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberTollFree( + response *ListIncomingPhoneNumberTollFreeResponse, + params *ListIncomingPhoneNumberTollFreeParams, + recordChannel chan ApiV2010IncomingPhoneNumberTollFree, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_keys.go b/rest/api/v2010/accounts_keys.go index 47e4335d5..c56c9930d 100644 --- a/rest/api/v2010/accounts_keys.go +++ b/rest/api/v2010/accounts_keys.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateNewKey' @@ -244,7 +244,12 @@ func (c *ApiService) StreamKey(params *ListKeyParams) (chan ApiV2010Key, chan er return recordChannel, errorChannel } -func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { +func (c *ApiService) streamKey( + response *ListKeyResponse, + params *ListKeyParams, + recordChannel chan ApiV2010Key, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index c020d9cc4..c0049ad77 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessage' @@ -401,7 +401,10 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage( + params *ListMessageParams, + pageToken, pageNumber string, +) (*ListMessageResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" if params != nil && params.PathAccountSid != nil { @@ -492,7 +495,12 @@ func (c *ApiService) StreamMessage(params *ListMessageParams) (chan ApiV2010Mess return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { +func (c *ApiService) streamMessage( + response *ListMessageResponse, + params *ListMessageParams, + recordChannel chan ApiV2010Message, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_messages_media.go b/rest/api/v2010/accounts_messages_media.go index 4f0f81578..7f4f40f12 100644 --- a/rest/api/v2010/accounts_messages_media.go +++ b/rest/api/v2010/accounts_messages_media.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteMedia' @@ -141,7 +141,11 @@ func (params *ListMediaParams) SetLimit(Limit int) *ListMediaParams { } // Retrieve a single page of Media records from the API. Request is executed immediately. -func (c *ApiService) PageMedia(MessageSid string, params *ListMediaParams, pageToken, pageNumber string) (*ListMediaResponse, error) { +func (c *ApiService) PageMedia( + MessageSid string, + params *ListMediaParams, + pageToken, pageNumber string, +) (*ListMediaResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" if params != nil && params.PathAccountSid != nil { @@ -227,7 +231,12 @@ func (c *ApiService) StreamMedia(MessageSid string, params *ListMediaParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamMedia(response *ListMediaResponse, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { +func (c *ApiService) streamMedia( + response *ListMediaResponse, + params *ListMediaParams, + recordChannel chan ApiV2010Media, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_notifications.go b/rest/api/v2010/accounts_notifications.go index 4151a7021..09a5faeee 100644 --- a/rest/api/v2010/accounts_notifications.go +++ b/rest/api/v2010/accounts_notifications.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchNotification' @@ -35,7 +35,10 @@ func (params *FetchNotificationParams) SetPathAccountSid(PathAccountSid string) } // Fetch a notification belonging to the account used to make the request -func (c *ApiService) FetchNotification(Sid string, params *FetchNotificationParams) (*ApiV2010NotificationInstance, error) { +func (c *ApiService) FetchNotification( + Sid string, + params *FetchNotificationParams, +) (*ApiV2010NotificationInstance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -110,7 +113,10 @@ func (params *ListNotificationParams) SetLimit(Limit int) *ListNotificationParam } // Retrieve a single page of Notification records from the API. Request is executed immediately. -func (c *ApiService) PageNotification(params *ListNotificationParams, pageToken, pageNumber string) (*ListNotificationResponse, error) { +func (c *ApiService) PageNotification( + params *ListNotificationParams, + pageToken, pageNumber string, +) (*ListNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" if params != nil && params.PathAccountSid != nil { @@ -198,7 +204,12 @@ func (c *ApiService) StreamNotification(params *ListNotificationParams) (chan Ap return recordChannel, errorChannel } -func (c *ApiService) streamNotification(response *ListNotificationResponse, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { +func (c *ApiService) streamNotification( + response *ListNotificationResponse, + params *ListNotificationParams, + recordChannel chan ApiV2010Notification, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_outgoing_caller_ids.go b/rest/api/v2010/accounts_outgoing_caller_ids.go index 1d91a9389..9ef8b0058 100644 --- a/rest/api/v2010/accounts_outgoing_caller_ids.go +++ b/rest/api/v2010/accounts_outgoing_caller_ids.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateValidationRequest' @@ -162,7 +162,10 @@ func (params *FetchOutgoingCallerIdParams) SetPathAccountSid(PathAccountSid stri } // Fetch an outgoing-caller-id belonging to the account used to make the request -func (c *ApiService) FetchOutgoingCallerId(Sid string, params *FetchOutgoingCallerIdParams) (*ApiV2010OutgoingCallerId, error) { +func (c *ApiService) FetchOutgoingCallerId( + Sid string, + params *FetchOutgoingCallerIdParams, +) (*ApiV2010OutgoingCallerId, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -225,7 +228,10 @@ func (params *ListOutgoingCallerIdParams) SetLimit(Limit int) *ListOutgoingCalle } // Retrieve a single page of OutgoingCallerId records from the API. Request is executed immediately. -func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pageToken, pageNumber string) (*ListOutgoingCallerIdResponse, error) { +func (c *ApiService) PageOutgoingCallerId( + params *ListOutgoingCallerIdParams, + pageToken, pageNumber string, +) (*ListOutgoingCallerIdResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" if params != nil && params.PathAccountSid != nil { @@ -307,7 +313,12 @@ func (c *ApiService) StreamOutgoingCallerId(params *ListOutgoingCallerIdParams) return recordChannel, errorChannel } -func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdResponse, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { +func (c *ApiService) streamOutgoingCallerId( + response *ListOutgoingCallerIdResponse, + params *ListOutgoingCallerIdParams, + recordChannel chan ApiV2010OutgoingCallerId, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -373,7 +384,10 @@ func (params *UpdateOutgoingCallerIdParams) SetFriendlyName(FriendlyName string) } // Updates the caller-id -func (c *ApiService) UpdateOutgoingCallerId(Sid string, params *UpdateOutgoingCallerIdParams) (*ApiV2010OutgoingCallerId, error) { +func (c *ApiService) UpdateOutgoingCallerId( + Sid string, + params *UpdateOutgoingCallerIdParams, +) (*ApiV2010OutgoingCallerId, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_queues.go b/rest/api/v2010/accounts_queues.go index 9f6c3e7b2..8ff8f8fd0 100644 --- a/rest/api/v2010/accounts_queues.go +++ b/rest/api/v2010/accounts_queues.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateQueue' @@ -253,7 +253,12 @@ func (c *ApiService) StreamQueue(params *ListQueueParams) (chan ApiV2010Queue, c return recordChannel, errorChannel } -func (c *ApiService) streamQueue(response *ListQueueResponse, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { +func (c *ApiService) streamQueue( + response *ListQueueResponse, + params *ListQueueParams, + recordChannel chan ApiV2010Queue, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_queues_members.go b/rest/api/v2010/accounts_queues_members.go index 93a3f0b24..aaf9c98f2 100644 --- a/rest/api/v2010/accounts_queues_members.go +++ b/rest/api/v2010/accounts_queues_members.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchMember' @@ -87,7 +87,11 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(QueueSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { +func (c *ApiService) PageMember( + QueueSid string, + params *ListMemberParams, + pageToken, pageNumber string, +) (*ListMemberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" if params != nil && params.PathAccountSid != nil { @@ -164,7 +168,12 @@ func (c *ApiService) StreamMember(QueueSid string, params *ListMemberParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { +func (c *ApiService) streamMember( + response *ListMemberResponse, + params *ListMemberParams, + recordChannel chan ApiV2010Member, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -236,7 +245,11 @@ func (params *UpdateMemberParams) SetMethod(Method string) *UpdateMemberParams { } // Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL -func (c *ApiService) UpdateMember(QueueSid string, CallSid string, params *UpdateMemberParams) (*ApiV2010Member, error) { +func (c *ApiService) UpdateMember( + QueueSid string, + CallSid string, + params *UpdateMemberParams, +) (*ApiV2010Member, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_recordings.go b/rest/api/v2010/accounts_recordings.go index cae717617..18e27bfde 100644 --- a/rest/api/v2010/accounts_recordings.go +++ b/rest/api/v2010/accounts_recordings.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteRecording' @@ -167,7 +167,10 @@ func (params *ListRecordingParams) SetLimit(Limit int) *ListRecordingParams { } // Retrieve a single page of Recording records from the API. Request is executed immediately. -func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageNumber string) (*ListRecordingResponse, error) { +func (c *ApiService) PageRecording( + params *ListRecordingParams, + pageToken, pageNumber string, +) (*ListRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -261,7 +264,12 @@ func (c *ApiService) StreamRecording(params *ListRecordingParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamRecording(response *ListRecordingResponse, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { +func (c *ApiService) streamRecording( + response *ListRecordingResponse, + params *ListRecordingParams, + recordChannel chan ApiV2010Recording, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_recordings_add_on_results.go b/rest/api/v2010/accounts_recordings_add_on_results.go index 69857f08e..fa08eeb6d 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results.go +++ b/rest/api/v2010/accounts_recordings_add_on_results.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteRecordingAddOnResult' @@ -35,7 +35,11 @@ func (params *DeleteRecordingAddOnResultParams) SetPathAccountSid(PathAccountSid } // Delete a result and purge all associated Payloads -func (c *ApiService) DeleteRecordingAddOnResult(ReferenceSid string, Sid string, params *DeleteRecordingAddOnResultParams) error { +func (c *ApiService) DeleteRecordingAddOnResult( + ReferenceSid string, + Sid string, + params *DeleteRecordingAddOnResultParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -70,7 +74,11 @@ func (params *FetchRecordingAddOnResultParams) SetPathAccountSid(PathAccountSid } // Fetch an instance of an AddOnResult -func (c *ApiService) FetchRecordingAddOnResult(ReferenceSid string, Sid string, params *FetchRecordingAddOnResultParams) (*ApiV2010RecordingAddOnResult, error) { +func (c *ApiService) FetchRecordingAddOnResult( + ReferenceSid string, + Sid string, + params *FetchRecordingAddOnResultParams, +) (*ApiV2010RecordingAddOnResult, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -122,7 +130,11 @@ func (params *ListRecordingAddOnResultParams) SetLimit(Limit int) *ListRecording } // Retrieve a single page of RecordingAddOnResult records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams, pageToken, pageNumber string) (*ListRecordingAddOnResultResponse, error) { +func (c *ApiService) PageRecordingAddOnResult( + ReferenceSid string, + params *ListRecordingAddOnResultParams, + pageToken, pageNumber string, +) (*ListRecordingAddOnResultResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" if params != nil && params.PathAccountSid != nil { @@ -162,7 +174,10 @@ func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListR } // Lists RecordingAddOnResult records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams) ([]ApiV2010RecordingAddOnResult, error) { +func (c *ApiService) ListRecordingAddOnResult( + ReferenceSid string, + params *ListRecordingAddOnResultParams, +) ([]ApiV2010RecordingAddOnResult, error) { response, errors := c.StreamRecordingAddOnResult(ReferenceSid, params) records := make([]ApiV2010RecordingAddOnResult, 0) @@ -178,7 +193,10 @@ func (c *ApiService) ListRecordingAddOnResult(ReferenceSid string, params *ListR } // Streams RecordingAddOnResult records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams) (chan ApiV2010RecordingAddOnResult, chan error) { +func (c *ApiService) StreamRecordingAddOnResult( + ReferenceSid string, + params *ListRecordingAddOnResultParams, +) (chan ApiV2010RecordingAddOnResult, chan error) { if params == nil { params = &ListRecordingAddOnResultParams{} } @@ -199,7 +217,12 @@ func (c *ApiService) StreamRecordingAddOnResult(ReferenceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResultResponse, params *ListRecordingAddOnResultParams, recordChannel chan ApiV2010RecordingAddOnResult, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResult( + response *ListRecordingAddOnResultResponse, + params *ListRecordingAddOnResultParams, + recordChannel chan ApiV2010RecordingAddOnResult, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 e9738d49a..606f8a962 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results_payloads.go +++ b/rest/api/v2010/accounts_recordings_add_on_results_payloads.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteRecordingAddOnResultPayload' @@ -35,7 +35,12 @@ func (params *DeleteRecordingAddOnResultPayloadParams) SetPathAccountSid(PathAcc } // Delete a payload from the result along with all associated Data -func (c *ApiService) DeleteRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, Sid string, params *DeleteRecordingAddOnResultPayloadParams) error { +func (c *ApiService) DeleteRecordingAddOnResultPayload( + ReferenceSid string, + AddOnResultSid string, + Sid string, + params *DeleteRecordingAddOnResultPayloadParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -71,7 +76,12 @@ func (params *FetchRecordingAddOnResultPayloadParams) SetPathAccountSid(PathAcco } // Fetch an instance of a result payload -func (c *ApiService) FetchRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, Sid string, params *FetchRecordingAddOnResultPayloadParams) (*ApiV2010RecordingAddOnResultPayload, error) { +func (c *ApiService) FetchRecordingAddOnResultPayload( + ReferenceSid string, + AddOnResultSid string, + Sid string, + params *FetchRecordingAddOnResultPayloadParams, +) (*ApiV2010RecordingAddOnResultPayload, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -124,7 +134,12 @@ func (params *ListRecordingAddOnResultPayloadParams) SetLimit(Limit int) *ListRe } // Retrieve a single page of RecordingAddOnResultPayload records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams, pageToken, pageNumber string) (*ListRecordingAddOnResultPayloadResponse, error) { +func (c *ApiService) PageRecordingAddOnResultPayload( + ReferenceSid string, + AddOnResultSid string, + params *ListRecordingAddOnResultPayloadParams, + pageToken, pageNumber string, +) (*ListRecordingAddOnResultPayloadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" if params != nil && params.PathAccountSid != nil { @@ -165,7 +180,11 @@ func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnR } // Lists RecordingAddOnResultPayload records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams) ([]ApiV2010RecordingAddOnResultPayload, error) { +func (c *ApiService) ListRecordingAddOnResultPayload( + ReferenceSid string, + AddOnResultSid string, + params *ListRecordingAddOnResultPayloadParams, +) ([]ApiV2010RecordingAddOnResultPayload, error) { response, errors := c.StreamRecordingAddOnResultPayload(ReferenceSid, AddOnResultSid, params) records := make([]ApiV2010RecordingAddOnResultPayload, 0) @@ -181,7 +200,11 @@ func (c *ApiService) ListRecordingAddOnResultPayload(ReferenceSid string, AddOnR } // Streams RecordingAddOnResultPayload records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (chan ApiV2010RecordingAddOnResultPayload, chan error) { +func (c *ApiService) StreamRecordingAddOnResultPayload( + ReferenceSid string, + AddOnResultSid string, + params *ListRecordingAddOnResultPayloadParams, +) (chan ApiV2010RecordingAddOnResultPayload, chan error) { if params == nil { params = &ListRecordingAddOnResultPayloadParams{} } @@ -202,7 +225,12 @@ func (c *ApiService) StreamRecordingAddOnResultPayload(ReferenceSid string, AddO return recordChannel, errorChannel } -func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAddOnResultPayloadResponse, params *ListRecordingAddOnResultPayloadParams, recordChannel chan ApiV2010RecordingAddOnResultPayload, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResultPayload( + response *ListRecordingAddOnResultPayloadResponse, + params *ListRecordingAddOnResultPayloadParams, + recordChannel chan ApiV2010RecordingAddOnResultPayload, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_recordings_transcriptions.go b/rest/api/v2010/accounts_recordings_transcriptions.go index c1ca8d02e..cb811f78e 100644 --- a/rest/api/v2010/accounts_recordings_transcriptions.go +++ b/rest/api/v2010/accounts_recordings_transcriptions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteRecordingTranscription' @@ -35,7 +35,11 @@ func (params *DeleteRecordingTranscriptionParams) SetPathAccountSid(PathAccountS } // -func (c *ApiService) DeleteRecordingTranscription(RecordingSid string, Sid string, params *DeleteRecordingTranscriptionParams) error { +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 { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -70,7 +74,11 @@ func (params *FetchRecordingTranscriptionParams) SetPathAccountSid(PathAccountSi } // -func (c *ApiService) FetchRecordingTranscription(RecordingSid string, Sid string, params *FetchRecordingTranscriptionParams) (*ApiV2010RecordingTranscription, error) { +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 { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -122,7 +130,11 @@ func (params *ListRecordingTranscriptionParams) SetLimit(Limit int) *ListRecordi } // Retrieve a single page of RecordingTranscription records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams, pageToken, pageNumber string) (*ListRecordingTranscriptionResponse, error) { +func (c *ApiService) PageRecordingTranscription( + RecordingSid string, + params *ListRecordingTranscriptionParams, + pageToken, pageNumber string, +) (*ListRecordingTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" if params != nil && params.PathAccountSid != nil { @@ -162,7 +174,10 @@ func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *Lis } // Lists RecordingTranscription records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams) ([]ApiV2010RecordingTranscription, error) { +func (c *ApiService) ListRecordingTranscription( + RecordingSid string, + params *ListRecordingTranscriptionParams, +) ([]ApiV2010RecordingTranscription, error) { response, errors := c.StreamRecordingTranscription(RecordingSid, params) records := make([]ApiV2010RecordingTranscription, 0) @@ -178,7 +193,10 @@ func (c *ApiService) ListRecordingTranscription(RecordingSid string, params *Lis } // Streams RecordingTranscription records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams) (chan ApiV2010RecordingTranscription, chan error) { +func (c *ApiService) StreamRecordingTranscription( + RecordingSid string, + params *ListRecordingTranscriptionParams, +) (chan ApiV2010RecordingTranscription, chan error) { if params == nil { params = &ListRecordingTranscriptionParams{} } @@ -199,7 +217,12 @@ func (c *ApiService) StreamRecordingTranscription(RecordingSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscriptionResponse, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { +func (c *ApiService) streamRecordingTranscription( + response *ListRecordingTranscriptionResponse, + params *ListRecordingTranscriptionParams, + recordChannel chan ApiV2010RecordingTranscription, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_signing_keys.go b/rest/api/v2010/accounts_signing_keys.go index dd1b18853..42074a1cc 100644 --- a/rest/api/v2010/accounts_signing_keys.go +++ b/rest/api/v2010/accounts_signing_keys.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateNewSigningKey' @@ -168,7 +168,10 @@ func (params *ListSigningKeyParams) SetLimit(Limit int) *ListSigningKeyParams { } // Retrieve a single page of SigningKey records from the API. Request is executed immediately. -func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pageNumber string) (*ListSigningKeyResponse, error) { +func (c *ApiService) PageSigningKey( + params *ListSigningKeyParams, + pageToken, pageNumber string, +) (*ListSigningKeyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" if params != nil && params.PathAccountSid != nil { @@ -244,7 +247,12 @@ func (c *ApiService) StreamSigningKey(params *ListSigningKeyParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { +func (c *ApiService) streamSigningKey( + response *ListSigningKeyResponse, + params *ListSigningKeyParams, + recordChannel chan ApiV2010SigningKey, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_sip_credential_lists.go b/rest/api/v2010/accounts_sip_credential_lists.go index 17a523bc0..336701d10 100644 --- a/rest/api/v2010/accounts_sip_credential_lists.go +++ b/rest/api/v2010/accounts_sip_credential_lists.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipCredentialList' @@ -117,7 +117,10 @@ func (params *FetchSipCredentialListParams) SetPathAccountSid(PathAccountSid str } // Get a Credential List -func (c *ApiService) FetchSipCredentialList(Sid string, params *FetchSipCredentialListParams) (*ApiV2010SipCredentialList, error) { +func (c *ApiService) FetchSipCredentialList( + Sid string, + params *FetchSipCredentialListParams, +) (*ApiV2010SipCredentialList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -168,7 +171,10 @@ func (params *ListSipCredentialListParams) SetLimit(Limit int) *ListSipCredentia } // Retrieve a single page of SipCredentialList records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredentialList(params *ListSipCredentialListParams, pageToken, pageNumber string) (*ListSipCredentialListResponse, error) { +func (c *ApiService) PageSipCredentialList( + params *ListSipCredentialListParams, + pageToken, pageNumber string, +) (*ListSipCredentialListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" if params != nil && params.PathAccountSid != nil { @@ -244,7 +250,12 @@ func (c *ApiService) StreamSipCredentialList(params *ListSipCredentialListParams return recordChannel, errorChannel } -func (c *ApiService) streamSipCredentialList(response *ListSipCredentialListResponse, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { +func (c *ApiService) streamSipCredentialList( + response *ListSipCredentialListResponse, + params *ListSipCredentialListParams, + recordChannel chan ApiV2010SipCredentialList, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -310,7 +321,10 @@ func (params *UpdateSipCredentialListParams) SetFriendlyName(FriendlyName string } // Update a Credential List -func (c *ApiService) UpdateSipCredentialList(Sid string, params *UpdateSipCredentialListParams) (*ApiV2010SipCredentialList, error) { +func (c *ApiService) UpdateSipCredentialList( + Sid string, + params *UpdateSipCredentialListParams, +) (*ApiV2010SipCredentialList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_sip_credential_lists_credentials.go b/rest/api/v2010/accounts_sip_credential_lists_credentials.go index e82f254f2..828fee01c 100644 --- a/rest/api/v2010/accounts_sip_credential_lists_credentials.go +++ b/rest/api/v2010/accounts_sip_credential_lists_credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipCredential' @@ -47,7 +47,10 @@ func (params *CreateSipCredentialParams) SetPassword(Password string) *CreateSip } // Create a new credential resource. -func (c *ApiService) CreateSipCredential(CredentialListSid string, params *CreateSipCredentialParams) (*ApiV2010SipCredential, error) { +func (c *ApiService) CreateSipCredential( + CredentialListSid string, + params *CreateSipCredentialParams, +) (*ApiV2010SipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -93,7 +96,11 @@ func (params *DeleteSipCredentialParams) SetPathAccountSid(PathAccountSid string } // Delete a credential resource. -func (c *ApiService) DeleteSipCredential(CredentialListSid string, Sid string, params *DeleteSipCredentialParams) error { +func (c *ApiService) DeleteSipCredential( + CredentialListSid string, + Sid string, + params *DeleteSipCredentialParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -128,7 +135,11 @@ func (params *FetchSipCredentialParams) SetPathAccountSid(PathAccountSid string) } // Fetch a single credential. -func (c *ApiService) FetchSipCredential(CredentialListSid string, Sid string, params *FetchSipCredentialParams) (*ApiV2010SipCredential, error) { +func (c *ApiService) FetchSipCredential( + CredentialListSid string, + Sid string, + params *FetchSipCredentialParams, +) (*ApiV2010SipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -180,7 +191,11 @@ func (params *ListSipCredentialParams) SetLimit(Limit int) *ListSipCredentialPar } // Retrieve a single page of SipCredential records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSipCredentialParams, pageToken, pageNumber string) (*ListSipCredentialResponse, error) { +func (c *ApiService) PageSipCredential( + CredentialListSid string, + params *ListSipCredentialParams, + pageToken, pageNumber string, +) (*ListSipCredentialResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" if params != nil && params.PathAccountSid != nil { @@ -220,7 +235,10 @@ func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSip } // Lists SipCredential records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipCredential(CredentialListSid string, params *ListSipCredentialParams) ([]ApiV2010SipCredential, error) { +func (c *ApiService) ListSipCredential( + CredentialListSid string, + params *ListSipCredentialParams, +) ([]ApiV2010SipCredential, error) { response, errors := c.StreamSipCredential(CredentialListSid, params) records := make([]ApiV2010SipCredential, 0) @@ -236,7 +254,10 @@ func (c *ApiService) ListSipCredential(CredentialListSid string, params *ListSip } // Streams SipCredential records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipCredential(CredentialListSid string, params *ListSipCredentialParams) (chan ApiV2010SipCredential, chan error) { +func (c *ApiService) StreamSipCredential( + CredentialListSid string, + params *ListSipCredentialParams, +) (chan ApiV2010SipCredential, chan error) { if params == nil { params = &ListSipCredentialParams{} } @@ -257,7 +278,12 @@ func (c *ApiService) StreamSipCredential(CredentialListSid string, params *ListS return recordChannel, errorChannel } -func (c *ApiService) streamSipCredential(response *ListSipCredentialResponse, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { +func (c *ApiService) streamSipCredential( + response *ListSipCredentialResponse, + params *ListSipCredentialParams, + recordChannel chan ApiV2010SipCredential, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -323,7 +349,11 @@ func (params *UpdateSipCredentialParams) SetPassword(Password string) *UpdateSip } // Update a credential resource. -func (c *ApiService) UpdateSipCredential(CredentialListSid string, Sid string, params *UpdateSipCredentialParams) (*ApiV2010SipCredential, error) { +func (c *ApiService) UpdateSipCredential( + CredentialListSid string, + Sid string, + params *UpdateSipCredentialParams, +) (*ApiV2010SipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_sip_domains.go b/rest/api/v2010/accounts_sip_domains.go index e0868c6f0..fed93b46a 100644 --- a/rest/api/v2010/accounts_sip_domains.go +++ b/rest/api/v2010/accounts_sip_domains.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipDomain' @@ -276,7 +276,10 @@ func (params *ListSipDomainParams) SetLimit(Limit int) *ListSipDomainParams { } // Retrieve a single page of SipDomain records from the API. Request is executed immediately. -func (c *ApiService) PageSipDomain(params *ListSipDomainParams, pageToken, pageNumber string) (*ListSipDomainResponse, error) { +func (c *ApiService) PageSipDomain( + params *ListSipDomainParams, + pageToken, pageNumber string, +) (*ListSipDomainResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" if params != nil && params.PathAccountSid != nil { @@ -352,7 +355,12 @@ func (c *ApiService) StreamSipDomain(params *ListSipDomainParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamSipDomain(response *ListSipDomainResponse, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { +func (c *ApiService) streamSipDomain( + response *ListSipDomainResponse, + params *ListSipDomainParams, + recordChannel chan ApiV2010SipDomain, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 f3d34690e..066c9ba55 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipAuthCallsCredentialListMapping' @@ -41,7 +41,10 @@ func (params *CreateSipAuthCallsCredentialListMappingParams) SetCredentialListSi } // Create a new credential list mapping resource -func (c *ApiService) CreateSipAuthCallsCredentialListMapping(DomainSid string, params *CreateSipAuthCallsCredentialListMappingParams) (*ApiV2010SipAuthCallsCredentialListMapping, error) { +func (c *ApiService) CreateSipAuthCallsCredentialListMapping( + DomainSid string, + params *CreateSipAuthCallsCredentialListMappingParams, +) (*ApiV2010SipAuthCallsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteSipAuthCallsCredentialListMappingParams) SetPathAccountSid(P } // Delete a credential list mapping from the requested domain -func (c *ApiService) DeleteSipAuthCallsCredentialListMapping(DomainSid string, Sid string, params *DeleteSipAuthCallsCredentialListMappingParams) error { +func (c *ApiService) DeleteSipAuthCallsCredentialListMapping( + DomainSid string, + Sid string, + params *DeleteSipAuthCallsCredentialListMappingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchSipAuthCallsCredentialListMappingParams) SetPathAccountSid(Pa } // Fetch a specific instance of a credential list mapping -func (c *ApiService) FetchSipAuthCallsCredentialListMapping(DomainSid string, Sid string, params *FetchSipAuthCallsCredentialListMappingParams) (*ApiV2010SipAuthCallsCredentialListMapping, error) { +func (c *ApiService) FetchSipAuthCallsCredentialListMapping( + DomainSid string, + Sid string, + params *FetchSipAuthCallsCredentialListMappingParams, +) (*ApiV2010SipAuthCallsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListSipAuthCallsCredentialListMappingParams) SetLimit(Limit int) * } // Retrieve a single page of SipAuthCallsCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsCredentialListMappingResponse, error) { +func (c *ApiService) PageSipAuthCallsCredentialListMapping( + DomainSid string, + params *ListSipAuthCallsCredentialListMappingParams, + pageToken, pageNumber string, +) (*ListSipAuthCallsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, par } // Lists SipAuthCallsCredentialListMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams) ([]ApiV2010SipAuthCallsCredentialListMapping, error) { +func (c *ApiService) ListSipAuthCallsCredentialListMapping( + DomainSid string, + params *ListSipAuthCallsCredentialListMappingParams, +) ([]ApiV2010SipAuthCallsCredentialListMapping, error) { response, errors := c.StreamSipAuthCallsCredentialListMapping(DomainSid, params) records := make([]ApiV2010SipAuthCallsCredentialListMapping, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListSipAuthCallsCredentialListMapping(DomainSid string, par } // Streams SipAuthCallsCredentialListMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams) (chan ApiV2010SipAuthCallsCredentialListMapping, chan error) { +func (c *ApiService) StreamSipAuthCallsCredentialListMapping( + DomainSid string, + params *ListSipAuthCallsCredentialListMappingParams, +) (chan ApiV2010SipAuthCallsCredentialListMapping, chan error) { if params == nil { params = &ListSipAuthCallsCredentialListMappingParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamSipAuthCallsCredentialListMapping(DomainSid string, p return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAuthCallsCredentialListMappingResponse, params *ListSipAuthCallsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsCredentialListMapping( + response *ListSipAuthCallsCredentialListMappingResponse, + params *ListSipAuthCallsCredentialListMappingParams, + recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 86daa24f0..779ce0601 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipAuthCallsIpAccessControlListMapping' @@ -41,7 +41,10 @@ func (params *CreateSipAuthCallsIpAccessControlListMappingParams) SetIpAccessCon } // Create a new IP Access Control List mapping -func (c *ApiService) CreateSipAuthCallsIpAccessControlListMapping(DomainSid string, params *CreateSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010SipAuthCallsIpAccessControlListMapping, error) { +func (c *ApiService) CreateSipAuthCallsIpAccessControlListMapping( + DomainSid string, + params *CreateSipAuthCallsIpAccessControlListMappingParams, +) (*ApiV2010SipAuthCallsIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteSipAuthCallsIpAccessControlListMappingParams) SetPathAccount } // Delete an IP Access Control List mapping from the requested domain -func (c *ApiService) DeleteSipAuthCallsIpAccessControlListMapping(DomainSid string, Sid string, params *DeleteSipAuthCallsIpAccessControlListMappingParams) error { +func (c *ApiService) DeleteSipAuthCallsIpAccessControlListMapping( + DomainSid string, + Sid string, + params *DeleteSipAuthCallsIpAccessControlListMappingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchSipAuthCallsIpAccessControlListMappingParams) SetPathAccountS } // Fetch a specific instance of an IP Access Control List mapping -func (c *ApiService) FetchSipAuthCallsIpAccessControlListMapping(DomainSid string, Sid string, params *FetchSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010SipAuthCallsIpAccessControlListMapping, error) { +func (c *ApiService) FetchSipAuthCallsIpAccessControlListMapping( + DomainSid string, + Sid string, + params *FetchSipAuthCallsIpAccessControlListMappingParams, +) (*ApiV2010SipAuthCallsIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetLimit(Limit i } // Retrieve a single page of SipAuthCallsIpAccessControlListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsIpAccessControlListMappingResponse, error) { +func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping( + DomainSid string, + params *ListSipAuthCallsIpAccessControlListMappingParams, + pageToken, pageNumber string, +) (*ListSipAuthCallsIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string } // Lists SipAuthCallsIpAccessControlListMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) ([]ApiV2010SipAuthCallsIpAccessControlListMapping, error) { +func (c *ApiService) ListSipAuthCallsIpAccessControlListMapping( + DomainSid string, + params *ListSipAuthCallsIpAccessControlListMappingParams, +) ([]ApiV2010SipAuthCallsIpAccessControlListMapping, error) { response, errors := c.StreamSipAuthCallsIpAccessControlListMapping(DomainSid, params) records := make([]ApiV2010SipAuthCallsIpAccessControlListMapping, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListSipAuthCallsIpAccessControlListMapping(DomainSid string } // Streams SipAuthCallsIpAccessControlListMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (chan ApiV2010SipAuthCallsIpAccessControlListMapping, chan error) { +func (c *ApiService) StreamSipAuthCallsIpAccessControlListMapping( + DomainSid string, + params *ListSipAuthCallsIpAccessControlListMappingParams, +) (chan ApiV2010SipAuthCallsIpAccessControlListMapping, chan error) { if params == nil { params = &ListSipAuthCallsIpAccessControlListMappingParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamSipAuthCallsIpAccessControlListMapping(DomainSid stri return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *ListSipAuthCallsIpAccessControlListMappingResponse, params *ListSipAuthCallsIpAccessControlListMappingParams, recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping( + response *ListSipAuthCallsIpAccessControlListMappingResponse, + params *ListSipAuthCallsIpAccessControlListMappingParams, + recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 431e5099b..f586b350f 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipAuthRegistrationsCredentialListMapping' @@ -41,7 +41,10 @@ func (params *CreateSipAuthRegistrationsCredentialListMappingParams) SetCredenti } // Create a new credential list mapping resource -func (c *ApiService) CreateSipAuthRegistrationsCredentialListMapping(DomainSid string, params *CreateSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010SipAuthRegistrationsCredentialListMapping, error) { +func (c *ApiService) CreateSipAuthRegistrationsCredentialListMapping( + DomainSid string, + params *CreateSipAuthRegistrationsCredentialListMappingParams, +) (*ApiV2010SipAuthRegistrationsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteSipAuthRegistrationsCredentialListMappingParams) SetPathAcco } // Delete a credential list mapping from the requested domain -func (c *ApiService) DeleteSipAuthRegistrationsCredentialListMapping(DomainSid string, Sid string, params *DeleteSipAuthRegistrationsCredentialListMappingParams) error { +func (c *ApiService) DeleteSipAuthRegistrationsCredentialListMapping( + DomainSid string, + Sid string, + params *DeleteSipAuthRegistrationsCredentialListMappingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchSipAuthRegistrationsCredentialListMappingParams) SetPathAccou } // Fetch a specific instance of a credential list mapping -func (c *ApiService) FetchSipAuthRegistrationsCredentialListMapping(DomainSid string, Sid string, params *FetchSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010SipAuthRegistrationsCredentialListMapping, error) { +func (c *ApiService) FetchSipAuthRegistrationsCredentialListMapping( + DomainSid string, + Sid string, + params *FetchSipAuthRegistrationsCredentialListMappingParams, +) (*ApiV2010SipAuthRegistrationsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetLimit(Limi } // Retrieve a single page of SipAuthRegistrationsCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthRegistrationsCredentialListMappingResponse, error) { +func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping( + DomainSid string, + params *ListSipAuthRegistrationsCredentialListMappingParams, + pageToken, pageNumber string, +) (*ListSipAuthRegistrationsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid str } // Lists SipAuthRegistrationsCredentialListMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) ([]ApiV2010SipAuthRegistrationsCredentialListMapping, error) { +func (c *ApiService) ListSipAuthRegistrationsCredentialListMapping( + DomainSid string, + params *ListSipAuthRegistrationsCredentialListMappingParams, +) ([]ApiV2010SipAuthRegistrationsCredentialListMapping, error) { response, errors := c.StreamSipAuthRegistrationsCredentialListMapping(DomainSid, params) records := make([]ApiV2010SipAuthRegistrationsCredentialListMapping, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListSipAuthRegistrationsCredentialListMapping(DomainSid str } // Streams SipAuthRegistrationsCredentialListMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (chan ApiV2010SipAuthRegistrationsCredentialListMapping, chan error) { +func (c *ApiService) StreamSipAuthRegistrationsCredentialListMapping( + DomainSid string, + params *ListSipAuthRegistrationsCredentialListMappingParams, +) (chan ApiV2010SipAuthRegistrationsCredentialListMapping, chan error) { if params == nil { params = &ListSipAuthRegistrationsCredentialListMappingParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamSipAuthRegistrationsCredentialListMapping(DomainSid s return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *ListSipAuthRegistrationsCredentialListMappingResponse, params *ListSipAuthRegistrationsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping( + response *ListSipAuthRegistrationsCredentialListMappingResponse, + params *ListSipAuthRegistrationsCredentialListMappingParams, + recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +289,11 @@ func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *L } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthRegistrationsCredentialListMappingResponse) + record, err := client.GetNext( + c.baseURL, + response, + c.getNextListSipAuthRegistrationsCredentialListMappingResponse, + ) if err != nil { errorChannel <- err break 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 09ac9162e..7469c8765 100644 --- a/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipCredentialListMapping' @@ -41,7 +41,10 @@ func (params *CreateSipCredentialListMappingParams) SetCredentialListSid(Credent } // Create a CredentialListMapping resource for an account. -func (c *ApiService) CreateSipCredentialListMapping(DomainSid string, params *CreateSipCredentialListMappingParams) (*ApiV2010SipCredentialListMapping, error) { +func (c *ApiService) CreateSipCredentialListMapping( + DomainSid string, + params *CreateSipCredentialListMappingParams, +) (*ApiV2010SipCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteSipCredentialListMappingParams) SetPathAccountSid(PathAccoun } // Delete a CredentialListMapping resource from an account. -func (c *ApiService) DeleteSipCredentialListMapping(DomainSid string, Sid string, params *DeleteSipCredentialListMappingParams) error { +func (c *ApiService) DeleteSipCredentialListMapping( + DomainSid string, + Sid string, + params *DeleteSipCredentialListMappingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchSipCredentialListMappingParams) SetPathAccountSid(PathAccount } // Fetch a single CredentialListMapping resource from an account. -func (c *ApiService) FetchSipCredentialListMapping(DomainSid string, Sid string, params *FetchSipCredentialListMappingParams) (*ApiV2010SipCredentialListMapping, error) { +func (c *ApiService) FetchSipCredentialListMapping( + DomainSid string, + Sid string, + params *FetchSipCredentialListMappingParams, +) (*ApiV2010SipCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListSipCredentialListMappingParams) SetLimit(Limit int) *ListSipCr } // Retrieve a single page of SipCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams, pageToken, pageNumber string) (*ListSipCredentialListMappingResponse, error) { +func (c *ApiService) PageSipCredentialListMapping( + DomainSid string, + params *ListSipCredentialListMappingParams, + pageToken, pageNumber string, +) (*ListSipCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *List } // Lists SipCredentialListMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams) ([]ApiV2010SipCredentialListMapping, error) { +func (c *ApiService) ListSipCredentialListMapping( + DomainSid string, + params *ListSipCredentialListMappingParams, +) ([]ApiV2010SipCredentialListMapping, error) { response, errors := c.StreamSipCredentialListMapping(DomainSid, params) records := make([]ApiV2010SipCredentialListMapping, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListSipCredentialListMapping(DomainSid string, params *List } // Streams SipCredentialListMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams) (chan ApiV2010SipCredentialListMapping, chan error) { +func (c *ApiService) StreamSipCredentialListMapping( + DomainSid string, + params *ListSipCredentialListMappingParams, +) (chan ApiV2010SipCredentialListMapping, chan error) { if params == nil { params = &ListSipCredentialListMappingParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamSipCredentialListMapping(DomainSid string, params *Li return recordChannel, errorChannel } -func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialListMappingResponse, params *ListSipCredentialListMappingParams, recordChannel chan ApiV2010SipCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipCredentialListMapping( + response *ListSipCredentialListMappingResponse, + params *ListSipCredentialListMappingParams, + recordChannel chan ApiV2010SipCredentialListMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 e42334eb7..44dcfa9de 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipIpAccessControlListMapping' @@ -41,7 +41,10 @@ func (params *CreateSipIpAccessControlListMappingParams) SetIpAccessControlListS } // Create a new IpAccessControlListMapping resource. -func (c *ApiService) CreateSipIpAccessControlListMapping(DomainSid string, params *CreateSipIpAccessControlListMappingParams) (*ApiV2010SipIpAccessControlListMapping, error) { +func (c *ApiService) CreateSipIpAccessControlListMapping( + DomainSid string, + params *CreateSipIpAccessControlListMappingParams, +) (*ApiV2010SipIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -84,7 +87,11 @@ func (params *DeleteSipIpAccessControlListMappingParams) SetPathAccountSid(PathA } // Delete an IpAccessControlListMapping resource. -func (c *ApiService) DeleteSipIpAccessControlListMapping(DomainSid string, Sid string, params *DeleteSipIpAccessControlListMappingParams) error { +func (c *ApiService) DeleteSipIpAccessControlListMapping( + DomainSid string, + Sid string, + params *DeleteSipIpAccessControlListMappingParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -119,7 +126,11 @@ func (params *FetchSipIpAccessControlListMappingParams) SetPathAccountSid(PathAc } // Fetch an IpAccessControlListMapping resource. -func (c *ApiService) FetchSipIpAccessControlListMapping(DomainSid string, Sid string, params *FetchSipIpAccessControlListMappingParams) (*ApiV2010SipIpAccessControlListMapping, error) { +func (c *ApiService) FetchSipIpAccessControlListMapping( + DomainSid string, + Sid string, + params *FetchSipIpAccessControlListMappingParams, +) (*ApiV2010SipIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -171,7 +182,11 @@ func (params *ListSipIpAccessControlListMappingParams) SetLimit(Limit int) *List } // Retrieve a single page of SipIpAccessControlListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipIpAccessControlListMappingResponse, error) { +func (c *ApiService) PageSipIpAccessControlListMapping( + DomainSid string, + params *ListSipIpAccessControlListMappingParams, + pageToken, pageNumber string, +) (*ListSipIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +226,10 @@ func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params } // Lists SipIpAccessControlListMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams) ([]ApiV2010SipIpAccessControlListMapping, error) { +func (c *ApiService) ListSipIpAccessControlListMapping( + DomainSid string, + params *ListSipIpAccessControlListMappingParams, +) ([]ApiV2010SipIpAccessControlListMapping, error) { response, errors := c.StreamSipIpAccessControlListMapping(DomainSid, params) records := make([]ApiV2010SipIpAccessControlListMapping, 0) @@ -227,7 +245,10 @@ func (c *ApiService) ListSipIpAccessControlListMapping(DomainSid string, params } // Streams SipIpAccessControlListMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams) (chan ApiV2010SipIpAccessControlListMapping, chan error) { +func (c *ApiService) StreamSipIpAccessControlListMapping( + DomainSid string, + params *ListSipIpAccessControlListMappingParams, +) (chan ApiV2010SipIpAccessControlListMapping, chan error) { if params == nil { params = &ListSipIpAccessControlListMappingParams{} } @@ -248,7 +269,12 @@ func (c *ApiService) StreamSipIpAccessControlListMapping(DomainSid string, param return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAccessControlListMappingResponse, params *ListSipIpAccessControlListMappingParams, recordChannel chan ApiV2010SipIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlListMapping( + response *ListSipIpAccessControlListMappingResponse, + params *ListSipIpAccessControlListMappingParams, + recordChannel chan ApiV2010SipIpAccessControlListMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_sipip_access_control_lists.go b/rest/api/v2010/accounts_sipip_access_control_lists.go index 390bcfa25..d16dd24ca 100644 --- a/rest/api/v2010/accounts_sipip_access_control_lists.go +++ b/rest/api/v2010/accounts_sipip_access_control_lists.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipIpAccessControlList' @@ -117,7 +117,10 @@ func (params *FetchSipIpAccessControlListParams) SetPathAccountSid(PathAccountSi } // Fetch a specific instance of an IpAccessControlList -func (c *ApiService) FetchSipIpAccessControlList(Sid string, params *FetchSipIpAccessControlListParams) (*ApiV2010SipIpAccessControlList, error) { +func (c *ApiService) FetchSipIpAccessControlList( + Sid string, + params *FetchSipIpAccessControlListParams, +) (*ApiV2010SipIpAccessControlList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -168,7 +171,10 @@ func (params *ListSipIpAccessControlListParams) SetLimit(Limit int) *ListSipIpAc } // Retrieve a single page of SipIpAccessControlList records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAccessControlList(params *ListSipIpAccessControlListParams, pageToken, pageNumber string) (*ListSipIpAccessControlListResponse, error) { +func (c *ApiService) PageSipIpAccessControlList( + params *ListSipIpAccessControlListParams, + pageToken, pageNumber string, +) (*ListSipIpAccessControlListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" if params != nil && params.PathAccountSid != nil { @@ -244,7 +250,12 @@ func (c *ApiService) StreamSipIpAccessControlList(params *ListSipIpAccessControl return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessControlListResponse, params *ListSipIpAccessControlListParams, recordChannel chan ApiV2010SipIpAccessControlList, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlList( + response *ListSipIpAccessControlListResponse, + params *ListSipIpAccessControlListParams, + recordChannel chan ApiV2010SipIpAccessControlList, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -310,7 +321,10 @@ func (params *UpdateSipIpAccessControlListParams) SetFriendlyName(FriendlyName s } // Rename an IpAccessControlList -func (c *ApiService) UpdateSipIpAccessControlList(Sid string, params *UpdateSipIpAccessControlListParams) (*ApiV2010SipIpAccessControlList, error) { +func (c *ApiService) UpdateSipIpAccessControlList( + Sid string, + params *UpdateSipIpAccessControlListParams, +) (*ApiV2010SipIpAccessControlList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) 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 0d92df5e6..1a4c250b6 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSipIpAddress' @@ -53,7 +53,10 @@ func (params *CreateSipIpAddressParams) SetCidrPrefixLength(CidrPrefixLength int } // Create a new IpAddress resource. -func (c *ApiService) CreateSipIpAddress(IpAccessControlListSid string, params *CreateSipIpAddressParams) (*ApiV2010SipIpAddress, error) { +func (c *ApiService) CreateSipIpAddress( + IpAccessControlListSid string, + params *CreateSipIpAddressParams, +) (*ApiV2010SipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -102,7 +105,11 @@ func (params *DeleteSipIpAddressParams) SetPathAccountSid(PathAccountSid string) } // Delete an IpAddress resource. -func (c *ApiService) DeleteSipIpAddress(IpAccessControlListSid string, Sid string, params *DeleteSipIpAddressParams) error { +func (c *ApiService) DeleteSipIpAddress( + IpAccessControlListSid string, + Sid string, + params *DeleteSipIpAddressParams, +) error { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -137,7 +144,11 @@ func (params *FetchSipIpAddressParams) SetPathAccountSid(PathAccountSid string) } // Read one IpAddress resource. -func (c *ApiService) FetchSipIpAddress(IpAccessControlListSid string, Sid string, params *FetchSipIpAddressParams) (*ApiV2010SipIpAddress, error) { +func (c *ApiService) FetchSipIpAddress( + IpAccessControlListSid string, + Sid string, + params *FetchSipIpAddressParams, +) (*ApiV2010SipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) @@ -189,7 +200,11 @@ func (params *ListSipIpAddressParams) SetLimit(Limit int) *ListSipIpAddressParam } // Retrieve a single page of SipIpAddress records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams, pageToken, pageNumber string) (*ListSipIpAddressResponse, error) { +func (c *ApiService) PageSipIpAddress( + IpAccessControlListSid string, + params *ListSipIpAddressParams, + pageToken, pageNumber string, +) (*ListSipIpAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" if params != nil && params.PathAccountSid != nil { @@ -229,7 +244,10 @@ func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *Lis } // Lists SipIpAddress records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams) ([]ApiV2010SipIpAddress, error) { +func (c *ApiService) ListSipIpAddress( + IpAccessControlListSid string, + params *ListSipIpAddressParams, +) ([]ApiV2010SipIpAddress, error) { response, errors := c.StreamSipIpAddress(IpAccessControlListSid, params) records := make([]ApiV2010SipIpAddress, 0) @@ -245,7 +263,10 @@ func (c *ApiService) ListSipIpAddress(IpAccessControlListSid string, params *Lis } // Streams SipIpAddress records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams) (chan ApiV2010SipIpAddress, chan error) { +func (c *ApiService) StreamSipIpAddress( + IpAccessControlListSid string, + params *ListSipIpAddressParams, +) (chan ApiV2010SipIpAddress, chan error) { if params == nil { params = &ListSipIpAddressParams{} } @@ -266,7 +287,12 @@ func (c *ApiService) StreamSipIpAddress(IpAccessControlListSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAddress(response *ListSipIpAddressResponse, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { +func (c *ApiService) streamSipIpAddress( + response *ListSipIpAddressResponse, + params *ListSipIpAddressParams, + recordChannel chan ApiV2010SipIpAddress, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -344,7 +370,11 @@ func (params *UpdateSipIpAddressParams) SetCidrPrefixLength(CidrPrefixLength int } // Update an IpAddress resource. -func (c *ApiService) UpdateSipIpAddress(IpAccessControlListSid string, Sid string, params *UpdateSipIpAddressParams) (*ApiV2010SipIpAddress, error) { +func (c *ApiService) UpdateSipIpAddress( + IpAccessControlListSid string, + Sid string, + params *UpdateSipIpAddressParams, +) (*ApiV2010SipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) diff --git a/rest/api/v2010/accounts_sms_short_codes.go b/rest/api/v2010/accounts_sms_short_codes.go index efac7d190..b4495726d 100644 --- a/rest/api/v2010/accounts_sms_short_codes.go +++ b/rest/api/v2010/accounts_sms_short_codes.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchShortCode' @@ -98,7 +98,10 @@ func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { } // Retrieve a single page of ShortCode records from the API. Request is executed immediately. -func (c *ApiService) PageShortCode(params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error) { +func (c *ApiService) PageShortCode( + params *ListShortCodeParams, + pageToken, pageNumber string, +) (*ListShortCodeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" if params != nil && params.PathAccountSid != nil { @@ -180,7 +183,12 @@ func (c *ApiService) StreamShortCode(params *ListShortCodeParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { +func (c *ApiService) streamShortCode( + response *ListShortCodeResponse, + params *ListShortCodeParams, + recordChannel chan ApiV2010ShortCode, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_transcriptions.go b/rest/api/v2010/accounts_transcriptions.go index c62183a14..5188a0691 100644 --- a/rest/api/v2010/accounts_transcriptions.go +++ b/rest/api/v2010/accounts_transcriptions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteTranscription' @@ -120,7 +120,10 @@ func (params *ListTranscriptionParams) SetLimit(Limit int) *ListTranscriptionPar } // Retrieve a single page of Transcription records from the API. Request is executed immediately. -func (c *ApiService) PageTranscription(params *ListTranscriptionParams, pageToken, pageNumber string) (*ListTranscriptionResponse, error) { +func (c *ApiService) PageTranscription( + params *ListTranscriptionParams, + pageToken, pageNumber string, +) (*ListTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" if params != nil && params.PathAccountSid != nil { @@ -196,7 +199,12 @@ func (c *ApiService) StreamTranscription(params *ListTranscriptionParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamTranscription(response *ListTranscriptionResponse, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { +func (c *ApiService) streamTranscription( + response *ListTranscriptionResponse, + params *ListTranscriptionParams, + recordChannel chan ApiV2010Transcription, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records.go b/rest/api/v2010/accounts_usage_records.go index d5ed51a3d..2f84e547e 100644 --- a/rest/api/v2010/accounts_usage_records.go +++ b/rest/api/v2010/accounts_usage_records.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecord' @@ -71,7 +71,10 @@ func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams } // Retrieve a single page of UsageRecord records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecordResponse, error) { +func (c *ApiService) PageUsageRecord( + params *ListUsageRecordParams, + pageToken, pageNumber string, +) (*ListUsageRecordResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecord(params *ListUsageRecordParams) (chan ApiV return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { +func (c *ApiService) streamUsageRecord( + response *ListUsageRecordResponse, + params *ListUsageRecordParams, + recordChannel chan ApiV2010UsageRecord, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_all_time.go b/rest/api/v2010/accounts_usage_records_all_time.go index 2719f2426..d9e45317b 100644 --- a/rest/api/v2010/accounts_usage_records_all_time.go +++ b/rest/api/v2010/accounts_usage_records_all_time.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordAllTime' @@ -71,7 +71,10 @@ func (params *ListUsageRecordAllTimeParams) SetLimit(Limit int) *ListUsageRecord } // Retrieve a single page of UsageRecordAllTime records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordAllTime(params *ListUsageRecordAllTimeParams, pageToken, pageNumber string) (*ListUsageRecordAllTimeResponse, error) { +func (c *ApiService) PageUsageRecordAllTime( + params *ListUsageRecordAllTimeParams, + pageToken, pageNumber string, +) (*ListUsageRecordAllTimeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordAllTime(params *ListUsageRecordAllTimePara return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTimeResponse, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { +func (c *ApiService) streamUsageRecordAllTime( + response *ListUsageRecordAllTimeResponse, + params *ListUsageRecordAllTimeParams, + recordChannel chan ApiV2010UsageRecordAllTime, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_daily.go b/rest/api/v2010/accounts_usage_records_daily.go index c27a64969..683d3152d 100644 --- a/rest/api/v2010/accounts_usage_records_daily.go +++ b/rest/api/v2010/accounts_usage_records_daily.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordDaily' @@ -71,7 +71,10 @@ func (params *ListUsageRecordDailyParams) SetLimit(Limit int) *ListUsageRecordDa } // Retrieve a single page of UsageRecordDaily records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordDaily(params *ListUsageRecordDailyParams, pageToken, pageNumber string) (*ListUsageRecordDailyResponse, error) { +func (c *ApiService) PageUsageRecordDaily( + params *ListUsageRecordDailyParams, + pageToken, pageNumber string, +) (*ListUsageRecordDailyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordDaily(params *ListUsageRecordDailyParams) return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDailyResponse, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { +func (c *ApiService) streamUsageRecordDaily( + response *ListUsageRecordDailyResponse, + params *ListUsageRecordDailyParams, + recordChannel chan ApiV2010UsageRecordDaily, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_last_month.go b/rest/api/v2010/accounts_usage_records_last_month.go index 23ec9b62d..abc7ecfbb 100644 --- a/rest/api/v2010/accounts_usage_records_last_month.go +++ b/rest/api/v2010/accounts_usage_records_last_month.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordLastMonth' @@ -71,7 +71,10 @@ func (params *ListUsageRecordLastMonthParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordLastMonth records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordLastMonth(params *ListUsageRecordLastMonthParams, pageToken, pageNumber string) (*ListUsageRecordLastMonthResponse, error) { +func (c *ApiService) PageUsageRecordLastMonth( + params *ListUsageRecordLastMonthParams, + pageToken, pageNumber string, +) (*ListUsageRecordLastMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordLastMonth(params *ListUsageRecordLastMonth return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMonthResponse, params *ListUsageRecordLastMonthParams, recordChannel chan ApiV2010UsageRecordLastMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordLastMonth( + response *ListUsageRecordLastMonthResponse, + params *ListUsageRecordLastMonthParams, + recordChannel chan ApiV2010UsageRecordLastMonth, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_monthly.go b/rest/api/v2010/accounts_usage_records_monthly.go index 82dc2e4ec..b68caffb8 100644 --- a/rest/api/v2010/accounts_usage_records_monthly.go +++ b/rest/api/v2010/accounts_usage_records_monthly.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordMonthly' @@ -71,7 +71,10 @@ func (params *ListUsageRecordMonthlyParams) SetLimit(Limit int) *ListUsageRecord } // Retrieve a single page of UsageRecordMonthly records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordMonthly(params *ListUsageRecordMonthlyParams, pageToken, pageNumber string) (*ListUsageRecordMonthlyResponse, error) { +func (c *ApiService) PageUsageRecordMonthly( + params *ListUsageRecordMonthlyParams, + pageToken, pageNumber string, +) (*ListUsageRecordMonthlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordMonthly(params *ListUsageRecordMonthlyPara return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthlyResponse, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordMonthly( + response *ListUsageRecordMonthlyResponse, + params *ListUsageRecordMonthlyParams, + recordChannel chan ApiV2010UsageRecordMonthly, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_this_month.go b/rest/api/v2010/accounts_usage_records_this_month.go index b3b79e816..7e7d2425a 100644 --- a/rest/api/v2010/accounts_usage_records_this_month.go +++ b/rest/api/v2010/accounts_usage_records_this_month.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordThisMonth' @@ -71,7 +71,10 @@ func (params *ListUsageRecordThisMonthParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordThisMonth records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordThisMonth(params *ListUsageRecordThisMonthParams, pageToken, pageNumber string) (*ListUsageRecordThisMonthResponse, error) { +func (c *ApiService) PageUsageRecordThisMonth( + params *ListUsageRecordThisMonthParams, + pageToken, pageNumber string, +) (*ListUsageRecordThisMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordThisMonth(params *ListUsageRecordThisMonth return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMonthResponse, params *ListUsageRecordThisMonthParams, recordChannel chan ApiV2010UsageRecordThisMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordThisMonth( + response *ListUsageRecordThisMonthResponse, + params *ListUsageRecordThisMonthParams, + recordChannel chan ApiV2010UsageRecordThisMonth, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_today.go b/rest/api/v2010/accounts_usage_records_today.go index f9ce2c74a..f788e1b0b 100644 --- a/rest/api/v2010/accounts_usage_records_today.go +++ b/rest/api/v2010/accounts_usage_records_today.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordToday' @@ -71,7 +71,10 @@ func (params *ListUsageRecordTodayParams) SetLimit(Limit int) *ListUsageRecordTo } // Retrieve a single page of UsageRecordToday records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordToday(params *ListUsageRecordTodayParams, pageToken, pageNumber string) (*ListUsageRecordTodayResponse, error) { +func (c *ApiService) PageUsageRecordToday( + params *ListUsageRecordTodayParams, + pageToken, pageNumber string, +) (*ListUsageRecordTodayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordToday(params *ListUsageRecordTodayParams) return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordTodayResponse, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordToday( + response *ListUsageRecordTodayResponse, + params *ListUsageRecordTodayParams, + recordChannel chan ApiV2010UsageRecordToday, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_yearly.go b/rest/api/v2010/accounts_usage_records_yearly.go index e601fd804..6afadc3a0 100644 --- a/rest/api/v2010/accounts_usage_records_yearly.go +++ b/rest/api/v2010/accounts_usage_records_yearly.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordYearly' @@ -71,7 +71,10 @@ func (params *ListUsageRecordYearlyParams) SetLimit(Limit int) *ListUsageRecordY } // Retrieve a single page of UsageRecordYearly records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordYearly(params *ListUsageRecordYearlyParams, pageToken, pageNumber string) (*ListUsageRecordYearlyResponse, error) { +func (c *ApiService) PageUsageRecordYearly( + params *ListUsageRecordYearlyParams, + pageToken, pageNumber string, +) (*ListUsageRecordYearlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordYearly(params *ListUsageRecordYearlyParams return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearlyResponse, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYearly( + response *ListUsageRecordYearlyResponse, + params *ListUsageRecordYearlyParams, + recordChannel chan ApiV2010UsageRecordYearly, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_records_yesterday.go b/rest/api/v2010/accounts_usage_records_yesterday.go index 5293f7a19..ffc7fb72d 100644 --- a/rest/api/v2010/accounts_usage_records_yesterday.go +++ b/rest/api/v2010/accounts_usage_records_yesterday.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecordYesterday' @@ -71,7 +71,10 @@ func (params *ListUsageRecordYesterdayParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordYesterday records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordYesterday(params *ListUsageRecordYesterdayParams, pageToken, pageNumber string) (*ListUsageRecordYesterdayResponse, error) { +func (c *ApiService) PageUsageRecordYesterday( + params *ListUsageRecordYesterdayParams, + pageToken, pageNumber string, +) (*ListUsageRecordYesterdayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" if params != nil && params.PathAccountSid != nil { @@ -159,7 +162,12 @@ func (c *ApiService) StreamUsageRecordYesterday(params *ListUsageRecordYesterday return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterdayResponse, params *ListUsageRecordYesterdayParams, recordChannel chan ApiV2010UsageRecordYesterday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYesterday( + response *ListUsageRecordYesterdayResponse, + params *ListUsageRecordYesterdayParams, + recordChannel chan ApiV2010UsageRecordYesterday, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/accounts_usage_triggers.go b/rest/api/v2010/accounts_usage_triggers.go index da4333b3a..117e3b474 100644 --- a/rest/api/v2010/accounts_usage_triggers.go +++ b/rest/api/v2010/accounts_usage_triggers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUsageTrigger' @@ -240,7 +240,10 @@ func (params *ListUsageTriggerParams) SetLimit(Limit int) *ListUsageTriggerParam } // Retrieve a single page of UsageTrigger records from the API. Request is executed immediately. -func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, pageNumber string) (*ListUsageTriggerResponse, error) { +func (c *ApiService) PageUsageTrigger( + params *ListUsageTriggerParams, + pageToken, pageNumber string, +) (*ListUsageTriggerResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" if params != nil && params.PathAccountSid != nil { @@ -325,7 +328,12 @@ func (c *ApiService) StreamUsageTrigger(params *ListUsageTriggerParams) (chan Ap return recordChannel, errorChannel } -func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { +func (c *ApiService) streamUsageTrigger( + response *ListUsageTriggerResponse, + params *ListUsageTriggerParams, + recordChannel chan ApiV2010UsageTrigger, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/api/v2010/api_service.go b/rest/api/v2010/api_service.go index 72350733f..5ba18c16b 100644 --- a/rest/api/v2010/api_service.go +++ b/rest/api/v2010/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_local.go b/rest/api/v2010/model_api_v2010_available_phone_number_local.go index b60be826f..e2160badf 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_local.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_local.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberLocal struct for ApiV2010AvailablePhoneNumberLocal diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_machine_to_machine.go b/rest/api/v2010/model_api_v2010_available_phone_number_machine_to_machine.go index 153d5570e..670c678ad 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_machine_to_machine.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_machine_to_machine.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberMachineToMachine struct for ApiV2010AvailablePhoneNumberMachineToMachine diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_available_phone_number_mobile.go index 7a476b948..811deb3c6 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_mobile.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_mobile.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberMobile struct for ApiV2010AvailablePhoneNumberMobile diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_national.go b/rest/api/v2010/model_api_v2010_available_phone_number_national.go index a5f540b76..1a60b8983 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_national.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_national.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberNational struct for ApiV2010AvailablePhoneNumberNational diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_shared_cost.go b/rest/api/v2010/model_api_v2010_available_phone_number_shared_cost.go index 4533922bf..ba51f5503 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_shared_cost.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_shared_cost.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberSharedCost struct for ApiV2010AvailablePhoneNumberSharedCost diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_available_phone_number_toll_free.go index 46bd28b68..cb0086ddc 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_toll_free.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_toll_free.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberTollFree struct for ApiV2010AvailablePhoneNumberTollFree diff --git a/rest/api/v2010/model_api_v2010_available_phone_number_voip.go b/rest/api/v2010/model_api_v2010_available_phone_number_voip.go index 74620757e..80c242479 100644 --- a/rest/api/v2010/model_api_v2010_available_phone_number_voip.go +++ b/rest/api/v2010/model_api_v2010_available_phone_number_voip.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010AvailablePhoneNumberVoip struct for ApiV2010AvailablePhoneNumberVoip diff --git a/rest/api/v2010/model_api_v2010_call_recording.go b/rest/api/v2010/model_api_v2010_call_recording.go index 1a2d84009..5beb83aed 100644 --- a/rest/api/v2010/model_api_v2010_call_recording.go +++ b/rest/api/v2010/model_api_v2010_call_recording.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010CallRecording struct for ApiV2010CallRecording diff --git a/rest/api/v2010/model_api_v2010_recording_transcription.go b/rest/api/v2010/model_api_v2010_recording_transcription.go index 446124f87..a6c58dcf6 100644 --- a/rest/api/v2010/model_api_v2010_recording_transcription.go +++ b/rest/api/v2010/model_api_v2010_recording_transcription.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010RecordingTranscription struct for ApiV2010RecordingTranscription diff --git a/rest/api/v2010/model_api_v2010_transcription.go b/rest/api/v2010/model_api_v2010_transcription.go index 635c20141..da6aa59ae 100644 --- a/rest/api/v2010/model_api_v2010_transcription.go +++ b/rest/api/v2010/model_api_v2010_transcription.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010Transcription struct for ApiV2010Transcription diff --git a/rest/api/v2010/model_api_v2010_usage_record.go b/rest/api/v2010/model_api_v2010_usage_record.go index 6fb061349..130ab34d9 100644 --- a/rest/api/v2010/model_api_v2010_usage_record.go +++ b/rest/api/v2010/model_api_v2010_usage_record.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecord struct for ApiV2010UsageRecord diff --git a/rest/api/v2010/model_api_v2010_usage_record_all_time.go b/rest/api/v2010/model_api_v2010_usage_record_all_time.go index c5e0beb93..bd4809d39 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_all_time.go +++ b/rest/api/v2010/model_api_v2010_usage_record_all_time.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordAllTime struct for ApiV2010UsageRecordAllTime diff --git a/rest/api/v2010/model_api_v2010_usage_record_daily.go b/rest/api/v2010/model_api_v2010_usage_record_daily.go index 4fbd1a022..457b2245b 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_daily.go +++ b/rest/api/v2010/model_api_v2010_usage_record_daily.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordDaily struct for ApiV2010UsageRecordDaily diff --git a/rest/api/v2010/model_api_v2010_usage_record_last_month.go b/rest/api/v2010/model_api_v2010_usage_record_last_month.go index 38349c9a7..35c2a01e4 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_last_month.go +++ b/rest/api/v2010/model_api_v2010_usage_record_last_month.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordLastMonth struct for ApiV2010UsageRecordLastMonth diff --git a/rest/api/v2010/model_api_v2010_usage_record_monthly.go b/rest/api/v2010/model_api_v2010_usage_record_monthly.go index 9128a868b..69c6c585c 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_monthly.go +++ b/rest/api/v2010/model_api_v2010_usage_record_monthly.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordMonthly struct for ApiV2010UsageRecordMonthly diff --git a/rest/api/v2010/model_api_v2010_usage_record_this_month.go b/rest/api/v2010/model_api_v2010_usage_record_this_month.go index 33af5d732..2aabb545a 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_this_month.go +++ b/rest/api/v2010/model_api_v2010_usage_record_this_month.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordThisMonth struct for ApiV2010UsageRecordThisMonth diff --git a/rest/api/v2010/model_api_v2010_usage_record_today.go b/rest/api/v2010/model_api_v2010_usage_record_today.go index 16b37846b..7af85efea 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_today.go +++ b/rest/api/v2010/model_api_v2010_usage_record_today.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordToday struct for ApiV2010UsageRecordToday diff --git a/rest/api/v2010/model_api_v2010_usage_record_yearly.go b/rest/api/v2010/model_api_v2010_usage_record_yearly.go index 9df8614e1..6da3d7641 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_yearly.go +++ b/rest/api/v2010/model_api_v2010_usage_record_yearly.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordYearly struct for ApiV2010UsageRecordYearly diff --git a/rest/api/v2010/model_api_v2010_usage_record_yesterday.go b/rest/api/v2010/model_api_v2010_usage_record_yesterday.go index 84a629f95..9e0ac2ee4 100644 --- a/rest/api/v2010/model_api_v2010_usage_record_yesterday.go +++ b/rest/api/v2010/model_api_v2010_usage_record_yesterday.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // ApiV2010UsageRecordYesterday struct for ApiV2010UsageRecordYesterday diff --git a/rest/bulkexports/v1/api_service.go b/rest/bulkexports/v1/api_service.go index f8054d712..b2c7150e5 100644 --- a/rest/bulkexports/v1/api_service.go +++ b/rest/bulkexports/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/bulkexports/v1/exports_days.go b/rest/bulkexports/v1/exports_days.go index 528c39540..743a75ef6 100644 --- a/rest/bulkexports/v1/exports_days.go +++ b/rest/bulkexports/v1/exports_days.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Day. @@ -65,7 +65,11 @@ func (params *ListDayParams) SetLimit(Limit int) *ListDayParams { } // Retrieve a single page of Day records from the API. Request is executed immediately. -func (c *ApiService) PageDay(ResourceType string, params *ListDayParams, pageToken, pageNumber string) (*ListDayResponse, error) { +func (c *ApiService) PageDay( + ResourceType string, + params *ListDayParams, + pageToken, pageNumber string, +) (*ListDayResponse, error) { path := "/v1/Exports/{ResourceType}/Days" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -137,7 +141,12 @@ func (c *ApiService) StreamDay(ResourceType string, params *ListDayParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamDay(response *ListDayResponse, params *ListDayParams, recordChannel chan BulkexportsV1Day, errorChannel chan error) { +func (c *ApiService) streamDay( + response *ListDayResponse, + params *ListDayParams, + recordChannel chan BulkexportsV1Day, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/bulkexports/v1/exports_jobs.go b/rest/bulkexports/v1/exports_jobs.go index 9f940eaf6..10883e6c3 100644 --- a/rest/bulkexports/v1/exports_jobs.go +++ b/rest/bulkexports/v1/exports_jobs.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateExportCustomJob' @@ -65,7 +65,10 @@ func (params *CreateExportCustomJobParams) SetEmail(Email string) *CreateExportC } // -func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportCustomJob, error) { +func (c *ApiService) CreateExportCustomJob( + ResourceType string, + params *CreateExportCustomJobParams, +) (*BulkexportsV1ExportCustomJob, error) { path := "/v1/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -165,7 +168,11 @@ func (params *ListExportCustomJobParams) SetLimit(Limit int) *ListExportCustomJo } // Retrieve a single page of ExportCustomJob records from the API. Request is executed immediately. -func (c *ApiService) PageExportCustomJob(ResourceType string, params *ListExportCustomJobParams, pageToken, pageNumber string) (*ListExportCustomJobResponse, error) { +func (c *ApiService) PageExportCustomJob( + ResourceType string, + params *ListExportCustomJobParams, + pageToken, pageNumber string, +) (*ListExportCustomJobResponse, error) { path := "/v1/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -200,7 +207,10 @@ func (c *ApiService) PageExportCustomJob(ResourceType string, params *ListExport } // Lists ExportCustomJob records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) ([]BulkexportsV1ExportCustomJob, error) { +func (c *ApiService) ListExportCustomJob( + ResourceType string, + params *ListExportCustomJobParams, +) ([]BulkexportsV1ExportCustomJob, error) { response, errors := c.StreamExportCustomJob(ResourceType, params) records := make([]BulkexportsV1ExportCustomJob, 0) @@ -216,7 +226,10 @@ func (c *ApiService) ListExportCustomJob(ResourceType string, params *ListExport } // Streams ExportCustomJob records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (chan BulkexportsV1ExportCustomJob, chan error) { +func (c *ApiService) StreamExportCustomJob( + ResourceType string, + params *ListExportCustomJobParams, +) (chan BulkexportsV1ExportCustomJob, chan error) { if params == nil { params = &ListExportCustomJobParams{} } @@ -237,7 +250,12 @@ func (c *ApiService) StreamExportCustomJob(ResourceType string, params *ListExpo return recordChannel, errorChannel } -func (c *ApiService) streamExportCustomJob(response *ListExportCustomJobResponse, params *ListExportCustomJobParams, recordChannel chan BulkexportsV1ExportCustomJob, errorChannel chan error) { +func (c *ApiService) streamExportCustomJob( + response *ListExportCustomJobResponse, + params *ListExportCustomJobParams, + recordChannel chan BulkexportsV1ExportCustomJob, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/api_service.go b/rest/chat/v1/api_service.go index 8ffb94b7a..caab3160d 100644 --- a/rest/chat/v1/api_service.go +++ b/rest/chat/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/chat/v1/credentials.go b/rest/chat/v1/credentials.go index 7d1ce09c1..10f1fc661 100644 --- a/rest/chat/v1/credentials.go +++ b/rest/chat/v1/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v1/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan ChatV1 return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ChatV1Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan ChatV1Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services.go b/rest/chat/v1/services.go index d5b8abda9..613a3368c 100644 --- a/rest/chat/v1/services.go +++ b/rest/chat/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -119,7 +119,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ChatV1Servic return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ChatV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan ChatV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services_channels.go b/rest/chat/v1/services_channels.go index a4d54b7ea..65c317c80 100644 --- a/rest/chat/v1/services_channels.go +++ b/rest/chat/v1/services_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannel' @@ -155,7 +155,11 @@ func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { } // Retrieve a single page of Channel records from the API. Request is executed immediately. -func (c *ApiService) PageChannel(ServiceSid string, params *ListChannelParams, pageToken, pageNumber string) (*ListChannelResponse, error) { +func (c *ApiService) PageChannel( + ServiceSid string, + params *ListChannelParams, + pageToken, pageNumber string, +) (*ListChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -232,7 +236,12 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) return recordChannel, errorChannel } -func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan ChatV1Channel, errorChannel chan error) { +func (c *ApiService) streamChannel( + response *ListChannelResponse, + params *ListChannelParams, + recordChannel chan ChatV1Channel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services_channels_invites.go b/rest/chat/v1/services_channels_invites.go index 9c7293663..84ea5eb24 100644 --- a/rest/chat/v1/services_channels_invites.go +++ b/rest/chat/v1/services_channels_invites.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInvite' @@ -41,7 +41,11 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams } // -func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV1Invite, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { } // Retrieve a single page of Invite records from the API. Request is executed immediately. -func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *ListInviteParams, pageToken, pageNumber string) (*ListInviteResponse, error) { +func (c *ApiService) PageInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, + pageToken, pageNumber string, +) (*ListInviteResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *Li } // Lists Invite records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) ([]ChatV1Invite, error) { +func (c *ApiService) ListInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) ([]ChatV1Invite, error) { response, errors := c.StreamInvite(ServiceSid, ChannelSid, params) records := make([]ChatV1Invite, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *Li } // Streams Invite records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (chan ChatV1Invite, chan error) { +func (c *ApiService) StreamInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) (chan ChatV1Invite, chan error) { if params == nil { params = &ListInviteParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan ChatV1Invite, errorChannel chan error) { +func (c *ApiService) streamInvite( + response *ListInviteResponse, + params *ListInviteParams, + recordChannel chan ChatV1Invite, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services_channels_members.go b/rest/chat/v1/services_channels_members.go index 43c63e650..b845312bd 100644 --- a/rest/chat/v1/services_channels_members.go +++ b/rest/chat/v1/services_channels_members.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMember' @@ -41,7 +41,11 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams } // -func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV1Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { +func (c *ApiService) PageMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, + pageToken, pageNumber string, +) (*ListMemberResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *Li } // Lists Member records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) ([]ChatV1Member, error) { +func (c *ApiService) ListMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) ([]ChatV1Member, error) { response, errors := c.StreamMember(ServiceSid, ChannelSid, params) records := make([]ChatV1Member, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *Li } // Streams Member records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (chan ChatV1Member, chan error) { +func (c *ApiService) StreamMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) (chan ChatV1Member, chan error) { if params == nil { params = &ListMemberParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ChatV1Member, errorChannel chan error) { +func (c *ApiService) streamMember( + response *ListMemberResponse, + params *ListMemberParams, + recordChannel chan ChatV1Member, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -284,7 +306,12 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag } // -func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV1Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/chat/v1/services_channels_messages.go b/rest/chat/v1/services_channels_messages.go index d66d42370..3b88a31c0 100644 --- a/rest/chat/v1/services_channels_messages.go +++ b/rest/chat/v1/services_channels_messages.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessage' @@ -47,7 +47,11 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa } // -func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV1Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -149,7 +153,12 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, + pageToken, pageNumber string, +) (*ListMessageResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -188,7 +197,11 @@ func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *L } // Lists Message records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) ([]ChatV1Message, error) { +func (c *ApiService) ListMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) ([]ChatV1Message, error) { response, errors := c.StreamMessage(ServiceSid, ChannelSid, params) records := make([]ChatV1Message, 0) @@ -204,7 +217,11 @@ func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *L } // Streams Message records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (chan ChatV1Message, chan error) { +func (c *ApiService) StreamMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) (chan ChatV1Message, chan error) { if params == nil { params = &ListMessageParams{} } @@ -225,7 +242,12 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ChatV1Message, errorChannel chan error) { +func (c *ApiService) streamMessage( + response *ListMessageResponse, + params *ListMessageParams, + recordChannel chan ChatV1Message, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -291,7 +313,12 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa } // -func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV1Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/chat/v1/services_roles.go b/rest/chat/v1/services_roles.go index f7474658b..bbc207538 100644 --- a/rest/chat/v1/services_roles.go +++ b/rest/chat/v1/services_roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRole' @@ -142,7 +142,11 @@ func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { } // Retrieve a single page of Role records from the API. Request is executed immediately. -func (c *ApiService) PageRole(ServiceSid string, params *ListRoleParams, pageToken, pageNumber string) (*ListRoleResponse, error) { +func (c *ApiService) PageRole( + ServiceSid string, + params *ListRoleParams, + pageToken, pageNumber string, +) (*ListRoleResponse, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -214,7 +218,12 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ChatV1Role, errorChannel chan error) { +func (c *ApiService) streamRole( + response *ListRoleResponse, + params *ListRoleParams, + recordChannel chan ChatV1Role, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services_users.go b/rest/chat/v1/services_users.go index 7a58491fd..304115dfa 100644 --- a/rest/chat/v1/services_users.go +++ b/rest/chat/v1/services_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUser' @@ -149,7 +149,11 @@ func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { } // Retrieve a single page of User records from the API. Request is executed immediately. -func (c *ApiService) PageUser(ServiceSid string, params *ListUserParams, pageToken, pageNumber string) (*ListUserResponse, error) { +func (c *ApiService) PageUser( + ServiceSid string, + params *ListUserParams, + pageToken, pageNumber string, +) (*ListUserResponse, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -221,7 +225,12 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ChatV1User, errorChannel chan error) { +func (c *ApiService) streamUser( + response *ListUserResponse, + params *ListUserParams, + recordChannel chan ChatV1User, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v1/services_users_channels.go b/rest/chat/v1/services_users_channels.go index eb3c21f9a..85c603713 100644 --- a/rest/chat/v1/services_users_channels.go +++ b/rest/chat/v1/services_users_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUserChannel' @@ -41,7 +41,12 @@ func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams } // Retrieve a single page of UserChannel records from the API. Request is executed immediately. -func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams, pageToken, pageNumber string) (*ListUserChannelResponse, error) { +func (c *ApiService) PageUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, + pageToken, pageNumber string, +) (*ListUserChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,7 +82,11 @@ func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params * } // Lists UserChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) ([]ChatV1UserChannel, error) { +func (c *ApiService) ListUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) ([]ChatV1UserChannel, error) { response, errors := c.StreamUserChannel(ServiceSid, UserSid, params) records := make([]ChatV1UserChannel, 0) @@ -93,7 +102,11 @@ func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params * } // Streams UserChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (chan ChatV1UserChannel, chan error) { +func (c *ApiService) StreamUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) (chan ChatV1UserChannel, chan error) { if params == nil { params = &ListUserChannelParams{} } @@ -114,7 +127,12 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan ChatV1UserChannel, errorChannel chan error) { +func (c *ApiService) streamUserChannel( + response *ListUserChannelResponse, + params *ListUserChannelParams, + recordChannel chan ChatV1UserChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/api_service.go b/rest/chat/v2/api_service.go index 8ffb94b7a..caab3160d 100644 --- a/rest/chat/v2/api_service.go +++ b/rest/chat/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/chat/v2/credentials.go b/rest/chat/v2/credentials.go index 376caa738..2f28dddae 100644 --- a/rest/chat/v2/credentials.go +++ b/rest/chat/v2/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v2/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan ChatV2 return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ChatV2Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan ChatV2Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services.go b/rest/chat/v2/services.go index 8a5a3e2a1..c817d7e6c 100644 --- a/rest/chat/v2/services.go +++ b/rest/chat/v2/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -119,7 +119,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v2/Services" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ChatV2Servic return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ChatV2Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan ChatV2Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -470,7 +478,10 @@ func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*Ch data.Set("Notifications.NewMessage.Sound", *params.NotificationsNewMessageSound) } if params != nil && params.NotificationsNewMessageBadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled)) + data.Set( + "Notifications.NewMessage.BadgeCountEnabled", + fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled), + ) } if params != nil && params.NotificationsAddedToChannelEnabled != nil { data.Set("Notifications.AddedToChannel.Enabled", fmt.Sprint(*params.NotificationsAddedToChannelEnabled)) diff --git a/rest/chat/v2/services_bindings.go b/rest/chat/v2/services_bindings.go index 74d6d4a21..e5de51784 100644 --- a/rest/chat/v2/services_bindings.go +++ b/rest/chat/v2/services_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -96,7 +96,11 @@ func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { } // Retrieve a single page of Binding records from the API. Request is executed immediately. -func (c *ApiService) PageBinding(ServiceSid string, params *ListBindingParams, pageToken, pageNumber string) (*ListBindingResponse, error) { +func (c *ApiService) PageBinding( + ServiceSid string, + params *ListBindingParams, + pageToken, pageNumber string, +) (*ListBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -178,7 +182,12 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) return recordChannel, errorChannel } -func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan ChatV2Binding, errorChannel chan error) { +func (c *ApiService) streamBinding( + response *ListBindingResponse, + params *ListBindingParams, + recordChannel chan ChatV2Binding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_channels.go b/rest/chat/v2/services_channels.go index 66ebff7d7..4c56f9715 100644 --- a/rest/chat/v2/services_channels.go +++ b/rest/chat/v2/services_channels.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannel' @@ -206,7 +206,11 @@ func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { } // Retrieve a single page of Channel records from the API. Request is executed immediately. -func (c *ApiService) PageChannel(ServiceSid string, params *ListChannelParams, pageToken, pageNumber string) (*ListChannelResponse, error) { +func (c *ApiService) PageChannel( + ServiceSid string, + params *ListChannelParams, + pageToken, pageNumber string, +) (*ListChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -283,7 +287,12 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) return recordChannel, errorChannel } -func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan ChatV2Channel, errorChannel chan error) { +func (c *ApiService) streamChannel( + response *ListChannelResponse, + params *ListChannelParams, + recordChannel chan ChatV2Channel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_channels_invites.go b/rest/chat/v2/services_channels_invites.go index 0b02c00d2..75727b656 100644 --- a/rest/chat/v2/services_channels_invites.go +++ b/rest/chat/v2/services_channels_invites.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInvite' @@ -41,7 +41,11 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams } // -func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV2Invite, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { } // Retrieve a single page of Invite records from the API. Request is executed immediately. -func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *ListInviteParams, pageToken, pageNumber string) (*ListInviteResponse, error) { +func (c *ApiService) PageInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, + pageToken, pageNumber string, +) (*ListInviteResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *Li } // Lists Invite records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) ([]ChatV2Invite, error) { +func (c *ApiService) ListInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) ([]ChatV2Invite, error) { response, errors := c.StreamInvite(ServiceSid, ChannelSid, params) records := make([]ChatV2Invite, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *Li } // Streams Invite records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (chan ChatV2Invite, chan error) { +func (c *ApiService) StreamInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) (chan ChatV2Invite, chan error) { if params == nil { params = &ListInviteParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan ChatV2Invite, errorChannel chan error) { +func (c *ApiService) streamInvite( + response *ListInviteResponse, + params *ListInviteParams, + recordChannel chan ChatV2Invite, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_channels_members.go b/rest/chat/v2/services_channels_members.go index 015ed0684..96e93bdae 100644 --- a/rest/chat/v2/services_channels_members.go +++ b/rest/chat/v2/services_channels_members.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMember' @@ -78,7 +78,11 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember } // -func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV2Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -209,7 +213,12 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { +func (c *ApiService) PageMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, + pageToken, pageNumber string, +) (*ListMemberResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -250,7 +259,11 @@ func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *Li } // Lists Member records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) ([]ChatV2Member, error) { +func (c *ApiService) ListMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) ([]ChatV2Member, error) { response, errors := c.StreamMember(ServiceSid, ChannelSid, params) records := make([]ChatV2Member, 0) @@ -266,7 +279,11 @@ func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *Li } // Streams Member records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (chan ChatV2Member, chan error) { +func (c *ApiService) StreamMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) (chan ChatV2Member, chan error) { if params == nil { params = &ListMemberParams{} } @@ -287,7 +304,12 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ChatV2Member, errorChannel chan error) { +func (c *ApiService) streamMember( + response *ListMemberResponse, + params *ListMemberParams, + recordChannel chan ChatV2Member, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -383,7 +405,12 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember } // -func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV2Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/chat/v2/services_channels_messages.go b/rest/chat/v2/services_channels_messages.go index 3cca69276..d84e4dcac 100644 --- a/rest/chat/v2/services_channels_messages.go +++ b/rest/chat/v2/services_channels_messages.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessage' @@ -78,7 +78,11 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa } // -func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV2Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -138,7 +142,12 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable } // -func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) error { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -209,7 +218,12 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, + pageToken, pageNumber string, +) (*ListMessageResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -248,7 +262,11 @@ func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *L } // Lists Message records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) ([]ChatV2Message, error) { +func (c *ApiService) ListMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) ([]ChatV2Message, error) { response, errors := c.StreamMessage(ServiceSid, ChannelSid, params) records := make([]ChatV2Message, 0) @@ -264,7 +282,11 @@ func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *L } // Streams Message records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (chan ChatV2Message, chan error) { +func (c *ApiService) StreamMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) (chan ChatV2Message, chan error) { if params == nil { params = &ListMessageParams{} } @@ -285,7 +307,12 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ChatV2Message, errorChannel chan error) { +func (c *ApiService) streamMessage( + response *ListMessageResponse, + params *ListMessageParams, + recordChannel chan ChatV2Message, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -381,7 +408,12 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { } // -func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV2Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/chat/v2/services_channels_webhooks.go b/rest/chat/v2/services_channels_webhooks.go index 6db76bd24..96f0c8958 100644 --- a/rest/chat/v2/services_channels_webhooks.go +++ b/rest/chat/v2/services_channels_webhooks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannelWebhook' @@ -71,7 +71,11 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati } // -func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -141,7 +145,11 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, } // -func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -183,7 +191,12 @@ func (params *ListChannelWebhookParams) SetLimit(Limit int) *ListChannelWebhookP } // Retrieve a single page of ChannelWebhook records from the API. Request is executed immediately. -func (c *ApiService) PageChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams, pageToken, pageNumber string) (*ListChannelWebhookResponse, error) { +func (c *ApiService) PageChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, + pageToken, pageNumber string, +) (*ListChannelWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -219,7 +232,11 @@ func (c *ApiService) PageChannelWebhook(ServiceSid string, ChannelSid string, pa } // Lists ChannelWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) ([]ChatV2ChannelWebhook, error) { +func (c *ApiService) ListChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, +) ([]ChatV2ChannelWebhook, error) { response, errors := c.StreamChannelWebhook(ServiceSid, ChannelSid, params) records := make([]ChatV2ChannelWebhook, 0) @@ -235,7 +252,11 @@ func (c *ApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, pa } // Streams ChannelWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (chan ChatV2ChannelWebhook, chan error) { +func (c *ApiService) StreamChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, +) (chan ChatV2ChannelWebhook, chan error) { if params == nil { params = &ListChannelWebhookParams{} } @@ -256,7 +277,12 @@ func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, return recordChannel, errorChannel } -func (c *ApiService) streamChannelWebhook(response *ListChannelWebhookResponse, params *ListChannelWebhookParams, recordChannel chan ChatV2ChannelWebhook, errorChannel chan error) { +func (c *ApiService) streamChannelWebhook( + response *ListChannelWebhookResponse, + params *ListChannelWebhookParams, + recordChannel chan ChatV2ChannelWebhook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -346,7 +372,12 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati } // -func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/chat/v2/services_roles.go b/rest/chat/v2/services_roles.go index 36ea514eb..99a46c930 100644 --- a/rest/chat/v2/services_roles.go +++ b/rest/chat/v2/services_roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRole' @@ -142,7 +142,11 @@ func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { } // Retrieve a single page of Role records from the API. Request is executed immediately. -func (c *ApiService) PageRole(ServiceSid string, params *ListRoleParams, pageToken, pageNumber string) (*ListRoleResponse, error) { +func (c *ApiService) PageRole( + ServiceSid string, + params *ListRoleParams, + pageToken, pageNumber string, +) (*ListRoleResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -214,7 +218,12 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ChatV2Role, errorChannel chan error) { +func (c *ApiService) streamRole( + response *ListRoleResponse, + params *ListRoleParams, + recordChannel chan ChatV2Role, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_users.go b/rest/chat/v2/services_users.go index 8ed504420..76b1744c3 100644 --- a/rest/chat/v2/services_users.go +++ b/rest/chat/v2/services_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUser' @@ -158,7 +158,11 @@ func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { } // Retrieve a single page of User records from the API. Request is executed immediately. -func (c *ApiService) PageUser(ServiceSid string, params *ListUserParams, pageToken, pageNumber string) (*ListUserResponse, error) { +func (c *ApiService) PageUser( + ServiceSid string, + params *ListUserParams, + pageToken, pageNumber string, +) (*ListUserResponse, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -230,7 +234,12 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ChatV2User, errorChannel chan error) { +func (c *ApiService) streamUser( + response *ListUserResponse, + params *ListUserParams, + recordChannel chan ChatV2User, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_users_bindings.go b/rest/chat/v2/services_users_bindings.go index eec6334c4..6c509c922 100644 --- a/rest/chat/v2/services_users_bindings.go +++ b/rest/chat/v2/services_users_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -92,7 +92,12 @@ func (params *ListUserBindingParams) SetLimit(Limit int) *ListUserBindingParams } // Retrieve a single page of UserBinding records from the API. Request is executed immediately. -func (c *ApiService) PageUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams, pageToken, pageNumber string) (*ListUserBindingResponse, error) { +func (c *ApiService) PageUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, + pageToken, pageNumber string, +) (*ListUserBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,7 +138,11 @@ func (c *ApiService) PageUserBinding(ServiceSid string, UserSid string, params * } // Lists UserBinding records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) ([]ChatV2UserBinding, error) { +func (c *ApiService) ListUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, +) ([]ChatV2UserBinding, error) { response, errors := c.StreamUserBinding(ServiceSid, UserSid, params) records := make([]ChatV2UserBinding, 0) @@ -149,7 +158,11 @@ func (c *ApiService) ListUserBinding(ServiceSid string, UserSid string, params * } // Streams UserBinding records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (chan ChatV2UserBinding, chan error) { +func (c *ApiService) StreamUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, +) (chan ChatV2UserBinding, chan error) { if params == nil { params = &ListUserBindingParams{} } @@ -170,7 +183,12 @@ func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserBinding(response *ListUserBindingResponse, params *ListUserBindingParams, recordChannel chan ChatV2UserBinding, errorChannel chan error) { +func (c *ApiService) streamUserBinding( + response *ListUserBindingResponse, + params *ListUserBindingParams, + recordChannel chan ChatV2UserBinding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/chat/v2/services_users_channels.go b/rest/chat/v2/services_users_channels.go index 2545d1270..29588a1a9 100644 --- a/rest/chat/v2/services_users_channels.go +++ b/rest/chat/v2/services_users_channels.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'DeleteUserChannel' @@ -36,7 +36,12 @@ func (params *DeleteUserChannelParams) SetXTwilioWebhookEnabled(XTwilioWebhookEn } // Removes User from selected Channel. -func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *DeleteUserChannelParams) error { +func (c *ApiService) DeleteUserChannel( + ServiceSid string, + UserSid string, + ChannelSid string, + params *DeleteUserChannelParams, +) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -59,7 +64,11 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe } // -func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*ChatV2UserChannel, error) { +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) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -101,7 +110,12 @@ func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams } // Retrieve a single page of UserChannel records from the API. Request is executed immediately. -func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams, pageToken, pageNumber string) (*ListUserChannelResponse, error) { +func (c *ApiService) PageUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, + pageToken, pageNumber string, +) (*ListUserChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,7 +151,11 @@ func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params * } // Lists UserChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) ([]ChatV2UserChannel, error) { +func (c *ApiService) ListUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) ([]ChatV2UserChannel, error) { response, errors := c.StreamUserChannel(ServiceSid, UserSid, params) records := make([]ChatV2UserChannel, 0) @@ -153,7 +171,11 @@ func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params * } // Streams UserChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (chan ChatV2UserChannel, chan error) { +func (c *ApiService) StreamUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) (chan ChatV2UserChannel, chan error) { if params == nil { params = &ListUserChannelParams{} } @@ -174,7 +196,12 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan ChatV2UserChannel, errorChannel chan error) { +func (c *ApiService) streamUserChannel( + response *ListUserChannelResponse, + params *ListUserChannelParams, + recordChannel chan ChatV2UserChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -246,7 +273,12 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti } // -func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*ChatV2UserChannel, error) { +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) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) diff --git a/rest/chat/v3/api_service.go b/rest/chat/v3/api_service.go index 8ffb94b7a..caab3160d 100644 --- a/rest/chat/v3/api_service.go +++ b/rest/chat/v3/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/content/v1/api_service.go b/rest/content/v1/api_service.go index 31d00d7e4..f4751f886 100644 --- a/rest/content/v1/api_service.go +++ b/rest/content/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/content/v1/content.go b/rest/content/v1/content.go index 67403f917..83ef5609d 100644 --- a/rest/content/v1/content.go +++ b/rest/content/v1/content.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateContent' @@ -126,7 +126,10 @@ func (params *ListContentParams) SetLimit(Limit int) *ListContentParams { } // Retrieve a single page of Content records from the API. Request is executed immediately. -func (c *ApiService) PageContent(params *ListContentParams, pageToken, pageNumber string) (*ListContentResponse, error) { +func (c *ApiService) PageContent( + params *ListContentParams, + pageToken, pageNumber string, +) (*ListContentResponse, error) { path := "/v1/Content" data := url.Values{} @@ -196,7 +199,12 @@ func (c *ApiService) StreamContent(params *ListContentParams) (chan ContentV1Con return recordChannel, errorChannel } -func (c *ApiService) streamContent(response *ListContentResponse, params *ListContentParams, recordChannel chan ContentV1Content, errorChannel chan error) { +func (c *ApiService) streamContent( + response *ListContentResponse, + params *ListContentParams, + recordChannel chan ContentV1Content, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/content/v1/content_and_approvals.go b/rest/content/v1/content_and_approvals.go index 2c8ea60b8..2d0d44e21 100644 --- a/rest/content/v1/content_and_approvals.go +++ b/rest/content/v1/content_and_approvals.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListContentAndApprovals' @@ -40,7 +40,10 @@ func (params *ListContentAndApprovalsParams) SetLimit(Limit int) *ListContentAnd } // Retrieve a single page of ContentAndApprovals records from the API. Request is executed immediately. -func (c *ApiService) PageContentAndApprovals(params *ListContentAndApprovalsParams, pageToken, pageNumber string) (*ListContentAndApprovalsResponse, error) { +func (c *ApiService) PageContentAndApprovals( + params *ListContentAndApprovalsParams, + pageToken, pageNumber string, +) (*ListContentAndApprovalsResponse, error) { path := "/v1/ContentAndApprovals" data := url.Values{} @@ -110,7 +113,12 @@ func (c *ApiService) StreamContentAndApprovals(params *ListContentAndApprovalsPa return recordChannel, errorChannel } -func (c *ApiService) streamContentAndApprovals(response *ListContentAndApprovalsResponse, params *ListContentAndApprovalsParams, recordChannel chan ContentV1ContentAndApprovals, errorChannel chan error) { +func (c *ApiService) streamContentAndApprovals( + response *ListContentAndApprovalsResponse, + params *ListContentAndApprovalsParams, + recordChannel chan ContentV1ContentAndApprovals, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/content/v1/legacy_content.go b/rest/content/v1/legacy_content.go index 3215b7e40..3f95d2fed 100644 --- a/rest/content/v1/legacy_content.go +++ b/rest/content/v1/legacy_content.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListLegacyContent' @@ -40,7 +40,10 @@ func (params *ListLegacyContentParams) SetLimit(Limit int) *ListLegacyContentPar } // Retrieve a single page of LegacyContent records from the API. Request is executed immediately. -func (c *ApiService) PageLegacyContent(params *ListLegacyContentParams, pageToken, pageNumber string) (*ListLegacyContentResponse, error) { +func (c *ApiService) PageLegacyContent( + params *ListLegacyContentParams, + pageToken, pageNumber string, +) (*ListLegacyContentResponse, error) { path := "/v1/LegacyContent" data := url.Values{} @@ -110,7 +113,12 @@ func (c *ApiService) StreamLegacyContent(params *ListLegacyContentParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamLegacyContent(response *ListLegacyContentResponse, params *ListLegacyContentParams, recordChannel chan ContentV1LegacyContent, errorChannel chan error) { +func (c *ApiService) streamLegacyContent( + response *ListLegacyContentResponse, + params *ListLegacyContentParams, + recordChannel chan ContentV1LegacyContent, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/content/v1/model_catalog_item.go b/rest/content/v1/model_catalog_item.go index 552590feb..8e048136d 100644 --- a/rest/content/v1/model_catalog_item.go +++ b/rest/content/v1/model_catalog_item.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // CatalogItem struct for CatalogItem diff --git a/rest/content/v1/model_twilio_location.go b/rest/content/v1/model_twilio_location.go index c9a487c64..0552d6348 100644 --- a/rest/content/v1/model_twilio_location.go +++ b/rest/content/v1/model_twilio_location.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // TwilioLocation twilio/location type contains a location pin and an optional label, which can be used to enhance delivery notifications or connect recipients to physical experiences you offer. diff --git a/rest/content/v1/model_whatsapp_authentication.go b/rest/content/v1/model_whatsapp_authentication.go index 33eecdcda..9938bcf1f 100644 --- a/rest/content/v1/model_whatsapp_authentication.go +++ b/rest/content/v1/model_whatsapp_authentication.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // WhatsappAuthentication whatsApp/authentication templates let companies deliver WA approved one-time-password button. diff --git a/rest/conversations/v1/api_service.go b/rest/conversations/v1/api_service.go index abd32d7da..889701285 100644 --- a/rest/conversations/v1/api_service.go +++ b/rest/conversations/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/conversations/v1/configuration_addresses.go b/rest/conversations/v1/configuration_addresses.go index 79628a76e..113f4c6d7 100644 --- a/rest/conversations/v1/configuration_addresses.go +++ b/rest/conversations/v1/configuration_addresses.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConfigurationAddress' @@ -226,7 +226,10 @@ func (params *ListConfigurationAddressParams) SetLimit(Limit int) *ListConfigura } // Retrieve a single page of ConfigurationAddress records from the API. Request is executed immediately. -func (c *ApiService) PageConfigurationAddress(params *ListConfigurationAddressParams, pageToken, pageNumber string) (*ListConfigurationAddressResponse, error) { +func (c *ApiService) PageConfigurationAddress( + params *ListConfigurationAddressParams, + pageToken, pageNumber string, +) (*ListConfigurationAddressResponse, error) { path := "/v1/Configuration/Addresses" data := url.Values{} @@ -299,7 +302,12 @@ func (c *ApiService) StreamConfigurationAddress(params *ListConfigurationAddress return recordChannel, errorChannel } -func (c *ApiService) streamConfigurationAddress(response *ListConfigurationAddressResponse, params *ListConfigurationAddressParams, recordChannel chan ConversationsV1ConfigurationAddress, errorChannel chan error) { +func (c *ApiService) streamConfigurationAddress( + response *ListConfigurationAddressResponse, + params *ListConfigurationAddressParams, + recordChannel chan ConversationsV1ConfigurationAddress, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -407,7 +415,10 @@ func (params *UpdateConfigurationAddressParams) SetAutoCreationStudioRetryCount( } // Update an existing address configuration -func (c *ApiService) UpdateConfigurationAddress(Sid string, params *UpdateConfigurationAddressParams) (*ConversationsV1ConfigurationAddress, error) { +func (c *ApiService) UpdateConfigurationAddress( + Sid string, + params *UpdateConfigurationAddressParams, +) (*ConversationsV1ConfigurationAddress, error) { path := "/v1/Configuration/Addresses/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/conversations.go b/rest/conversations/v1/conversations.go index b2cff1778..cb9738855 100644 --- a/rest/conversations/v1/conversations.go +++ b/rest/conversations/v1/conversations.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConversation' @@ -251,7 +251,10 @@ func (params *ListConversationParams) SetLimit(Limit int) *ListConversationParam } // Retrieve a single page of Conversation records from the API. Request is executed immediately. -func (c *ApiService) PageConversation(params *ListConversationParams, pageToken, pageNumber string) (*ListConversationResponse, error) { +func (c *ApiService) PageConversation( + params *ListConversationParams, + pageToken, pageNumber string, +) (*ListConversationResponse, error) { path := "/v1/Conversations" data := url.Values{} @@ -330,7 +333,12 @@ func (c *ApiService) StreamConversation(params *ListConversationParams) (chan Co return recordChannel, errorChannel } -func (c *ApiService) streamConversation(response *ListConversationResponse, params *ListConversationParams, recordChannel chan ConversationsV1Conversation, errorChannel chan error) { +func (c *ApiService) streamConversation( + response *ListConversationResponse, + params *ListConversationParams, + recordChannel chan ConversationsV1Conversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -456,7 +464,10 @@ func (params *UpdateConversationParams) SetBindingsEmailName(BindingsEmailName s } // Update an existing conversation in your account's default service -func (c *ApiService) UpdateConversation(Sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error) { +func (c *ApiService) UpdateConversation( + Sid string, + params *UpdateConversationParams, +) (*ConversationsV1Conversation, error) { path := "/v1/Conversations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/conversations_messages.go b/rest/conversations/v1/conversations_messages.go index 7d88ca0a3..c36b4b1fd 100644 --- a/rest/conversations/v1/conversations_messages.go +++ b/rest/conversations/v1/conversations_messages.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConversationMessage' @@ -90,7 +90,10 @@ func (params *CreateConversationMessageParams) SetSubject(Subject string) *Creat } // Add a new message to the conversation -func (c *ApiService) CreateConversationMessage(ConversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationMessage, error) { +func (c *ApiService) CreateConversationMessage( + ConversationSid string, + params *CreateConversationMessageParams, +) (*ConversationsV1ConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -155,7 +158,11 @@ func (params *DeleteConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioW } // Remove a message from the conversation -func (c *ApiService) DeleteConversationMessage(ConversationSid string, Sid string, params *DeleteConversationMessageParams) error { +func (c *ApiService) DeleteConversationMessage( + ConversationSid string, + Sid string, + params *DeleteConversationMessageParams, +) error { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -177,7 +184,10 @@ func (c *ApiService) DeleteConversationMessage(ConversationSid string, Sid strin } // Fetch a message from the conversation -func (c *ApiService) FetchConversationMessage(ConversationSid string, Sid string) (*ConversationsV1ConversationMessage, error) { +func (c *ApiService) FetchConversationMessage( + ConversationSid string, + Sid string, +) (*ConversationsV1ConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -224,7 +234,11 @@ func (params *ListConversationMessageParams) SetLimit(Limit int) *ListConversati } // Retrieve a single page of ConversationMessage records from the API. Request is executed immediately. -func (c *ApiService) PageConversationMessage(ConversationSid string, params *ListConversationMessageParams, pageToken, pageNumber string) (*ListConversationMessageResponse, error) { +func (c *ApiService) PageConversationMessage( + ConversationSid string, + params *ListConversationMessageParams, + pageToken, pageNumber string, +) (*ListConversationMessageResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -262,7 +276,10 @@ func (c *ApiService) PageConversationMessage(ConversationSid string, params *Lis } // Lists ConversationMessage records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) ([]ConversationsV1ConversationMessage, error) { +func (c *ApiService) ListConversationMessage( + ConversationSid string, + params *ListConversationMessageParams, +) ([]ConversationsV1ConversationMessage, error) { response, errors := c.StreamConversationMessage(ConversationSid, params) records := make([]ConversationsV1ConversationMessage, 0) @@ -278,7 +295,10 @@ func (c *ApiService) ListConversationMessage(ConversationSid string, params *Lis } // Streams ConversationMessage records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConversationMessage(ConversationSid string, params *ListConversationMessageParams) (chan ConversationsV1ConversationMessage, chan error) { +func (c *ApiService) StreamConversationMessage( + ConversationSid string, + params *ListConversationMessageParams, +) (chan ConversationsV1ConversationMessage, chan error) { if params == nil { params = &ListConversationMessageParams{} } @@ -299,7 +319,12 @@ func (c *ApiService) StreamConversationMessage(ConversationSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamConversationMessage(response *ListConversationMessageResponse, params *ListConversationMessageParams, recordChannel chan ConversationsV1ConversationMessage, errorChannel chan error) { +func (c *ApiService) streamConversationMessage( + response *ListConversationMessageResponse, + params *ListConversationMessageParams, + recordChannel chan ConversationsV1ConversationMessage, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -395,7 +420,11 @@ func (params *UpdateConversationMessageParams) SetSubject(Subject string) *Updat } // Update an existing message in the conversation -func (c *ApiService) UpdateConversationMessage(ConversationSid string, Sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationMessage, error) { +func (c *ApiService) UpdateConversationMessage( + ConversationSid string, + Sid string, + params *UpdateConversationMessageParams, +) (*ConversationsV1ConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/conversations_messages_receipts.go b/rest/conversations/v1/conversations_messages_receipts.go index 25cb7fd58..e3cc95e7b 100644 --- a/rest/conversations/v1/conversations_messages_receipts.go +++ b/rest/conversations/v1/conversations_messages_receipts.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch the delivery and read receipts of the conversation message -func (c *ApiService) FetchConversationMessageReceipt(ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ConversationMessageReceipt, error) { +func (c *ApiService) FetchConversationMessageReceipt( + ConversationSid string, + MessageSid string, + Sid string, +) (*ConversationsV1ConversationMessageReceipt, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) @@ -66,7 +70,12 @@ func (params *ListConversationMessageReceiptParams) SetLimit(Limit int) *ListCon } // Retrieve a single page of ConversationMessageReceipt records from the API. Request is executed immediately. -func (c *ApiService) PageConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams, pageToken, pageNumber string) (*ListConversationMessageReceiptResponse, error) { +func (c *ApiService) PageConversationMessageReceipt( + ConversationSid string, + MessageSid string, + params *ListConversationMessageReceiptParams, + pageToken, pageNumber string, +) (*ListConversationMessageReceiptResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageConversationMessageReceipt(ConversationSid string, Mess } // Lists ConversationMessageReceipt records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) ([]ConversationsV1ConversationMessageReceipt, error) { +func (c *ApiService) ListConversationMessageReceipt( + ConversationSid string, + MessageSid string, + params *ListConversationMessageReceiptParams, +) ([]ConversationsV1ConversationMessageReceipt, error) { response, errors := c.StreamConversationMessageReceipt(ConversationSid, MessageSid, params) records := make([]ConversationsV1ConversationMessageReceipt, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListConversationMessageReceipt(ConversationSid string, Mess } // Streams ConversationMessageReceipt records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (chan ConversationsV1ConversationMessageReceipt, chan error) { +func (c *ApiService) StreamConversationMessageReceipt( + ConversationSid string, + MessageSid string, + params *ListConversationMessageReceiptParams, +) (chan ConversationsV1ConversationMessageReceipt, chan error) { if params == nil { params = &ListConversationMessageReceiptParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamConversationMessageReceipt(ConversationSid string, Me return recordChannel, errorChannel } -func (c *ApiService) streamConversationMessageReceipt(response *ListConversationMessageReceiptResponse, params *ListConversationMessageReceiptParams, recordChannel chan ConversationsV1ConversationMessageReceipt, errorChannel chan error) { +func (c *ApiService) streamConversationMessageReceipt( + response *ListConversationMessageReceiptResponse, + params *ListConversationMessageReceiptParams, + recordChannel chan ConversationsV1ConversationMessageReceipt, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/conversations_participants.go b/rest/conversations/v1/conversations_participants.go index bd3ebb455..ecb356c82 100644 --- a/rest/conversations/v1/conversations_participants.go +++ b/rest/conversations/v1/conversations_participants.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConversationParticipant' @@ -84,7 +84,10 @@ func (params *CreateConversationParticipantParams) SetRoleSid(RoleSid string) *C } // Add a new participant to the conversation -func (c *ApiService) CreateConversationParticipant(ConversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationParticipant, error) { +func (c *ApiService) CreateConversationParticipant( + ConversationSid string, + params *CreateConversationParticipantParams, +) (*ConversationsV1ConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -146,7 +149,11 @@ func (params *DeleteConversationParticipantParams) SetXTwilioWebhookEnabled(XTwi } // Remove a participant from the conversation -func (c *ApiService) DeleteConversationParticipant(ConversationSid string, Sid string, params *DeleteConversationParticipantParams) error { +func (c *ApiService) DeleteConversationParticipant( + ConversationSid string, + Sid string, + params *DeleteConversationParticipantParams, +) error { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -168,7 +175,10 @@ func (c *ApiService) DeleteConversationParticipant(ConversationSid string, Sid s } // Fetch a participant of the conversation -func (c *ApiService) FetchConversationParticipant(ConversationSid string, Sid string) (*ConversationsV1ConversationParticipant, error) { +func (c *ApiService) FetchConversationParticipant( + ConversationSid string, + Sid string, +) (*ConversationsV1ConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -209,7 +219,11 @@ func (params *ListConversationParticipantParams) SetLimit(Limit int) *ListConver } // Retrieve a single page of ConversationParticipant records from the API. Request is executed immediately. -func (c *ApiService) PageConversationParticipant(ConversationSid string, params *ListConversationParticipantParams, pageToken, pageNumber string) (*ListConversationParticipantResponse, error) { +func (c *ApiService) PageConversationParticipant( + ConversationSid string, + params *ListConversationParticipantParams, + pageToken, pageNumber string, +) (*ListConversationParticipantResponse, error) { path := "/v1/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -244,7 +258,10 @@ func (c *ApiService) PageConversationParticipant(ConversationSid string, params } // Lists ConversationParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) ([]ConversationsV1ConversationParticipant, error) { +func (c *ApiService) ListConversationParticipant( + ConversationSid string, + params *ListConversationParticipantParams, +) ([]ConversationsV1ConversationParticipant, error) { response, errors := c.StreamConversationParticipant(ConversationSid, params) records := make([]ConversationsV1ConversationParticipant, 0) @@ -260,7 +277,10 @@ func (c *ApiService) ListConversationParticipant(ConversationSid string, params } // Streams ConversationParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (chan ConversationsV1ConversationParticipant, chan error) { +func (c *ApiService) StreamConversationParticipant( + ConversationSid string, + params *ListConversationParticipantParams, +) (chan ConversationsV1ConversationParticipant, chan error) { if params == nil { params = &ListConversationParticipantParams{} } @@ -281,7 +301,12 @@ func (c *ApiService) StreamConversationParticipant(ConversationSid string, param return recordChannel, errorChannel } -func (c *ApiService) streamConversationParticipant(response *ListConversationParticipantResponse, params *ListConversationParticipantParams, recordChannel chan ConversationsV1ConversationParticipant, errorChannel chan error) { +func (c *ApiService) streamConversationParticipant( + response *ListConversationParticipantResponse, + params *ListConversationParticipantParams, + recordChannel chan ConversationsV1ConversationParticipant, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -395,7 +420,11 @@ func (params *UpdateConversationParticipantParams) SetLastReadTimestamp(LastRead } // Update an existing participant in the conversation -func (c *ApiService) UpdateConversationParticipant(ConversationSid string, Sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationParticipant, error) { +func (c *ApiService) UpdateConversationParticipant( + ConversationSid string, + Sid string, + params *UpdateConversationParticipantParams, +) (*ConversationsV1ConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/conversations_webhooks.go b/rest/conversations/v1/conversations_webhooks.go index bb6609d3d..0d49c13d6 100644 --- a/rest/conversations/v1/conversations_webhooks.go +++ b/rest/conversations/v1/conversations_webhooks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConversationScopedWebhook' @@ -71,7 +71,10 @@ func (params *CreateConversationScopedWebhookParams) SetConfigurationReplayAfter } // Create a new webhook scoped to the conversation -func (c *ApiService) CreateConversationScopedWebhook(ConversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationScopedWebhook, error) { +func (c *ApiService) CreateConversationScopedWebhook( + ConversationSid string, + params *CreateConversationScopedWebhookParams, +) (*ConversationsV1ConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -139,7 +142,10 @@ func (c *ApiService) DeleteConversationScopedWebhook(ConversationSid string, Sid } // Fetch the configuration of a conversation-scoped webhook -func (c *ApiService) FetchConversationScopedWebhook(ConversationSid string, Sid string) (*ConversationsV1ConversationScopedWebhook, error) { +func (c *ApiService) FetchConversationScopedWebhook( + ConversationSid string, + Sid string, +) (*ConversationsV1ConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -180,7 +186,11 @@ func (params *ListConversationScopedWebhookParams) SetLimit(Limit int) *ListConv } // Retrieve a single page of ConversationScopedWebhook records from the API. Request is executed immediately. -func (c *ApiService) PageConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams, pageToken, pageNumber string) (*ListConversationScopedWebhookResponse, error) { +func (c *ApiService) PageConversationScopedWebhook( + ConversationSid string, + params *ListConversationScopedWebhookParams, + pageToken, pageNumber string, +) (*ListConversationScopedWebhookResponse, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -215,7 +225,10 @@ func (c *ApiService) PageConversationScopedWebhook(ConversationSid string, param } // Lists ConversationScopedWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) ([]ConversationsV1ConversationScopedWebhook, error) { +func (c *ApiService) ListConversationScopedWebhook( + ConversationSid string, + params *ListConversationScopedWebhookParams, +) ([]ConversationsV1ConversationScopedWebhook, error) { response, errors := c.StreamConversationScopedWebhook(ConversationSid, params) records := make([]ConversationsV1ConversationScopedWebhook, 0) @@ -231,7 +244,10 @@ func (c *ApiService) ListConversationScopedWebhook(ConversationSid string, param } // Streams ConversationScopedWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (chan ConversationsV1ConversationScopedWebhook, chan error) { +func (c *ApiService) StreamConversationScopedWebhook( + ConversationSid string, + params *ListConversationScopedWebhookParams, +) (chan ConversationsV1ConversationScopedWebhook, chan error) { if params == nil { params = &ListConversationScopedWebhookParams{} } @@ -252,7 +268,12 @@ func (c *ApiService) StreamConversationScopedWebhook(ConversationSid string, par return recordChannel, errorChannel } -func (c *ApiService) streamConversationScopedWebhook(response *ListConversationScopedWebhookResponse, params *ListConversationScopedWebhookParams, recordChannel chan ConversationsV1ConversationScopedWebhook, errorChannel chan error) { +func (c *ApiService) streamConversationScopedWebhook( + response *ListConversationScopedWebhookResponse, + params *ListConversationScopedWebhookParams, + recordChannel chan ConversationsV1ConversationScopedWebhook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -336,7 +357,11 @@ func (params *UpdateConversationScopedWebhookParams) SetConfigurationFlowSid(Con } // Update an existing conversation-scoped webhook -func (c *ApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationScopedWebhook, error) { +func (c *ApiService) UpdateConversationScopedWebhook( + ConversationSid string, + Sid string, + params *UpdateConversationScopedWebhookParams, +) (*ConversationsV1ConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/credentials.go b/rest/conversations/v1/credentials.go index be3d3d586..ddd13fa47 100644 --- a/rest/conversations/v1/credentials.go +++ b/rest/conversations/v1/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v1/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan Conver return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan ConversationsV1Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan ConversationsV1Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/participant_conversations.go b/rest/conversations/v1/participant_conversations.go index 955743211..fbfd6c96c 100644 --- a/rest/conversations/v1/participant_conversations.go +++ b/rest/conversations/v1/participant_conversations.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListParticipantConversation' @@ -52,7 +52,10 @@ func (params *ListParticipantConversationParams) SetLimit(Limit int) *ListPartic } // Retrieve a single page of ParticipantConversation records from the API. Request is executed immediately. -func (c *ApiService) PageParticipantConversation(params *ListParticipantConversationParams, pageToken, pageNumber string) (*ListParticipantConversationResponse, error) { +func (c *ApiService) PageParticipantConversation( + params *ListParticipantConversationParams, + pageToken, pageNumber string, +) (*ListParticipantConversationResponse, error) { path := "/v1/ParticipantConversations" data := url.Values{} @@ -128,7 +131,12 @@ func (c *ApiService) StreamParticipantConversation(params *ListParticipantConver return recordChannel, errorChannel } -func (c *ApiService) streamParticipantConversation(response *ListParticipantConversationResponse, params *ListParticipantConversationParams, recordChannel chan ConversationsV1ParticipantConversation, errorChannel chan error) { +func (c *ApiService) streamParticipantConversation( + response *ListParticipantConversationResponse, + params *ListParticipantConversationParams, + recordChannel chan ConversationsV1ParticipantConversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/roles.go b/rest/conversations/v1/roles.go index cfe820454..d3e9ec6d2 100644 --- a/rest/conversations/v1/roles.go +++ b/rest/conversations/v1/roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRole' @@ -209,7 +209,12 @@ func (c *ApiService) StreamRole(params *ListRoleParams) (chan ConversationsV1Rol return recordChannel, errorChannel } -func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan ConversationsV1Role, errorChannel chan error) { +func (c *ApiService) streamRole( + response *ListRoleResponse, + params *ListRoleParams, + recordChannel chan ConversationsV1Role, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/services.go b/rest/conversations/v1/services.go index 495afe477..56b3a1ebc 100644 --- a/rest/conversations/v1/services.go +++ b/rest/conversations/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -119,7 +119,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan Conversation return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ConversationsV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan ConversationsV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/services_bindings.go b/rest/conversations/v1/services_bindings.go index 00708fbc6..9900be7c0 100644 --- a/rest/conversations/v1/services_bindings.go +++ b/rest/conversations/v1/services_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Remove a push notification binding from the conversation service @@ -96,7 +96,11 @@ func (params *ListServiceBindingParams) SetLimit(Limit int) *ListServiceBindingP } // Retrieve a single page of ServiceBinding records from the API. Request is executed immediately. -func (c *ApiService) PageServiceBinding(ChatServiceSid string, params *ListServiceBindingParams, pageToken, pageNumber string) (*ListServiceBindingResponse, error) { +func (c *ApiService) PageServiceBinding( + ChatServiceSid string, + params *ListServiceBindingParams, + pageToken, pageNumber string, +) (*ListServiceBindingResponse, error) { path := "/v1/Services/{ChatServiceSid}/Bindings" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -141,7 +145,10 @@ func (c *ApiService) PageServiceBinding(ChatServiceSid string, params *ListServi } // Lists ServiceBinding records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) ([]ConversationsV1ServiceBinding, error) { +func (c *ApiService) ListServiceBinding( + ChatServiceSid string, + params *ListServiceBindingParams, +) ([]ConversationsV1ServiceBinding, error) { response, errors := c.StreamServiceBinding(ChatServiceSid, params) records := make([]ConversationsV1ServiceBinding, 0) @@ -157,7 +164,10 @@ func (c *ApiService) ListServiceBinding(ChatServiceSid string, params *ListServi } // Streams ServiceBinding records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (chan ConversationsV1ServiceBinding, chan error) { +func (c *ApiService) StreamServiceBinding( + ChatServiceSid string, + params *ListServiceBindingParams, +) (chan ConversationsV1ServiceBinding, chan error) { if params == nil { params = &ListServiceBindingParams{} } @@ -178,7 +188,12 @@ func (c *ApiService) StreamServiceBinding(ChatServiceSid string, params *ListSer return recordChannel, errorChannel } -func (c *ApiService) streamServiceBinding(response *ListServiceBindingResponse, params *ListServiceBindingParams, recordChannel chan ConversationsV1ServiceBinding, errorChannel chan error) { +func (c *ApiService) streamServiceBinding( + response *ListServiceBindingResponse, + params *ListServiceBindingParams, + recordChannel chan ConversationsV1ServiceBinding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/services_conversations.go b/rest/conversations/v1/services_conversations.go index 09b03cd37..ade261c0e 100644 --- a/rest/conversations/v1/services_conversations.go +++ b/rest/conversations/v1/services_conversations.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceConversation' @@ -102,7 +102,10 @@ func (params *CreateServiceConversationParams) SetBindingsEmailName(BindingsEmai } // Create a new conversation in your service -func (c *ApiService) CreateServiceConversation(ChatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceConversation, error) { +func (c *ApiService) CreateServiceConversation( + ChatServiceSid string, + params *CreateServiceConversationParams, +) (*ConversationsV1ServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -173,7 +176,11 @@ func (params *DeleteServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioW } // Remove a conversation from your service -func (c *ApiService) DeleteServiceConversation(ChatServiceSid string, Sid string, params *DeleteServiceConversationParams) error { +func (c *ApiService) DeleteServiceConversation( + ChatServiceSid string, + Sid string, + params *DeleteServiceConversationParams, +) error { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -195,7 +202,10 @@ func (c *ApiService) DeleteServiceConversation(ChatServiceSid string, Sid string } // Fetch a conversation from your service -func (c *ApiService) FetchServiceConversation(ChatServiceSid string, Sid string) (*ConversationsV1ServiceConversation, error) { +func (c *ApiService) FetchServiceConversation( + ChatServiceSid string, + Sid string, +) (*ConversationsV1ServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -254,7 +264,11 @@ func (params *ListServiceConversationParams) SetLimit(Limit int) *ListServiceCon } // Retrieve a single page of ServiceConversation records from the API. Request is executed immediately. -func (c *ApiService) PageServiceConversation(ChatServiceSid string, params *ListServiceConversationParams, pageToken, pageNumber string) (*ListServiceConversationResponse, error) { +func (c *ApiService) PageServiceConversation( + ChatServiceSid string, + params *ListServiceConversationParams, + pageToken, pageNumber string, +) (*ListServiceConversationResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -298,7 +312,10 @@ func (c *ApiService) PageServiceConversation(ChatServiceSid string, params *List } // Lists ServiceConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) ([]ConversationsV1ServiceConversation, error) { +func (c *ApiService) ListServiceConversation( + ChatServiceSid string, + params *ListServiceConversationParams, +) ([]ConversationsV1ServiceConversation, error) { response, errors := c.StreamServiceConversation(ChatServiceSid, params) records := make([]ConversationsV1ServiceConversation, 0) @@ -314,7 +331,10 @@ func (c *ApiService) ListServiceConversation(ChatServiceSid string, params *List } // Streams ServiceConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (chan ConversationsV1ServiceConversation, chan error) { +func (c *ApiService) StreamServiceConversation( + ChatServiceSid string, + params *ListServiceConversationParams, +) (chan ConversationsV1ServiceConversation, chan error) { if params == nil { params = &ListServiceConversationParams{} } @@ -335,7 +355,12 @@ func (c *ApiService) StreamServiceConversation(ChatServiceSid string, params *Li return recordChannel, errorChannel } -func (c *ApiService) streamServiceConversation(response *ListServiceConversationResponse, params *ListServiceConversationParams, recordChannel chan ConversationsV1ServiceConversation, errorChannel chan error) { +func (c *ApiService) streamServiceConversation( + response *ListServiceConversationResponse, + params *ListServiceConversationParams, + recordChannel chan ConversationsV1ServiceConversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -461,7 +486,11 @@ func (params *UpdateServiceConversationParams) SetBindingsEmailName(BindingsEmai } // Update an existing conversation in your service -func (c *ApiService) UpdateServiceConversation(ChatServiceSid string, Sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceConversation, error) { +func (c *ApiService) UpdateServiceConversation( + ChatServiceSid string, + Sid string, + params *UpdateServiceConversationParams, +) (*ConversationsV1ServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/services_conversations_messages.go b/rest/conversations/v1/services_conversations_messages.go index e1489a7f5..3ceee0a94 100644 --- a/rest/conversations/v1/services_conversations_messages.go +++ b/rest/conversations/v1/services_conversations_messages.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceConversationMessage' @@ -90,7 +90,11 @@ func (params *CreateServiceConversationMessageParams) SetSubject(Subject string) } // Add a new message to the conversation in a specific service -func (c *ApiService) CreateServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceConversationMessage, error) { +func (c *ApiService) CreateServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + params *CreateServiceConversationMessageParams, +) (*ConversationsV1ServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -156,7 +160,12 @@ func (params *DeleteServiceConversationMessageParams) SetXTwilioWebhookEnabled(X } // Remove a message from the conversation -func (c *ApiService) DeleteServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationMessageParams) error { +func (c *ApiService) DeleteServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + Sid string, + params *DeleteServiceConversationMessageParams, +) error { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -179,7 +188,11 @@ func (c *ApiService) DeleteServiceConversationMessage(ChatServiceSid string, Con } // Fetch a message from the conversation -func (c *ApiService) FetchServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationMessage, error) { +func (c *ApiService) FetchServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + Sid string, +) (*ConversationsV1ServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -227,7 +240,12 @@ func (params *ListServiceConversationMessageParams) SetLimit(Limit int) *ListSer } // Retrieve a single page of ServiceConversationMessage records from the API. Request is executed immediately. -func (c *ApiService) PageServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams, pageToken, pageNumber string) (*ListServiceConversationMessageResponse, error) { +func (c *ApiService) PageServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationMessageParams, + pageToken, pageNumber string, +) (*ListServiceConversationMessageResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -266,7 +284,11 @@ func (c *ApiService) PageServiceConversationMessage(ChatServiceSid string, Conve } // Lists ServiceConversationMessage records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) ([]ConversationsV1ServiceConversationMessage, error) { +func (c *ApiService) ListServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationMessageParams, +) ([]ConversationsV1ServiceConversationMessage, error) { response, errors := c.StreamServiceConversationMessage(ChatServiceSid, ConversationSid, params) records := make([]ConversationsV1ServiceConversationMessage, 0) @@ -282,7 +304,11 @@ func (c *ApiService) ListServiceConversationMessage(ChatServiceSid string, Conve } // Streams ServiceConversationMessage records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (chan ConversationsV1ServiceConversationMessage, chan error) { +func (c *ApiService) StreamServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationMessageParams, +) (chan ConversationsV1ServiceConversationMessage, chan error) { if params == nil { params = &ListServiceConversationMessageParams{} } @@ -303,7 +329,12 @@ func (c *ApiService) StreamServiceConversationMessage(ChatServiceSid string, Con return recordChannel, errorChannel } -func (c *ApiService) streamServiceConversationMessage(response *ListServiceConversationMessageResponse, params *ListServiceConversationMessageParams, recordChannel chan ConversationsV1ServiceConversationMessage, errorChannel chan error) { +func (c *ApiService) streamServiceConversationMessage( + response *ListServiceConversationMessageResponse, + params *ListServiceConversationMessageParams, + recordChannel chan ConversationsV1ServiceConversationMessage, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -399,7 +430,12 @@ func (params *UpdateServiceConversationMessageParams) SetSubject(Subject string) } // Update an existing message in the conversation -func (c *ApiService) UpdateServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceConversationMessage, error) { +func (c *ApiService) UpdateServiceConversationMessage( + ChatServiceSid string, + ConversationSid string, + Sid string, + params *UpdateServiceConversationMessageParams, +) (*ConversationsV1ServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) diff --git a/rest/conversations/v1/services_conversations_messages_receipts.go b/rest/conversations/v1/services_conversations_messages_receipts.go index a722e39c2..c7212d90b 100644 --- a/rest/conversations/v1/services_conversations_messages_receipts.go +++ b/rest/conversations/v1/services_conversations_messages_receipts.go @@ -20,11 +20,16 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch the delivery and read receipts of the conversation message -func (c *ApiService) FetchServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ServiceConversationMessageReceipt, error) { +func (c *ApiService) FetchServiceConversationMessageReceipt( + ChatServiceSid string, + ConversationSid string, + MessageSid string, + Sid string, +) (*ConversationsV1ServiceConversationMessageReceipt, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -67,7 +72,13 @@ func (params *ListServiceConversationMessageReceiptParams) SetLimit(Limit int) * } // Retrieve a single page of ServiceConversationMessageReceipt records from the API. Request is executed immediately. -func (c *ApiService) PageServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams, pageToken, pageNumber string) (*ListServiceConversationMessageReceiptResponse, error) { +func (c *ApiService) PageServiceConversationMessageReceipt( + ChatServiceSid string, + ConversationSid string, + MessageSid string, + params *ListServiceConversationMessageReceiptParams, + pageToken, pageNumber string, +) (*ListServiceConversationMessageReceiptResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -104,7 +115,12 @@ func (c *ApiService) PageServiceConversationMessageReceipt(ChatServiceSid string } // Lists ServiceConversationMessageReceipt records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) ([]ConversationsV1ServiceConversationMessageReceipt, error) { +func (c *ApiService) ListServiceConversationMessageReceipt( + ChatServiceSid string, + ConversationSid string, + MessageSid string, + params *ListServiceConversationMessageReceiptParams, +) ([]ConversationsV1ServiceConversationMessageReceipt, error) { response, errors := c.StreamServiceConversationMessageReceipt(ChatServiceSid, ConversationSid, MessageSid, params) records := make([]ConversationsV1ServiceConversationMessageReceipt, 0) @@ -120,7 +136,12 @@ func (c *ApiService) ListServiceConversationMessageReceipt(ChatServiceSid string } // Streams ServiceConversationMessageReceipt records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (chan ConversationsV1ServiceConversationMessageReceipt, chan error) { +func (c *ApiService) StreamServiceConversationMessageReceipt( + ChatServiceSid string, + ConversationSid string, + MessageSid string, + params *ListServiceConversationMessageReceiptParams, +) (chan ConversationsV1ServiceConversationMessageReceipt, chan error) { if params == nil { params = &ListServiceConversationMessageReceiptParams{} } @@ -129,7 +150,14 @@ func (c *ApiService) StreamServiceConversationMessageReceipt(ChatServiceSid stri recordChannel := make(chan ConversationsV1ServiceConversationMessageReceipt, 1) errorChannel := make(chan error, 1) - response, err := c.PageServiceConversationMessageReceipt(ChatServiceSid, ConversationSid, MessageSid, params, "", "") + response, err := c.PageServiceConversationMessageReceipt( + ChatServiceSid, + ConversationSid, + MessageSid, + params, + "", + "", + ) if err != nil { errorChannel <- err close(recordChannel) @@ -141,7 +169,12 @@ func (c *ApiService) StreamServiceConversationMessageReceipt(ChatServiceSid stri return recordChannel, errorChannel } -func (c *ApiService) streamServiceConversationMessageReceipt(response *ListServiceConversationMessageReceiptResponse, params *ListServiceConversationMessageReceiptParams, recordChannel chan ConversationsV1ServiceConversationMessageReceipt, errorChannel chan error) { +func (c *ApiService) streamServiceConversationMessageReceipt( + response *ListServiceConversationMessageReceiptResponse, + params *ListServiceConversationMessageReceiptParams, + recordChannel chan ConversationsV1ServiceConversationMessageReceipt, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/services_conversations_participants.go b/rest/conversations/v1/services_conversations_participants.go index 4357eb6bc..2c6fc87c7 100644 --- a/rest/conversations/v1/services_conversations_participants.go +++ b/rest/conversations/v1/services_conversations_participants.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceConversationParticipant' @@ -84,7 +84,11 @@ func (params *CreateServiceConversationParticipantParams) SetRoleSid(RoleSid str } // Add a new participant to the conversation in a specific service -func (c *ApiService) CreateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceConversationParticipant, error) { +func (c *ApiService) CreateServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + params *CreateServiceConversationParticipantParams, +) (*ConversationsV1ServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -147,7 +151,12 @@ func (params *DeleteServiceConversationParticipantParams) SetXTwilioWebhookEnabl } // Remove a participant from the conversation -func (c *ApiService) DeleteServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationParticipantParams) error { +func (c *ApiService) DeleteServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + Sid string, + params *DeleteServiceConversationParticipantParams, +) error { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -170,7 +179,11 @@ func (c *ApiService) DeleteServiceConversationParticipant(ChatServiceSid string, } // Fetch a participant of the conversation -func (c *ApiService) FetchServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationParticipant, error) { +func (c *ApiService) FetchServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + Sid string, +) (*ConversationsV1ServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -212,7 +225,12 @@ func (params *ListServiceConversationParticipantParams) SetLimit(Limit int) *Lis } // Retrieve a single page of ServiceConversationParticipant records from the API. Request is executed immediately. -func (c *ApiService) PageServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams, pageToken, pageNumber string) (*ListServiceConversationParticipantResponse, error) { +func (c *ApiService) PageServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationParticipantParams, + pageToken, pageNumber string, +) (*ListServiceConversationParticipantResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -248,7 +266,11 @@ func (c *ApiService) PageServiceConversationParticipant(ChatServiceSid string, C } // Lists ServiceConversationParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) ([]ConversationsV1ServiceConversationParticipant, error) { +func (c *ApiService) ListServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationParticipantParams, +) ([]ConversationsV1ServiceConversationParticipant, error) { response, errors := c.StreamServiceConversationParticipant(ChatServiceSid, ConversationSid, params) records := make([]ConversationsV1ServiceConversationParticipant, 0) @@ -264,7 +286,11 @@ func (c *ApiService) ListServiceConversationParticipant(ChatServiceSid string, C } // Streams ServiceConversationParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (chan ConversationsV1ServiceConversationParticipant, chan error) { +func (c *ApiService) StreamServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationParticipantParams, +) (chan ConversationsV1ServiceConversationParticipant, chan error) { if params == nil { params = &ListServiceConversationParticipantParams{} } @@ -285,7 +311,12 @@ func (c *ApiService) StreamServiceConversationParticipant(ChatServiceSid string, return recordChannel, errorChannel } -func (c *ApiService) streamServiceConversationParticipant(response *ListServiceConversationParticipantResponse, params *ListServiceConversationParticipantParams, recordChannel chan ConversationsV1ServiceConversationParticipant, errorChannel chan error) { +func (c *ApiService) streamServiceConversationParticipant( + response *ListServiceConversationParticipantResponse, + params *ListServiceConversationParticipantParams, + recordChannel chan ConversationsV1ServiceConversationParticipant, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -399,7 +430,12 @@ func (params *UpdateServiceConversationParticipantParams) SetLastReadTimestamp(L } // Update an existing participant in the conversation -func (c *ApiService) UpdateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceConversationParticipant, error) { +func (c *ApiService) UpdateServiceConversationParticipant( + ChatServiceSid string, + ConversationSid string, + Sid string, + params *UpdateServiceConversationParticipantParams, +) (*ConversationsV1ServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) diff --git a/rest/conversations/v1/services_conversations_webhooks.go b/rest/conversations/v1/services_conversations_webhooks.go index 6bdc940ce..5e8b94f51 100644 --- a/rest/conversations/v1/services_conversations_webhooks.go +++ b/rest/conversations/v1/services_conversations_webhooks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceConversationScopedWebhook' @@ -71,7 +71,11 @@ func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationRepl } // Create a new webhook scoped to the conversation in a specific service -func (c *ApiService) CreateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceConversationScopedWebhook, error) { +func (c *ApiService) CreateServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + params *CreateServiceConversationScopedWebhookParams, +) (*ConversationsV1ServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -121,7 +125,11 @@ func (c *ApiService) CreateServiceConversationScopedWebhook(ChatServiceSid strin } // Remove an existing webhook scoped to the conversation -func (c *ApiService) DeleteServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) error { +func (c *ApiService) DeleteServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + Sid string, +) error { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -141,7 +149,11 @@ func (c *ApiService) DeleteServiceConversationScopedWebhook(ChatServiceSid strin } // Fetch the configuration of a conversation-scoped webhook -func (c *ApiService) FetchServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationScopedWebhook, error) { +func (c *ApiService) FetchServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + Sid string, +) (*ConversationsV1ServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -183,7 +195,12 @@ func (params *ListServiceConversationScopedWebhookParams) SetLimit(Limit int) *L } // Retrieve a single page of ServiceConversationScopedWebhook records from the API. Request is executed immediately. -func (c *ApiService) PageServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams, pageToken, pageNumber string) (*ListServiceConversationScopedWebhookResponse, error) { +func (c *ApiService) PageServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationScopedWebhookParams, + pageToken, pageNumber string, +) (*ListServiceConversationScopedWebhookResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -219,7 +236,11 @@ func (c *ApiService) PageServiceConversationScopedWebhook(ChatServiceSid string, } // Lists ServiceConversationScopedWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) ([]ConversationsV1ServiceConversationScopedWebhook, error) { +func (c *ApiService) ListServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationScopedWebhookParams, +) ([]ConversationsV1ServiceConversationScopedWebhook, error) { response, errors := c.StreamServiceConversationScopedWebhook(ChatServiceSid, ConversationSid, params) records := make([]ConversationsV1ServiceConversationScopedWebhook, 0) @@ -235,7 +256,11 @@ func (c *ApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, } // Streams ServiceConversationScopedWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (chan ConversationsV1ServiceConversationScopedWebhook, chan error) { +func (c *ApiService) StreamServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + params *ListServiceConversationScopedWebhookParams, +) (chan ConversationsV1ServiceConversationScopedWebhook, chan error) { if params == nil { params = &ListServiceConversationScopedWebhookParams{} } @@ -256,7 +281,12 @@ func (c *ApiService) StreamServiceConversationScopedWebhook(ChatServiceSid strin return recordChannel, errorChannel } -func (c *ApiService) streamServiceConversationScopedWebhook(response *ListServiceConversationScopedWebhookResponse, params *ListServiceConversationScopedWebhookParams, recordChannel chan ConversationsV1ServiceConversationScopedWebhook, errorChannel chan error) { +func (c *ApiService) streamServiceConversationScopedWebhook( + response *ListServiceConversationScopedWebhookResponse, + params *ListServiceConversationScopedWebhookParams, + recordChannel chan ConversationsV1ServiceConversationScopedWebhook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -340,7 +370,12 @@ func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationFlow } // Update an existing conversation-scoped webhook -func (c *ApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceConversationScopedWebhook, error) { +func (c *ApiService) UpdateServiceConversationScopedWebhook( + ChatServiceSid string, + ConversationSid string, + Sid string, + params *UpdateServiceConversationScopedWebhookParams, +) (*ConversationsV1ServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) diff --git a/rest/conversations/v1/services_participant_conversations.go b/rest/conversations/v1/services_participant_conversations.go index 745cea43f..1fa18d7bc 100644 --- a/rest/conversations/v1/services_participant_conversations.go +++ b/rest/conversations/v1/services_participant_conversations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListServiceParticipantConversation' @@ -53,7 +53,11 @@ func (params *ListServiceParticipantConversationParams) SetLimit(Limit int) *Lis } // Retrieve a single page of ServiceParticipantConversation records from the API. Request is executed immediately. -func (c *ApiService) PageServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams, pageToken, pageNumber string) (*ListServiceParticipantConversationResponse, error) { +func (c *ApiService) PageServiceParticipantConversation( + ChatServiceSid string, + params *ListServiceParticipantConversationParams, + pageToken, pageNumber string, +) (*ListServiceParticipantConversationResponse, error) { path := "/v1/Services/{ChatServiceSid}/ParticipantConversations" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -94,7 +98,10 @@ func (c *ApiService) PageServiceParticipantConversation(ChatServiceSid string, p } // Lists ServiceParticipantConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) ([]ConversationsV1ServiceParticipantConversation, error) { +func (c *ApiService) ListServiceParticipantConversation( + ChatServiceSid string, + params *ListServiceParticipantConversationParams, +) ([]ConversationsV1ServiceParticipantConversation, error) { response, errors := c.StreamServiceParticipantConversation(ChatServiceSid, params) records := make([]ConversationsV1ServiceParticipantConversation, 0) @@ -110,7 +117,10 @@ func (c *ApiService) ListServiceParticipantConversation(ChatServiceSid string, p } // Streams ServiceParticipantConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) (chan ConversationsV1ServiceParticipantConversation, chan error) { +func (c *ApiService) StreamServiceParticipantConversation( + ChatServiceSid string, + params *ListServiceParticipantConversationParams, +) (chan ConversationsV1ServiceParticipantConversation, chan error) { if params == nil { params = &ListServiceParticipantConversationParams{} } @@ -131,7 +141,12 @@ func (c *ApiService) StreamServiceParticipantConversation(ChatServiceSid string, return recordChannel, errorChannel } -func (c *ApiService) streamServiceParticipantConversation(response *ListServiceParticipantConversationResponse, params *ListServiceParticipantConversationParams, recordChannel chan ConversationsV1ServiceParticipantConversation, errorChannel chan error) { +func (c *ApiService) streamServiceParticipantConversation( + response *ListServiceParticipantConversationResponse, + params *ListServiceParticipantConversationParams, + recordChannel chan ConversationsV1ServiceParticipantConversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/services_roles.go b/rest/conversations/v1/services_roles.go index 9e97aa28d..d7e7caacf 100644 --- a/rest/conversations/v1/services_roles.go +++ b/rest/conversations/v1/services_roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceRole' @@ -47,7 +47,10 @@ func (params *CreateServiceRoleParams) SetPermission(Permission []string) *Creat } // Create a new user role in your service -func (c *ApiService) CreateServiceRole(ChatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceRole, error) { +func (c *ApiService) CreateServiceRole( + ChatServiceSid string, + params *CreateServiceRoleParams, +) (*ConversationsV1ServiceRole, error) { path := "/v1/Services/{ChatServiceSid}/Roles" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -142,7 +145,11 @@ func (params *ListServiceRoleParams) SetLimit(Limit int) *ListServiceRoleParams } // Retrieve a single page of ServiceRole records from the API. Request is executed immediately. -func (c *ApiService) PageServiceRole(ChatServiceSid string, params *ListServiceRoleParams, pageToken, pageNumber string) (*ListServiceRoleResponse, error) { +func (c *ApiService) PageServiceRole( + ChatServiceSid string, + params *ListServiceRoleParams, + pageToken, pageNumber string, +) (*ListServiceRoleResponse, error) { path := "/v1/Services/{ChatServiceSid}/Roles" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -177,7 +184,10 @@ func (c *ApiService) PageServiceRole(ChatServiceSid string, params *ListServiceR } // Lists ServiceRole records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) ([]ConversationsV1ServiceRole, error) { +func (c *ApiService) ListServiceRole( + ChatServiceSid string, + params *ListServiceRoleParams, +) ([]ConversationsV1ServiceRole, error) { response, errors := c.StreamServiceRole(ChatServiceSid, params) records := make([]ConversationsV1ServiceRole, 0) @@ -193,7 +203,10 @@ func (c *ApiService) ListServiceRole(ChatServiceSid string, params *ListServiceR } // Streams ServiceRole records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (chan ConversationsV1ServiceRole, chan error) { +func (c *ApiService) StreamServiceRole( + ChatServiceSid string, + params *ListServiceRoleParams, +) (chan ConversationsV1ServiceRole, chan error) { if params == nil { params = &ListServiceRoleParams{} } @@ -214,7 +227,12 @@ func (c *ApiService) StreamServiceRole(ChatServiceSid string, params *ListServic return recordChannel, errorChannel } -func (c *ApiService) streamServiceRole(response *ListServiceRoleResponse, params *ListServiceRoleParams, recordChannel chan ConversationsV1ServiceRole, errorChannel chan error) { +func (c *ApiService) streamServiceRole( + response *ListServiceRoleResponse, + params *ListServiceRoleParams, + recordChannel chan ConversationsV1ServiceRole, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -274,7 +292,11 @@ func (params *UpdateServiceRoleParams) SetPermission(Permission []string) *Updat } // Update an existing user role in your service -func (c *ApiService) UpdateServiceRole(ChatServiceSid string, Sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceRole, error) { +func (c *ApiService) UpdateServiceRole( + ChatServiceSid string, + Sid string, + params *UpdateServiceRoleParams, +) (*ConversationsV1ServiceRole, error) { path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/services_users.go b/rest/conversations/v1/services_users.go index 40e29b09d..484709b26 100644 --- a/rest/conversations/v1/services_users.go +++ b/rest/conversations/v1/services_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateServiceUser' @@ -59,7 +59,10 @@ func (params *CreateServiceUserParams) SetRoleSid(RoleSid string) *CreateService } // Add a new conversation user to your service -func (c *ApiService) CreateServiceUser(ChatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceUser, error) { +func (c *ApiService) CreateServiceUser( + ChatServiceSid string, + params *CreateServiceUserParams, +) (*ConversationsV1ServiceUser, error) { path := "/v1/Services/{ChatServiceSid}/Users" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -172,7 +175,11 @@ func (params *ListServiceUserParams) SetLimit(Limit int) *ListServiceUserParams } // Retrieve a single page of ServiceUser records from the API. Request is executed immediately. -func (c *ApiService) PageServiceUser(ChatServiceSid string, params *ListServiceUserParams, pageToken, pageNumber string) (*ListServiceUserResponse, error) { +func (c *ApiService) PageServiceUser( + ChatServiceSid string, + params *ListServiceUserParams, + pageToken, pageNumber string, +) (*ListServiceUserResponse, error) { path := "/v1/Services/{ChatServiceSid}/Users" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -207,7 +214,10 @@ func (c *ApiService) PageServiceUser(ChatServiceSid string, params *ListServiceU } // Lists ServiceUser records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) ([]ConversationsV1ServiceUser, error) { +func (c *ApiService) ListServiceUser( + ChatServiceSid string, + params *ListServiceUserParams, +) ([]ConversationsV1ServiceUser, error) { response, errors := c.StreamServiceUser(ChatServiceSid, params) records := make([]ConversationsV1ServiceUser, 0) @@ -223,7 +233,10 @@ func (c *ApiService) ListServiceUser(ChatServiceSid string, params *ListServiceU } // Streams ServiceUser records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceUser(ChatServiceSid string, params *ListServiceUserParams) (chan ConversationsV1ServiceUser, chan error) { +func (c *ApiService) StreamServiceUser( + ChatServiceSid string, + params *ListServiceUserParams, +) (chan ConversationsV1ServiceUser, chan error) { if params == nil { params = &ListServiceUserParams{} } @@ -244,7 +257,12 @@ func (c *ApiService) StreamServiceUser(ChatServiceSid string, params *ListServic return recordChannel, errorChannel } -func (c *ApiService) streamServiceUser(response *ListServiceUserResponse, params *ListServiceUserParams, recordChannel chan ConversationsV1ServiceUser, errorChannel chan error) { +func (c *ApiService) streamServiceUser( + response *ListServiceUserResponse, + params *ListServiceUserParams, + recordChannel chan ConversationsV1ServiceUser, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -322,7 +340,11 @@ func (params *UpdateServiceUserParams) SetRoleSid(RoleSid string) *UpdateService } // Update an existing conversation user in your service -func (c *ApiService) UpdateServiceUser(ChatServiceSid string, Sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceUser, error) { +func (c *ApiService) UpdateServiceUser( + ChatServiceSid string, + Sid string, + params *UpdateServiceUserParams, +) (*ConversationsV1ServiceUser, error) { path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/conversations/v1/services_users_conversations.go b/rest/conversations/v1/services_users_conversations.go index 9db74c531..a82b437e1 100644 --- a/rest/conversations/v1/services_users_conversations.go +++ b/rest/conversations/v1/services_users_conversations.go @@ -21,11 +21,15 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific User Conversation. -func (c *ApiService) DeleteServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string) error { +func (c *ApiService) DeleteServiceUserConversation( + ChatServiceSid string, + UserSid string, + ConversationSid string, +) error { path := "/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -45,7 +49,11 @@ func (c *ApiService) DeleteServiceUserConversation(ChatServiceSid string, UserSi } // Fetch a specific User Conversation. -func (c *ApiService) FetchServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string) (*ConversationsV1ServiceUserConversation, error) { +func (c *ApiService) FetchServiceUserConversation( + ChatServiceSid string, + UserSid string, + ConversationSid string, +) (*ConversationsV1ServiceUserConversation, error) { path := "/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -87,7 +95,12 @@ func (params *ListServiceUserConversationParams) SetLimit(Limit int) *ListServic } // Retrieve a single page of ServiceUserConversation records from the API. Request is executed immediately. -func (c *ApiService) PageServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams, pageToken, pageNumber string) (*ListServiceUserConversationResponse, error) { +func (c *ApiService) PageServiceUserConversation( + ChatServiceSid string, + UserSid string, + params *ListServiceUserConversationParams, + pageToken, pageNumber string, +) (*ListServiceUserConversationResponse, error) { path := "/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -123,7 +136,11 @@ func (c *ApiService) PageServiceUserConversation(ChatServiceSid string, UserSid } // Lists ServiceUserConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams) ([]ConversationsV1ServiceUserConversation, error) { +func (c *ApiService) ListServiceUserConversation( + ChatServiceSid string, + UserSid string, + params *ListServiceUserConversationParams, +) ([]ConversationsV1ServiceUserConversation, error) { response, errors := c.StreamServiceUserConversation(ChatServiceSid, UserSid, params) records := make([]ConversationsV1ServiceUserConversation, 0) @@ -139,7 +156,11 @@ func (c *ApiService) ListServiceUserConversation(ChatServiceSid string, UserSid } // Streams ServiceUserConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams) (chan ConversationsV1ServiceUserConversation, chan error) { +func (c *ApiService) StreamServiceUserConversation( + ChatServiceSid string, + UserSid string, + params *ListServiceUserConversationParams, +) (chan ConversationsV1ServiceUserConversation, chan error) { if params == nil { params = &ListServiceUserConversationParams{} } @@ -160,7 +181,12 @@ func (c *ApiService) StreamServiceUserConversation(ChatServiceSid string, UserSi return recordChannel, errorChannel } -func (c *ApiService) streamServiceUserConversation(response *ListServiceUserConversationResponse, params *ListServiceUserConversationParams, recordChannel chan ConversationsV1ServiceUserConversation, errorChannel chan error) { +func (c *ApiService) streamServiceUserConversation( + response *ListServiceUserConversationResponse, + params *ListServiceUserConversationParams, + recordChannel chan ConversationsV1ServiceUserConversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -232,7 +258,12 @@ func (params *UpdateServiceUserConversationParams) SetLastReadMessageIndex(LastR } // Update a specific User Conversation. -func (c *ApiService) UpdateServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string, params *UpdateServiceUserConversationParams) (*ConversationsV1ServiceUserConversation, error) { +func (c *ApiService) UpdateServiceUserConversation( + ChatServiceSid string, + UserSid string, + ConversationSid string, + params *UpdateServiceUserConversationParams, +) (*ConversationsV1ServiceUserConversation, error) { path := "/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) diff --git a/rest/conversations/v1/users.go b/rest/conversations/v1/users.go index a02e51542..14e576a25 100644 --- a/rest/conversations/v1/users.go +++ b/rest/conversations/v1/users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUser' @@ -239,7 +239,12 @@ func (c *ApiService) StreamUser(params *ListUserParams) (chan ConversationsV1Use return recordChannel, errorChannel } -func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan ConversationsV1User, errorChannel chan error) { +func (c *ApiService) streamUser( + response *ListUserResponse, + params *ListUserParams, + recordChannel chan ConversationsV1User, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/conversations/v1/users_conversations.go b/rest/conversations/v1/users_conversations.go index 9e31f8968..8eb8777c2 100644 --- a/rest/conversations/v1/users_conversations.go +++ b/rest/conversations/v1/users_conversations.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific User Conversation. @@ -44,7 +44,10 @@ func (c *ApiService) DeleteUserConversation(UserSid string, ConversationSid stri } // Fetch a specific User Conversation. -func (c *ApiService) FetchUserConversation(UserSid string, ConversationSid string) (*ConversationsV1UserConversation, error) { +func (c *ApiService) FetchUserConversation( + UserSid string, + ConversationSid string, +) (*ConversationsV1UserConversation, error) { path := "/v1/Users/{UserSid}/Conversations/{ConversationSid}" path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -85,7 +88,11 @@ func (params *ListUserConversationParams) SetLimit(Limit int) *ListUserConversat } // Retrieve a single page of UserConversation records from the API. Request is executed immediately. -func (c *ApiService) PageUserConversation(UserSid string, params *ListUserConversationParams, pageToken, pageNumber string) (*ListUserConversationResponse, error) { +func (c *ApiService) PageUserConversation( + UserSid string, + params *ListUserConversationParams, + pageToken, pageNumber string, +) (*ListUserConversationResponse, error) { path := "/v1/Users/{UserSid}/Conversations" path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -120,7 +127,10 @@ func (c *ApiService) PageUserConversation(UserSid string, params *ListUserConver } // Lists UserConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserConversation(UserSid string, params *ListUserConversationParams) ([]ConversationsV1UserConversation, error) { +func (c *ApiService) ListUserConversation( + UserSid string, + params *ListUserConversationParams, +) ([]ConversationsV1UserConversation, error) { response, errors := c.StreamUserConversation(UserSid, params) records := make([]ConversationsV1UserConversation, 0) @@ -136,7 +146,10 @@ func (c *ApiService) ListUserConversation(UserSid string, params *ListUserConver } // Streams UserConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserConversation(UserSid string, params *ListUserConversationParams) (chan ConversationsV1UserConversation, chan error) { +func (c *ApiService) StreamUserConversation( + UserSid string, + params *ListUserConversationParams, +) (chan ConversationsV1UserConversation, chan error) { if params == nil { params = &ListUserConversationParams{} } @@ -157,7 +170,12 @@ func (c *ApiService) StreamUserConversation(UserSid string, params *ListUserConv return recordChannel, errorChannel } -func (c *ApiService) streamUserConversation(response *ListUserConversationResponse, params *ListUserConversationParams, recordChannel chan ConversationsV1UserConversation, errorChannel chan error) { +func (c *ApiService) streamUserConversation( + response *ListUserConversationResponse, + params *ListUserConversationParams, + recordChannel chan ConversationsV1UserConversation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -229,7 +247,11 @@ func (params *UpdateUserConversationParams) SetLastReadMessageIndex(LastReadMess } // Update a specific User Conversation. -func (c *ApiService) UpdateUserConversation(UserSid string, ConversationSid string, params *UpdateUserConversationParams) (*ConversationsV1UserConversation, error) { +func (c *ApiService) UpdateUserConversation( + UserSid string, + ConversationSid string, + params *UpdateUserConversationParams, +) (*ConversationsV1UserConversation, error) { path := "/v1/Users/{UserSid}/Conversations/{ConversationSid}" path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) diff --git a/rest/events/v1/api_service.go b/rest/events/v1/api_service.go index 89bb15ad1..189b04876 100644 --- a/rest/events/v1/api_service.go +++ b/rest/events/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/events/v1/schemas_versions.go b/rest/events/v1/schemas_versions.go index 84aaa0292..5364d1dac 100644 --- a/rest/events/v1/schemas_versions.go +++ b/rest/events/v1/schemas_versions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific schema and version. @@ -65,7 +65,11 @@ func (params *ListSchemaVersionParams) SetLimit(Limit int) *ListSchemaVersionPar } // Retrieve a single page of SchemaVersion records from the API. Request is executed immediately. -func (c *ApiService) PageSchemaVersion(Id string, params *ListSchemaVersionParams, pageToken, pageNumber string) (*ListSchemaVersionResponse, error) { +func (c *ApiService) PageSchemaVersion( + Id string, + params *ListSchemaVersionParams, + pageToken, pageNumber string, +) (*ListSchemaVersionResponse, error) { path := "/v1/Schemas/{Id}/Versions" path = strings.Replace(path, "{"+"Id"+"}", Id, -1) @@ -116,7 +120,10 @@ func (c *ApiService) ListSchemaVersion(Id string, params *ListSchemaVersionParam } // Streams SchemaVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSchemaVersion(Id string, params *ListSchemaVersionParams) (chan EventsV1SchemaVersion, chan error) { +func (c *ApiService) StreamSchemaVersion( + Id string, + params *ListSchemaVersionParams, +) (chan EventsV1SchemaVersion, chan error) { if params == nil { params = &ListSchemaVersionParams{} } @@ -137,7 +144,12 @@ func (c *ApiService) StreamSchemaVersion(Id string, params *ListSchemaVersionPar return recordChannel, errorChannel } -func (c *ApiService) streamSchemaVersion(response *ListSchemaVersionResponse, params *ListSchemaVersionParams, recordChannel chan EventsV1SchemaVersion, errorChannel chan error) { +func (c *ApiService) streamSchemaVersion( + response *ListSchemaVersionResponse, + params *ListSchemaVersionParams, + recordChannel chan EventsV1SchemaVersion, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/events/v1/sinks.go b/rest/events/v1/sinks.go index d8be25b86..f7a4ccd96 100644 --- a/rest/events/v1/sinks.go +++ b/rest/events/v1/sinks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSink' @@ -231,7 +231,12 @@ func (c *ApiService) StreamSink(params *ListSinkParams) (chan EventsV1Sink, chan return recordChannel, errorChannel } -func (c *ApiService) streamSink(response *ListSinkResponse, params *ListSinkParams, recordChannel chan EventsV1Sink, errorChannel chan error) { +func (c *ApiService) streamSink( + response *ListSinkResponse, + params *ListSinkParams, + recordChannel chan EventsV1Sink, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/events/v1/subscriptions.go b/rest/events/v1/subscriptions.go index d7dcbb567..710db40d2 100644 --- a/rest/events/v1/subscriptions.go +++ b/rest/events/v1/subscriptions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSubscription' @@ -151,7 +151,10 @@ func (params *ListSubscriptionParams) SetLimit(Limit int) *ListSubscriptionParam } // Retrieve a single page of Subscription records from the API. Request is executed immediately. -func (c *ApiService) PageSubscription(params *ListSubscriptionParams, pageToken, pageNumber string) (*ListSubscriptionResponse, error) { +func (c *ApiService) PageSubscription( + params *ListSubscriptionParams, + pageToken, pageNumber string, +) (*ListSubscriptionResponse, error) { path := "/v1/Subscriptions" data := url.Values{} @@ -224,7 +227,12 @@ func (c *ApiService) StreamSubscription(params *ListSubscriptionParams) (chan Ev return recordChannel, errorChannel } -func (c *ApiService) streamSubscription(response *ListSubscriptionResponse, params *ListSubscriptionParams, recordChannel chan EventsV1Subscription, errorChannel chan error) { +func (c *ApiService) streamSubscription( + response *ListSubscriptionResponse, + params *ListSubscriptionParams, + recordChannel chan EventsV1Subscription, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/events/v1/subscriptions_subscribed_events.go b/rest/events/v1/subscriptions_subscribed_events.go index 3e9f72655..ec56ab413 100644 --- a/rest/events/v1/subscriptions_subscribed_events.go +++ b/rest/events/v1/subscriptions_subscribed_events.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSubscribedEvent' @@ -41,7 +41,10 @@ func (params *CreateSubscribedEventParams) SetSchemaVersion(SchemaVersion int) * } // Add an event type to a Subscription. -func (c *ApiService) CreateSubscribedEvent(SubscriptionSid string, params *CreateSubscribedEventParams) (*EventsV1SubscribedEvent, error) { +func (c *ApiService) CreateSubscribedEvent( + SubscriptionSid string, + params *CreateSubscribedEventParams, +) (*EventsV1SubscribedEvent, error) { path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" path = strings.Replace(path, "{"+"SubscriptionSid"+"}", SubscriptionSid, -1) @@ -131,7 +134,11 @@ func (params *ListSubscribedEventParams) SetLimit(Limit int) *ListSubscribedEven } // Retrieve a single page of SubscribedEvent records from the API. Request is executed immediately. -func (c *ApiService) PageSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams, pageToken, pageNumber string) (*ListSubscribedEventResponse, error) { +func (c *ApiService) PageSubscribedEvent( + SubscriptionSid string, + params *ListSubscribedEventParams, + pageToken, pageNumber string, +) (*ListSubscribedEventResponse, error) { path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" path = strings.Replace(path, "{"+"SubscriptionSid"+"}", SubscriptionSid, -1) @@ -166,7 +173,10 @@ func (c *ApiService) PageSubscribedEvent(SubscriptionSid string, params *ListSub } // Lists SubscribedEvent records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) ([]EventsV1SubscribedEvent, error) { +func (c *ApiService) ListSubscribedEvent( + SubscriptionSid string, + params *ListSubscribedEventParams, +) ([]EventsV1SubscribedEvent, error) { response, errors := c.StreamSubscribedEvent(SubscriptionSid, params) records := make([]EventsV1SubscribedEvent, 0) @@ -182,7 +192,10 @@ func (c *ApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSub } // Streams SubscribedEvent records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (chan EventsV1SubscribedEvent, chan error) { +func (c *ApiService) StreamSubscribedEvent( + SubscriptionSid string, + params *ListSubscribedEventParams, +) (chan EventsV1SubscribedEvent, chan error) { if params == nil { params = &ListSubscribedEventParams{} } @@ -203,7 +216,12 @@ func (c *ApiService) StreamSubscribedEvent(SubscriptionSid string, params *ListS return recordChannel, errorChannel } -func (c *ApiService) streamSubscribedEvent(response *ListSubscribedEventResponse, params *ListSubscribedEventParams, recordChannel chan EventsV1SubscribedEvent, errorChannel chan error) { +func (c *ApiService) streamSubscribedEvent( + response *ListSubscribedEventResponse, + params *ListSubscribedEventParams, + recordChannel chan EventsV1SubscribedEvent, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +281,11 @@ func (params *UpdateSubscribedEventParams) SetSchemaVersion(SchemaVersion int) * } // Update an Event for a Subscription. -func (c *ApiService) UpdateSubscribedEvent(SubscriptionSid string, Type string, params *UpdateSubscribedEventParams) (*EventsV1SubscribedEvent, error) { +func (c *ApiService) UpdateSubscribedEvent( + SubscriptionSid string, + Type string, + params *UpdateSubscribedEventParams, +) (*EventsV1SubscribedEvent, error) { path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}" path = strings.Replace(path, "{"+"SubscriptionSid"+"}", SubscriptionSid, -1) path = strings.Replace(path, "{"+"Type"+"}", Type, -1) diff --git a/rest/events/v1/types.go b/rest/events/v1/types.go index a0423bc62..e46ff759e 100644 --- a/rest/events/v1/types.go +++ b/rest/events/v1/types.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Event Type. @@ -70,7 +70,10 @@ func (params *ListEventTypeParams) SetLimit(Limit int) *ListEventTypeParams { } // Retrieve a single page of EventType records from the API. Request is executed immediately. -func (c *ApiService) PageEventType(params *ListEventTypeParams, pageToken, pageNumber string) (*ListEventTypeResponse, error) { +func (c *ApiService) PageEventType( + params *ListEventTypeParams, + pageToken, pageNumber string, +) (*ListEventTypeResponse, error) { path := "/v1/Types" data := url.Values{} @@ -143,7 +146,12 @@ func (c *ApiService) StreamEventType(params *ListEventTypeParams) (chan EventsV1 return recordChannel, errorChannel } -func (c *ApiService) streamEventType(response *ListEventTypeResponse, params *ListEventTypeParams, recordChannel chan EventsV1EventType, errorChannel chan error) { +func (c *ApiService) streamEventType( + response *ListEventTypeResponse, + params *ListEventTypeParams, + recordChannel chan EventsV1EventType, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/api_service.go b/rest/flex/v1/api_service.go index f6d8c27bc..9e5748da7 100644 --- a/rest/flex/v1/api_service.go +++ b/rest/flex/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/flex/v1/channels.go b/rest/flex/v1/channels.go index ddf91c9f7..ce8fc6298 100644 --- a/rest/flex/v1/channels.go +++ b/rest/flex/v1/channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannel' @@ -200,7 +200,10 @@ func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { } // Retrieve a single page of Channel records from the API. Request is executed immediately. -func (c *ApiService) PageChannel(params *ListChannelParams, pageToken, pageNumber string) (*ListChannelResponse, error) { +func (c *ApiService) PageChannel( + params *ListChannelParams, + pageToken, pageNumber string, +) (*ListChannelResponse, error) { path := "/v1/Channels" data := url.Values{} @@ -270,7 +273,12 @@ func (c *ApiService) StreamChannel(params *ListChannelParams) (chan FlexV1Channe return recordChannel, errorChannel } -func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan FlexV1Channel, errorChannel chan error) { +func (c *ApiService) streamChannel( + response *ListChannelResponse, + params *ListChannelParams, + recordChannel chan FlexV1Channel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/flex_flows.go b/rest/flex/v1/flex_flows.go index 705066713..f6dc8be92 100644 --- a/rest/flex/v1/flex_flows.go +++ b/rest/flex/v1/flex_flows.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateFlexFlow' @@ -269,7 +269,10 @@ func (params *ListFlexFlowParams) SetLimit(Limit int) *ListFlexFlowParams { } // Retrieve a single page of FlexFlow records from the API. Request is executed immediately. -func (c *ApiService) PageFlexFlow(params *ListFlexFlowParams, pageToken, pageNumber string) (*ListFlexFlowResponse, error) { +func (c *ApiService) PageFlexFlow( + params *ListFlexFlowParams, + pageToken, pageNumber string, +) (*ListFlexFlowResponse, error) { path := "/v1/FlexFlows" data := url.Values{} @@ -342,7 +345,12 @@ func (c *ApiService) StreamFlexFlow(params *ListFlexFlowParams) (chan FlexV1Flex return recordChannel, errorChannel } -func (c *ApiService) streamFlexFlow(response *ListFlexFlowResponse, params *ListFlexFlowParams, recordChannel chan FlexV1FlexFlow, errorChannel chan error) { +func (c *ApiService) streamFlexFlow( + response *ListFlexFlowResponse, + params *ListFlexFlowParams, + recordChannel chan FlexV1FlexFlow, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/insights_conversations.go b/rest/flex/v1/insights_conversations.go index e11742e53..dd78b7639 100644 --- a/rest/flex/v1/insights_conversations.go +++ b/rest/flex/v1/insights_conversations.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListInsightsConversations' @@ -52,7 +52,10 @@ func (params *ListInsightsConversationsParams) SetLimit(Limit int) *ListInsights } // Retrieve a single page of InsightsConversations records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsConversations(params *ListInsightsConversationsParams, pageToken, pageNumber string) (*ListInsightsConversationsResponse, error) { +func (c *ApiService) PageInsightsConversations( + params *ListInsightsConversationsParams, + pageToken, pageNumber string, +) (*ListInsightsConversationsResponse, error) { path := "/v1/Insights/Conversations" data := url.Values{} @@ -125,7 +128,12 @@ func (c *ApiService) StreamInsightsConversations(params *ListInsightsConversatio return recordChannel, errorChannel } -func (c *ApiService) streamInsightsConversations(response *ListInsightsConversationsResponse, params *ListInsightsConversationsParams, recordChannel chan FlexV1InsightsConversations, errorChannel chan error) { +func (c *ApiService) streamInsightsConversations( + response *ListInsightsConversationsResponse, + params *ListInsightsConversationsParams, + recordChannel chan FlexV1InsightsConversations, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/insights_quality_management_assessments.go b/rest/flex/v1/insights_quality_management_assessments.go index 4ccb6e843..29e283f3a 100644 --- a/rest/flex/v1/insights_quality_management_assessments.go +++ b/rest/flex/v1/insights_quality_management_assessments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInsightsAssessments' @@ -180,7 +180,10 @@ func (params *ListInsightsAssessmentsParams) SetLimit(Limit int) *ListInsightsAs } // Retrieve a single page of InsightsAssessments records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsAssessments(params *ListInsightsAssessmentsParams, pageToken, pageNumber string) (*ListInsightsAssessmentsResponse, error) { +func (c *ApiService) PageInsightsAssessments( + params *ListInsightsAssessmentsParams, + pageToken, pageNumber string, +) (*ListInsightsAssessmentsResponse, error) { path := "/v1/Insights/QualityManagement/Assessments" data := url.Values{} @@ -253,7 +256,12 @@ func (c *ApiService) StreamInsightsAssessments(params *ListInsightsAssessmentsPa return recordChannel, errorChannel } -func (c *ApiService) streamInsightsAssessments(response *ListInsightsAssessmentsResponse, params *ListInsightsAssessmentsParams, recordChannel chan FlexV1InsightsAssessments, errorChannel chan error) { +func (c *ApiService) streamInsightsAssessments( + response *ListInsightsAssessmentsResponse, + params *ListInsightsAssessmentsParams, + recordChannel chan FlexV1InsightsAssessments, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -331,7 +339,10 @@ func (params *UpdateInsightsAssessmentsParams) SetAnswerId(AnswerId string) *Upd } // Update a specific Assessment assessed earlier -func (c *ApiService) UpdateInsightsAssessments(AssessmentSid string, params *UpdateInsightsAssessmentsParams) (*FlexV1InsightsAssessments, error) { +func (c *ApiService) UpdateInsightsAssessments( + AssessmentSid string, + params *UpdateInsightsAssessmentsParams, +) (*FlexV1InsightsAssessments, error) { path := "/v1/Insights/QualityManagement/Assessments/{AssessmentSid}" path = strings.Replace(path, "{"+"AssessmentSid"+"}", AssessmentSid, -1) diff --git a/rest/flex/v1/insights_quality_management_assessments_comments.go b/rest/flex/v1/insights_quality_management_assessments_comments.go index cd454e340..90c456a16 100644 --- a/rest/flex/v1/insights_quality_management_assessments_comments.go +++ b/rest/flex/v1/insights_quality_management_assessments_comments.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInsightsAssessmentsComment' @@ -149,7 +149,10 @@ func (params *ListInsightsAssessmentsCommentParams) SetLimit(Limit int) *ListIns } // Retrieve a single page of InsightsAssessmentsComment records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsAssessmentsComment(params *ListInsightsAssessmentsCommentParams, pageToken, pageNumber string) (*ListInsightsAssessmentsCommentResponse, error) { +func (c *ApiService) PageInsightsAssessmentsComment( + params *ListInsightsAssessmentsCommentParams, + pageToken, pageNumber string, +) (*ListInsightsAssessmentsCommentResponse, error) { path := "/v1/Insights/QualityManagement/Assessments/Comments" data := url.Values{} @@ -225,7 +228,12 @@ func (c *ApiService) StreamInsightsAssessmentsComment(params *ListInsightsAssess return recordChannel, errorChannel } -func (c *ApiService) streamInsightsAssessmentsComment(response *ListInsightsAssessmentsCommentResponse, params *ListInsightsAssessmentsCommentParams, recordChannel chan FlexV1InsightsAssessmentsComment, errorChannel chan error) { +func (c *ApiService) streamInsightsAssessmentsComment( + response *ListInsightsAssessmentsCommentResponse, + params *ListInsightsAssessmentsCommentParams, + recordChannel chan FlexV1InsightsAssessmentsComment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/insights_quality_management_categories.go b/rest/flex/v1/insights_quality_management_categories.go index 8e1d5d795..b21ee3035 100644 --- a/rest/flex/v1/insights_quality_management_categories.go +++ b/rest/flex/v1/insights_quality_management_categories.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInsightsQuestionnairesCategory' @@ -81,7 +81,10 @@ func (params *DeleteInsightsQuestionnairesCategoryParams) SetAuthorization(Autho } // -func (c *ApiService) DeleteInsightsQuestionnairesCategory(CategorySid string, params *DeleteInsightsQuestionnairesCategoryParams) error { +func (c *ApiService) DeleteInsightsQuestionnairesCategory( + CategorySid string, + params *DeleteInsightsQuestionnairesCategoryParams, +) error { path := "/v1/Insights/QualityManagement/Categories/{CategorySid}" path = strings.Replace(path, "{"+"CategorySid"+"}", CategorySid, -1) @@ -125,7 +128,10 @@ func (params *ListInsightsQuestionnairesCategoryParams) SetLimit(Limit int) *Lis } // Retrieve a single page of InsightsQuestionnairesCategory records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsQuestionnairesCategory(params *ListInsightsQuestionnairesCategoryParams, pageToken, pageNumber string) (*ListInsightsQuestionnairesCategoryResponse, error) { +func (c *ApiService) PageInsightsQuestionnairesCategory( + params *ListInsightsQuestionnairesCategoryParams, + pageToken, pageNumber string, +) (*ListInsightsQuestionnairesCategoryResponse, error) { path := "/v1/Insights/QualityManagement/Categories" data := url.Values{} @@ -195,7 +201,12 @@ func (c *ApiService) StreamInsightsQuestionnairesCategory(params *ListInsightsQu return recordChannel, errorChannel } -func (c *ApiService) streamInsightsQuestionnairesCategory(response *ListInsightsQuestionnairesCategoryResponse, params *ListInsightsQuestionnairesCategoryParams, recordChannel chan FlexV1InsightsQuestionnairesCategory, errorChannel chan error) { +func (c *ApiService) streamInsightsQuestionnairesCategory( + response *ListInsightsQuestionnairesCategoryResponse, + params *ListInsightsQuestionnairesCategoryParams, + recordChannel chan FlexV1InsightsQuestionnairesCategory, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -261,7 +272,10 @@ func (params *UpdateInsightsQuestionnairesCategoryParams) SetName(Name string) * } // To update the category for Questions -func (c *ApiService) UpdateInsightsQuestionnairesCategory(CategorySid string, params *UpdateInsightsQuestionnairesCategoryParams) (*FlexV1InsightsQuestionnairesCategory, error) { +func (c *ApiService) UpdateInsightsQuestionnairesCategory( + CategorySid string, + params *UpdateInsightsQuestionnairesCategoryParams, +) (*FlexV1InsightsQuestionnairesCategory, error) { path := "/v1/Insights/QualityManagement/Categories/{CategorySid}" path = strings.Replace(path, "{"+"CategorySid"+"}", CategorySid, -1) diff --git a/rest/flex/v1/insights_quality_management_questionnaires.go b/rest/flex/v1/insights_quality_management_questionnaires.go index b494dd3fc..aa08133dc 100644 --- a/rest/flex/v1/insights_quality_management_questionnaires.go +++ b/rest/flex/v1/insights_quality_management_questionnaires.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInsightsQuestionnaires' @@ -110,7 +110,10 @@ func (params *DeleteInsightsQuestionnairesParams) SetAuthorization(Authorization } // To delete the questionnaire -func (c *ApiService) DeleteInsightsQuestionnaires(QuestionnaireSid string, params *DeleteInsightsQuestionnairesParams) error { +func (c *ApiService) DeleteInsightsQuestionnaires( + QuestionnaireSid string, + params *DeleteInsightsQuestionnairesParams, +) error { path := "/v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}" path = strings.Replace(path, "{"+"QuestionnaireSid"+"}", QuestionnaireSid, -1) @@ -142,7 +145,10 @@ func (params *FetchInsightsQuestionnairesParams) SetAuthorization(Authorization } // To get the Questionnaire Detail -func (c *ApiService) FetchInsightsQuestionnaires(QuestionnaireSid string, params *FetchInsightsQuestionnairesParams) (*FlexV1InsightsQuestionnaires, error) { +func (c *ApiService) FetchInsightsQuestionnaires( + QuestionnaireSid string, + params *FetchInsightsQuestionnairesParams, +) (*FlexV1InsightsQuestionnaires, error) { path := "/v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}" path = strings.Replace(path, "{"+"QuestionnaireSid"+"}", QuestionnaireSid, -1) @@ -197,7 +203,10 @@ func (params *ListInsightsQuestionnairesParams) SetLimit(Limit int) *ListInsight } // Retrieve a single page of InsightsQuestionnaires records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsQuestionnaires(params *ListInsightsQuestionnairesParams, pageToken, pageNumber string) (*ListInsightsQuestionnairesResponse, error) { +func (c *ApiService) PageInsightsQuestionnaires( + params *ListInsightsQuestionnairesParams, + pageToken, pageNumber string, +) (*ListInsightsQuestionnairesResponse, error) { path := "/v1/Insights/QualityManagement/Questionnaires" data := url.Values{} @@ -270,7 +279,12 @@ func (c *ApiService) StreamInsightsQuestionnaires(params *ListInsightsQuestionna return recordChannel, errorChannel } -func (c *ApiService) streamInsightsQuestionnaires(response *ListInsightsQuestionnairesResponse, params *ListInsightsQuestionnairesParams, recordChannel chan FlexV1InsightsQuestionnaires, errorChannel chan error) { +func (c *ApiService) streamInsightsQuestionnaires( + response *ListInsightsQuestionnairesResponse, + params *ListInsightsQuestionnairesParams, + recordChannel chan FlexV1InsightsQuestionnaires, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -354,7 +368,10 @@ func (params *UpdateInsightsQuestionnairesParams) SetQuestionSids(QuestionSids [ } // To update the questionnaire -func (c *ApiService) UpdateInsightsQuestionnaires(QuestionnaireSid string, params *UpdateInsightsQuestionnairesParams) (*FlexV1InsightsQuestionnaires, error) { +func (c *ApiService) UpdateInsightsQuestionnaires( + QuestionnaireSid string, + params *UpdateInsightsQuestionnairesParams, +) (*FlexV1InsightsQuestionnaires, error) { path := "/v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}" path = strings.Replace(path, "{"+"QuestionnaireSid"+"}", QuestionnaireSid, -1) diff --git a/rest/flex/v1/insights_quality_management_questions.go b/rest/flex/v1/insights_quality_management_questions.go index b2128f4ca..1a2566207 100644 --- a/rest/flex/v1/insights_quality_management_questions.go +++ b/rest/flex/v1/insights_quality_management_questions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInsightsQuestionnairesQuestion' @@ -117,7 +117,10 @@ func (params *DeleteInsightsQuestionnairesQuestionParams) SetAuthorization(Autho } // -func (c *ApiService) DeleteInsightsQuestionnairesQuestion(QuestionSid string, params *DeleteInsightsQuestionnairesQuestionParams) error { +func (c *ApiService) DeleteInsightsQuestionnairesQuestion( + QuestionSid string, + params *DeleteInsightsQuestionnairesQuestionParams, +) error { path := "/v1/Insights/QualityManagement/Questions/{QuestionSid}" path = strings.Replace(path, "{"+"QuestionSid"+"}", QuestionSid, -1) @@ -167,7 +170,10 @@ func (params *ListInsightsQuestionnairesQuestionParams) SetLimit(Limit int) *Lis } // Retrieve a single page of InsightsQuestionnairesQuestion records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsQuestionnairesQuestion(params *ListInsightsQuestionnairesQuestionParams, pageToken, pageNumber string) (*ListInsightsQuestionnairesQuestionResponse, error) { +func (c *ApiService) PageInsightsQuestionnairesQuestion( + params *ListInsightsQuestionnairesQuestionParams, + pageToken, pageNumber string, +) (*ListInsightsQuestionnairesQuestionResponse, error) { path := "/v1/Insights/QualityManagement/Questions" data := url.Values{} @@ -242,7 +248,12 @@ func (c *ApiService) StreamInsightsQuestionnairesQuestion(params *ListInsightsQu return recordChannel, errorChannel } -func (c *ApiService) streamInsightsQuestionnairesQuestion(response *ListInsightsQuestionnairesQuestionResponse, params *ListInsightsQuestionnairesQuestionParams, recordChannel chan FlexV1InsightsQuestionnairesQuestion, errorChannel chan error) { +func (c *ApiService) streamInsightsQuestionnairesQuestion( + response *ListInsightsQuestionnairesQuestionResponse, + params *ListInsightsQuestionnairesQuestionParams, + recordChannel chan FlexV1InsightsQuestionnairesQuestion, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -332,7 +343,10 @@ func (params *UpdateInsightsQuestionnairesQuestionParams) SetAnswerSetId(AnswerS } // To update the question -func (c *ApiService) UpdateInsightsQuestionnairesQuestion(QuestionSid string, params *UpdateInsightsQuestionnairesQuestionParams) (*FlexV1InsightsQuestionnairesQuestion, error) { +func (c *ApiService) UpdateInsightsQuestionnairesQuestion( + QuestionSid string, + params *UpdateInsightsQuestionnairesQuestionParams, +) (*FlexV1InsightsQuestionnairesQuestion, error) { path := "/v1/Insights/QualityManagement/Questions/{QuestionSid}" path = strings.Replace(path, "{"+"QuestionSid"+"}", QuestionSid, -1) diff --git a/rest/flex/v1/insights_segments.go b/rest/flex/v1/insights_segments.go index bd0514767..5b46843aa 100644 --- a/rest/flex/v1/insights_segments.go +++ b/rest/flex/v1/insights_segments.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListInsightsSegments' @@ -58,7 +58,10 @@ func (params *ListInsightsSegmentsParams) SetLimit(Limit int) *ListInsightsSegme } // Retrieve a single page of InsightsSegments records from the API. Request is executed immediately. -func (c *ApiService) PageInsightsSegments(params *ListInsightsSegmentsParams, pageToken, pageNumber string) (*ListInsightsSegmentsResponse, error) { +func (c *ApiService) PageInsightsSegments( + params *ListInsightsSegmentsParams, + pageToken, pageNumber string, +) (*ListInsightsSegmentsResponse, error) { path := "/v1/Insights/Segments" data := url.Values{} @@ -136,7 +139,12 @@ func (c *ApiService) StreamInsightsSegments(params *ListInsightsSegmentsParams) return recordChannel, errorChannel } -func (c *ApiService) streamInsightsSegments(response *ListInsightsSegmentsResponse, params *ListInsightsSegmentsParams, recordChannel chan FlexV1InsightsSegments, errorChannel chan error) { +func (c *ApiService) streamInsightsSegments( + response *ListInsightsSegmentsResponse, + params *ListInsightsSegmentsParams, + recordChannel chan FlexV1InsightsSegments, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/interactions_channels.go b/rest/flex/v1/interactions_channels.go index 594818e16..6f14dd2b2 100644 --- a/rest/flex/v1/interactions_channels.go +++ b/rest/flex/v1/interactions_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a Channel for an Interaction. @@ -65,7 +65,11 @@ func (params *ListInteractionChannelParams) SetLimit(Limit int) *ListInteraction } // Retrieve a single page of InteractionChannel records from the API. Request is executed immediately. -func (c *ApiService) PageInteractionChannel(InteractionSid string, params *ListInteractionChannelParams, pageToken, pageNumber string) (*ListInteractionChannelResponse, error) { +func (c *ApiService) PageInteractionChannel( + InteractionSid string, + params *ListInteractionChannelParams, + pageToken, pageNumber string, +) (*ListInteractionChannelResponse, error) { path := "/v1/Interactions/{InteractionSid}/Channels" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) @@ -100,7 +104,10 @@ func (c *ApiService) PageInteractionChannel(InteractionSid string, params *ListI } // Lists InteractionChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInteractionChannel(InteractionSid string, params *ListInteractionChannelParams) ([]FlexV1InteractionChannel, error) { +func (c *ApiService) ListInteractionChannel( + InteractionSid string, + params *ListInteractionChannelParams, +) ([]FlexV1InteractionChannel, error) { response, errors := c.StreamInteractionChannel(InteractionSid, params) records := make([]FlexV1InteractionChannel, 0) @@ -116,7 +123,10 @@ func (c *ApiService) ListInteractionChannel(InteractionSid string, params *ListI } // Streams InteractionChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInteractionChannel(InteractionSid string, params *ListInteractionChannelParams) (chan FlexV1InteractionChannel, chan error) { +func (c *ApiService) StreamInteractionChannel( + InteractionSid string, + params *ListInteractionChannelParams, +) (chan FlexV1InteractionChannel, chan error) { if params == nil { params = &ListInteractionChannelParams{} } @@ -137,7 +147,12 @@ func (c *ApiService) StreamInteractionChannel(InteractionSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamInteractionChannel(response *ListInteractionChannelResponse, params *ListInteractionChannelParams, recordChannel chan FlexV1InteractionChannel, errorChannel chan error) { +func (c *ApiService) streamInteractionChannel( + response *ListInteractionChannelResponse, + params *ListInteractionChannelParams, + recordChannel chan FlexV1InteractionChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -203,7 +218,11 @@ func (params *UpdateInteractionChannelParams) SetRouting(Routing interface{}) *U } // Update an existing Interaction Channel. -func (c *ApiService) UpdateInteractionChannel(InteractionSid string, Sid string, params *UpdateInteractionChannelParams) (*FlexV1InteractionChannel, error) { +func (c *ApiService) UpdateInteractionChannel( + InteractionSid string, + Sid string, + params *UpdateInteractionChannelParams, +) (*FlexV1InteractionChannel, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/interactions_channels_invites.go b/rest/flex/v1/interactions_channels_invites.go index 9f831a849..13edccc0c 100644 --- a/rest/flex/v1/interactions_channels_invites.go +++ b/rest/flex/v1/interactions_channels_invites.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInteractionChannelInvite' @@ -35,7 +35,11 @@ func (params *CreateInteractionChannelInviteParams) SetRouting(Routing interface } // Invite an Agent or a TaskQueue to a Channel. -func (c *ApiService) CreateInteractionChannelInvite(InteractionSid string, ChannelSid string, params *CreateInteractionChannelInviteParams) (*FlexV1InteractionChannelInvite, error) { +func (c *ApiService) CreateInteractionChannelInvite( + InteractionSid string, + ChannelSid string, + params *CreateInteractionChannelInviteParams, +) (*FlexV1InteractionChannelInvite, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -86,7 +90,12 @@ func (params *ListInteractionChannelInviteParams) SetLimit(Limit int) *ListInter } // Retrieve a single page of InteractionChannelInvite records from the API. Request is executed immediately. -func (c *ApiService) PageInteractionChannelInvite(InteractionSid string, ChannelSid string, params *ListInteractionChannelInviteParams, pageToken, pageNumber string) (*ListInteractionChannelInviteResponse, error) { +func (c *ApiService) PageInteractionChannelInvite( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelInviteParams, + pageToken, pageNumber string, +) (*ListInteractionChannelInviteResponse, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) @@ -122,7 +131,11 @@ func (c *ApiService) PageInteractionChannelInvite(InteractionSid string, Channel } // Lists InteractionChannelInvite records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInteractionChannelInvite(InteractionSid string, ChannelSid string, params *ListInteractionChannelInviteParams) ([]FlexV1InteractionChannelInvite, error) { +func (c *ApiService) ListInteractionChannelInvite( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelInviteParams, +) ([]FlexV1InteractionChannelInvite, error) { response, errors := c.StreamInteractionChannelInvite(InteractionSid, ChannelSid, params) records := make([]FlexV1InteractionChannelInvite, 0) @@ -138,7 +151,11 @@ func (c *ApiService) ListInteractionChannelInvite(InteractionSid string, Channel } // Streams InteractionChannelInvite records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInteractionChannelInvite(InteractionSid string, ChannelSid string, params *ListInteractionChannelInviteParams) (chan FlexV1InteractionChannelInvite, chan error) { +func (c *ApiService) StreamInteractionChannelInvite( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelInviteParams, +) (chan FlexV1InteractionChannelInvite, chan error) { if params == nil { params = &ListInteractionChannelInviteParams{} } @@ -159,7 +176,12 @@ func (c *ApiService) StreamInteractionChannelInvite(InteractionSid string, Chann return recordChannel, errorChannel } -func (c *ApiService) streamInteractionChannelInvite(response *ListInteractionChannelInviteResponse, params *ListInteractionChannelInviteParams, recordChannel chan FlexV1InteractionChannelInvite, errorChannel chan error) { +func (c *ApiService) streamInteractionChannelInvite( + response *ListInteractionChannelInviteResponse, + params *ListInteractionChannelInviteParams, + recordChannel chan FlexV1InteractionChannelInvite, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/interactions_channels_participants.go b/rest/flex/v1/interactions_channels_participants.go index 95aa6d341..099c94bb2 100644 --- a/rest/flex/v1/interactions_channels_participants.go +++ b/rest/flex/v1/interactions_channels_participants.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInteractionChannelParticipant' @@ -47,7 +47,11 @@ func (params *CreateInteractionChannelParticipantParams) SetRoutingProperties(Ro } // Add a Participant to a Channel. -func (c *ApiService) CreateInteractionChannelParticipant(InteractionSid string, ChannelSid string, params *CreateInteractionChannelParticipantParams) (*FlexV1InteractionChannelParticipant, error) { +func (c *ApiService) CreateInteractionChannelParticipant( + InteractionSid string, + ChannelSid string, + params *CreateInteractionChannelParticipantParams, +) (*FlexV1InteractionChannelParticipant, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -110,7 +114,12 @@ func (params *ListInteractionChannelParticipantParams) SetLimit(Limit int) *List } // Retrieve a single page of InteractionChannelParticipant records from the API. Request is executed immediately. -func (c *ApiService) PageInteractionChannelParticipant(InteractionSid string, ChannelSid string, params *ListInteractionChannelParticipantParams, pageToken, pageNumber string) (*ListInteractionChannelParticipantResponse, error) { +func (c *ApiService) PageInteractionChannelParticipant( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelParticipantParams, + pageToken, pageNumber string, +) (*ListInteractionChannelParticipantResponse, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) @@ -146,7 +155,11 @@ func (c *ApiService) PageInteractionChannelParticipant(InteractionSid string, Ch } // Lists InteractionChannelParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInteractionChannelParticipant(InteractionSid string, ChannelSid string, params *ListInteractionChannelParticipantParams) ([]FlexV1InteractionChannelParticipant, error) { +func (c *ApiService) ListInteractionChannelParticipant( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelParticipantParams, +) ([]FlexV1InteractionChannelParticipant, error) { response, errors := c.StreamInteractionChannelParticipant(InteractionSid, ChannelSid, params) records := make([]FlexV1InteractionChannelParticipant, 0) @@ -162,7 +175,11 @@ func (c *ApiService) ListInteractionChannelParticipant(InteractionSid string, Ch } // Streams InteractionChannelParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInteractionChannelParticipant(InteractionSid string, ChannelSid string, params *ListInteractionChannelParticipantParams) (chan FlexV1InteractionChannelParticipant, chan error) { +func (c *ApiService) StreamInteractionChannelParticipant( + InteractionSid string, + ChannelSid string, + params *ListInteractionChannelParticipantParams, +) (chan FlexV1InteractionChannelParticipant, chan error) { if params == nil { params = &ListInteractionChannelParticipantParams{} } @@ -183,7 +200,12 @@ func (c *ApiService) StreamInteractionChannelParticipant(InteractionSid string, return recordChannel, errorChannel } -func (c *ApiService) streamInteractionChannelParticipant(response *ListInteractionChannelParticipantResponse, params *ListInteractionChannelParticipantParams, recordChannel chan FlexV1InteractionChannelParticipant, errorChannel chan error) { +func (c *ApiService) streamInteractionChannelParticipant( + response *ListInteractionChannelParticipantResponse, + params *ListInteractionChannelParticipantParams, + recordChannel chan FlexV1InteractionChannelParticipant, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -243,7 +265,12 @@ func (params *UpdateInteractionChannelParticipantParams) SetStatus(Status string } // Update an existing Channel Participant. -func (c *ApiService) UpdateInteractionChannelParticipant(InteractionSid string, ChannelSid string, Sid string, params *UpdateInteractionChannelParticipantParams) (*FlexV1InteractionChannelParticipant, error) { +func (c *ApiService) UpdateInteractionChannelParticipant( + InteractionSid string, + ChannelSid string, + Sid string, + params *UpdateInteractionChannelParticipantParams, +) (*FlexV1InteractionChannelParticipant, error) { path := "/v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"InteractionSid"+"}", InteractionSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/flex/v1/model_flex_v1_insights_assessments.go b/rest/flex/v1/model_flex_v1_insights_assessments.go index d989b00b3..97e7f010b 100644 --- a/rest/flex/v1/model_flex_v1_insights_assessments.go +++ b/rest/flex/v1/model_flex_v1_insights_assessments.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // FlexV1InsightsAssessments struct for FlexV1InsightsAssessments diff --git a/rest/flex/v1/model_flex_v1_insights_assessments_comment.go b/rest/flex/v1/model_flex_v1_insights_assessments_comment.go index c39488056..9fa058629 100644 --- a/rest/flex/v1/model_flex_v1_insights_assessments_comment.go +++ b/rest/flex/v1/model_flex_v1_insights_assessments_comment.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // FlexV1InsightsAssessmentsComment struct for FlexV1InsightsAssessmentsComment diff --git a/rest/flex/v1/plugin_service_configurations.go b/rest/flex/v1/plugin_service_configurations.go index bb601220e..aa32077be 100644 --- a/rest/flex/v1/plugin_service_configurations.go +++ b/rest/flex/v1/plugin_service_configurations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePluginConfiguration' @@ -107,7 +107,10 @@ func (params *FetchPluginConfigurationParams) SetFlexMetadata(FlexMetadata strin } // -func (c *ApiService) FetchPluginConfiguration(Sid string, params *FetchPluginConfigurationParams) (*FlexV1PluginConfiguration, error) { +func (c *ApiService) FetchPluginConfiguration( + Sid string, + params *FetchPluginConfigurationParams, +) (*FlexV1PluginConfiguration, error) { path := "/v1/PluginService/Configurations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -156,7 +159,10 @@ func (params *ListPluginConfigurationParams) SetLimit(Limit int) *ListPluginConf } // Retrieve a single page of PluginConfiguration records from the API. Request is executed immediately. -func (c *ApiService) PagePluginConfiguration(params *ListPluginConfigurationParams, pageToken, pageNumber string) (*ListPluginConfigurationResponse, error) { +func (c *ApiService) PagePluginConfiguration( + params *ListPluginConfigurationParams, + pageToken, pageNumber string, +) (*ListPluginConfigurationResponse, error) { path := "/v1/PluginService/Configurations" data := url.Values{} @@ -226,7 +232,12 @@ func (c *ApiService) StreamPluginConfiguration(params *ListPluginConfigurationPa return recordChannel, errorChannel } -func (c *ApiService) streamPluginConfiguration(response *ListPluginConfigurationResponse, params *ListPluginConfigurationParams, recordChannel chan FlexV1PluginConfiguration, errorChannel chan error) { +func (c *ApiService) streamPluginConfiguration( + response *ListPluginConfigurationResponse, + params *ListPluginConfigurationParams, + recordChannel chan FlexV1PluginConfiguration, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/plugin_service_configurations_plugins.go b/rest/flex/v1/plugin_service_configurations_plugins.go index 1238a9ef6..f893603ac 100644 --- a/rest/flex/v1/plugin_service_configurations_plugins.go +++ b/rest/flex/v1/plugin_service_configurations_plugins.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchConfiguredPlugin' @@ -35,7 +35,11 @@ func (params *FetchConfiguredPluginParams) SetFlexMetadata(FlexMetadata string) } // -func (c *ApiService) FetchConfiguredPlugin(ConfigurationSid string, PluginSid string, params *FetchConfiguredPluginParams) (*FlexV1ConfiguredPlugin, error) { +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) path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) @@ -85,7 +89,11 @@ func (params *ListConfiguredPluginParams) SetLimit(Limit int) *ListConfiguredPlu } // Retrieve a single page of ConfiguredPlugin records from the API. Request is executed immediately. -func (c *ApiService) PageConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams, pageToken, pageNumber string) (*ListConfiguredPluginResponse, error) { +func (c *ApiService) PageConfiguredPlugin( + ConfigurationSid string, + params *ListConfiguredPluginParams, + pageToken, pageNumber string, +) (*ListConfiguredPluginResponse, error) { path := "/v1/PluginService/Configurations/{ConfigurationSid}/Plugins" path = strings.Replace(path, "{"+"ConfigurationSid"+"}", ConfigurationSid, -1) @@ -120,7 +128,10 @@ func (c *ApiService) PageConfiguredPlugin(ConfigurationSid string, params *ListC } // Lists ConfiguredPlugin records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams) ([]FlexV1ConfiguredPlugin, error) { +func (c *ApiService) ListConfiguredPlugin( + ConfigurationSid string, + params *ListConfiguredPluginParams, +) ([]FlexV1ConfiguredPlugin, error) { response, errors := c.StreamConfiguredPlugin(ConfigurationSid, params) records := make([]FlexV1ConfiguredPlugin, 0) @@ -136,7 +147,10 @@ func (c *ApiService) ListConfiguredPlugin(ConfigurationSid string, params *ListC } // Streams ConfiguredPlugin records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams) (chan FlexV1ConfiguredPlugin, chan error) { +func (c *ApiService) StreamConfiguredPlugin( + ConfigurationSid string, + params *ListConfiguredPluginParams, +) (chan FlexV1ConfiguredPlugin, chan error) { if params == nil { params = &ListConfiguredPluginParams{} } @@ -157,7 +171,12 @@ func (c *ApiService) StreamConfiguredPlugin(ConfigurationSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamConfiguredPlugin(response *ListConfiguredPluginResponse, params *ListConfiguredPluginParams, recordChannel chan FlexV1ConfiguredPlugin, errorChannel chan error) { +func (c *ApiService) streamConfiguredPlugin( + response *ListConfiguredPluginResponse, + params *ListConfiguredPluginParams, + recordChannel chan FlexV1ConfiguredPlugin, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/plugin_service_plugins.go b/rest/flex/v1/plugin_service_plugins.go index bc8590954..f586217cd 100644 --- a/rest/flex/v1/plugin_service_plugins.go +++ b/rest/flex/v1/plugin_service_plugins.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePlugin' @@ -218,7 +218,12 @@ func (c *ApiService) StreamPlugin(params *ListPluginParams) (chan FlexV1Plugin, return recordChannel, errorChannel } -func (c *ApiService) streamPlugin(response *ListPluginResponse, params *ListPluginParams, recordChannel chan FlexV1Plugin, errorChannel chan error) { +func (c *ApiService) streamPlugin( + response *ListPluginResponse, + params *ListPluginParams, + recordChannel chan FlexV1Plugin, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/plugin_service_plugins_versions.go b/rest/flex/v1/plugin_service_plugins_versions.go index 6b5eecd6a..4fb220e8e 100644 --- a/rest/flex/v1/plugin_service_plugins_versions.go +++ b/rest/flex/v1/plugin_service_plugins_versions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePluginVersion' @@ -71,7 +71,10 @@ func (params *CreatePluginVersionParams) SetValidateStatus(ValidateStatus string } // -func (c *ApiService) CreatePluginVersion(PluginSid string, params *CreatePluginVersionParams) (*FlexV1PluginVersion, error) { +func (c *ApiService) CreatePluginVersion( + PluginSid string, + params *CreatePluginVersionParams, +) (*FlexV1PluginVersion, error) { path := "/v1/PluginService/Plugins/{PluginSid}/Versions" path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) @@ -127,7 +130,11 @@ func (params *FetchPluginVersionParams) SetFlexMetadata(FlexMetadata string) *Fe } // -func (c *ApiService) FetchPluginVersion(PluginSid string, Sid string, params *FetchPluginVersionParams) (*FlexV1PluginVersion, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -177,7 +184,11 @@ func (params *ListPluginVersionParams) SetLimit(Limit int) *ListPluginVersionPar } // Retrieve a single page of PluginVersion records from the API. Request is executed immediately. -func (c *ApiService) PagePluginVersion(PluginSid string, params *ListPluginVersionParams, pageToken, pageNumber string) (*ListPluginVersionResponse, error) { +func (c *ApiService) PagePluginVersion( + PluginSid string, + params *ListPluginVersionParams, + pageToken, pageNumber string, +) (*ListPluginVersionResponse, error) { path := "/v1/PluginService/Plugins/{PluginSid}/Versions" path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) @@ -212,7 +223,10 @@ func (c *ApiService) PagePluginVersion(PluginSid string, params *ListPluginVersi } // Lists PluginVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListPluginVersion(PluginSid string, params *ListPluginVersionParams) ([]FlexV1PluginVersion, error) { +func (c *ApiService) ListPluginVersion( + PluginSid string, + params *ListPluginVersionParams, +) ([]FlexV1PluginVersion, error) { response, errors := c.StreamPluginVersion(PluginSid, params) records := make([]FlexV1PluginVersion, 0) @@ -228,7 +242,10 @@ func (c *ApiService) ListPluginVersion(PluginSid string, params *ListPluginVersi } // Streams PluginVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamPluginVersion(PluginSid string, params *ListPluginVersionParams) (chan FlexV1PluginVersion, chan error) { +func (c *ApiService) StreamPluginVersion( + PluginSid string, + params *ListPluginVersionParams, +) (chan FlexV1PluginVersion, chan error) { if params == nil { params = &ListPluginVersionParams{} } @@ -249,7 +266,12 @@ func (c *ApiService) StreamPluginVersion(PluginSid string, params *ListPluginVer return recordChannel, errorChannel } -func (c *ApiService) streamPluginVersion(response *ListPluginVersionResponse, params *ListPluginVersionParams, recordChannel chan FlexV1PluginVersion, errorChannel chan error) { +func (c *ApiService) streamPluginVersion( + response *ListPluginVersionResponse, + params *ListPluginVersionParams, + recordChannel chan FlexV1PluginVersion, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/plugin_service_releases.go b/rest/flex/v1/plugin_service_releases.go index 1f4ed16bf..601bba3f3 100644 --- a/rest/flex/v1/plugin_service_releases.go +++ b/rest/flex/v1/plugin_service_releases.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePluginRelease' @@ -130,7 +130,10 @@ func (params *ListPluginReleaseParams) SetLimit(Limit int) *ListPluginReleasePar } // Retrieve a single page of PluginRelease records from the API. Request is executed immediately. -func (c *ApiService) PagePluginRelease(params *ListPluginReleaseParams, pageToken, pageNumber string) (*ListPluginReleaseResponse, error) { +func (c *ApiService) PagePluginRelease( + params *ListPluginReleaseParams, + pageToken, pageNumber string, +) (*ListPluginReleaseResponse, error) { path := "/v1/PluginService/Releases" data := url.Values{} @@ -200,7 +203,12 @@ func (c *ApiService) StreamPluginRelease(params *ListPluginReleaseParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamPluginRelease(response *ListPluginReleaseResponse, params *ListPluginReleaseParams, recordChannel chan FlexV1PluginRelease, errorChannel chan error) { +func (c *ApiService) streamPluginRelease( + response *ListPluginReleaseResponse, + params *ListPluginReleaseParams, + recordChannel chan FlexV1PluginRelease, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v1/web_channels.go b/rest/flex/v1/web_channels.go index 589a70e06..adc1a040b 100644 --- a/rest/flex/v1/web_channels.go +++ b/rest/flex/v1/web_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateWebChannel' @@ -164,7 +164,10 @@ func (params *ListWebChannelParams) SetLimit(Limit int) *ListWebChannelParams { } // Retrieve a single page of WebChannel records from the API. Request is executed immediately. -func (c *ApiService) PageWebChannel(params *ListWebChannelParams, pageToken, pageNumber string) (*ListWebChannelResponse, error) { +func (c *ApiService) PageWebChannel( + params *ListWebChannelParams, + pageToken, pageNumber string, +) (*ListWebChannelResponse, error) { path := "/v1/WebChannels" data := url.Values{} @@ -234,7 +237,12 @@ func (c *ApiService) StreamWebChannel(params *ListWebChannelParams) (chan FlexV1 return recordChannel, errorChannel } -func (c *ApiService) streamWebChannel(response *ListWebChannelResponse, params *ListWebChannelParams, recordChannel chan FlexV1WebChannel, errorChannel chan error) { +func (c *ApiService) streamWebChannel( + response *ListWebChannelResponse, + params *ListWebChannelParams, + recordChannel chan FlexV1WebChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/flex/v2/api_service.go b/rest/flex/v2/api_service.go index f6d8c27bc..9e5748da7 100644 --- a/rest/flex/v2/api_service.go +++ b/rest/flex/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/frontline/v1/api_service.go b/rest/frontline/v1/api_service.go index d4259bea7..2f49b9830 100644 --- a/rest/frontline/v1/api_service.go +++ b/rest/frontline/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/insights/v1/api_service.go b/rest/insights/v1/api_service.go index 42a4a9fda..c9018589a 100644 --- a/rest/insights/v1/api_service.go +++ b/rest/insights/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/insights/v1/conferences.go b/rest/insights/v1/conferences.go index 9572448bf..17857dc8d 100644 --- a/rest/insights/v1/conferences.go +++ b/rest/insights/v1/conferences.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Get a specific Conference Summary. @@ -124,7 +124,10 @@ func (params *ListConferenceParams) SetLimit(Limit int) *ListConferenceParams { } // Retrieve a single page of Conference records from the API. Request is executed immediately. -func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pageNumber string) (*ListConferenceResponse, error) { +func (c *ApiService) PageConference( + params *ListConferenceParams, + pageToken, pageNumber string, +) (*ListConferenceResponse, error) { path := "/v1/Conferences" data := url.Values{} @@ -224,7 +227,12 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan Insigh return recordChannel, errorChannel } -func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan InsightsV1Conference, errorChannel chan error) { +func (c *ApiService) streamConference( + response *ListConferenceResponse, + params *ListConferenceParams, + recordChannel chan InsightsV1Conference, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/conferences_participants.go b/rest/insights/v1/conferences_participants.go index c007560af..db5c4eee6 100644 --- a/rest/insights/v1/conferences_participants.go +++ b/rest/insights/v1/conferences_participants.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchConferenceParticipant' @@ -41,7 +41,11 @@ func (params *FetchConferenceParticipantParams) SetMetrics(Metrics string) *Fetc } // Get a specific Conference Participant Summary for a Conference. -func (c *ApiService) FetchConferenceParticipant(ConferenceSid string, ParticipantSid string, params *FetchConferenceParticipantParams) (*InsightsV1ConferenceParticipant, error) { +func (c *ApiService) FetchConferenceParticipant( + ConferenceSid string, + ParticipantSid string, + params *FetchConferenceParticipantParams, +) (*InsightsV1ConferenceParticipant, error) { path := "/v1/Conferences/{ConferenceSid}/Participants/{ParticipantSid}" path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -107,7 +111,11 @@ func (params *ListConferenceParticipantParams) SetLimit(Limit int) *ListConferen } // Retrieve a single page of ConferenceParticipant records from the API. Request is executed immediately. -func (c *ApiService) PageConferenceParticipant(ConferenceSid string, params *ListConferenceParticipantParams, pageToken, pageNumber string) (*ListConferenceParticipantResponse, error) { +func (c *ApiService) PageConferenceParticipant( + ConferenceSid string, + params *ListConferenceParticipantParams, + pageToken, pageNumber string, +) (*ListConferenceParticipantResponse, error) { path := "/v1/Conferences/{ConferenceSid}/Participants" path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) @@ -151,7 +159,10 @@ func (c *ApiService) PageConferenceParticipant(ConferenceSid string, params *Lis } // Lists ConferenceParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConferenceParticipant(ConferenceSid string, params *ListConferenceParticipantParams) ([]InsightsV1ConferenceParticipant, error) { +func (c *ApiService) ListConferenceParticipant( + ConferenceSid string, + params *ListConferenceParticipantParams, +) ([]InsightsV1ConferenceParticipant, error) { response, errors := c.StreamConferenceParticipant(ConferenceSid, params) records := make([]InsightsV1ConferenceParticipant, 0) @@ -167,7 +178,10 @@ func (c *ApiService) ListConferenceParticipant(ConferenceSid string, params *Lis } // Streams ConferenceParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConferenceParticipant(ConferenceSid string, params *ListConferenceParticipantParams) (chan InsightsV1ConferenceParticipant, chan error) { +func (c *ApiService) StreamConferenceParticipant( + ConferenceSid string, + params *ListConferenceParticipantParams, +) (chan InsightsV1ConferenceParticipant, chan error) { if params == nil { params = &ListConferenceParticipantParams{} } @@ -188,7 +202,12 @@ func (c *ApiService) StreamConferenceParticipant(ConferenceSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamConferenceParticipant(response *ListConferenceParticipantResponse, params *ListConferenceParticipantParams, recordChannel chan InsightsV1ConferenceParticipant, errorChannel chan error) { +func (c *ApiService) streamConferenceParticipant( + response *ListConferenceParticipantResponse, + params *ListConferenceParticipantParams, + recordChannel chan InsightsV1ConferenceParticipant, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/video_rooms.go b/rest/insights/v1/video_rooms.go index 632bb3a94..f0b46d884 100644 --- a/rest/insights/v1/video_rooms.go +++ b/rest/insights/v1/video_rooms.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Get Video Log Analyzer data for a Room. @@ -95,7 +95,10 @@ func (params *ListVideoRoomSummaryParams) SetLimit(Limit int) *ListVideoRoomSumm } // Retrieve a single page of VideoRoomSummary records from the API. Request is executed immediately. -func (c *ApiService) PageVideoRoomSummary(params *ListVideoRoomSummaryParams, pageToken, pageNumber string) (*ListVideoRoomSummaryResponse, error) { +func (c *ApiService) PageVideoRoomSummary( + params *ListVideoRoomSummaryParams, + pageToken, pageNumber string, +) (*ListVideoRoomSummaryResponse, error) { path := "/v1/Video/Rooms" data := url.Values{} @@ -184,7 +187,12 @@ func (c *ApiService) StreamVideoRoomSummary(params *ListVideoRoomSummaryParams) return recordChannel, errorChannel } -func (c *ApiService) streamVideoRoomSummary(response *ListVideoRoomSummaryResponse, params *ListVideoRoomSummaryParams, recordChannel chan InsightsV1VideoRoomSummary, errorChannel chan error) { +func (c *ApiService) streamVideoRoomSummary( + response *ListVideoRoomSummaryResponse, + params *ListVideoRoomSummaryParams, + recordChannel chan InsightsV1VideoRoomSummary, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/video_rooms_participants.go b/rest/insights/v1/video_rooms_participants.go index 9606f4ca6..7794f9232 100644 --- a/rest/insights/v1/video_rooms_participants.go +++ b/rest/insights/v1/video_rooms_participants.go @@ -20,11 +20,14 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Get Video Log Analyzer data for a Room Participant. -func (c *ApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid string) (*InsightsV1VideoParticipantSummary, error) { +func (c *ApiService) FetchVideoParticipantSummary( + RoomSid string, + ParticipantSid string, +) (*InsightsV1VideoParticipantSummary, error) { path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -65,7 +68,11 @@ func (params *ListVideoParticipantSummaryParams) SetLimit(Limit int) *ListVideoP } // Retrieve a single page of VideoParticipantSummary records from the API. Request is executed immediately. -func (c *ApiService) PageVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams, pageToken, pageNumber string) (*ListVideoParticipantSummaryResponse, error) { +func (c *ApiService) PageVideoParticipantSummary( + RoomSid string, + params *ListVideoParticipantSummaryParams, + pageToken, pageNumber string, +) (*ListVideoParticipantSummaryResponse, error) { path := "/v1/Video/Rooms/{RoomSid}/Participants" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -100,7 +107,10 @@ func (c *ApiService) PageVideoParticipantSummary(RoomSid string, params *ListVid } // Lists VideoParticipantSummary records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) ([]InsightsV1VideoParticipantSummary, error) { +func (c *ApiService) ListVideoParticipantSummary( + RoomSid string, + params *ListVideoParticipantSummaryParams, +) ([]InsightsV1VideoParticipantSummary, error) { response, errors := c.StreamVideoParticipantSummary(RoomSid, params) records := make([]InsightsV1VideoParticipantSummary, 0) @@ -116,7 +126,10 @@ func (c *ApiService) ListVideoParticipantSummary(RoomSid string, params *ListVid } // Streams VideoParticipantSummary records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) (chan InsightsV1VideoParticipantSummary, chan error) { +func (c *ApiService) StreamVideoParticipantSummary( + RoomSid string, + params *ListVideoParticipantSummaryParams, +) (chan InsightsV1VideoParticipantSummary, chan error) { if params == nil { params = &ListVideoParticipantSummaryParams{} } @@ -137,7 +150,12 @@ func (c *ApiService) StreamVideoParticipantSummary(RoomSid string, params *ListV return recordChannel, errorChannel } -func (c *ApiService) streamVideoParticipantSummary(response *ListVideoParticipantSummaryResponse, params *ListVideoParticipantSummaryParams, recordChannel chan InsightsV1VideoParticipantSummary, errorChannel chan error) { +func (c *ApiService) streamVideoParticipantSummary( + response *ListVideoParticipantSummaryResponse, + params *ListVideoParticipantSummaryParams, + recordChannel chan InsightsV1VideoParticipantSummary, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/voice_events.go b/rest/insights/v1/voice_events.go index bdf7f2047..e6ad9bec5 100644 --- a/rest/insights/v1/voice_events.go +++ b/rest/insights/v1/voice_events.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListEvent' @@ -47,7 +47,11 @@ func (params *ListEventParams) SetLimit(Limit int) *ListEventParams { } // Retrieve a single page of Event records from the API. Request is executed immediately. -func (c *ApiService) PageEvent(CallSid string, params *ListEventParams, pageToken, pageNumber string) (*ListEventResponse, error) { +func (c *ApiService) PageEvent( + CallSid string, + params *ListEventParams, + pageToken, pageNumber string, +) (*ListEventResponse, error) { path := "/v1/Voice/{CallSid}/Events" path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) @@ -122,7 +126,12 @@ func (c *ApiService) StreamEvent(CallSid string, params *ListEventParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan InsightsV1Event, errorChannel chan error) { +func (c *ApiService) streamEvent( + response *ListEventResponse, + params *ListEventParams, + recordChannel chan InsightsV1Event, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/voice_metrics.go b/rest/insights/v1/voice_metrics.go index d90683c0e..a428aa31d 100644 --- a/rest/insights/v1/voice_metrics.go +++ b/rest/insights/v1/voice_metrics.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListMetric' @@ -53,7 +53,11 @@ func (params *ListMetricParams) SetLimit(Limit int) *ListMetricParams { } // Retrieve a single page of Metric records from the API. Request is executed immediately. -func (c *ApiService) PageMetric(CallSid string, params *ListMetricParams, pageToken, pageNumber string) (*ListMetricResponse, error) { +func (c *ApiService) PageMetric( + CallSid string, + params *ListMetricParams, + pageToken, pageNumber string, +) (*ListMetricResponse, error) { path := "/v1/Voice/{CallSid}/Metrics" path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) @@ -131,7 +135,12 @@ func (c *ApiService) StreamMetric(CallSid string, params *ListMetricParams) (cha return recordChannel, errorChannel } -func (c *ApiService) streamMetric(response *ListMetricResponse, params *ListMetricParams, recordChannel chan InsightsV1Metric, errorChannel chan error) { +func (c *ApiService) streamMetric( + response *ListMetricResponse, + params *ListMetricParams, + recordChannel chan InsightsV1Metric, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/insights/v1/voice_summaries.go b/rest/insights/v1/voice_summaries.go index 1eb0fd7f9..7460b358e 100644 --- a/rest/insights/v1/voice_summaries.go +++ b/rest/insights/v1/voice_summaries.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListCallSummaries' @@ -184,7 +184,10 @@ func (params *ListCallSummariesParams) SetLimit(Limit int) *ListCallSummariesPar } // Retrieve a single page of CallSummaries records from the API. Request is executed immediately. -func (c *ApiService) PageCallSummaries(params *ListCallSummariesParams, pageToken, pageNumber string) (*ListCallSummariesResponse, error) { +func (c *ApiService) PageCallSummaries( + params *ListCallSummariesParams, + pageToken, pageNumber string, +) (*ListCallSummariesResponse, error) { path := "/v1/Voice/Summaries" data := url.Values{} @@ -326,7 +329,12 @@ func (c *ApiService) StreamCallSummaries(params *ListCallSummariesParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamCallSummaries(response *ListCallSummariesResponse, params *ListCallSummariesParams, recordChannel chan InsightsV1CallSummaries, errorChannel chan error) { +func (c *ApiService) streamCallSummaries( + response *ListCallSummariesResponse, + params *ListCallSummariesParams, + recordChannel chan InsightsV1CallSummaries, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/intelligence/v2/api_service.go b/rest/intelligence/v2/api_service.go index 628737e86..2daf4d8ea 100644 --- a/rest/intelligence/v2/api_service.go +++ b/rest/intelligence/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/intelligence/v2/model_intelligence_v2_operator_result.go b/rest/intelligence/v2/model_intelligence_v2_operator_result.go index 283506117..e6ba1ee13 100644 --- a/rest/intelligence/v2/model_intelligence_v2_operator_result.go +++ b/rest/intelligence/v2/model_intelligence_v2_operator_result.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // IntelligenceV2OperatorResult struct for IntelligenceV2OperatorResult diff --git a/rest/intelligence/v2/model_intelligence_v2_sentence.go b/rest/intelligence/v2/model_intelligence_v2_sentence.go index 7d62f74ef..50a517a61 100644 --- a/rest/intelligence/v2/model_intelligence_v2_sentence.go +++ b/rest/intelligence/v2/model_intelligence_v2_sentence.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // IntelligenceV2Sentence struct for IntelligenceV2Sentence diff --git a/rest/intelligence/v2/services.go b/rest/intelligence/v2/services.go index 736d0c442..b1264c7b6 100644 --- a/rest/intelligence/v2/services.go +++ b/rest/intelligence/v2/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -191,7 +191,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v2/Services" data := url.Values{} @@ -261,7 +264,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan Intelligence return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IntelligenceV2Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan IntelligenceV2Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/intelligence/v2/transcripts.go b/rest/intelligence/v2/transcripts.go index bb98dbd84..4ec2acded 100644 --- a/rest/intelligence/v2/transcripts.go +++ b/rest/intelligence/v2/transcripts.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTranscript' @@ -201,7 +201,10 @@ func (params *ListTranscriptParams) SetLimit(Limit int) *ListTranscriptParams { } // Retrieve a single page of Transcript records from the API. Request is executed immediately. -func (c *ApiService) PageTranscript(params *ListTranscriptParams, pageToken, pageNumber string) (*ListTranscriptResponse, error) { +func (c *ApiService) PageTranscript( + params *ListTranscriptParams, + pageToken, pageNumber string, +) (*ListTranscriptResponse, error) { path := "/v2/Transcripts" data := url.Values{} @@ -295,7 +298,12 @@ func (c *ApiService) StreamTranscript(params *ListTranscriptParams) (chan Intell return recordChannel, errorChannel } -func (c *ApiService) streamTranscript(response *ListTranscriptResponse, params *ListTranscriptParams, recordChannel chan IntelligenceV2Transcript, errorChannel chan error) { +func (c *ApiService) streamTranscript( + response *ListTranscriptResponse, + params *ListTranscriptParams, + recordChannel chan IntelligenceV2Transcript, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/intelligence/v2/transcripts_operator_results.go b/rest/intelligence/v2/transcripts_operator_results.go index 15e922c66..d0df220cd 100644 --- a/rest/intelligence/v2/transcripts_operator_results.go +++ b/rest/intelligence/v2/transcripts_operator_results.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchOperatorResult' @@ -35,7 +35,11 @@ func (params *FetchOperatorResultParams) SetRedacted(Redacted bool) *FetchOperat } // Fetch a specific Operator Result for the given Transcript. -func (c *ApiService) FetchOperatorResult(TranscriptSid string, OperatorSid string, params *FetchOperatorResultParams) (*IntelligenceV2OperatorResult, error) { +func (c *ApiService) FetchOperatorResult( + TranscriptSid string, + OperatorSid string, + params *FetchOperatorResultParams, +) (*IntelligenceV2OperatorResult, error) { path := "/v2/Transcripts/{TranscriptSid}/OperatorResults/{OperatorSid}" path = strings.Replace(path, "{"+"TranscriptSid"+"}", TranscriptSid, -1) path = strings.Replace(path, "{"+"OperatorSid"+"}", OperatorSid, -1) @@ -86,7 +90,11 @@ func (params *ListOperatorResultParams) SetLimit(Limit int) *ListOperatorResultP } // Retrieve a single page of OperatorResult records from the API. Request is executed immediately. -func (c *ApiService) PageOperatorResult(TranscriptSid string, params *ListOperatorResultParams, pageToken, pageNumber string) (*ListOperatorResultResponse, error) { +func (c *ApiService) PageOperatorResult( + TranscriptSid string, + params *ListOperatorResultParams, + pageToken, pageNumber string, +) (*ListOperatorResultResponse, error) { path := "/v2/Transcripts/{TranscriptSid}/OperatorResults" path = strings.Replace(path, "{"+"TranscriptSid"+"}", TranscriptSid, -1) @@ -124,7 +132,10 @@ func (c *ApiService) PageOperatorResult(TranscriptSid string, params *ListOperat } // Lists OperatorResult records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListOperatorResult(TranscriptSid string, params *ListOperatorResultParams) ([]IntelligenceV2OperatorResult, error) { +func (c *ApiService) ListOperatorResult( + TranscriptSid string, + params *ListOperatorResultParams, +) ([]IntelligenceV2OperatorResult, error) { response, errors := c.StreamOperatorResult(TranscriptSid, params) records := make([]IntelligenceV2OperatorResult, 0) @@ -140,7 +151,10 @@ func (c *ApiService) ListOperatorResult(TranscriptSid string, params *ListOperat } // Streams OperatorResult records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOperatorResultParams) (chan IntelligenceV2OperatorResult, chan error) { +func (c *ApiService) StreamOperatorResult( + TranscriptSid string, + params *ListOperatorResultParams, +) (chan IntelligenceV2OperatorResult, chan error) { if params == nil { params = &ListOperatorResultParams{} } @@ -161,7 +175,12 @@ func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOper return recordChannel, errorChannel } -func (c *ApiService) streamOperatorResult(response *ListOperatorResultResponse, params *ListOperatorResultParams, recordChannel chan IntelligenceV2OperatorResult, errorChannel chan error) { +func (c *ApiService) streamOperatorResult( + response *ListOperatorResultResponse, + params *ListOperatorResultParams, + recordChannel chan IntelligenceV2OperatorResult, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/intelligence/v2/transcripts_sentences.go b/rest/intelligence/v2/transcripts_sentences.go index 6b257de78..ce73ec910 100644 --- a/rest/intelligence/v2/transcripts_sentences.go +++ b/rest/intelligence/v2/transcripts_sentences.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListSentence' @@ -47,7 +47,11 @@ func (params *ListSentenceParams) SetLimit(Limit int) *ListSentenceParams { } // Retrieve a single page of Sentence records from the API. Request is executed immediately. -func (c *ApiService) PageSentence(TranscriptSid string, params *ListSentenceParams, pageToken, pageNumber string) (*ListSentenceResponse, error) { +func (c *ApiService) PageSentence( + TranscriptSid string, + params *ListSentenceParams, + pageToken, pageNumber string, +) (*ListSentenceResponse, error) { path := "/v2/Transcripts/{TranscriptSid}/Sentences" path = strings.Replace(path, "{"+"TranscriptSid"+"}", TranscriptSid, -1) @@ -101,7 +105,10 @@ func (c *ApiService) ListSentence(TranscriptSid string, params *ListSentencePara } // Streams Sentence records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentenceParams) (chan IntelligenceV2Sentence, chan error) { +func (c *ApiService) StreamSentence( + TranscriptSid string, + params *ListSentenceParams, +) (chan IntelligenceV2Sentence, chan error) { if params == nil { params = &ListSentenceParams{} } @@ -122,7 +129,12 @@ func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentencePa return recordChannel, errorChannel } -func (c *ApiService) streamSentence(response *ListSentenceResponse, params *ListSentenceParams, recordChannel chan IntelligenceV2Sentence, errorChannel chan error) { +func (c *ApiService) streamSentence( + response *ListSentenceResponse, + params *ListSentenceParams, + recordChannel chan IntelligenceV2Sentence, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/api_service.go b/rest/ip_messaging/v1/api_service.go index d15ea97c9..590db54a9 100644 --- a/rest/ip_messaging/v1/api_service.go +++ b/rest/ip_messaging/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/ip_messaging/v1/credentials.go b/rest/ip_messaging/v1/credentials.go index 850c839e0..107ae4336 100644 --- a/rest/ip_messaging/v1/credentials.go +++ b/rest/ip_messaging/v1/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v1/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan IpMess return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan IpMessagingV1Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan IpMessagingV1Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/services.go b/rest/ip_messaging/v1/services.go index a1370fc84..6765ec92c 100644 --- a/rest/ip_messaging/v1/services.go +++ b/rest/ip_messaging/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -119,7 +119,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan IpMessagingV return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IpMessagingV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan IpMessagingV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/services_channels.go b/rest/ip_messaging/v1/services_channels.go index 22d296a9e..73d5b5800 100644 --- a/rest/ip_messaging/v1/services_channels.go +++ b/rest/ip_messaging/v1/services_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannel' @@ -155,7 +155,11 @@ func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { } // Retrieve a single page of Channel records from the API. Request is executed immediately. -func (c *ApiService) PageChannel(ServiceSid string, params *ListChannelParams, pageToken, pageNumber string) (*ListChannelResponse, error) { +func (c *ApiService) PageChannel( + ServiceSid string, + params *ListChannelParams, + pageToken, pageNumber string, +) (*ListChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -211,7 +215,10 @@ func (c *ApiService) ListChannel(ServiceSid string, params *ListChannelParams) ( } // Streams Channel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) (chan IpMessagingV1Channel, chan error) { +func (c *ApiService) StreamChannel( + ServiceSid string, + params *ListChannelParams, +) (chan IpMessagingV1Channel, chan error) { if params == nil { params = &ListChannelParams{} } @@ -232,7 +239,12 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) return recordChannel, errorChannel } -func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan IpMessagingV1Channel, errorChannel chan error) { +func (c *ApiService) streamChannel( + response *ListChannelResponse, + params *ListChannelParams, + recordChannel chan IpMessagingV1Channel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -304,7 +316,11 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann } // -func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV1Channel, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v1/services_channels_invites.go b/rest/ip_messaging/v1/services_channels_invites.go index 30253d330..86725cc1f 100644 --- a/rest/ip_messaging/v1/services_channels_invites.go +++ b/rest/ip_messaging/v1/services_channels_invites.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInvite' @@ -41,7 +41,11 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams } // -func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV1Invite, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { } // Retrieve a single page of Invite records from the API. Request is executed immediately. -func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *ListInviteParams, pageToken, pageNumber string) (*ListInviteResponse, error) { +func (c *ApiService) PageInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, + pageToken, pageNumber string, +) (*ListInviteResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *Li } // Lists Invite records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) ([]IpMessagingV1Invite, error) { +func (c *ApiService) ListInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) ([]IpMessagingV1Invite, error) { response, errors := c.StreamInvite(ServiceSid, ChannelSid, params) records := make([]IpMessagingV1Invite, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *Li } // Streams Invite records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (chan IpMessagingV1Invite, chan error) { +func (c *ApiService) StreamInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) (chan IpMessagingV1Invite, chan error) { if params == nil { params = &ListInviteParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan IpMessagingV1Invite, errorChannel chan error) { +func (c *ApiService) streamInvite( + response *ListInviteResponse, + params *ListInviteParams, + recordChannel chan IpMessagingV1Invite, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/services_channels_members.go b/rest/ip_messaging/v1/services_channels_members.go index 77b1b4e90..f5cbc12ed 100644 --- a/rest/ip_messaging/v1/services_channels_members.go +++ b/rest/ip_messaging/v1/services_channels_members.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMember' @@ -41,7 +41,11 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams } // -func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV1Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { +func (c *ApiService) PageMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, + pageToken, pageNumber string, +) (*ListMemberResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *Li } // Lists Member records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) ([]IpMessagingV1Member, error) { +func (c *ApiService) ListMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) ([]IpMessagingV1Member, error) { response, errors := c.StreamMember(ServiceSid, ChannelSid, params) records := make([]IpMessagingV1Member, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *Li } // Streams Member records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (chan IpMessagingV1Member, chan error) { +func (c *ApiService) StreamMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) (chan IpMessagingV1Member, chan error) { if params == nil { params = &ListMemberParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan IpMessagingV1Member, errorChannel chan error) { +func (c *ApiService) streamMember( + response *ListMemberResponse, + params *ListMemberParams, + recordChannel chan IpMessagingV1Member, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -284,7 +306,12 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag } // -func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV1Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_messages.go b/rest/ip_messaging/v1/services_channels_messages.go index 28f929dda..74790b074 100644 --- a/rest/ip_messaging/v1/services_channels_messages.go +++ b/rest/ip_messaging/v1/services_channels_messages.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessage' @@ -47,7 +47,11 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa } // -func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV1Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -149,7 +153,12 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, + pageToken, pageNumber string, +) (*ListMessageResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -188,7 +197,11 @@ func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *L } // Lists Message records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) ([]IpMessagingV1Message, error) { +func (c *ApiService) ListMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) ([]IpMessagingV1Message, error) { response, errors := c.StreamMessage(ServiceSid, ChannelSid, params) records := make([]IpMessagingV1Message, 0) @@ -204,7 +217,11 @@ func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *L } // Streams Message records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (chan IpMessagingV1Message, chan error) { +func (c *ApiService) StreamMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) (chan IpMessagingV1Message, chan error) { if params == nil { params = &ListMessageParams{} } @@ -225,7 +242,12 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan IpMessagingV1Message, errorChannel chan error) { +func (c *ApiService) streamMessage( + response *ListMessageResponse, + params *ListMessageParams, + recordChannel chan IpMessagingV1Message, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -291,7 +313,12 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa } // -func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV1Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/ip_messaging/v1/services_roles.go b/rest/ip_messaging/v1/services_roles.go index 3d562e6c0..31fca7e99 100644 --- a/rest/ip_messaging/v1/services_roles.go +++ b/rest/ip_messaging/v1/services_roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRole' @@ -142,7 +142,11 @@ func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { } // Retrieve a single page of Role records from the API. Request is executed immediately. -func (c *ApiService) PageRole(ServiceSid string, params *ListRoleParams, pageToken, pageNumber string) (*ListRoleResponse, error) { +func (c *ApiService) PageRole( + ServiceSid string, + params *ListRoleParams, + pageToken, pageNumber string, +) (*ListRoleResponse, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -214,7 +218,12 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan IpMessagingV1Role, errorChannel chan error) { +func (c *ApiService) streamRole( + response *ListRoleResponse, + params *ListRoleParams, + recordChannel chan IpMessagingV1Role, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/services_users.go b/rest/ip_messaging/v1/services_users.go index 8fe15c616..6c32f613a 100644 --- a/rest/ip_messaging/v1/services_users.go +++ b/rest/ip_messaging/v1/services_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUser' @@ -149,7 +149,11 @@ func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { } // Retrieve a single page of User records from the API. Request is executed immediately. -func (c *ApiService) PageUser(ServiceSid string, params *ListUserParams, pageToken, pageNumber string) (*ListUserResponse, error) { +func (c *ApiService) PageUser( + ServiceSid string, + params *ListUserParams, + pageToken, pageNumber string, +) (*ListUserResponse, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -221,7 +225,12 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan IpMessagingV1User, errorChannel chan error) { +func (c *ApiService) streamUser( + response *ListUserResponse, + params *ListUserParams, + recordChannel chan IpMessagingV1User, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v1/services_users_channels.go b/rest/ip_messaging/v1/services_users_channels.go index 32b0dfc05..0d342b2fe 100644 --- a/rest/ip_messaging/v1/services_users_channels.go +++ b/rest/ip_messaging/v1/services_users_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUserChannel' @@ -41,7 +41,12 @@ func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams } // Retrieve a single page of UserChannel records from the API. Request is executed immediately. -func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams, pageToken, pageNumber string) (*ListUserChannelResponse, error) { +func (c *ApiService) PageUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, + pageToken, pageNumber string, +) (*ListUserChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -77,7 +82,11 @@ func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params * } // Lists UserChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) ([]IpMessagingV1UserChannel, error) { +func (c *ApiService) ListUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) ([]IpMessagingV1UserChannel, error) { response, errors := c.StreamUserChannel(ServiceSid, UserSid, params) records := make([]IpMessagingV1UserChannel, 0) @@ -93,7 +102,11 @@ func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params * } // Streams UserChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (chan IpMessagingV1UserChannel, chan error) { +func (c *ApiService) StreamUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) (chan IpMessagingV1UserChannel, chan error) { if params == nil { params = &ListUserChannelParams{} } @@ -114,7 +127,12 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan IpMessagingV1UserChannel, errorChannel chan error) { +func (c *ApiService) streamUserChannel( + response *ListUserChannelResponse, + params *ListUserChannelParams, + recordChannel chan IpMessagingV1UserChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/api_service.go b/rest/ip_messaging/v2/api_service.go index d15ea97c9..590db54a9 100644 --- a/rest/ip_messaging/v2/api_service.go +++ b/rest/ip_messaging/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/ip_messaging/v2/credentials.go b/rest/ip_messaging/v2/credentials.go index 7d4227335..a9354594b 100644 --- a/rest/ip_messaging/v2/credentials.go +++ b/rest/ip_messaging/v2/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v2/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan IpMess return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan IpMessagingV2Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan IpMessagingV2Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services.go b/rest/ip_messaging/v2/services.go index 3b093dcd5..86db499f9 100644 --- a/rest/ip_messaging/v2/services.go +++ b/rest/ip_messaging/v2/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -119,7 +119,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v2/Services" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan IpMessagingV return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan IpMessagingV2Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan IpMessagingV2Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -470,7 +478,10 @@ func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*Ip data.Set("Notifications.NewMessage.Sound", *params.NotificationsNewMessageSound) } if params != nil && params.NotificationsNewMessageBadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled)) + data.Set( + "Notifications.NewMessage.BadgeCountEnabled", + fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled), + ) } if params != nil && params.NotificationsAddedToChannelEnabled != nil { data.Set("Notifications.AddedToChannel.Enabled", fmt.Sprint(*params.NotificationsAddedToChannelEnabled)) diff --git a/rest/ip_messaging/v2/services_bindings.go b/rest/ip_messaging/v2/services_bindings.go index 248da0f90..52c67dd4f 100644 --- a/rest/ip_messaging/v2/services_bindings.go +++ b/rest/ip_messaging/v2/services_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -96,7 +96,11 @@ func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { } // Retrieve a single page of Binding records from the API. Request is executed immediately. -func (c *ApiService) PageBinding(ServiceSid string, params *ListBindingParams, pageToken, pageNumber string) (*ListBindingResponse, error) { +func (c *ApiService) PageBinding( + ServiceSid string, + params *ListBindingParams, + pageToken, pageNumber string, +) (*ListBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -157,7 +161,10 @@ func (c *ApiService) ListBinding(ServiceSid string, params *ListBindingParams) ( } // Streams Binding records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) (chan IpMessagingV2Binding, chan error) { +func (c *ApiService) StreamBinding( + ServiceSid string, + params *ListBindingParams, +) (chan IpMessagingV2Binding, chan error) { if params == nil { params = &ListBindingParams{} } @@ -178,7 +185,12 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) return recordChannel, errorChannel } -func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan IpMessagingV2Binding, errorChannel chan error) { +func (c *ApiService) streamBinding( + response *ListBindingResponse, + params *ListBindingParams, + recordChannel chan IpMessagingV2Binding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services_channels.go b/rest/ip_messaging/v2/services_channels.go index fe06ed53e..3cf236d69 100644 --- a/rest/ip_messaging/v2/services_channels.go +++ b/rest/ip_messaging/v2/services_channels.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannel' @@ -206,7 +206,11 @@ func (params *ListChannelParams) SetLimit(Limit int) *ListChannelParams { } // Retrieve a single page of Channel records from the API. Request is executed immediately. -func (c *ApiService) PageChannel(ServiceSid string, params *ListChannelParams, pageToken, pageNumber string) (*ListChannelResponse, error) { +func (c *ApiService) PageChannel( + ServiceSid string, + params *ListChannelParams, + pageToken, pageNumber string, +) (*ListChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -262,7 +266,10 @@ func (c *ApiService) ListChannel(ServiceSid string, params *ListChannelParams) ( } // Streams Channel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) (chan IpMessagingV2Channel, chan error) { +func (c *ApiService) StreamChannel( + ServiceSid string, + params *ListChannelParams, +) (chan IpMessagingV2Channel, chan error) { if params == nil { params = &ListChannelParams{} } @@ -283,7 +290,12 @@ func (c *ApiService) StreamChannel(ServiceSid string, params *ListChannelParams) return recordChannel, errorChannel } -func (c *ApiService) streamChannel(response *ListChannelResponse, params *ListChannelParams, recordChannel chan IpMessagingV2Channel, errorChannel chan error) { +func (c *ApiService) streamChannel( + response *ListChannelResponse, + params *ListChannelParams, + recordChannel chan IpMessagingV2Channel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -379,7 +391,11 @@ func (params *UpdateChannelParams) SetCreatedBy(CreatedBy string) *UpdateChannel } // -func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV2Channel, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v2/services_channels_invites.go b/rest/ip_messaging/v2/services_channels_invites.go index f02e2cbbc..9ed0c8889 100644 --- a/rest/ip_messaging/v2/services_channels_invites.go +++ b/rest/ip_messaging/v2/services_channels_invites.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInvite' @@ -41,7 +41,11 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams } // -func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV2Invite, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -140,7 +144,12 @@ func (params *ListInviteParams) SetLimit(Limit int) *ListInviteParams { } // Retrieve a single page of Invite records from the API. Request is executed immediately. -func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *ListInviteParams, pageToken, pageNumber string) (*ListInviteResponse, error) { +func (c *ApiService) PageInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, + pageToken, pageNumber string, +) (*ListInviteResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -181,7 +190,11 @@ func (c *ApiService) PageInvite(ServiceSid string, ChannelSid string, params *Li } // Lists Invite records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) ([]IpMessagingV2Invite, error) { +func (c *ApiService) ListInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) ([]IpMessagingV2Invite, error) { response, errors := c.StreamInvite(ServiceSid, ChannelSid, params) records := make([]IpMessagingV2Invite, 0) @@ -197,7 +210,11 @@ func (c *ApiService) ListInvite(ServiceSid string, ChannelSid string, params *Li } // Streams Invite records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (chan IpMessagingV2Invite, chan error) { +func (c *ApiService) StreamInvite( + ServiceSid string, + ChannelSid string, + params *ListInviteParams, +) (chan IpMessagingV2Invite, chan error) { if params == nil { params = &ListInviteParams{} } @@ -218,7 +235,12 @@ func (c *ApiService) StreamInvite(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamInvite(response *ListInviteResponse, params *ListInviteParams, recordChannel chan IpMessagingV2Invite, errorChannel chan error) { +func (c *ApiService) streamInvite( + response *ListInviteResponse, + params *ListInviteParams, + recordChannel chan IpMessagingV2Invite, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services_channels_members.go b/rest/ip_messaging/v2/services_channels_members.go index e3f23a9d7..40a2148bb 100644 --- a/rest/ip_messaging/v2/services_channels_members.go +++ b/rest/ip_messaging/v2/services_channels_members.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMember' @@ -78,7 +78,11 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember } // -func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV2Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -209,7 +213,12 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { +func (c *ApiService) PageMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, + pageToken, pageNumber string, +) (*ListMemberResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -250,7 +259,11 @@ func (c *ApiService) PageMember(ServiceSid string, ChannelSid string, params *Li } // Lists Member records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) ([]IpMessagingV2Member, error) { +func (c *ApiService) ListMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) ([]IpMessagingV2Member, error) { response, errors := c.StreamMember(ServiceSid, ChannelSid, params) records := make([]IpMessagingV2Member, 0) @@ -266,7 +279,11 @@ func (c *ApiService) ListMember(ServiceSid string, ChannelSid string, params *Li } // Streams Member records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (chan IpMessagingV2Member, chan error) { +func (c *ApiService) StreamMember( + ServiceSid string, + ChannelSid string, + params *ListMemberParams, +) (chan IpMessagingV2Member, chan error) { if params == nil { params = &ListMemberParams{} } @@ -287,7 +304,12 @@ func (c *ApiService) StreamMember(ServiceSid string, ChannelSid string, params * return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan IpMessagingV2Member, errorChannel chan error) { +func (c *ApiService) streamMember( + response *ListMemberResponse, + params *ListMemberParams, + recordChannel chan IpMessagingV2Member, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -383,7 +405,12 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember } // -func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV2Member, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_messages.go b/rest/ip_messaging/v2/services_channels_messages.go index d8d0e8415..a50e54734 100644 --- a/rest/ip_messaging/v2/services_channels_messages.go +++ b/rest/ip_messaging/v2/services_channels_messages.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessage' @@ -78,7 +78,11 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa } // -func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV2Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -138,7 +142,12 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable } // -func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) error { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -209,7 +218,12 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, + pageToken, pageNumber string, +) (*ListMessageResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -248,7 +262,11 @@ func (c *ApiService) PageMessage(ServiceSid string, ChannelSid string, params *L } // Lists Message records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) ([]IpMessagingV2Message, error) { +func (c *ApiService) ListMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) ([]IpMessagingV2Message, error) { response, errors := c.StreamMessage(ServiceSid, ChannelSid, params) records := make([]IpMessagingV2Message, 0) @@ -264,7 +282,11 @@ func (c *ApiService) ListMessage(ServiceSid string, ChannelSid string, params *L } // Streams Message records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (chan IpMessagingV2Message, chan error) { +func (c *ApiService) StreamMessage( + ServiceSid string, + ChannelSid string, + params *ListMessageParams, +) (chan IpMessagingV2Message, chan error) { if params == nil { params = &ListMessageParams{} } @@ -285,7 +307,12 @@ func (c *ApiService) StreamMessage(ServiceSid string, ChannelSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan IpMessagingV2Message, errorChannel chan error) { +func (c *ApiService) streamMessage( + response *ListMessageResponse, + params *ListMessageParams, + recordChannel chan IpMessagingV2Message, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -381,7 +408,12 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { } // -func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV2Message, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_webhooks.go b/rest/ip_messaging/v2/services_channels_webhooks.go index 76535a9e2..5b59a4e24 100644 --- a/rest/ip_messaging/v2/services_channels_webhooks.go +++ b/rest/ip_messaging/v2/services_channels_webhooks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChannelWebhook' @@ -71,7 +71,11 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati } // -func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -141,7 +145,11 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, } // -func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -183,7 +191,12 @@ func (params *ListChannelWebhookParams) SetLimit(Limit int) *ListChannelWebhookP } // Retrieve a single page of ChannelWebhook records from the API. Request is executed immediately. -func (c *ApiService) PageChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams, pageToken, pageNumber string) (*ListChannelWebhookResponse, error) { +func (c *ApiService) PageChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, + pageToken, pageNumber string, +) (*ListChannelWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -219,7 +232,11 @@ func (c *ApiService) PageChannelWebhook(ServiceSid string, ChannelSid string, pa } // Lists ChannelWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) ([]IpMessagingV2ChannelWebhook, error) { +func (c *ApiService) ListChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, +) ([]IpMessagingV2ChannelWebhook, error) { response, errors := c.StreamChannelWebhook(ServiceSid, ChannelSid, params) records := make([]IpMessagingV2ChannelWebhook, 0) @@ -235,7 +252,11 @@ func (c *ApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, pa } // Streams ChannelWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (chan IpMessagingV2ChannelWebhook, chan error) { +func (c *ApiService) StreamChannelWebhook( + ServiceSid string, + ChannelSid string, + params *ListChannelWebhookParams, +) (chan IpMessagingV2ChannelWebhook, chan error) { if params == nil { params = &ListChannelWebhookParams{} } @@ -256,7 +277,12 @@ func (c *ApiService) StreamChannelWebhook(ServiceSid string, ChannelSid string, return recordChannel, errorChannel } -func (c *ApiService) streamChannelWebhook(response *ListChannelWebhookResponse, params *ListChannelWebhookParams, recordChannel chan IpMessagingV2ChannelWebhook, errorChannel chan error) { +func (c *ApiService) streamChannelWebhook( + response *ListChannelWebhookResponse, + params *ListChannelWebhookParams, + recordChannel chan IpMessagingV2ChannelWebhook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -346,7 +372,12 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati } // -func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { +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) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) diff --git a/rest/ip_messaging/v2/services_roles.go b/rest/ip_messaging/v2/services_roles.go index 62bc98a4d..6db8f33b6 100644 --- a/rest/ip_messaging/v2/services_roles.go +++ b/rest/ip_messaging/v2/services_roles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRole' @@ -142,7 +142,11 @@ func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams { } // Retrieve a single page of Role records from the API. Request is executed immediately. -func (c *ApiService) PageRole(ServiceSid string, params *ListRoleParams, pageToken, pageNumber string) (*ListRoleResponse, error) { +func (c *ApiService) PageRole( + ServiceSid string, + params *ListRoleParams, + pageToken, pageNumber string, +) (*ListRoleResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -214,7 +218,12 @@ func (c *ApiService) StreamRole(ServiceSid string, params *ListRoleParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamRole(response *ListRoleResponse, params *ListRoleParams, recordChannel chan IpMessagingV2Role, errorChannel chan error) { +func (c *ApiService) streamRole( + response *ListRoleResponse, + params *ListRoleParams, + recordChannel chan IpMessagingV2Role, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services_users.go b/rest/ip_messaging/v2/services_users.go index fbe2eb131..8f285d55a 100644 --- a/rest/ip_messaging/v2/services_users.go +++ b/rest/ip_messaging/v2/services_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUser' @@ -158,7 +158,11 @@ func (params *ListUserParams) SetLimit(Limit int) *ListUserParams { } // Retrieve a single page of User records from the API. Request is executed immediately. -func (c *ApiService) PageUser(ServiceSid string, params *ListUserParams, pageToken, pageNumber string) (*ListUserResponse, error) { +func (c *ApiService) PageUser( + ServiceSid string, + params *ListUserParams, + pageToken, pageNumber string, +) (*ListUserResponse, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -230,7 +234,12 @@ func (c *ApiService) StreamUser(ServiceSid string, params *ListUserParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamUser(response *ListUserResponse, params *ListUserParams, recordChannel chan IpMessagingV2User, errorChannel chan error) { +func (c *ApiService) streamUser( + response *ListUserResponse, + params *ListUserParams, + recordChannel chan IpMessagingV2User, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services_users_bindings.go b/rest/ip_messaging/v2/services_users_bindings.go index 3ee4e8c86..7bb7be893 100644 --- a/rest/ip_messaging/v2/services_users_bindings.go +++ b/rest/ip_messaging/v2/services_users_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -44,7 +44,11 @@ func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid st } // -func (c *ApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*IpMessagingV2UserBinding, error) { +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) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -92,7 +96,12 @@ func (params *ListUserBindingParams) SetLimit(Limit int) *ListUserBindingParams } // Retrieve a single page of UserBinding records from the API. Request is executed immediately. -func (c *ApiService) PageUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams, pageToken, pageNumber string) (*ListUserBindingResponse, error) { +func (c *ApiService) PageUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, + pageToken, pageNumber string, +) (*ListUserBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -133,7 +142,11 @@ func (c *ApiService) PageUserBinding(ServiceSid string, UserSid string, params * } // Lists UserBinding records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) ([]IpMessagingV2UserBinding, error) { +func (c *ApiService) ListUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, +) ([]IpMessagingV2UserBinding, error) { response, errors := c.StreamUserBinding(ServiceSid, UserSid, params) records := make([]IpMessagingV2UserBinding, 0) @@ -149,7 +162,11 @@ func (c *ApiService) ListUserBinding(ServiceSid string, UserSid string, params * } // Streams UserBinding records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (chan IpMessagingV2UserBinding, chan error) { +func (c *ApiService) StreamUserBinding( + ServiceSid string, + UserSid string, + params *ListUserBindingParams, +) (chan IpMessagingV2UserBinding, chan error) { if params == nil { params = &ListUserBindingParams{} } @@ -170,7 +187,12 @@ func (c *ApiService) StreamUserBinding(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserBinding(response *ListUserBindingResponse, params *ListUserBindingParams, recordChannel chan IpMessagingV2UserBinding, errorChannel chan error) { +func (c *ApiService) streamUserBinding( + response *ListUserBindingResponse, + params *ListUserBindingParams, + recordChannel chan IpMessagingV2UserBinding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/ip_messaging/v2/services_users_channels.go b/rest/ip_messaging/v2/services_users_channels.go index 08d882ce7..26585fe9f 100644 --- a/rest/ip_messaging/v2/services_users_channels.go +++ b/rest/ip_messaging/v2/services_users_channels.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -45,7 +45,11 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe } // -func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*IpMessagingV2UserChannel, error) { +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) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -87,7 +91,12 @@ func (params *ListUserChannelParams) SetLimit(Limit int) *ListUserChannelParams } // Retrieve a single page of UserChannel records from the API. Request is executed immediately. -func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams, pageToken, pageNumber string) (*ListUserChannelResponse, error) { +func (c *ApiService) PageUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, + pageToken, pageNumber string, +) (*ListUserChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -123,7 +132,11 @@ func (c *ApiService) PageUserChannel(ServiceSid string, UserSid string, params * } // Lists UserChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) ([]IpMessagingV2UserChannel, error) { +func (c *ApiService) ListUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) ([]IpMessagingV2UserChannel, error) { response, errors := c.StreamUserChannel(ServiceSid, UserSid, params) records := make([]IpMessagingV2UserChannel, 0) @@ -139,7 +152,11 @@ func (c *ApiService) ListUserChannel(ServiceSid string, UserSid string, params * } // Streams UserChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (chan IpMessagingV2UserChannel, chan error) { +func (c *ApiService) StreamUserChannel( + ServiceSid string, + UserSid string, + params *ListUserChannelParams, +) (chan IpMessagingV2UserChannel, chan error) { if params == nil { params = &ListUserChannelParams{} } @@ -160,7 +177,12 @@ func (c *ApiService) StreamUserChannel(ServiceSid string, UserSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamUserChannel(response *ListUserChannelResponse, params *ListUserChannelParams, recordChannel chan IpMessagingV2UserChannel, errorChannel chan error) { +func (c *ApiService) streamUserChannel( + response *ListUserChannelResponse, + params *ListUserChannelParams, + recordChannel chan IpMessagingV2UserChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -232,7 +254,12 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti } // -func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*IpMessagingV2UserChannel, error) { +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) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) diff --git a/rest/lookups/v1/api_service.go b/rest/lookups/v1/api_service.go index a28eaac94..69e61d12d 100644 --- a/rest/lookups/v1/api_service.go +++ b/rest/lookups/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/lookups/v2/api_service.go b/rest/lookups/v2/api_service.go index a28eaac94..69e61d12d 100644 --- a/rest/lookups/v2/api_service.go +++ b/rest/lookups/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/messaging/v1/a2p_brand_registrations.go b/rest/messaging/v1/a2p_brand_registrations.go index a6ce88b3f..8a49f17f2 100644 --- a/rest/messaging/v1/a2p_brand_registrations.go +++ b/rest/messaging/v1/a2p_brand_registrations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBrandRegistrations' @@ -137,7 +137,10 @@ func (params *ListBrandRegistrationsParams) SetLimit(Limit int) *ListBrandRegist } // Retrieve a single page of BrandRegistrations records from the API. Request is executed immediately. -func (c *ApiService) PageBrandRegistrations(params *ListBrandRegistrationsParams, pageToken, pageNumber string) (*ListBrandRegistrationsResponse, error) { +func (c *ApiService) PageBrandRegistrations( + params *ListBrandRegistrationsParams, + pageToken, pageNumber string, +) (*ListBrandRegistrationsResponse, error) { path := "/v1/a2p/BrandRegistrations" data := url.Values{} @@ -207,7 +210,12 @@ func (c *ApiService) StreamBrandRegistrations(params *ListBrandRegistrationsPara return recordChannel, errorChannel } -func (c *ApiService) streamBrandRegistrations(response *ListBrandRegistrationsResponse, params *ListBrandRegistrationsParams, recordChannel chan MessagingV1BrandRegistrations, errorChannel chan error) { +func (c *ApiService) streamBrandRegistrations( + response *ListBrandRegistrationsResponse, + params *ListBrandRegistrationsParams, + recordChannel chan MessagingV1BrandRegistrations, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/a2p_brand_registrations_vettings.go b/rest/messaging/v1/a2p_brand_registrations_vettings.go index b7e46cdcd..c19b73d26 100644 --- a/rest/messaging/v1/a2p_brand_registrations_vettings.go +++ b/rest/messaging/v1/a2p_brand_registrations_vettings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBrandVetting' @@ -41,7 +41,10 @@ func (params *CreateBrandVettingParams) SetVettingId(VettingId string) *CreateBr } // -func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error) { +func (c *ApiService) CreateBrandVetting( + BrandSid string, + params *CreateBrandVettingParams, +) (*MessagingV1BrandVetting, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) @@ -118,7 +121,11 @@ func (params *ListBrandVettingParams) SetLimit(Limit int) *ListBrandVettingParam } // Retrieve a single page of BrandVetting records from the API. Request is executed immediately. -func (c *ApiService) PageBrandVetting(BrandSid string, params *ListBrandVettingParams, pageToken, pageNumber string) (*ListBrandVettingResponse, error) { +func (c *ApiService) PageBrandVetting( + BrandSid string, + params *ListBrandVettingParams, + pageToken, pageNumber string, +) (*ListBrandVettingResponse, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) @@ -156,7 +163,10 @@ func (c *ApiService) PageBrandVetting(BrandSid string, params *ListBrandVettingP } // Lists BrandVetting records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListBrandVetting(BrandSid string, params *ListBrandVettingParams) ([]MessagingV1BrandVetting, error) { +func (c *ApiService) ListBrandVetting( + BrandSid string, + params *ListBrandVettingParams, +) ([]MessagingV1BrandVetting, error) { response, errors := c.StreamBrandVetting(BrandSid, params) records := make([]MessagingV1BrandVetting, 0) @@ -172,7 +182,10 @@ func (c *ApiService) ListBrandVetting(BrandSid string, params *ListBrandVettingP } // Streams BrandVetting records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettingParams) (chan MessagingV1BrandVetting, chan error) { +func (c *ApiService) StreamBrandVetting( + BrandSid string, + params *ListBrandVettingParams, +) (chan MessagingV1BrandVetting, chan error) { if params == nil { params = &ListBrandVettingParams{} } @@ -193,7 +206,12 @@ func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettin return recordChannel, errorChannel } -func (c *ApiService) streamBrandVetting(response *ListBrandVettingResponse, params *ListBrandVettingParams, recordChannel chan MessagingV1BrandVetting, errorChannel chan error) { +func (c *ApiService) streamBrandVetting( + response *ListBrandVettingResponse, + params *ListBrandVettingParams, + recordChannel chan MessagingV1BrandVetting, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/api_service.go b/rest/messaging/v1/api_service.go index 434465673..941ba95a5 100644 --- a/rest/messaging/v1/api_service.go +++ b/rest/messaging/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/messaging/v1/services.go b/rest/messaging/v1/services.go index df8bfbe4a..4183a49c6 100644 --- a/rest/messaging/v1/services.go +++ b/rest/messaging/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -254,7 +254,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -324,7 +327,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan MessagingV1S return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan MessagingV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan MessagingV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/services_alpha_senders.go b/rest/messaging/v1/services_alpha_senders.go index c8a5639cb..cb51486bf 100644 --- a/rest/messaging/v1/services_alpha_senders.go +++ b/rest/messaging/v1/services_alpha_senders.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAlphaSender' @@ -35,7 +35,10 @@ func (params *CreateAlphaSenderParams) SetAlphaSender(AlphaSender string) *Creat } // -func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error) { +func (c *ApiService) CreateAlphaSender( + ServiceSid string, + params *CreateAlphaSenderParams, +) (*MessagingV1AlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +125,11 @@ func (params *ListAlphaSenderParams) SetLimit(Limit int) *ListAlphaSenderParams } // Retrieve a single page of AlphaSender records from the API. Request is executed immediately. -func (c *ApiService) PageAlphaSender(ServiceSid string, params *ListAlphaSenderParams, pageToken, pageNumber string) (*ListAlphaSenderResponse, error) { +func (c *ApiService) PageAlphaSender( + ServiceSid string, + params *ListAlphaSenderParams, + pageToken, pageNumber string, +) (*ListAlphaSenderResponse, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -157,7 +164,10 @@ func (c *ApiService) PageAlphaSender(ServiceSid string, params *ListAlphaSenderP } // Lists AlphaSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) ([]MessagingV1AlphaSender, error) { +func (c *ApiService) ListAlphaSender( + ServiceSid string, + params *ListAlphaSenderParams, +) ([]MessagingV1AlphaSender, error) { response, errors := c.StreamAlphaSender(ServiceSid, params) records := make([]MessagingV1AlphaSender, 0) @@ -173,7 +183,10 @@ func (c *ApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderP } // Streams AlphaSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (chan MessagingV1AlphaSender, chan error) { +func (c *ApiService) StreamAlphaSender( + ServiceSid string, + params *ListAlphaSenderParams, +) (chan MessagingV1AlphaSender, chan error) { if params == nil { params = &ListAlphaSenderParams{} } @@ -194,7 +207,12 @@ func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSende return recordChannel, errorChannel } -func (c *ApiService) streamAlphaSender(response *ListAlphaSenderResponse, params *ListAlphaSenderParams, recordChannel chan MessagingV1AlphaSender, errorChannel chan error) { +func (c *ApiService) streamAlphaSender( + response *ListAlphaSenderResponse, + params *ListAlphaSenderParams, + recordChannel chan MessagingV1AlphaSender, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/services_channel_senders.go b/rest/messaging/v1/services_channel_senders.go index 27408c83d..52955e87d 100644 --- a/rest/messaging/v1/services_channel_senders.go +++ b/rest/messaging/v1/services_channel_senders.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -65,7 +65,11 @@ func (params *ListChannelSenderParams) SetLimit(Limit int) *ListChannelSenderPar } // Retrieve a single page of ChannelSender records from the API. Request is executed immediately. -func (c *ApiService) PageChannelSender(MessagingServiceSid string, params *ListChannelSenderParams, pageToken, pageNumber string) (*ListChannelSenderResponse, error) { +func (c *ApiService) PageChannelSender( + MessagingServiceSid string, + params *ListChannelSenderParams, + pageToken, pageNumber string, +) (*ListChannelSenderResponse, error) { path := "/v1/Services/{MessagingServiceSid}/ChannelSenders" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -100,7 +104,10 @@ func (c *ApiService) PageChannelSender(MessagingServiceSid string, params *ListC } // Lists ChannelSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) ([]MessagingV1ChannelSender, error) { +func (c *ApiService) ListChannelSender( + MessagingServiceSid string, + params *ListChannelSenderParams, +) ([]MessagingV1ChannelSender, error) { response, errors := c.StreamChannelSender(MessagingServiceSid, params) records := make([]MessagingV1ChannelSender, 0) @@ -116,7 +123,10 @@ func (c *ApiService) ListChannelSender(MessagingServiceSid string, params *ListC } // Streams ChannelSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) (chan MessagingV1ChannelSender, chan error) { +func (c *ApiService) StreamChannelSender( + MessagingServiceSid string, + params *ListChannelSenderParams, +) (chan MessagingV1ChannelSender, chan error) { if params == nil { params = &ListChannelSenderParams{} } @@ -137,7 +147,12 @@ func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamChannelSender(response *ListChannelSenderResponse, params *ListChannelSenderParams, recordChannel chan MessagingV1ChannelSender, errorChannel chan error) { +func (c *ApiService) streamChannelSender( + response *ListChannelSenderResponse, + params *ListChannelSenderParams, + recordChannel chan MessagingV1ChannelSender, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/services_compliance_usa2p.go b/rest/messaging/v1/services_compliance_usa2p.go index c4ee14941..0e24a9fbb 100644 --- a/rest/messaging/v1/services_compliance_usa2p.go +++ b/rest/messaging/v1/services_compliance_usa2p.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateUsAppToPerson' @@ -125,7 +125,10 @@ func (params *CreateUsAppToPersonParams) SetDirectLending(DirectLending bool) *C } // -func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { +func (c *ApiService) CreateUsAppToPerson( + MessagingServiceSid string, + params *CreateUsAppToPersonParams, +) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -265,7 +268,11 @@ func (params *ListUsAppToPersonParams) SetLimit(Limit int) *ListUsAppToPersonPar } // Retrieve a single page of UsAppToPerson records from the API. Request is executed immediately. -func (c *ApiService) PageUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams, pageToken, pageNumber string) (*ListUsAppToPersonResponse, error) { +func (c *ApiService) PageUsAppToPerson( + MessagingServiceSid string, + params *ListUsAppToPersonParams, + pageToken, pageNumber string, +) (*ListUsAppToPersonResponse, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -300,7 +307,10 @@ func (c *ApiService) PageUsAppToPerson(MessagingServiceSid string, params *ListU } // Lists UsAppToPerson records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) ([]MessagingV1UsAppToPerson, error) { +func (c *ApiService) ListUsAppToPerson( + MessagingServiceSid string, + params *ListUsAppToPersonParams, +) ([]MessagingV1UsAppToPerson, error) { response, errors := c.StreamUsAppToPerson(MessagingServiceSid, params) records := make([]MessagingV1UsAppToPerson, 0) @@ -316,7 +326,10 @@ func (c *ApiService) ListUsAppToPerson(MessagingServiceSid string, params *ListU } // Streams UsAppToPerson records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) (chan MessagingV1UsAppToPerson, chan error) { +func (c *ApiService) StreamUsAppToPerson( + MessagingServiceSid string, + params *ListUsAppToPersonParams, +) (chan MessagingV1UsAppToPerson, chan error) { if params == nil { params = &ListUsAppToPersonParams{} } @@ -337,7 +350,12 @@ func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamUsAppToPerson(response *ListUsAppToPersonResponse, params *ListUsAppToPersonParams, recordChannel chan MessagingV1UsAppToPerson, errorChannel chan error) { +func (c *ApiService) streamUsAppToPerson( + response *ListUsAppToPersonResponse, + params *ListUsAppToPersonParams, + recordChannel chan MessagingV1UsAppToPerson, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -433,7 +451,11 @@ func (params *UpdateUsAppToPersonParams) SetDirectLending(DirectLending bool) *U } // -func (c *ApiService) UpdateUsAppToPerson(MessagingServiceSid string, Sid string, params *UpdateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/services_phone_numbers.go b/rest/messaging/v1/services_phone_numbers.go index 1f2f48fbb..462538510 100644 --- a/rest/messaging/v1/services_phone_numbers.go +++ b/rest/messaging/v1/services_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePhoneNumber' @@ -35,7 +35,10 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) } // -func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error) { +func (c *ApiService) CreatePhoneNumber( + ServiceSid string, + params *CreatePhoneNumberParams, +) (*MessagingV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +125,11 @@ func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams } // Retrieve a single page of PhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error) { +func (c *ApiService) PagePhoneNumber( + ServiceSid string, + params *ListPhoneNumberParams, + pageToken, pageNumber string, +) (*ListPhoneNumberResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -157,7 +164,10 @@ func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberP } // Lists PhoneNumber records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) ([]MessagingV1PhoneNumber, error) { +func (c *ApiService) ListPhoneNumber( + ServiceSid string, + params *ListPhoneNumberParams, +) ([]MessagingV1PhoneNumber, error) { response, errors := c.StreamPhoneNumber(ServiceSid, params) records := make([]MessagingV1PhoneNumber, 0) @@ -173,7 +183,10 @@ func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberP } // Streams PhoneNumber records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (chan MessagingV1PhoneNumber, chan error) { +func (c *ApiService) StreamPhoneNumber( + ServiceSid string, + params *ListPhoneNumberParams, +) (chan MessagingV1PhoneNumber, chan error) { if params == nil { params = &ListPhoneNumberParams{} } @@ -194,7 +207,12 @@ func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumbe return recordChannel, errorChannel } -func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan MessagingV1PhoneNumber, errorChannel chan error) { +func (c *ApiService) streamPhoneNumber( + response *ListPhoneNumberResponse, + params *ListPhoneNumberParams, + recordChannel chan MessagingV1PhoneNumber, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/services_short_codes.go b/rest/messaging/v1/services_short_codes.go index 19745e3d4..3f5e28342 100644 --- a/rest/messaging/v1/services_short_codes.go +++ b/rest/messaging/v1/services_short_codes.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateShortCode' @@ -122,7 +122,11 @@ func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { } // Retrieve a single page of ShortCode records from the API. Request is executed immediately. -func (c *ApiService) PageShortCode(ServiceSid string, params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error) { +func (c *ApiService) PageShortCode( + ServiceSid string, + params *ListShortCodeParams, + pageToken, pageNumber string, +) (*ListShortCodeResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -173,7 +177,10 @@ func (c *ApiService) ListShortCode(ServiceSid string, params *ListShortCodeParam } // Streams ShortCode records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodeParams) (chan MessagingV1ShortCode, chan error) { +func (c *ApiService) StreamShortCode( + ServiceSid string, + params *ListShortCodeParams, +) (chan MessagingV1ShortCode, chan error) { if params == nil { params = &ListShortCodeParams{} } @@ -194,7 +201,12 @@ func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodePar return recordChannel, errorChannel } -func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan MessagingV1ShortCode, errorChannel chan error) { +func (c *ApiService) streamShortCode( + response *ListShortCodeResponse, + params *ListShortCodeParams, + recordChannel chan MessagingV1ShortCode, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/messaging/v1/tollfree_verifications.go b/rest/messaging/v1/tollfree_verifications.go index a795ef0f5..2d324046d 100644 --- a/rest/messaging/v1/tollfree_verifications.go +++ b/rest/messaging/v1/tollfree_verifications.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTollfreeVerification' @@ -333,7 +333,10 @@ func (params *ListTollfreeVerificationParams) SetLimit(Limit int) *ListTollfreeV } // Retrieve a single page of TollfreeVerification records from the API. Request is executed immediately. -func (c *ApiService) PageTollfreeVerification(params *ListTollfreeVerificationParams, pageToken, pageNumber string) (*ListTollfreeVerificationResponse, error) { +func (c *ApiService) PageTollfreeVerification( + params *ListTollfreeVerificationParams, + pageToken, pageNumber string, +) (*ListTollfreeVerificationResponse, error) { path := "/v1/Tollfree/Verifications" data := url.Values{} @@ -409,7 +412,12 @@ func (c *ApiService) StreamTollfreeVerification(params *ListTollfreeVerification return recordChannel, errorChannel } -func (c *ApiService) streamTollfreeVerification(response *ListTollfreeVerificationResponse, params *ListTollfreeVerificationParams, recordChannel chan MessagingV1TollfreeVerification, errorChannel chan error) { +func (c *ApiService) streamTollfreeVerification( + response *ListTollfreeVerificationResponse, + params *ListTollfreeVerificationParams, + recordChannel chan MessagingV1TollfreeVerification, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -589,7 +597,10 @@ func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) } // -func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { +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/api_service.go b/rest/microvisor/v1/api_service.go index 2df498b86..ed892a12b 100644 --- a/rest/microvisor/v1/api_service.go +++ b/rest/microvisor/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/microvisor/v1/apps.go b/rest/microvisor/v1/apps.go index 31c92a719..72eee32bf 100644 --- a/rest/microvisor/v1/apps.go +++ b/rest/microvisor/v1/apps.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific App. @@ -152,7 +152,12 @@ func (c *ApiService) StreamApp(params *ListAppParams) (chan MicrovisorV1App, cha return recordChannel, errorChannel } -func (c *ApiService) streamApp(response *ListAppResponse, params *ListAppParams, recordChannel chan MicrovisorV1App, errorChannel chan error) { +func (c *ApiService) streamApp( + response *ListAppResponse, + params *ListAppParams, + recordChannel chan MicrovisorV1App, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/microvisor/v1/configs.go b/rest/microvisor/v1/configs.go index b1b5ad71e..76c8cfb6a 100644 --- a/rest/microvisor/v1/configs.go +++ b/rest/microvisor/v1/configs.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAccountConfig' @@ -128,7 +128,10 @@ func (params *ListAccountConfigParams) SetLimit(Limit int) *ListAccountConfigPar } // Retrieve a single page of AccountConfig records from the API. Request is executed immediately. -func (c *ApiService) PageAccountConfig(params *ListAccountConfigParams, pageToken, pageNumber string) (*ListAccountConfigResponse, error) { +func (c *ApiService) PageAccountConfig( + params *ListAccountConfigParams, + pageToken, pageNumber string, +) (*ListAccountConfigResponse, error) { path := "/v1/Configs" data := url.Values{} @@ -198,7 +201,12 @@ func (c *ApiService) StreamAccountConfig(params *ListAccountConfigParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamAccountConfig(response *ListAccountConfigResponse, params *ListAccountConfigParams, recordChannel chan MicrovisorV1AccountConfig, errorChannel chan error) { +func (c *ApiService) streamAccountConfig( + response *ListAccountConfigResponse, + params *ListAccountConfigParams, + recordChannel chan MicrovisorV1AccountConfig, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -258,7 +266,10 @@ func (params *UpdateAccountConfigParams) SetValue(Value string) *UpdateAccountCo } // Update a config for an Account. -func (c *ApiService) UpdateAccountConfig(Key string, params *UpdateAccountConfigParams) (*MicrovisorV1AccountConfig, error) { +func (c *ApiService) UpdateAccountConfig( + Key string, + params *UpdateAccountConfigParams, +) (*MicrovisorV1AccountConfig, error) { path := "/v1/Configs/{Key}" path = strings.Replace(path, "{"+"Key"+"}", Key, -1) diff --git a/rest/microvisor/v1/devices.go b/rest/microvisor/v1/devices.go index 731efd963..9720df5db 100644 --- a/rest/microvisor/v1/devices.go +++ b/rest/microvisor/v1/devices.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Device. @@ -134,7 +134,12 @@ func (c *ApiService) StreamDevice(params *ListDeviceParams) (chan MicrovisorV1De return recordChannel, errorChannel } -func (c *ApiService) streamDevice(response *ListDeviceResponse, params *ListDeviceParams, recordChannel chan MicrovisorV1Device, errorChannel chan error) { +func (c *ApiService) streamDevice( + response *ListDeviceResponse, + params *ListDeviceParams, + recordChannel chan MicrovisorV1Device, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/microvisor/v1/devices_configs.go b/rest/microvisor/v1/devices_configs.go index ebaebfb23..75d01e693 100644 --- a/rest/microvisor/v1/devices_configs.go +++ b/rest/microvisor/v1/devices_configs.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateDeviceConfig' @@ -41,7 +41,10 @@ func (params *CreateDeviceConfigParams) SetValue(Value string) *CreateDeviceConf } // Create a config for a Microvisor Device. -func (c *ApiService) CreateDeviceConfig(DeviceSid string, params *CreateDeviceConfigParams) (*MicrovisorV1DeviceConfig, error) { +func (c *ApiService) CreateDeviceConfig( + DeviceSid string, + params *CreateDeviceConfigParams, +) (*MicrovisorV1DeviceConfig, error) { path := "/v1/Devices/{DeviceSid}/Configs" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) @@ -131,7 +134,11 @@ func (params *ListDeviceConfigParams) SetLimit(Limit int) *ListDeviceConfigParam } // Retrieve a single page of DeviceConfig records from the API. Request is executed immediately. -func (c *ApiService) PageDeviceConfig(DeviceSid string, params *ListDeviceConfigParams, pageToken, pageNumber string) (*ListDeviceConfigResponse, error) { +func (c *ApiService) PageDeviceConfig( + DeviceSid string, + params *ListDeviceConfigParams, + pageToken, pageNumber string, +) (*ListDeviceConfigResponse, error) { path := "/v1/Devices/{DeviceSid}/Configs" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) @@ -166,7 +173,10 @@ func (c *ApiService) PageDeviceConfig(DeviceSid string, params *ListDeviceConfig } // Lists DeviceConfig records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDeviceConfig(DeviceSid string, params *ListDeviceConfigParams) ([]MicrovisorV1DeviceConfig, error) { +func (c *ApiService) ListDeviceConfig( + DeviceSid string, + params *ListDeviceConfigParams, +) ([]MicrovisorV1DeviceConfig, error) { response, errors := c.StreamDeviceConfig(DeviceSid, params) records := make([]MicrovisorV1DeviceConfig, 0) @@ -182,7 +192,10 @@ func (c *ApiService) ListDeviceConfig(DeviceSid string, params *ListDeviceConfig } // Streams DeviceConfig records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDeviceConfig(DeviceSid string, params *ListDeviceConfigParams) (chan MicrovisorV1DeviceConfig, chan error) { +func (c *ApiService) StreamDeviceConfig( + DeviceSid string, + params *ListDeviceConfigParams, +) (chan MicrovisorV1DeviceConfig, chan error) { if params == nil { params = &ListDeviceConfigParams{} } @@ -203,7 +216,12 @@ func (c *ApiService) StreamDeviceConfig(DeviceSid string, params *ListDeviceConf return recordChannel, errorChannel } -func (c *ApiService) streamDeviceConfig(response *ListDeviceConfigResponse, params *ListDeviceConfigParams, recordChannel chan MicrovisorV1DeviceConfig, errorChannel chan error) { +func (c *ApiService) streamDeviceConfig( + response *ListDeviceConfigResponse, + params *ListDeviceConfigParams, + recordChannel chan MicrovisorV1DeviceConfig, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +281,11 @@ func (params *UpdateDeviceConfigParams) SetValue(Value string) *UpdateDeviceConf } // Update a config for a Microvisor Device. -func (c *ApiService) UpdateDeviceConfig(DeviceSid string, Key string, params *UpdateDeviceConfigParams) (*MicrovisorV1DeviceConfig, error) { +func (c *ApiService) UpdateDeviceConfig( + DeviceSid string, + Key string, + params *UpdateDeviceConfigParams, +) (*MicrovisorV1DeviceConfig, error) { path := "/v1/Devices/{DeviceSid}/Configs/{Key}" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) path = strings.Replace(path, "{"+"Key"+"}", Key, -1) diff --git a/rest/microvisor/v1/devices_secrets.go b/rest/microvisor/v1/devices_secrets.go index be0e7320a..7cfaa0f6e 100644 --- a/rest/microvisor/v1/devices_secrets.go +++ b/rest/microvisor/v1/devices_secrets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateDeviceSecret' @@ -41,7 +41,10 @@ func (params *CreateDeviceSecretParams) SetValue(Value string) *CreateDeviceSecr } // Create a secret for a Microvisor Device. -func (c *ApiService) CreateDeviceSecret(DeviceSid string, params *CreateDeviceSecretParams) (*MicrovisorV1DeviceSecret, error) { +func (c *ApiService) CreateDeviceSecret( + DeviceSid string, + params *CreateDeviceSecretParams, +) (*MicrovisorV1DeviceSecret, error) { path := "/v1/Devices/{DeviceSid}/Secrets" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) @@ -131,7 +134,11 @@ func (params *ListDeviceSecretParams) SetLimit(Limit int) *ListDeviceSecretParam } // Retrieve a single page of DeviceSecret records from the API. Request is executed immediately. -func (c *ApiService) PageDeviceSecret(DeviceSid string, params *ListDeviceSecretParams, pageToken, pageNumber string) (*ListDeviceSecretResponse, error) { +func (c *ApiService) PageDeviceSecret( + DeviceSid string, + params *ListDeviceSecretParams, + pageToken, pageNumber string, +) (*ListDeviceSecretResponse, error) { path := "/v1/Devices/{DeviceSid}/Secrets" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) @@ -166,7 +173,10 @@ func (c *ApiService) PageDeviceSecret(DeviceSid string, params *ListDeviceSecret } // Lists DeviceSecret records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDeviceSecret(DeviceSid string, params *ListDeviceSecretParams) ([]MicrovisorV1DeviceSecret, error) { +func (c *ApiService) ListDeviceSecret( + DeviceSid string, + params *ListDeviceSecretParams, +) ([]MicrovisorV1DeviceSecret, error) { response, errors := c.StreamDeviceSecret(DeviceSid, params) records := make([]MicrovisorV1DeviceSecret, 0) @@ -182,7 +192,10 @@ func (c *ApiService) ListDeviceSecret(DeviceSid string, params *ListDeviceSecret } // Streams DeviceSecret records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDeviceSecret(DeviceSid string, params *ListDeviceSecretParams) (chan MicrovisorV1DeviceSecret, chan error) { +func (c *ApiService) StreamDeviceSecret( + DeviceSid string, + params *ListDeviceSecretParams, +) (chan MicrovisorV1DeviceSecret, chan error) { if params == nil { params = &ListDeviceSecretParams{} } @@ -203,7 +216,12 @@ func (c *ApiService) StreamDeviceSecret(DeviceSid string, params *ListDeviceSecr return recordChannel, errorChannel } -func (c *ApiService) streamDeviceSecret(response *ListDeviceSecretResponse, params *ListDeviceSecretParams, recordChannel chan MicrovisorV1DeviceSecret, errorChannel chan error) { +func (c *ApiService) streamDeviceSecret( + response *ListDeviceSecretResponse, + params *ListDeviceSecretParams, + recordChannel chan MicrovisorV1DeviceSecret, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +281,11 @@ func (params *UpdateDeviceSecretParams) SetValue(Value string) *UpdateDeviceSecr } // Update a secret for a Microvisor Device. -func (c *ApiService) UpdateDeviceSecret(DeviceSid string, Key string, params *UpdateDeviceSecretParams) (*MicrovisorV1DeviceSecret, error) { +func (c *ApiService) UpdateDeviceSecret( + DeviceSid string, + Key string, + params *UpdateDeviceSecretParams, +) (*MicrovisorV1DeviceSecret, error) { path := "/v1/Devices/{DeviceSid}/Secrets/{Key}" path = strings.Replace(path, "{"+"DeviceSid"+"}", DeviceSid, -1) path = strings.Replace(path, "{"+"Key"+"}", Key, -1) diff --git a/rest/microvisor/v1/secrets.go b/rest/microvisor/v1/secrets.go index 12d2ce8e1..42ae47e70 100644 --- a/rest/microvisor/v1/secrets.go +++ b/rest/microvisor/v1/secrets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAccountSecret' @@ -128,7 +128,10 @@ func (params *ListAccountSecretParams) SetLimit(Limit int) *ListAccountSecretPar } // Retrieve a single page of AccountSecret records from the API. Request is executed immediately. -func (c *ApiService) PageAccountSecret(params *ListAccountSecretParams, pageToken, pageNumber string) (*ListAccountSecretResponse, error) { +func (c *ApiService) PageAccountSecret( + params *ListAccountSecretParams, + pageToken, pageNumber string, +) (*ListAccountSecretResponse, error) { path := "/v1/Secrets" data := url.Values{} @@ -198,7 +201,12 @@ func (c *ApiService) StreamAccountSecret(params *ListAccountSecretParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamAccountSecret(response *ListAccountSecretResponse, params *ListAccountSecretParams, recordChannel chan MicrovisorV1AccountSecret, errorChannel chan error) { +func (c *ApiService) streamAccountSecret( + response *ListAccountSecretResponse, + params *ListAccountSecretParams, + recordChannel chan MicrovisorV1AccountSecret, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -258,7 +266,10 @@ func (params *UpdateAccountSecretParams) SetValue(Value string) *UpdateAccountSe } // Update a secret for an Account. -func (c *ApiService) UpdateAccountSecret(Key string, params *UpdateAccountSecretParams) (*MicrovisorV1AccountSecret, error) { +func (c *ApiService) UpdateAccountSecret( + Key string, + params *UpdateAccountSecretParams, +) (*MicrovisorV1AccountSecret, error) { path := "/v1/Secrets/{Key}" path = strings.Replace(path, "{"+"Key"+"}", Key, -1) diff --git a/rest/monitor/v1/alerts.go b/rest/monitor/v1/alerts.go index 7fc808c65..9762cb904 100644 --- a/rest/monitor/v1/alerts.go +++ b/rest/monitor/v1/alerts.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -162,7 +162,12 @@ func (c *ApiService) StreamAlert(params *ListAlertParams) (chan MonitorV1Alert, return recordChannel, errorChannel } -func (c *ApiService) streamAlert(response *ListAlertResponse, params *ListAlertParams, recordChannel chan MonitorV1Alert, errorChannel chan error) { +func (c *ApiService) streamAlert( + response *ListAlertResponse, + params *ListAlertParams, + recordChannel chan MonitorV1Alert, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/monitor/v1/api_service.go b/rest/monitor/v1/api_service.go index c1d89c5b3..8fe9fcda7 100644 --- a/rest/monitor/v1/api_service.go +++ b/rest/monitor/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/monitor/v1/events.go b/rest/monitor/v1/events.go index 98492ac46..9359c9fa7 100644 --- a/rest/monitor/v1/events.go +++ b/rest/monitor/v1/events.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -189,7 +189,12 @@ func (c *ApiService) StreamEvent(params *ListEventParams) (chan MonitorV1Event, return recordChannel, errorChannel } -func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan MonitorV1Event, errorChannel chan error) { +func (c *ApiService) streamEvent( + response *ListEventResponse, + params *ListEventParams, + recordChannel chan MonitorV1Event, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/notify/v1/api_service.go b/rest/notify/v1/api_service.go index ff6ad6508..5857247bc 100644 --- a/rest/notify/v1/api_service.go +++ b/rest/notify/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/notify/v1/credentials.go b/rest/notify/v1/credentials.go index 196d912d3..948b7dc32 100644 --- a/rest/notify/v1/credentials.go +++ b/rest/notify/v1/credentials.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredential' @@ -173,7 +173,10 @@ func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams { } // Retrieve a single page of Credential records from the API. Request is executed immediately. -func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error) { +func (c *ApiService) PageCredential( + params *ListCredentialParams, + pageToken, pageNumber string, +) (*ListCredentialResponse, error) { path := "/v1/Credentials" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan Notify return recordChannel, errorChannel } -func (c *ApiService) streamCredential(response *ListCredentialResponse, params *ListCredentialParams, recordChannel chan NotifyV1Credential, errorChannel chan error) { +func (c *ApiService) streamCredential( + response *ListCredentialResponse, + params *ListCredentialParams, + recordChannel chan NotifyV1Credential, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/notify/v1/services.go b/rest/notify/v1/services.go index e19cdb3d3..7ff9f5f45 100644 --- a/rest/notify/v1/services.go +++ b/rest/notify/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -242,7 +242,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -315,7 +318,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan NotifyV1Serv return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan NotifyV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan NotifyV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/notify/v1/services_bindings.go b/rest/notify/v1/services_bindings.go index 6240d68eb..8cf21196c 100644 --- a/rest/notify/v1/services_bindings.go +++ b/rest/notify/v1/services_bindings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBinding' @@ -202,7 +202,11 @@ func (params *ListBindingParams) SetLimit(Limit int) *ListBindingParams { } // Retrieve a single page of Binding records from the API. Request is executed immediately. -func (c *ApiService) PageBinding(ServiceSid string, params *ListBindingParams, pageToken, pageNumber string) (*ListBindingResponse, error) { +func (c *ApiService) PageBinding( + ServiceSid string, + params *ListBindingParams, + pageToken, pageNumber string, +) (*ListBindingResponse, error) { path := "/v1/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -290,7 +294,12 @@ func (c *ApiService) StreamBinding(ServiceSid string, params *ListBindingParams) return recordChannel, errorChannel } -func (c *ApiService) streamBinding(response *ListBindingResponse, params *ListBindingParams, recordChannel chan NotifyV1Binding, errorChannel chan error) { +func (c *ApiService) streamBinding( + response *ListBindingResponse, + params *ListBindingParams, + recordChannel chan NotifyV1Binding, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v1/api_service.go b/rest/numbers/v1/api_service.go index 46727785d..2cfbede70 100644 --- a/rest/numbers/v1/api_service.go +++ b/rest/numbers/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/numbers/v2/api_service.go b/rest/numbers/v2/api_service.go index 46727785d..2cfbede70 100644 --- a/rest/numbers/v2/api_service.go +++ b/rest/numbers/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/numbers/v2/hosted_number_authorization_documents.go b/rest/numbers/v2/hosted_number_authorization_documents.go index f258fe604..ab728feea 100644 --- a/rest/numbers/v2/hosted_number_authorization_documents.go +++ b/rest/numbers/v2/hosted_number_authorization_documents.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAuthorizationDocument' @@ -180,7 +180,10 @@ func (params *ListAuthorizationDocumentParams) SetLimit(Limit int) *ListAuthoriz } // Retrieve a single page of AuthorizationDocument records from the API. Request is executed immediately. -func (c *ApiService) PageAuthorizationDocument(params *ListAuthorizationDocumentParams, pageToken, pageNumber string) (*ListAuthorizationDocumentResponse, error) { +func (c *ApiService) PageAuthorizationDocument( + params *ListAuthorizationDocumentParams, + pageToken, pageNumber string, +) (*ListAuthorizationDocumentResponse, error) { path := "/v2/HostedNumber/AuthorizationDocuments" data := url.Values{} @@ -256,7 +259,12 @@ func (c *ApiService) StreamAuthorizationDocument(params *ListAuthorizationDocume return recordChannel, errorChannel } -func (c *ApiService) streamAuthorizationDocument(response *ListAuthorizationDocumentResponse, params *ListAuthorizationDocumentParams, recordChannel chan NumbersV2AuthorizationDocument, errorChannel chan error) { +func (c *ApiService) streamAuthorizationDocument( + response *ListAuthorizationDocumentResponse, + params *ListAuthorizationDocumentParams, + recordChannel chan NumbersV2AuthorizationDocument, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 5e5c55323..641948b6c 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListDependentHostedNumberOrder' @@ -65,7 +65,11 @@ func (params *ListDependentHostedNumberOrderParams) SetLimit(Limit int) *ListDep } // Retrieve a single page of DependentHostedNumberOrder records from the API. Request is executed immediately. -func (c *ApiService) PageDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams, pageToken, pageNumber string) (*ListDependentHostedNumberOrderResponse, error) { +func (c *ApiService) PageDependentHostedNumberOrder( + SigningDocumentSid string, + params *ListDependentHostedNumberOrderParams, + pageToken, pageNumber string, +) (*ListDependentHostedNumberOrderResponse, error) { path := "/v2/HostedNumber/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", SigningDocumentSid, -1) @@ -112,7 +116,10 @@ func (c *ApiService) PageDependentHostedNumberOrder(SigningDocumentSid string, p } // Lists DependentHostedNumberOrder records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams) ([]NumbersV2DependentHostedNumberOrder, error) { +func (c *ApiService) ListDependentHostedNumberOrder( + SigningDocumentSid string, + params *ListDependentHostedNumberOrderParams, +) ([]NumbersV2DependentHostedNumberOrder, error) { response, errors := c.StreamDependentHostedNumberOrder(SigningDocumentSid, params) records := make([]NumbersV2DependentHostedNumberOrder, 0) @@ -128,7 +135,10 @@ func (c *ApiService) ListDependentHostedNumberOrder(SigningDocumentSid string, p } // Streams DependentHostedNumberOrder records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams) (chan NumbersV2DependentHostedNumberOrder, chan error) { +func (c *ApiService) StreamDependentHostedNumberOrder( + SigningDocumentSid string, + params *ListDependentHostedNumberOrderParams, +) (chan NumbersV2DependentHostedNumberOrder, chan error) { if params == nil { params = &ListDependentHostedNumberOrderParams{} } @@ -149,7 +159,12 @@ func (c *ApiService) StreamDependentHostedNumberOrder(SigningDocumentSid string, return recordChannel, errorChannel } -func (c *ApiService) streamDependentHostedNumberOrder(response *ListDependentHostedNumberOrderResponse, params *ListDependentHostedNumberOrderParams, recordChannel chan NumbersV2DependentHostedNumberOrder, errorChannel chan error) { +func (c *ApiService) streamDependentHostedNumberOrder( + response *ListDependentHostedNumberOrderResponse, + params *ListDependentHostedNumberOrderParams, + recordChannel chan NumbersV2DependentHostedNumberOrder, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/hosted_number_orders.go b/rest/numbers/v2/hosted_number_orders.go index 2b61d2000..5aa4b3456 100644 --- a/rest/numbers/v2/hosted_number_orders.go +++ b/rest/numbers/v2/hosted_number_orders.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateHostedNumberOrder' @@ -286,7 +286,10 @@ func (params *ListHostedNumberOrderParams) SetLimit(Limit int) *ListHostedNumber } // Retrieve a single page of HostedNumberOrder records from the API. Request is executed immediately. -func (c *ApiService) PageHostedNumberOrder(params *ListHostedNumberOrderParams, pageToken, pageNumber string) (*ListHostedNumberOrderResponse, error) { +func (c *ApiService) PageHostedNumberOrder( + params *ListHostedNumberOrderParams, + pageToken, pageNumber string, +) (*ListHostedNumberOrderResponse, error) { path := "/v2/HostedNumber/Orders" data := url.Values{} @@ -371,7 +374,12 @@ func (c *ApiService) StreamHostedNumberOrder(params *ListHostedNumberOrderParams return recordChannel, errorChannel } -func (c *ApiService) streamHostedNumberOrder(response *ListHostedNumberOrderResponse, params *ListHostedNumberOrderParams, recordChannel chan NumbersV2HostedNumberOrder, errorChannel chan error) { +func (c *ApiService) streamHostedNumberOrder( + response *ListHostedNumberOrderResponse, + params *ListHostedNumberOrderParams, + recordChannel chan NumbersV2HostedNumberOrder, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_bundles.go b/rest/numbers/v2/regulatory_compliance_bundles.go index cd0a3c8d2..7beb99c88 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles.go +++ b/rest/numbers/v2/regulatory_compliance_bundles.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBundle' @@ -343,7 +343,12 @@ func (c *ApiService) StreamBundle(params *ListBundleParams) (chan NumbersV2Bundl return recordChannel, errorChannel } -func (c *ApiService) streamBundle(response *ListBundleResponse, params *ListBundleParams, recordChannel chan NumbersV2Bundle, errorChannel chan error) { +func (c *ApiService) streamBundle( + response *ListBundleResponse, + params *ListBundleParams, + recordChannel chan NumbersV2Bundle, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_bundles_copies.go b/rest/numbers/v2/regulatory_compliance_bundles_copies.go index b8e6f66e3..3ff1bb3c3 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_copies.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_copies.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBundleCopy' @@ -79,7 +79,11 @@ func (params *ListBundleCopyParams) SetLimit(Limit int) *ListBundleCopyParams { } // Retrieve a single page of BundleCopy records from the API. Request is executed immediately. -func (c *ApiService) PageBundleCopy(BundleSid string, params *ListBundleCopyParams, pageToken, pageNumber string) (*ListBundleCopyResponse, error) { +func (c *ApiService) PageBundleCopy( + BundleSid string, + params *ListBundleCopyParams, + pageToken, pageNumber string, +) (*ListBundleCopyResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Copies" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -130,7 +134,10 @@ func (c *ApiService) ListBundleCopy(BundleSid string, params *ListBundleCopyPara } // Streams BundleCopy records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamBundleCopy(BundleSid string, params *ListBundleCopyParams) (chan NumbersV2BundleCopy, chan error) { +func (c *ApiService) StreamBundleCopy( + BundleSid string, + params *ListBundleCopyParams, +) (chan NumbersV2BundleCopy, chan error) { if params == nil { params = &ListBundleCopyParams{} } @@ -151,7 +158,12 @@ func (c *ApiService) StreamBundleCopy(BundleSid string, params *ListBundleCopyPa return recordChannel, errorChannel } -func (c *ApiService) streamBundleCopy(response *ListBundleCopyResponse, params *ListBundleCopyParams, recordChannel chan NumbersV2BundleCopy, errorChannel chan error) { +func (c *ApiService) streamBundleCopy( + response *ListBundleCopyResponse, + params *ListBundleCopyParams, + recordChannel chan NumbersV2BundleCopy, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go b/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go index b40de2007..0912254f9 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_evaluations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Creates an evaluation for a bundle @@ -88,7 +88,11 @@ func (params *ListEvaluationParams) SetLimit(Limit int) *ListEvaluationParams { } // Retrieve a single page of Evaluation records from the API. Request is executed immediately. -func (c *ApiService) PageEvaluation(BundleSid string, params *ListEvaluationParams, pageToken, pageNumber string) (*ListEvaluationResponse, error) { +func (c *ApiService) PageEvaluation( + BundleSid string, + params *ListEvaluationParams, + pageToken, pageNumber string, +) (*ListEvaluationResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -139,7 +143,10 @@ func (c *ApiService) ListEvaluation(BundleSid string, params *ListEvaluationPara } // Streams Evaluation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamEvaluation(BundleSid string, params *ListEvaluationParams) (chan NumbersV2Evaluation, chan error) { +func (c *ApiService) StreamEvaluation( + BundleSid string, + params *ListEvaluationParams, +) (chan NumbersV2Evaluation, chan error) { if params == nil { params = &ListEvaluationParams{} } @@ -160,7 +167,12 @@ func (c *ApiService) StreamEvaluation(BundleSid string, params *ListEvaluationPa return recordChannel, errorChannel } -func (c *ApiService) streamEvaluation(response *ListEvaluationResponse, params *ListEvaluationParams, recordChannel chan NumbersV2Evaluation, errorChannel chan error) { +func (c *ApiService) streamEvaluation( + response *ListEvaluationResponse, + params *ListEvaluationParams, + recordChannel chan NumbersV2Evaluation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go b/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go index bdc63e88c..4f0153667 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go +++ b/rest/numbers/v2/regulatory_compliance_bundles_item_assignments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateItemAssignment' @@ -35,7 +35,10 @@ func (params *CreateItemAssignmentParams) SetObjectSid(ObjectSid string) *Create } // Create a new Assigned Item. -func (c *ApiService) CreateItemAssignment(BundleSid string, params *CreateItemAssignmentParams) (*NumbersV2ItemAssignment, error) { +func (c *ApiService) CreateItemAssignment( + BundleSid string, + params *CreateItemAssignmentParams, +) (*NumbersV2ItemAssignment, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -122,7 +125,11 @@ func (params *ListItemAssignmentParams) SetLimit(Limit int) *ListItemAssignmentP } // Retrieve a single page of ItemAssignment records from the API. Request is executed immediately. -func (c *ApiService) PageItemAssignment(BundleSid string, params *ListItemAssignmentParams, pageToken, pageNumber string) (*ListItemAssignmentResponse, error) { +func (c *ApiService) PageItemAssignment( + BundleSid string, + params *ListItemAssignmentParams, + pageToken, pageNumber string, +) (*ListItemAssignmentResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -157,7 +164,10 @@ func (c *ApiService) PageItemAssignment(BundleSid string, params *ListItemAssign } // Lists ItemAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListItemAssignment(BundleSid string, params *ListItemAssignmentParams) ([]NumbersV2ItemAssignment, error) { +func (c *ApiService) ListItemAssignment( + BundleSid string, + params *ListItemAssignmentParams, +) ([]NumbersV2ItemAssignment, error) { response, errors := c.StreamItemAssignment(BundleSid, params) records := make([]NumbersV2ItemAssignment, 0) @@ -173,7 +183,10 @@ func (c *ApiService) ListItemAssignment(BundleSid string, params *ListItemAssign } // Streams ItemAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamItemAssignment(BundleSid string, params *ListItemAssignmentParams) (chan NumbersV2ItemAssignment, chan error) { +func (c *ApiService) StreamItemAssignment( + BundleSid string, + params *ListItemAssignmentParams, +) (chan NumbersV2ItemAssignment, chan error) { if params == nil { params = &ListItemAssignmentParams{} } @@ -194,7 +207,12 @@ func (c *ApiService) StreamItemAssignment(BundleSid string, params *ListItemAssi return recordChannel, errorChannel } -func (c *ApiService) streamItemAssignment(response *ListItemAssignmentResponse, params *ListItemAssignmentParams, recordChannel chan NumbersV2ItemAssignment, errorChannel chan error) { +func (c *ApiService) streamItemAssignment( + response *ListItemAssignmentResponse, + params *ListItemAssignmentParams, + recordChannel chan NumbersV2ItemAssignment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_end_user_types.go b/rest/numbers/v2/regulatory_compliance_end_user_types.go index 586950315..de98ec427 100644 --- a/rest/numbers/v2/regulatory_compliance_end_user_types.go +++ b/rest/numbers/v2/regulatory_compliance_end_user_types.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific End-User Type Instance. @@ -64,7 +64,10 @@ func (params *ListEndUserTypeParams) SetLimit(Limit int) *ListEndUserTypeParams } // Retrieve a single page of EndUserType records from the API. Request is executed immediately. -func (c *ApiService) PageEndUserType(params *ListEndUserTypeParams, pageToken, pageNumber string) (*ListEndUserTypeResponse, error) { +func (c *ApiService) PageEndUserType( + params *ListEndUserTypeParams, + pageToken, pageNumber string, +) (*ListEndUserTypeResponse, error) { path := "/v2/RegulatoryCompliance/EndUserTypes" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamEndUserType(params *ListEndUserTypeParams) (chan Numb return recordChannel, errorChannel } -func (c *ApiService) streamEndUserType(response *ListEndUserTypeResponse, params *ListEndUserTypeParams, recordChannel chan NumbersV2EndUserType, errorChannel chan error) { +func (c *ApiService) streamEndUserType( + response *ListEndUserTypeResponse, + params *ListEndUserTypeParams, + recordChannel chan NumbersV2EndUserType, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_end_users.go b/rest/numbers/v2/regulatory_compliance_end_users.go index 334497be3..d5883b344 100644 --- a/rest/numbers/v2/regulatory_compliance_end_users.go +++ b/rest/numbers/v2/regulatory_compliance_end_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEndUser' @@ -143,7 +143,10 @@ func (params *ListEndUserParams) SetLimit(Limit int) *ListEndUserParams { } // Retrieve a single page of EndUser records from the API. Request is executed immediately. -func (c *ApiService) PageEndUser(params *ListEndUserParams, pageToken, pageNumber string) (*ListEndUserResponse, error) { +func (c *ApiService) PageEndUser( + params *ListEndUserParams, + pageToken, pageNumber string, +) (*ListEndUserResponse, error) { path := "/v2/RegulatoryCompliance/EndUsers" data := url.Values{} @@ -213,7 +216,12 @@ func (c *ApiService) StreamEndUser(params *ListEndUserParams) (chan NumbersV2End return recordChannel, errorChannel } -func (c *ApiService) streamEndUser(response *ListEndUserResponse, params *ListEndUserParams, recordChannel chan NumbersV2EndUser, errorChannel chan error) { +func (c *ApiService) streamEndUser( + response *ListEndUserResponse, + params *ListEndUserParams, + recordChannel chan NumbersV2EndUser, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_regulations.go b/rest/numbers/v2/regulatory_compliance_regulations.go index f4d28ab92..cb3d0085d 100644 --- a/rest/numbers/v2/regulatory_compliance_regulations.go +++ b/rest/numbers/v2/regulatory_compliance_regulations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch specific Regulation Instance. @@ -82,7 +82,10 @@ func (params *ListRegulationParams) SetLimit(Limit int) *ListRegulationParams { } // Retrieve a single page of Regulation records from the API. Request is executed immediately. -func (c *ApiService) PageRegulation(params *ListRegulationParams, pageToken, pageNumber string) (*ListRegulationResponse, error) { +func (c *ApiService) PageRegulation( + params *ListRegulationParams, + pageToken, pageNumber string, +) (*ListRegulationResponse, error) { path := "/v2/RegulatoryCompliance/Regulations" data := url.Values{} @@ -161,7 +164,12 @@ func (c *ApiService) StreamRegulation(params *ListRegulationParams) (chan Number return recordChannel, errorChannel } -func (c *ApiService) streamRegulation(response *ListRegulationResponse, params *ListRegulationParams, recordChannel chan NumbersV2Regulation, errorChannel chan error) { +func (c *ApiService) streamRegulation( + response *ListRegulationResponse, + params *ListRegulationParams, + recordChannel chan NumbersV2Regulation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_supporting_document_types.go b/rest/numbers/v2/regulatory_compliance_supporting_document_types.go index 8891d7476..7936edaef 100644 --- a/rest/numbers/v2/regulatory_compliance_supporting_document_types.go +++ b/rest/numbers/v2/regulatory_compliance_supporting_document_types.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Supporting Document Type Instance. @@ -64,7 +64,10 @@ func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int) *ListSupport } // Retrieve a single page of SupportingDocumentType records from the API. Request is executed immediately. -func (c *ApiService) PageSupportingDocumentType(params *ListSupportingDocumentTypeParams, pageToken, pageNumber string) (*ListSupportingDocumentTypeResponse, error) { +func (c *ApiService) PageSupportingDocumentType( + params *ListSupportingDocumentTypeParams, + pageToken, pageNumber string, +) (*ListSupportingDocumentTypeResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamSupportingDocumentType(params *ListSupportingDocument return recordChannel, errorChannel } -func (c *ApiService) streamSupportingDocumentType(response *ListSupportingDocumentTypeResponse, params *ListSupportingDocumentTypeParams, recordChannel chan NumbersV2SupportingDocumentType, errorChannel chan error) { +func (c *ApiService) streamSupportingDocumentType( + response *ListSupportingDocumentTypeResponse, + params *ListSupportingDocumentTypeParams, + recordChannel chan NumbersV2SupportingDocumentType, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/numbers/v2/regulatory_compliance_supporting_documents.go b/rest/numbers/v2/regulatory_compliance_supporting_documents.go index 596fc9232..117a6f026 100644 --- a/rest/numbers/v2/regulatory_compliance_supporting_documents.go +++ b/rest/numbers/v2/regulatory_compliance_supporting_documents.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSupportingDocument' @@ -143,7 +143,10 @@ func (params *ListSupportingDocumentParams) SetLimit(Limit int) *ListSupportingD } // Retrieve a single page of SupportingDocument records from the API. Request is executed immediately. -func (c *ApiService) PageSupportingDocument(params *ListSupportingDocumentParams, pageToken, pageNumber string) (*ListSupportingDocumentResponse, error) { +func (c *ApiService) PageSupportingDocument( + params *ListSupportingDocumentParams, + pageToken, pageNumber string, +) (*ListSupportingDocumentResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments" data := url.Values{} @@ -213,7 +216,12 @@ func (c *ApiService) StreamSupportingDocument(params *ListSupportingDocumentPara return recordChannel, errorChannel } -func (c *ApiService) streamSupportingDocument(response *ListSupportingDocumentResponse, params *ListSupportingDocumentParams, recordChannel chan NumbersV2SupportingDocument, errorChannel chan error) { +func (c *ApiService) streamSupportingDocument( + response *ListSupportingDocumentResponse, + params *ListSupportingDocumentParams, + recordChannel chan NumbersV2SupportingDocument, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -279,7 +287,10 @@ func (params *UpdateSupportingDocumentParams) SetAttributes(Attributes interface } // Update an existing Supporting Document. -func (c *ApiService) UpdateSupportingDocument(Sid string, params *UpdateSupportingDocumentParams) (*NumbersV2SupportingDocument, error) { +func (c *ApiService) UpdateSupportingDocument( + Sid string, + params *UpdateSupportingDocumentParams, +) (*NumbersV2SupportingDocument, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/oauth/v1/api_service.go b/rest/oauth/v1/api_service.go index d301cbc4d..2ecd4847a 100644 --- a/rest/oauth/v1/api_service.go +++ b/rest/oauth/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/preview_messaging/v1/api_service.go b/rest/preview_messaging/v1/api_service.go index ce4de2f11..b38b0517f 100644 --- a/rest/preview_messaging/v1/api_service.go +++ b/rest/preview_messaging/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/preview_messaging/v1/model_create_messages_request.go b/rest/preview_messaging/v1/model_create_messages_request.go index e8ab5db86..4cf023b57 100644 --- a/rest/preview_messaging/v1/model_create_messages_request.go +++ b/rest/preview_messaging/v1/model_create_messages_request.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // CreateMessagesRequest struct for CreateMessagesRequest diff --git a/rest/pricing/v1/api_service.go b/rest/pricing/v1/api_service.go index dd1d948c5..16a045f1d 100644 --- a/rest/pricing/v1/api_service.go +++ b/rest/pricing/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/pricing/v1/messaging_countries.go b/rest/pricing/v1/messaging_countries.go index 44948443b..5256a4e19 100644 --- a/rest/pricing/v1/messaging_countries.go +++ b/rest/pricing/v1/messaging_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -64,7 +64,10 @@ func (params *ListMessagingCountryParams) SetLimit(Limit int) *ListMessagingCoun } // Retrieve a single page of MessagingCountry records from the API. Request is executed immediately. -func (c *ApiService) PageMessagingCountry(params *ListMessagingCountryParams, pageToken, pageNumber string) (*ListMessagingCountryResponse, error) { +func (c *ApiService) PageMessagingCountry( + params *ListMessagingCountryParams, + pageToken, pageNumber string, +) (*ListMessagingCountryResponse, error) { path := "/v1/Messaging/Countries" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamMessagingCountry(params *ListMessagingCountryParams) return recordChannel, errorChannel } -func (c *ApiService) streamMessagingCountry(response *ListMessagingCountryResponse, params *ListMessagingCountryParams, recordChannel chan PricingV1MessagingCountry, errorChannel chan error) { +func (c *ApiService) streamMessagingCountry( + response *ListMessagingCountryResponse, + params *ListMessagingCountryParams, + recordChannel chan PricingV1MessagingCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go index 94b111d33..2dc041795 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceInboundSmsPrices diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices_prices.go index 5907f8db6..32f9a950c 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1MessagingMessagingCountryInstanceOutboundSmsPricesPrices struct for PricingV1MessagingMessagingCountryInstanceOutboundSmsPricesPrices diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance_phone_number_prices.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance_phone_number_prices.go index 4f4ef0aa1..f9f0d28b7 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance_phone_number_prices.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance_phone_number_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices struct for PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_inbound_call_prices.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_inbound_call_prices.go index 35852d7b5..117816958 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_inbound_call_prices.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_inbound_call_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1VoiceVoiceCountryInstanceInboundCallPrices struct for PricingV1VoiceVoiceCountryInstanceInboundCallPrices diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go index 7a32eee41..3d4dcc9df 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number_inbound_call_price.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number_inbound_call_price.go index acd6158af..410a37b95 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number_inbound_call_price.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number_inbound_call_price.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1VoiceVoiceNumberInboundCallPrice The [InboundCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) record. If `null`, the Phone Number is not a Twilio number owned by this account. diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go index ffd05ec35..63d8d0f21 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV1VoiceVoiceNumberOutboundCallPrice The OutboundCallPrice record, which includes a list of `origination_prefixes` and the `base_price` and `current_price` for those prefixes. diff --git a/rest/pricing/v1/phone_numbers_countries.go b/rest/pricing/v1/phone_numbers_countries.go index 45e54bb34..91568dd81 100644 --- a/rest/pricing/v1/phone_numbers_countries.go +++ b/rest/pricing/v1/phone_numbers_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -64,7 +64,10 @@ func (params *ListPhoneNumberCountryParams) SetLimit(Limit int) *ListPhoneNumber } // Retrieve a single page of PhoneNumberCountry records from the API. Request is executed immediately. -func (c *ApiService) PagePhoneNumberCountry(params *ListPhoneNumberCountryParams, pageToken, pageNumber string) (*ListPhoneNumberCountryResponse, error) { +func (c *ApiService) PagePhoneNumberCountry( + params *ListPhoneNumberCountryParams, + pageToken, pageNumber string, +) (*ListPhoneNumberCountryResponse, error) { path := "/v1/PhoneNumbers/Countries" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamPhoneNumberCountry(params *ListPhoneNumberCountryPara return recordChannel, errorChannel } -func (c *ApiService) streamPhoneNumberCountry(response *ListPhoneNumberCountryResponse, params *ListPhoneNumberCountryParams, recordChannel chan PricingV1PhoneNumberCountry, errorChannel chan error) { +func (c *ApiService) streamPhoneNumberCountry( + response *ListPhoneNumberCountryResponse, + params *ListPhoneNumberCountryParams, + recordChannel chan PricingV1PhoneNumberCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/pricing/v1/voice_countries.go b/rest/pricing/v1/voice_countries.go index 97a5dce22..7eb71f3c5 100644 --- a/rest/pricing/v1/voice_countries.go +++ b/rest/pricing/v1/voice_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -64,7 +64,10 @@ func (params *ListVoiceCountryParams) SetLimit(Limit int) *ListVoiceCountryParam } // Retrieve a single page of VoiceCountry records from the API. Request is executed immediately. -func (c *ApiService) PageVoiceCountry(params *ListVoiceCountryParams, pageToken, pageNumber string) (*ListVoiceCountryResponse, error) { +func (c *ApiService) PageVoiceCountry( + params *ListVoiceCountryParams, + pageToken, pageNumber string, +) (*ListVoiceCountryResponse, error) { path := "/v1/Voice/Countries" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamVoiceCountry(params *ListVoiceCountryParams) (chan Pr return recordChannel, errorChannel } -func (c *ApiService) streamVoiceCountry(response *ListVoiceCountryResponse, params *ListVoiceCountryParams, recordChannel chan PricingV1VoiceCountry, errorChannel chan error) { +func (c *ApiService) streamVoiceCountry( + response *ListVoiceCountryResponse, + params *ListVoiceCountryParams, + recordChannel chan PricingV1VoiceCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/pricing/v2/api_service.go b/rest/pricing/v2/api_service.go index dd1d948c5..16a045f1d 100644 --- a/rest/pricing/v2/api_service.go +++ b/rest/pricing/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/pricing/v2/model_pricing_v2_trunking_country_instance_originating_call_prices.go b/rest/pricing/v2/model_pricing_v2_trunking_country_instance_originating_call_prices.go index ecdfc6448..8c50a5f4d 100644 --- a/rest/pricing/v2/model_pricing_v2_trunking_country_instance_originating_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_trunking_country_instance_originating_call_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV2TrunkingCountryInstanceOriginatingCallPrices struct for PricingV2TrunkingCountryInstanceOriginatingCallPrices diff --git a/rest/pricing/v2/model_pricing_v2_trunking_country_instance_terminating_prefix_prices.go b/rest/pricing/v2/model_pricing_v2_trunking_country_instance_terminating_prefix_prices.go index 0f32edf21..91d272085 100644 --- a/rest/pricing/v2/model_pricing_v2_trunking_country_instance_terminating_prefix_prices.go +++ b/rest/pricing/v2/model_pricing_v2_trunking_country_instance_terminating_prefix_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV2TrunkingCountryInstanceTerminatingPrefixPrices struct for PricingV2TrunkingCountryInstanceTerminatingPrefixPrices diff --git a/rest/pricing/v2/model_pricing_v2_trunking_number_originating_call_price.go b/rest/pricing/v2/model_pricing_v2_trunking_number_originating_call_price.go index 3e735fe43..de716181b 100644 --- a/rest/pricing/v2/model_pricing_v2_trunking_number_originating_call_price.go +++ b/rest/pricing/v2/model_pricing_v2_trunking_number_originating_call_price.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV2TrunkingNumberOriginatingCallPrice The [OriginatingCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) record. diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number_inbound_call_price.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number_inbound_call_price.go index f606b5803..357a74093 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number_inbound_call_price.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number_inbound_call_price.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV2VoiceVoiceNumberInboundCallPrice The [InboundCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) record. diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go index 45f75da31..aa393bcfb 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // PricingV2VoiceVoiceNumberOutboundCallPrices struct for PricingV2VoiceVoiceNumberOutboundCallPrices diff --git a/rest/pricing/v2/trunking_countries.go b/rest/pricing/v2/trunking_countries.go index 4a8b32d7c..493919fd0 100644 --- a/rest/pricing/v2/trunking_countries.go +++ b/rest/pricing/v2/trunking_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Country. @@ -64,7 +64,10 @@ func (params *ListTrunkingCountryParams) SetLimit(Limit int) *ListTrunkingCountr } // Retrieve a single page of TrunkingCountry records from the API. Request is executed immediately. -func (c *ApiService) PageTrunkingCountry(params *ListTrunkingCountryParams, pageToken, pageNumber string) (*ListTrunkingCountryResponse, error) { +func (c *ApiService) PageTrunkingCountry( + params *ListTrunkingCountryParams, + pageToken, pageNumber string, +) (*ListTrunkingCountryResponse, error) { path := "/v2/Trunking/Countries" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamTrunkingCountry(params *ListTrunkingCountryParams) (c return recordChannel, errorChannel } -func (c *ApiService) streamTrunkingCountry(response *ListTrunkingCountryResponse, params *ListTrunkingCountryParams, recordChannel chan PricingV2TrunkingCountry, errorChannel chan error) { +func (c *ApiService) streamTrunkingCountry( + response *ListTrunkingCountryResponse, + params *ListTrunkingCountryParams, + recordChannel chan PricingV2TrunkingCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/pricing/v2/voice_countries.go b/rest/pricing/v2/voice_countries.go index 21ba246d8..38af5577a 100644 --- a/rest/pricing/v2/voice_countries.go +++ b/rest/pricing/v2/voice_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Country. @@ -64,7 +64,10 @@ func (params *ListVoiceCountryParams) SetLimit(Limit int) *ListVoiceCountryParam } // Retrieve a single page of VoiceCountry records from the API. Request is executed immediately. -func (c *ApiService) PageVoiceCountry(params *ListVoiceCountryParams, pageToken, pageNumber string) (*ListVoiceCountryResponse, error) { +func (c *ApiService) PageVoiceCountry( + params *ListVoiceCountryParams, + pageToken, pageNumber string, +) (*ListVoiceCountryResponse, error) { path := "/v2/Voice/Countries" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamVoiceCountry(params *ListVoiceCountryParams) (chan Pr return recordChannel, errorChannel } -func (c *ApiService) streamVoiceCountry(response *ListVoiceCountryResponse, params *ListVoiceCountryParams, recordChannel chan PricingV2VoiceCountry, errorChannel chan error) { +func (c *ApiService) streamVoiceCountry( + response *ListVoiceCountryResponse, + params *ListVoiceCountryParams, + recordChannel chan PricingV2VoiceCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/proxy/v1/api_service.go b/rest/proxy/v1/api_service.go index 8a6c62264..1487ac0eb 100644 --- a/rest/proxy/v1/api_service.go +++ b/rest/proxy/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/proxy/v1/services.go b/rest/proxy/v1/services.go index 20600cde4..c6a956d28 100644 --- a/rest/proxy/v1/services.go +++ b/rest/proxy/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -182,7 +182,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -252,7 +255,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ProxyV1Servi return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ProxyV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan ProxyV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/proxy/v1/services_phone_numbers.go b/rest/proxy/v1/services_phone_numbers.go index be0ae2d89..a2894cb3c 100644 --- a/rest/proxy/v1/services_phone_numbers.go +++ b/rest/proxy/v1/services_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePhoneNumber' @@ -47,7 +47,10 @@ func (params *CreatePhoneNumberParams) SetIsReserved(IsReserved bool) *CreatePho } // Add a Phone Number to a Service's Proxy Number Pool. -func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*ProxyV1PhoneNumber, error) { +func (c *ApiService) CreatePhoneNumber( + ServiceSid string, + params *CreatePhoneNumberParams, +) (*ProxyV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,7 +143,11 @@ func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams } // Retrieve a single page of PhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error) { +func (c *ApiService) PagePhoneNumber( + ServiceSid string, + params *ListPhoneNumberParams, + pageToken, pageNumber string, +) (*ListPhoneNumberResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -191,7 +198,10 @@ func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberP } // Streams PhoneNumber records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (chan ProxyV1PhoneNumber, chan error) { +func (c *ApiService) StreamPhoneNumber( + ServiceSid string, + params *ListPhoneNumberParams, +) (chan ProxyV1PhoneNumber, chan error) { if params == nil { params = &ListPhoneNumberParams{} } @@ -212,7 +222,12 @@ func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumbe return recordChannel, errorChannel } -func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan ProxyV1PhoneNumber, errorChannel chan error) { +func (c *ApiService) streamPhoneNumber( + response *ListPhoneNumberResponse, + params *ListPhoneNumberParams, + recordChannel chan ProxyV1PhoneNumber, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -272,7 +287,11 @@ func (params *UpdatePhoneNumberParams) SetIsReserved(IsReserved bool) *UpdatePho } // Update a specific Proxy Number. -func (c *ApiService) UpdatePhoneNumber(ServiceSid string, Sid string, params *UpdatePhoneNumberParams) (*ProxyV1PhoneNumber, error) { +func (c *ApiService) UpdatePhoneNumber( + ServiceSid string, + Sid string, + params *UpdatePhoneNumberParams, +) (*ProxyV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/proxy/v1/services_sessions.go b/rest/proxy/v1/services_sessions.go index 6b1cff4d7..76173fbb2 100644 --- a/rest/proxy/v1/services_sessions.go +++ b/rest/proxy/v1/services_sessions.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSession' @@ -176,7 +176,11 @@ func (params *ListSessionParams) SetLimit(Limit int) *ListSessionParams { } // Retrieve a single page of Session records from the API. Request is executed immediately. -func (c *ApiService) PageSession(ServiceSid string, params *ListSessionParams, pageToken, pageNumber string) (*ListSessionResponse, error) { +func (c *ApiService) PageSession( + ServiceSid string, + params *ListSessionParams, + pageToken, pageNumber string, +) (*ListSessionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -248,7 +252,12 @@ func (c *ApiService) StreamSession(ServiceSid string, params *ListSessionParams) return recordChannel, errorChannel } -func (c *ApiService) streamSession(response *ListSessionResponse, params *ListSessionParams, recordChannel chan ProxyV1Session, errorChannel chan error) { +func (c *ApiService) streamSession( + response *ListSessionResponse, + params *ListSessionParams, + recordChannel chan ProxyV1Session, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -320,7 +329,11 @@ func (params *UpdateSessionParams) SetStatus(Status string) *UpdateSessionParams } // Update a specific Session. -func (c *ApiService) UpdateSession(ServiceSid string, Sid string, params *UpdateSessionParams) (*ProxyV1Session, error) { +func (c *ApiService) UpdateSession( + ServiceSid string, + Sid string, + params *UpdateSessionParams, +) (*ProxyV1Session, error) { path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/proxy/v1/services_sessions_interactions.go b/rest/proxy/v1/services_sessions_interactions.go index 106d43666..4588b52f0 100644 --- a/rest/proxy/v1/services_sessions_interactions.go +++ b/rest/proxy/v1/services_sessions_interactions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific Interaction. @@ -86,7 +86,12 @@ func (params *ListInteractionParams) SetLimit(Limit int) *ListInteractionParams } // Retrieve a single page of Interaction records from the API. Request is executed immediately. -func (c *ApiService) PageInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams, pageToken, pageNumber string) (*ListInteractionResponse, error) { +func (c *ApiService) PageInteraction( + ServiceSid string, + SessionSid string, + params *ListInteractionParams, + pageToken, pageNumber string, +) (*ListInteractionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +127,11 @@ func (c *ApiService) PageInteraction(ServiceSid string, SessionSid string, param } // Lists Interaction records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams) ([]ProxyV1Interaction, error) { +func (c *ApiService) ListInteraction( + ServiceSid string, + SessionSid string, + params *ListInteractionParams, +) ([]ProxyV1Interaction, error) { response, errors := c.StreamInteraction(ServiceSid, SessionSid, params) records := make([]ProxyV1Interaction, 0) @@ -138,7 +147,11 @@ func (c *ApiService) ListInteraction(ServiceSid string, SessionSid string, param } // Streams Interaction records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams) (chan ProxyV1Interaction, chan error) { +func (c *ApiService) StreamInteraction( + ServiceSid string, + SessionSid string, + params *ListInteractionParams, +) (chan ProxyV1Interaction, chan error) { if params == nil { params = &ListInteractionParams{} } @@ -159,7 +172,12 @@ func (c *ApiService) StreamInteraction(ServiceSid string, SessionSid string, par return recordChannel, errorChannel } -func (c *ApiService) streamInteraction(response *ListInteractionResponse, params *ListInteractionParams, recordChannel chan ProxyV1Interaction, errorChannel chan error) { +func (c *ApiService) streamInteraction( + response *ListInteractionResponse, + params *ListInteractionParams, + recordChannel chan ProxyV1Interaction, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/proxy/v1/services_sessions_participants.go b/rest/proxy/v1/services_sessions_participants.go index dd9262e19..4e4ed626a 100644 --- a/rest/proxy/v1/services_sessions_participants.go +++ b/rest/proxy/v1/services_sessions_participants.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateParticipant' @@ -53,7 +53,11 @@ func (params *CreateParticipantParams) SetProxyIdentifierSid(ProxyIdentifierSid } // Add a new Participant to the Session -func (c *ApiService) CreateParticipant(ServiceSid string, SessionSid string, params *CreateParticipantParams) (*ProxyV1Participant, error) { +func (c *ApiService) CreateParticipant( + ServiceSid string, + SessionSid string, + params *CreateParticipantParams, +) (*ProxyV1Participant, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -152,7 +156,12 @@ func (params *ListParticipantParams) SetLimit(Limit int) *ListParticipantParams } // Retrieve a single page of Participant records from the API. Request is executed immediately. -func (c *ApiService) PageParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams, pageToken, pageNumber string) (*ListParticipantResponse, error) { +func (c *ApiService) PageParticipant( + ServiceSid string, + SessionSid string, + params *ListParticipantParams, + pageToken, pageNumber string, +) (*ListParticipantResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -188,7 +197,11 @@ func (c *ApiService) PageParticipant(ServiceSid string, SessionSid string, param } // Lists Participant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams) ([]ProxyV1Participant, error) { +func (c *ApiService) ListParticipant( + ServiceSid string, + SessionSid string, + params *ListParticipantParams, +) ([]ProxyV1Participant, error) { response, errors := c.StreamParticipant(ServiceSid, SessionSid, params) records := make([]ProxyV1Participant, 0) @@ -204,7 +217,11 @@ func (c *ApiService) ListParticipant(ServiceSid string, SessionSid string, param } // Streams Participant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams) (chan ProxyV1Participant, chan error) { +func (c *ApiService) StreamParticipant( + ServiceSid string, + SessionSid string, + params *ListParticipantParams, +) (chan ProxyV1Participant, chan error) { if params == nil { params = &ListParticipantParams{} } @@ -225,7 +242,12 @@ func (c *ApiService) StreamParticipant(ServiceSid string, SessionSid string, par return recordChannel, errorChannel } -func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ProxyV1Participant, errorChannel chan error) { +func (c *ApiService) streamParticipant( + response *ListParticipantResponse, + params *ListParticipantParams, + recordChannel chan ProxyV1Participant, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/proxy/v1/services_sessions_participants_message_interactions.go b/rest/proxy/v1/services_sessions_participants_message_interactions.go index e942021e0..78e6ec65f 100644 --- a/rest/proxy/v1/services_sessions_participants_message_interactions.go +++ b/rest/proxy/v1/services_sessions_participants_message_interactions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessageInteraction' @@ -41,7 +41,12 @@ func (params *CreateMessageInteractionParams) SetMediaUrl(MediaUrl []string) *Cr } // Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant). The `inbound` properties for the Interaction will always be empty. -func (c *ApiService) CreateMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *CreateMessageInteractionParams) (*ProxyV1MessageInteraction, error) { +func (c *ApiService) CreateMessageInteraction( + ServiceSid string, + SessionSid string, + ParticipantSid string, + params *CreateMessageInteractionParams, +) (*ProxyV1MessageInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -75,7 +80,12 @@ func (c *ApiService) CreateMessageInteraction(ServiceSid string, SessionSid stri } // -func (c *ApiService) FetchMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, Sid string) (*ProxyV1MessageInteraction, error) { +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) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -118,7 +128,13 @@ func (params *ListMessageInteractionParams) SetLimit(Limit int) *ListMessageInte } // Retrieve a single page of MessageInteraction records from the API. Request is executed immediately. -func (c *ApiService) PageMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams, pageToken, pageNumber string) (*ListMessageInteractionResponse, error) { +func (c *ApiService) PageMessageInteraction( + ServiceSid string, + SessionSid string, + ParticipantSid string, + params *ListMessageInteractionParams, + pageToken, pageNumber string, +) (*ListMessageInteractionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -155,7 +171,12 @@ func (c *ApiService) PageMessageInteraction(ServiceSid string, SessionSid string } // Lists MessageInteraction records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams) ([]ProxyV1MessageInteraction, error) { +func (c *ApiService) ListMessageInteraction( + ServiceSid string, + SessionSid string, + ParticipantSid string, + params *ListMessageInteractionParams, +) ([]ProxyV1MessageInteraction, error) { response, errors := c.StreamMessageInteraction(ServiceSid, SessionSid, ParticipantSid, params) records := make([]ProxyV1MessageInteraction, 0) @@ -171,7 +192,12 @@ func (c *ApiService) ListMessageInteraction(ServiceSid string, SessionSid string } // Streams MessageInteraction records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams) (chan ProxyV1MessageInteraction, chan error) { +func (c *ApiService) StreamMessageInteraction( + ServiceSid string, + SessionSid string, + ParticipantSid string, + params *ListMessageInteractionParams, +) (chan ProxyV1MessageInteraction, chan error) { if params == nil { params = &ListMessageInteractionParams{} } @@ -192,7 +218,12 @@ func (c *ApiService) StreamMessageInteraction(ServiceSid string, SessionSid stri return recordChannel, errorChannel } -func (c *ApiService) streamMessageInteraction(response *ListMessageInteractionResponse, params *ListMessageInteractionParams, recordChannel chan ProxyV1MessageInteraction, errorChannel chan error) { +func (c *ApiService) streamMessageInteraction( + response *ListMessageInteractionResponse, + params *ListMessageInteractionParams, + recordChannel chan ProxyV1MessageInteraction, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/proxy/v1/services_short_codes.go b/rest/proxy/v1/services_short_codes.go index 48cac26a9..bc4cdce91 100644 --- a/rest/proxy/v1/services_short_codes.go +++ b/rest/proxy/v1/services_short_codes.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateShortCode' @@ -122,7 +122,11 @@ func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { } // Retrieve a single page of ShortCode records from the API. Request is executed immediately. -func (c *ApiService) PageShortCode(ServiceSid string, params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error) { +func (c *ApiService) PageShortCode( + ServiceSid string, + params *ListShortCodeParams, + pageToken, pageNumber string, +) (*ListShortCodeResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -173,7 +177,10 @@ func (c *ApiService) ListShortCode(ServiceSid string, params *ListShortCodeParam } // Streams ShortCode records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodeParams) (chan ProxyV1ShortCode, chan error) { +func (c *ApiService) StreamShortCode( + ServiceSid string, + params *ListShortCodeParams, +) (chan ProxyV1ShortCode, chan error) { if params == nil { params = &ListShortCodeParams{} } @@ -194,7 +201,12 @@ func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodePar return recordChannel, errorChannel } -func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ProxyV1ShortCode, errorChannel chan error) { +func (c *ApiService) streamShortCode( + response *ListShortCodeResponse, + params *ListShortCodeParams, + recordChannel chan ProxyV1ShortCode, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -254,7 +266,11 @@ func (params *UpdateShortCodeParams) SetIsReserved(IsReserved bool) *UpdateShort } // Update a specific Short Code. -func (c *ApiService) UpdateShortCode(ServiceSid string, Sid string, params *UpdateShortCodeParams) (*ProxyV1ShortCode, error) { +func (c *ApiService) UpdateShortCode( + ServiceSid string, + Sid string, + params *UpdateShortCodeParams, +) (*ProxyV1ShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/routes/v2/api_service.go b/rest/routes/v2/api_service.go index c563e84c9..e9891f8c8 100644 --- a/rest/routes/v2/api_service.go +++ b/rest/routes/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/serverless/v1/api_service.go b/rest/serverless/v1/api_service.go index 7ff947e82..f64271e00 100644 --- a/rest/serverless/v1/api_service.go +++ b/rest/serverless/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/serverless/v1/services.go b/rest/serverless/v1/services.go index cc1c5abca..03cdfc388 100644 --- a/rest/serverless/v1/services.go +++ b/rest/serverless/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -146,7 +146,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -216,7 +219,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan ServerlessV1 return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan ServerlessV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan ServerlessV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_assets.go b/rest/serverless/v1/services_assets.go index 5ce0a10a6..b5ffe5e70 100644 --- a/rest/serverless/v1/services_assets.go +++ b/rest/serverless/v1/services_assets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateAsset' @@ -122,7 +122,11 @@ func (params *ListAssetParams) SetLimit(Limit int) *ListAssetParams { } // Retrieve a single page of Asset records from the API. Request is executed immediately. -func (c *ApiService) PageAsset(ServiceSid string, params *ListAssetParams, pageToken, pageNumber string) (*ListAssetResponse, error) { +func (c *ApiService) PageAsset( + ServiceSid string, + params *ListAssetParams, + pageToken, pageNumber string, +) (*ListAssetResponse, error) { path := "/v1/Services/{ServiceSid}/Assets" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -194,7 +198,12 @@ func (c *ApiService) StreamAsset(ServiceSid string, params *ListAssetParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamAsset(response *ListAssetResponse, params *ListAssetParams, recordChannel chan ServerlessV1Asset, errorChannel chan error) { +func (c *ApiService) streamAsset( + response *ListAssetResponse, + params *ListAssetParams, + recordChannel chan ServerlessV1Asset, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_assets_versions.go b/rest/serverless/v1/services_assets_versions.go index f3a8e510b..b6760c965 100644 --- a/rest/serverless/v1/services_assets_versions.go +++ b/rest/serverless/v1/services_assets_versions.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a specific Asset Version. -func (c *ApiService) FetchAssetVersion(ServiceSid string, AssetSid string, Sid string) (*ServerlessV1AssetVersion, error) { +func (c *ApiService) FetchAssetVersion( + ServiceSid string, + AssetSid string, + Sid string, +) (*ServerlessV1AssetVersion, error) { path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"AssetSid"+"}", AssetSid, -1) @@ -66,7 +70,12 @@ func (params *ListAssetVersionParams) SetLimit(Limit int) *ListAssetVersionParam } // Retrieve a single page of AssetVersion records from the API. Request is executed immediately. -func (c *ApiService) PageAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams, pageToken, pageNumber string) (*ListAssetVersionResponse, error) { +func (c *ApiService) PageAssetVersion( + ServiceSid string, + AssetSid string, + params *ListAssetVersionParams, + pageToken, pageNumber string, +) (*ListAssetVersionResponse, error) { path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageAssetVersion(ServiceSid string, AssetSid string, params } // Lists AssetVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) ([]ServerlessV1AssetVersion, error) { +func (c *ApiService) ListAssetVersion( + ServiceSid string, + AssetSid string, + params *ListAssetVersionParams, +) ([]ServerlessV1AssetVersion, error) { response, errors := c.StreamAssetVersion(ServiceSid, AssetSid, params) records := make([]ServerlessV1AssetVersion, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListAssetVersion(ServiceSid string, AssetSid string, params } // Streams AssetVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (chan ServerlessV1AssetVersion, chan error) { +func (c *ApiService) StreamAssetVersion( + ServiceSid string, + AssetSid string, + params *ListAssetVersionParams, +) (chan ServerlessV1AssetVersion, chan error) { if params == nil { params = &ListAssetVersionParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamAssetVersion(ServiceSid string, AssetSid string, para return recordChannel, errorChannel } -func (c *ApiService) streamAssetVersion(response *ListAssetVersionResponse, params *ListAssetVersionParams, recordChannel chan ServerlessV1AssetVersion, errorChannel chan error) { +func (c *ApiService) streamAssetVersion( + response *ListAssetVersionResponse, + params *ListAssetVersionParams, + recordChannel chan ServerlessV1AssetVersion, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_builds.go b/rest/serverless/v1/services_builds.go index 838001d90..aa81208d8 100644 --- a/rest/serverless/v1/services_builds.go +++ b/rest/serverless/v1/services_builds.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBuild' @@ -153,7 +153,11 @@ func (params *ListBuildParams) SetLimit(Limit int) *ListBuildParams { } // Retrieve a single page of Build records from the API. Request is executed immediately. -func (c *ApiService) PageBuild(ServiceSid string, params *ListBuildParams, pageToken, pageNumber string) (*ListBuildResponse, error) { +func (c *ApiService) PageBuild( + ServiceSid string, + params *ListBuildParams, + pageToken, pageNumber string, +) (*ListBuildResponse, error) { path := "/v1/Services/{ServiceSid}/Builds" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -225,7 +229,12 @@ func (c *ApiService) StreamBuild(ServiceSid string, params *ListBuildParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamBuild(response *ListBuildResponse, params *ListBuildParams, recordChannel chan ServerlessV1Build, errorChannel chan error) { +func (c *ApiService) streamBuild( + response *ListBuildResponse, + params *ListBuildParams, + recordChannel chan ServerlessV1Build, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_environments.go b/rest/serverless/v1/services_environments.go index 0dd9b37b4..62e08c56f 100644 --- a/rest/serverless/v1/services_environments.go +++ b/rest/serverless/v1/services_environments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEnvironment' @@ -41,7 +41,10 @@ func (params *CreateEnvironmentParams) SetDomainSuffix(DomainSuffix string) *Cre } // Create a new environment. -func (c *ApiService) CreateEnvironment(ServiceSid string, params *CreateEnvironmentParams) (*ServerlessV1Environment, error) { +func (c *ApiService) CreateEnvironment( + ServiceSid string, + params *CreateEnvironmentParams, +) (*ServerlessV1Environment, error) { path := "/v1/Services/{ServiceSid}/Environments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -131,7 +134,11 @@ func (params *ListEnvironmentParams) SetLimit(Limit int) *ListEnvironmentParams } // Retrieve a single page of Environment records from the API. Request is executed immediately. -func (c *ApiService) PageEnvironment(ServiceSid string, params *ListEnvironmentParams, pageToken, pageNumber string) (*ListEnvironmentResponse, error) { +func (c *ApiService) PageEnvironment( + ServiceSid string, + params *ListEnvironmentParams, + pageToken, pageNumber string, +) (*ListEnvironmentResponse, error) { path := "/v1/Services/{ServiceSid}/Environments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -166,7 +173,10 @@ func (c *ApiService) PageEnvironment(ServiceSid string, params *ListEnvironmentP } // Lists Environment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentParams) ([]ServerlessV1Environment, error) { +func (c *ApiService) ListEnvironment( + ServiceSid string, + params *ListEnvironmentParams, +) ([]ServerlessV1Environment, error) { response, errors := c.StreamEnvironment(ServiceSid, params) records := make([]ServerlessV1Environment, 0) @@ -182,7 +192,10 @@ func (c *ApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentP } // Streams Environment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamEnvironment(ServiceSid string, params *ListEnvironmentParams) (chan ServerlessV1Environment, chan error) { +func (c *ApiService) StreamEnvironment( + ServiceSid string, + params *ListEnvironmentParams, +) (chan ServerlessV1Environment, chan error) { if params == nil { params = &ListEnvironmentParams{} } @@ -203,7 +216,12 @@ func (c *ApiService) StreamEnvironment(ServiceSid string, params *ListEnvironmen return recordChannel, errorChannel } -func (c *ApiService) streamEnvironment(response *ListEnvironmentResponse, params *ListEnvironmentParams, recordChannel chan ServerlessV1Environment, errorChannel chan error) { +func (c *ApiService) streamEnvironment( + response *ListEnvironmentResponse, + params *ListEnvironmentParams, + recordChannel chan ServerlessV1Environment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_environments_deployments.go b/rest/serverless/v1/services_environments_deployments.go index d061c40c0..a2508d92f 100644 --- a/rest/serverless/v1/services_environments_deployments.go +++ b/rest/serverless/v1/services_environments_deployments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateDeployment' @@ -35,7 +35,11 @@ func (params *CreateDeploymentParams) SetBuildSid(BuildSid string) *CreateDeploy } // Create a new Deployment. -func (c *ApiService) CreateDeployment(ServiceSid string, EnvironmentSid string, params *CreateDeploymentParams) (*ServerlessV1Deployment, error) { +func (c *ApiService) CreateDeployment( + ServiceSid string, + EnvironmentSid string, + params *CreateDeploymentParams, +) (*ServerlessV1Deployment, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -63,7 +67,11 @@ func (c *ApiService) CreateDeployment(ServiceSid string, EnvironmentSid string, } // Retrieve a specific Deployment. -func (c *ApiService) FetchDeployment(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Deployment, error) { +func (c *ApiService) FetchDeployment( + ServiceSid string, + EnvironmentSid string, + Sid string, +) (*ServerlessV1Deployment, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -105,7 +113,12 @@ func (params *ListDeploymentParams) SetLimit(Limit int) *ListDeploymentParams { } // Retrieve a single page of Deployment records from the API. Request is executed immediately. -func (c *ApiService) PageDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams, pageToken, pageNumber string) (*ListDeploymentResponse, error) { +func (c *ApiService) PageDeployment( + ServiceSid string, + EnvironmentSid string, + params *ListDeploymentParams, + pageToken, pageNumber string, +) (*ListDeploymentResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -141,7 +154,11 @@ func (c *ApiService) PageDeployment(ServiceSid string, EnvironmentSid string, pa } // Lists Deployment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) ([]ServerlessV1Deployment, error) { +func (c *ApiService) ListDeployment( + ServiceSid string, + EnvironmentSid string, + params *ListDeploymentParams, +) ([]ServerlessV1Deployment, error) { response, errors := c.StreamDeployment(ServiceSid, EnvironmentSid, params) records := make([]ServerlessV1Deployment, 0) @@ -157,7 +174,11 @@ func (c *ApiService) ListDeployment(ServiceSid string, EnvironmentSid string, pa } // Streams Deployment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (chan ServerlessV1Deployment, chan error) { +func (c *ApiService) StreamDeployment( + ServiceSid string, + EnvironmentSid string, + params *ListDeploymentParams, +) (chan ServerlessV1Deployment, chan error) { if params == nil { params = &ListDeploymentParams{} } @@ -178,7 +199,12 @@ func (c *ApiService) StreamDeployment(ServiceSid string, EnvironmentSid string, return recordChannel, errorChannel } -func (c *ApiService) streamDeployment(response *ListDeploymentResponse, params *ListDeploymentParams, recordChannel chan ServerlessV1Deployment, errorChannel chan error) { +func (c *ApiService) streamDeployment( + response *ListDeploymentResponse, + params *ListDeploymentParams, + recordChannel chan ServerlessV1Deployment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_environments_logs.go b/rest/serverless/v1/services_environments_logs.go index 7fbbc264d..705aac283 100644 --- a/rest/serverless/v1/services_environments_logs.go +++ b/rest/serverless/v1/services_environments_logs.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a specific log. @@ -85,7 +85,12 @@ func (params *ListLogParams) SetLimit(Limit int) *ListLogParams { } // Retrieve a single page of Log records from the API. Request is executed immediately. -func (c *ApiService) PageLog(ServiceSid string, EnvironmentSid string, params *ListLogParams, pageToken, pageNumber string) (*ListLogResponse, error) { +func (c *ApiService) PageLog( + ServiceSid string, + EnvironmentSid string, + params *ListLogParams, + pageToken, pageNumber string, +) (*ListLogResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -130,7 +135,11 @@ func (c *ApiService) PageLog(ServiceSid string, EnvironmentSid string, params *L } // Lists Log records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) ([]ServerlessV1Log, error) { +func (c *ApiService) ListLog( + ServiceSid string, + EnvironmentSid string, + params *ListLogParams, +) ([]ServerlessV1Log, error) { response, errors := c.StreamLog(ServiceSid, EnvironmentSid, params) records := make([]ServerlessV1Log, 0) @@ -146,7 +155,11 @@ func (c *ApiService) ListLog(ServiceSid string, EnvironmentSid string, params *L } // Streams Log records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (chan ServerlessV1Log, chan error) { +func (c *ApiService) StreamLog( + ServiceSid string, + EnvironmentSid string, + params *ListLogParams, +) (chan ServerlessV1Log, chan error) { if params == nil { params = &ListLogParams{} } @@ -167,7 +180,12 @@ func (c *ApiService) StreamLog(ServiceSid string, EnvironmentSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamLog(response *ListLogResponse, params *ListLogParams, recordChannel chan ServerlessV1Log, errorChannel chan error) { +func (c *ApiService) streamLog( + response *ListLogResponse, + params *ListLogParams, + recordChannel chan ServerlessV1Log, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/serverless/v1/services_environments_variables.go b/rest/serverless/v1/services_environments_variables.go index 891919414..d5bd6a8b8 100644 --- a/rest/serverless/v1/services_environments_variables.go +++ b/rest/serverless/v1/services_environments_variables.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateVariable' @@ -41,7 +41,11 @@ func (params *CreateVariableParams) SetValue(Value string) *CreateVariableParams } // Create a new Variable. -func (c *ApiService) CreateVariable(ServiceSid string, EnvironmentSid string, params *CreateVariableParams) (*ServerlessV1Variable, error) { +func (c *ApiService) CreateVariable( + ServiceSid string, + EnvironmentSid string, + params *CreateVariableParams, +) (*ServerlessV1Variable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -92,7 +96,11 @@ func (c *ApiService) DeleteVariable(ServiceSid string, EnvironmentSid string, Si } // Retrieve a specific Variable. -func (c *ApiService) FetchVariable(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1Variable, error) { +func (c *ApiService) FetchVariable( + ServiceSid string, + EnvironmentSid string, + Sid string, +) (*ServerlessV1Variable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -134,7 +142,12 @@ func (params *ListVariableParams) SetLimit(Limit int) *ListVariableParams { } // Retrieve a single page of Variable records from the API. Request is executed immediately. -func (c *ApiService) PageVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams, pageToken, pageNumber string) (*ListVariableResponse, error) { +func (c *ApiService) PageVariable( + ServiceSid string, + EnvironmentSid string, + params *ListVariableParams, + pageToken, pageNumber string, +) (*ListVariableResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -170,7 +183,11 @@ func (c *ApiService) PageVariable(ServiceSid string, EnvironmentSid string, para } // Lists Variable records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) ([]ServerlessV1Variable, error) { +func (c *ApiService) ListVariable( + ServiceSid string, + EnvironmentSid string, + params *ListVariableParams, +) ([]ServerlessV1Variable, error) { response, errors := c.StreamVariable(ServiceSid, EnvironmentSid, params) records := make([]ServerlessV1Variable, 0) @@ -186,7 +203,11 @@ func (c *ApiService) ListVariable(ServiceSid string, EnvironmentSid string, para } // Streams Variable records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (chan ServerlessV1Variable, chan error) { +func (c *ApiService) StreamVariable( + ServiceSid string, + EnvironmentSid string, + params *ListVariableParams, +) (chan ServerlessV1Variable, chan error) { if params == nil { params = &ListVariableParams{} } @@ -207,7 +228,12 @@ func (c *ApiService) StreamVariable(ServiceSid string, EnvironmentSid string, pa return recordChannel, errorChannel } -func (c *ApiService) streamVariable(response *ListVariableResponse, params *ListVariableParams, recordChannel chan ServerlessV1Variable, errorChannel chan error) { +func (c *ApiService) streamVariable( + response *ListVariableResponse, + params *ListVariableParams, + recordChannel chan ServerlessV1Variable, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -273,7 +299,12 @@ func (params *UpdateVariableParams) SetValue(Value string) *UpdateVariableParams } // Update a specific Variable. -func (c *ApiService) UpdateVariable(ServiceSid string, EnvironmentSid string, Sid string, params *UpdateVariableParams) (*ServerlessV1Variable, error) { +func (c *ApiService) UpdateVariable( + ServiceSid string, + EnvironmentSid string, + Sid string, + params *UpdateVariableParams, +) (*ServerlessV1Variable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) diff --git a/rest/serverless/v1/services_functions.go b/rest/serverless/v1/services_functions.go index 73dd19964..ad0bb0224 100644 --- a/rest/serverless/v1/services_functions.go +++ b/rest/serverless/v1/services_functions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateFunction' @@ -122,7 +122,11 @@ func (params *ListFunctionParams) SetLimit(Limit int) *ListFunctionParams { } // Retrieve a single page of Function records from the API. Request is executed immediately. -func (c *ApiService) PageFunction(ServiceSid string, params *ListFunctionParams, pageToken, pageNumber string) (*ListFunctionResponse, error) { +func (c *ApiService) PageFunction( + ServiceSid string, + params *ListFunctionParams, + pageToken, pageNumber string, +) (*ListFunctionResponse, error) { path := "/v1/Services/{ServiceSid}/Functions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -173,7 +177,10 @@ func (c *ApiService) ListFunction(ServiceSid string, params *ListFunctionParams) } // Streams Function records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamFunction(ServiceSid string, params *ListFunctionParams) (chan ServerlessV1Function, chan error) { +func (c *ApiService) StreamFunction( + ServiceSid string, + params *ListFunctionParams, +) (chan ServerlessV1Function, chan error) { if params == nil { params = &ListFunctionParams{} } @@ -194,7 +201,12 @@ func (c *ApiService) StreamFunction(ServiceSid string, params *ListFunctionParam return recordChannel, errorChannel } -func (c *ApiService) streamFunction(response *ListFunctionResponse, params *ListFunctionParams, recordChannel chan ServerlessV1Function, errorChannel chan error) { +func (c *ApiService) streamFunction( + response *ListFunctionResponse, + params *ListFunctionParams, + recordChannel chan ServerlessV1Function, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -254,7 +266,11 @@ func (params *UpdateFunctionParams) SetFriendlyName(FriendlyName string) *Update } // Update a specific Function resource. -func (c *ApiService) UpdateFunction(ServiceSid string, Sid string, params *UpdateFunctionParams) (*ServerlessV1Function, error) { +func (c *ApiService) UpdateFunction( + ServiceSid string, + Sid string, + params *UpdateFunctionParams, +) (*ServerlessV1Function, error) { path := "/v1/Services/{ServiceSid}/Functions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/serverless/v1/services_functions_versions.go b/rest/serverless/v1/services_functions_versions.go index 28f14f84a..cbf673251 100644 --- a/rest/serverless/v1/services_functions_versions.go +++ b/rest/serverless/v1/services_functions_versions.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a specific Function Version resource. -func (c *ApiService) FetchFunctionVersion(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1FunctionVersion, error) { +func (c *ApiService) FetchFunctionVersion( + ServiceSid string, + FunctionSid string, + Sid string, +) (*ServerlessV1FunctionVersion, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"FunctionSid"+"}", FunctionSid, -1) @@ -66,7 +70,12 @@ func (params *ListFunctionVersionParams) SetLimit(Limit int) *ListFunctionVersio } // Retrieve a single page of FunctionVersion records from the API. Request is executed immediately. -func (c *ApiService) PageFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams, pageToken, pageNumber string) (*ListFunctionVersionResponse, error) { +func (c *ApiService) PageFunctionVersion( + ServiceSid string, + FunctionSid string, + params *ListFunctionVersionParams, + pageToken, pageNumber string, +) (*ListFunctionVersionResponse, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageFunctionVersion(ServiceSid string, FunctionSid string, } // Lists FunctionVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) ([]ServerlessV1FunctionVersion, error) { +func (c *ApiService) ListFunctionVersion( + ServiceSid string, + FunctionSid string, + params *ListFunctionVersionParams, +) ([]ServerlessV1FunctionVersion, error) { response, errors := c.StreamFunctionVersion(ServiceSid, FunctionSid, params) records := make([]ServerlessV1FunctionVersion, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, } // Streams FunctionVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (chan ServerlessV1FunctionVersion, chan error) { +func (c *ApiService) StreamFunctionVersion( + ServiceSid string, + FunctionSid string, + params *ListFunctionVersionParams, +) (chan ServerlessV1FunctionVersion, chan error) { if params == nil { params = &ListFunctionVersionParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamFunctionVersion(ServiceSid string, FunctionSid string return recordChannel, errorChannel } -func (c *ApiService) streamFunctionVersion(response *ListFunctionVersionResponse, params *ListFunctionVersionParams, recordChannel chan ServerlessV1FunctionVersion, errorChannel chan error) { +func (c *ApiService) streamFunctionVersion( + response *ListFunctionVersionResponse, + params *ListFunctionVersionParams, + recordChannel chan ServerlessV1FunctionVersion, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v1/api_service.go b/rest/studio/v1/api_service.go index e6af2fdce..cd726b87d 100644 --- a/rest/studio/v1/api_service.go +++ b/rest/studio/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/studio/v1/flows.go b/rest/studio/v1/flows.go index 4cf073e28..44892d99d 100644 --- a/rest/studio/v1/flows.go +++ b/rest/studio/v1/flows.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific Flow. @@ -152,7 +152,12 @@ func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV1Flow, chan return recordChannel, errorChannel } -func (c *ApiService) streamFlow(response *ListFlowResponse, params *ListFlowParams, recordChannel chan StudioV1Flow, errorChannel chan error) { +func (c *ApiService) streamFlow( + response *ListFlowResponse, + params *ListFlowParams, + recordChannel chan StudioV1Flow, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v1/flows_engagements.go b/rest/studio/v1/flows_engagements.go index 2d51100b2..dce3c0640 100644 --- a/rest/studio/v1/flows_engagements.go +++ b/rest/studio/v1/flows_engagements.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEngagement' @@ -146,7 +146,11 @@ func (params *ListEngagementParams) SetLimit(Limit int) *ListEngagementParams { } // Retrieve a single page of Engagement records from the API. Request is executed immediately. -func (c *ApiService) PageEngagement(FlowSid string, params *ListEngagementParams, pageToken, pageNumber string) (*ListEngagementResponse, error) { +func (c *ApiService) PageEngagement( + FlowSid string, + params *ListEngagementParams, + pageToken, pageNumber string, +) (*ListEngagementResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -197,7 +201,10 @@ func (c *ApiService) ListEngagement(FlowSid string, params *ListEngagementParams } // Streams Engagement records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamEngagement(FlowSid string, params *ListEngagementParams) (chan StudioV1Engagement, chan error) { +func (c *ApiService) StreamEngagement( + FlowSid string, + params *ListEngagementParams, +) (chan StudioV1Engagement, chan error) { if params == nil { params = &ListEngagementParams{} } @@ -218,7 +225,12 @@ func (c *ApiService) StreamEngagement(FlowSid string, params *ListEngagementPara return recordChannel, errorChannel } -func (c *ApiService) streamEngagement(response *ListEngagementResponse, params *ListEngagementParams, recordChannel chan StudioV1Engagement, errorChannel chan error) { +func (c *ApiService) streamEngagement( + response *ListEngagementResponse, + params *ListEngagementParams, + recordChannel chan StudioV1Engagement, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v1/flows_engagements_steps.go b/rest/studio/v1/flows_engagements_steps.go index 11dac1105..49650c271 100644 --- a/rest/studio/v1/flows_engagements_steps.go +++ b/rest/studio/v1/flows_engagements_steps.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a Step. @@ -66,7 +66,12 @@ func (params *ListStepParams) SetLimit(Limit int) *ListStepParams { } // Retrieve a single page of Step records from the API. Request is executed immediately. -func (c *ApiService) PageStep(FlowSid string, EngagementSid string, params *ListStepParams, pageToken, pageNumber string) (*ListStepResponse, error) { +func (c *ApiService) PageStep( + FlowSid string, + EngagementSid string, + params *ListStepParams, + pageToken, pageNumber string, +) (*ListStepResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -118,7 +123,11 @@ func (c *ApiService) ListStep(FlowSid string, EngagementSid string, params *List } // Streams Step records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamStep(FlowSid string, EngagementSid string, params *ListStepParams) (chan StudioV1Step, chan error) { +func (c *ApiService) StreamStep( + FlowSid string, + EngagementSid string, + params *ListStepParams, +) (chan StudioV1Step, chan error) { if params == nil { params = &ListStepParams{} } @@ -139,7 +148,12 @@ func (c *ApiService) StreamStep(FlowSid string, EngagementSid string, params *Li return recordChannel, errorChannel } -func (c *ApiService) streamStep(response *ListStepResponse, params *ListStepParams, recordChannel chan StudioV1Step, errorChannel chan error) { +func (c *ApiService) streamStep( + response *ListStepResponse, + params *ListStepParams, + recordChannel chan StudioV1Step, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v1/flows_executions.go b/rest/studio/v1/flows_executions.go index 6e6f9287a..df2be7dbb 100644 --- a/rest/studio/v1/flows_executions.go +++ b/rest/studio/v1/flows_executions.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateExecution' @@ -159,7 +159,11 @@ func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams { } // Retrieve a single page of Execution records from the API. Request is executed immediately. -func (c *ApiService) PageExecution(FlowSid string, params *ListExecutionParams, pageToken, pageNumber string) (*ListExecutionResponse, error) { +func (c *ApiService) PageExecution( + FlowSid string, + params *ListExecutionParams, + pageToken, pageNumber string, +) (*ListExecutionResponse, error) { path := "/v1/Flows/{FlowSid}/Executions" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -237,7 +241,12 @@ func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams return recordChannel, errorChannel } -func (c *ApiService) streamExecution(response *ListExecutionResponse, params *ListExecutionParams, recordChannel chan StudioV1Execution, errorChannel chan error) { +func (c *ApiService) streamExecution( + response *ListExecutionResponse, + params *ListExecutionParams, + recordChannel chan StudioV1Execution, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -297,7 +306,11 @@ func (params *UpdateExecutionParams) SetStatus(Status string) *UpdateExecutionPa } // Update the status of an Execution to `ended`. -func (c *ApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV1Execution, error) { +func (c *ApiService) UpdateExecution( + FlowSid string, + Sid string, + params *UpdateExecutionParams, +) (*StudioV1Execution, error) { path := "/v1/Flows/{FlowSid}/Executions/{Sid}" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/studio/v1/flows_executions_steps.go b/rest/studio/v1/flows_executions_steps.go index c4423c3ff..b19eb7297 100644 --- a/rest/studio/v1/flows_executions_steps.go +++ b/rest/studio/v1/flows_executions_steps.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a Step. -func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV1ExecutionStep, error) { +func (c *ApiService) FetchExecutionStep( + FlowSid string, + ExecutionSid string, + Sid string, +) (*StudioV1ExecutionStep, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) @@ -66,7 +70,12 @@ func (params *ListExecutionStepParams) SetLimit(Limit int) *ListExecutionStepPar } // Retrieve a single page of ExecutionStep records from the API. Request is executed immediately. -func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams, pageToken, pageNumber string) (*ListExecutionStepResponse, error) { +func (c *ApiService) PageExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, + pageToken, pageNumber string, +) (*ListExecutionStepResponse, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, para } // Lists ExecutionStep records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) ([]StudioV1ExecutionStep, error) { +func (c *ApiService) ListExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, +) ([]StudioV1ExecutionStep, error) { response, errors := c.StreamExecutionStep(FlowSid, ExecutionSid, params) records := make([]StudioV1ExecutionStep, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, para } // Streams ExecutionStep records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (chan StudioV1ExecutionStep, chan error) { +func (c *ApiService) StreamExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, +) (chan StudioV1ExecutionStep, chan error) { if params == nil { params = &ListExecutionStepParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, pa return recordChannel, errorChannel } -func (c *ApiService) streamExecutionStep(response *ListExecutionStepResponse, params *ListExecutionStepParams, recordChannel chan StudioV1ExecutionStep, errorChannel chan error) { +func (c *ApiService) streamExecutionStep( + response *ListExecutionStepResponse, + params *ListExecutionStepParams, + recordChannel chan StudioV1ExecutionStep, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v2/api_service.go b/rest/studio/v2/api_service.go index e6af2fdce..cd726b87d 100644 --- a/rest/studio/v2/api_service.go +++ b/rest/studio/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/studio/v2/flows.go b/rest/studio/v2/flows.go index faa9f4dd3..03f8d9ee3 100644 --- a/rest/studio/v2/flows.go +++ b/rest/studio/v2/flows.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateFlow' @@ -222,7 +222,12 @@ func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV2Flow, chan return recordChannel, errorChannel } -func (c *ApiService) streamFlow(response *ListFlowResponse, params *ListFlowParams, recordChannel chan StudioV2Flow, errorChannel chan error) { +func (c *ApiService) streamFlow( + response *ListFlowResponse, + params *ListFlowParams, + recordChannel chan StudioV2Flow, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v2/flows_executions.go b/rest/studio/v2/flows_executions.go index f3f74c070..fa839bdf6 100644 --- a/rest/studio/v2/flows_executions.go +++ b/rest/studio/v2/flows_executions.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateExecution' @@ -159,7 +159,11 @@ func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams { } // Retrieve a single page of Execution records from the API. Request is executed immediately. -func (c *ApiService) PageExecution(FlowSid string, params *ListExecutionParams, pageToken, pageNumber string) (*ListExecutionResponse, error) { +func (c *ApiService) PageExecution( + FlowSid string, + params *ListExecutionParams, + pageToken, pageNumber string, +) (*ListExecutionResponse, error) { path := "/v2/Flows/{FlowSid}/Executions" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -237,7 +241,12 @@ func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams return recordChannel, errorChannel } -func (c *ApiService) streamExecution(response *ListExecutionResponse, params *ListExecutionParams, recordChannel chan StudioV2Execution, errorChannel chan error) { +func (c *ApiService) streamExecution( + response *ListExecutionResponse, + params *ListExecutionParams, + recordChannel chan StudioV2Execution, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -297,7 +306,11 @@ func (params *UpdateExecutionParams) SetStatus(Status string) *UpdateExecutionPa } // Update the status of an Execution to `ended`. -func (c *ApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV2Execution, error) { +func (c *ApiService) UpdateExecution( + FlowSid string, + Sid string, + params *UpdateExecutionParams, +) (*StudioV2Execution, error) { path := "/v2/Flows/{FlowSid}/Executions/{Sid}" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/studio/v2/flows_executions_steps.go b/rest/studio/v2/flows_executions_steps.go index f614e28c0..9c6f37740 100644 --- a/rest/studio/v2/flows_executions_steps.go +++ b/rest/studio/v2/flows_executions_steps.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a Step. -func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV2ExecutionStep, error) { +func (c *ApiService) FetchExecutionStep( + FlowSid string, + ExecutionSid string, + Sid string, +) (*StudioV2ExecutionStep, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) @@ -66,7 +70,12 @@ func (params *ListExecutionStepParams) SetLimit(Limit int) *ListExecutionStepPar } // Retrieve a single page of ExecutionStep records from the API. Request is executed immediately. -func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams, pageToken, pageNumber string) (*ListExecutionStepResponse, error) { +func (c *ApiService) PageExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, + pageToken, pageNumber string, +) (*ListExecutionStepResponse, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, para } // Lists ExecutionStep records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) ([]StudioV2ExecutionStep, error) { +func (c *ApiService) ListExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, +) ([]StudioV2ExecutionStep, error) { response, errors := c.StreamExecutionStep(FlowSid, ExecutionSid, params) records := make([]StudioV2ExecutionStep, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, para } // Streams ExecutionStep records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (chan StudioV2ExecutionStep, chan error) { +func (c *ApiService) StreamExecutionStep( + FlowSid string, + ExecutionSid string, + params *ListExecutionStepParams, +) (chan StudioV2ExecutionStep, chan error) { if params == nil { params = &ListExecutionStepParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, pa return recordChannel, errorChannel } -func (c *ApiService) streamExecutionStep(response *ListExecutionStepResponse, params *ListExecutionStepParams, recordChannel chan StudioV2ExecutionStep, errorChannel chan error) { +func (c *ApiService) streamExecutionStep( + response *ListExecutionStepResponse, + params *ListExecutionStepParams, + recordChannel chan StudioV2ExecutionStep, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/studio/v2/flows_revisions.go b/rest/studio/v2/flows_revisions.go index 5d04f5e41..40e82eb7b 100644 --- a/rest/studio/v2/flows_revisions.go +++ b/rest/studio/v2/flows_revisions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve a specific Flow revision. @@ -65,7 +65,11 @@ func (params *ListFlowRevisionParams) SetLimit(Limit int) *ListFlowRevisionParam } // Retrieve a single page of FlowRevision records from the API. Request is executed immediately. -func (c *ApiService) PageFlowRevision(Sid string, params *ListFlowRevisionParams, pageToken, pageNumber string) (*ListFlowRevisionResponse, error) { +func (c *ApiService) PageFlowRevision( + Sid string, + params *ListFlowRevisionParams, + pageToken, pageNumber string, +) (*ListFlowRevisionResponse, error) { path := "/v2/Flows/{Sid}/Revisions" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -116,7 +120,10 @@ func (c *ApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams } // Streams FlowRevision records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamFlowRevision(Sid string, params *ListFlowRevisionParams) (chan StudioV2FlowRevision, chan error) { +func (c *ApiService) StreamFlowRevision( + Sid string, + params *ListFlowRevisionParams, +) (chan StudioV2FlowRevision, chan error) { if params == nil { params = &ListFlowRevisionParams{} } @@ -137,7 +144,12 @@ func (c *ApiService) StreamFlowRevision(Sid string, params *ListFlowRevisionPara return recordChannel, errorChannel } -func (c *ApiService) streamFlowRevision(response *ListFlowRevisionResponse, params *ListFlowRevisionParams, recordChannel chan StudioV2FlowRevision, errorChannel chan error) { +func (c *ApiService) streamFlowRevision( + response *ListFlowRevisionResponse, + params *ListFlowRevisionParams, + recordChannel chan StudioV2FlowRevision, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/api_service.go b/rest/supersim/v1/api_service.go index 1f79d973d..54a1ef9e4 100644 --- a/rest/supersim/v1/api_service.go +++ b/rest/supersim/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/supersim/v1/e_sim_profiles.go b/rest/supersim/v1/e_sim_profiles.go index 992ecf9d4..21afd02b5 100644 --- a/rest/supersim/v1/e_sim_profiles.go +++ b/rest/supersim/v1/e_sim_profiles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEsimProfile' @@ -146,7 +146,10 @@ func (params *ListEsimProfileParams) SetLimit(Limit int) *ListEsimProfileParams } // Retrieve a single page of EsimProfile records from the API. Request is executed immediately. -func (c *ApiService) PageEsimProfile(params *ListEsimProfileParams, pageToken, pageNumber string) (*ListEsimProfileResponse, error) { +func (c *ApiService) PageEsimProfile( + params *ListEsimProfileParams, + pageToken, pageNumber string, +) (*ListEsimProfileResponse, error) { path := "/v1/ESimProfiles" data := url.Values{} @@ -225,7 +228,12 @@ func (c *ApiService) StreamEsimProfile(params *ListEsimProfileParams) (chan Supe return recordChannel, errorChannel } -func (c *ApiService) streamEsimProfile(response *ListEsimProfileResponse, params *ListEsimProfileParams, recordChannel chan SupersimV1EsimProfile, errorChannel chan error) { +func (c *ApiService) streamEsimProfile( + response *ListEsimProfileResponse, + params *ListEsimProfileParams, + recordChannel chan SupersimV1EsimProfile, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/fleets.go b/rest/supersim/v1/fleets.go index 848aeb7a5..310280118 100644 --- a/rest/supersim/v1/fleets.go +++ b/rest/supersim/v1/fleets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateFleet' @@ -252,7 +252,12 @@ func (c *ApiService) StreamFleet(params *ListFleetParams) (chan SupersimV1Fleet, return recordChannel, errorChannel } -func (c *ApiService) streamFleet(response *ListFleetResponse, params *ListFleetParams, recordChannel chan SupersimV1Fleet, errorChannel chan error) { +func (c *ApiService) streamFleet( + response *ListFleetResponse, + params *ListFleetParams, + recordChannel chan SupersimV1Fleet, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/ip_commands.go b/rest/supersim/v1/ip_commands.go index d553bd305..279042442 100644 --- a/rest/supersim/v1/ip_commands.go +++ b/rest/supersim/v1/ip_commands.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIpCommand' @@ -170,7 +170,10 @@ func (params *ListIpCommandParams) SetLimit(Limit int) *ListIpCommandParams { } // Retrieve a single page of IpCommand records from the API. Request is executed immediately. -func (c *ApiService) PageIpCommand(params *ListIpCommandParams, pageToken, pageNumber string) (*ListIpCommandResponse, error) { +func (c *ApiService) PageIpCommand( + params *ListIpCommandParams, + pageToken, pageNumber string, +) (*ListIpCommandResponse, error) { path := "/v1/IpCommands" data := url.Values{} @@ -252,7 +255,12 @@ func (c *ApiService) StreamIpCommand(params *ListIpCommandParams) (chan Supersim return recordChannel, errorChannel } -func (c *ApiService) streamIpCommand(response *ListIpCommandResponse, params *ListIpCommandParams, recordChannel chan SupersimV1IpCommand, errorChannel chan error) { +func (c *ApiService) streamIpCommand( + response *ListIpCommandResponse, + params *ListIpCommandParams, + recordChannel chan SupersimV1IpCommand, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/model_supersim_v1_usage_record.go b/rest/supersim/v1/model_supersim_v1_usage_record.go index 4ec9a10ac..757c49426 100644 --- a/rest/supersim/v1/model_supersim_v1_usage_record.go +++ b/rest/supersim/v1/model_supersim_v1_usage_record.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // SupersimV1UsageRecord struct for SupersimV1UsageRecord diff --git a/rest/supersim/v1/network_access_profiles.go b/rest/supersim/v1/network_access_profiles.go index c82957dce..ba6d62066 100644 --- a/rest/supersim/v1/network_access_profiles.go +++ b/rest/supersim/v1/network_access_profiles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateNetworkAccessProfile' @@ -112,7 +112,10 @@ func (params *ListNetworkAccessProfileParams) SetLimit(Limit int) *ListNetworkAc } // Retrieve a single page of NetworkAccessProfile records from the API. Request is executed immediately. -func (c *ApiService) PageNetworkAccessProfile(params *ListNetworkAccessProfileParams, pageToken, pageNumber string) (*ListNetworkAccessProfileResponse, error) { +func (c *ApiService) PageNetworkAccessProfile( + params *ListNetworkAccessProfileParams, + pageToken, pageNumber string, +) (*ListNetworkAccessProfileResponse, error) { path := "/v1/NetworkAccessProfiles" data := url.Values{} @@ -182,7 +185,12 @@ func (c *ApiService) StreamNetworkAccessProfile(params *ListNetworkAccessProfile return recordChannel, errorChannel } -func (c *ApiService) streamNetworkAccessProfile(response *ListNetworkAccessProfileResponse, params *ListNetworkAccessProfileParams, recordChannel chan SupersimV1NetworkAccessProfile, errorChannel chan error) { +func (c *ApiService) streamNetworkAccessProfile( + response *ListNetworkAccessProfileResponse, + params *ListNetworkAccessProfileParams, + recordChannel chan SupersimV1NetworkAccessProfile, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -242,7 +250,10 @@ func (params *UpdateNetworkAccessProfileParams) SetUniqueName(UniqueName string) } // Updates the given properties of a Network Access Profile in your account. -func (c *ApiService) UpdateNetworkAccessProfile(Sid string, params *UpdateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { +func (c *ApiService) UpdateNetworkAccessProfile( + Sid string, + params *UpdateNetworkAccessProfileParams, +) (*SupersimV1NetworkAccessProfile, error) { path := "/v1/NetworkAccessProfiles/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/supersim/v1/network_access_profiles_networks.go b/rest/supersim/v1/network_access_profiles_networks.go index b711accbb..3ce7409d5 100644 --- a/rest/supersim/v1/network_access_profiles_networks.go +++ b/rest/supersim/v1/network_access_profiles_networks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateNetworkAccessProfileNetwork' @@ -35,7 +35,10 @@ func (params *CreateNetworkAccessProfileNetworkParams) SetNetwork(Network string } // Add a Network resource to the Network Access Profile resource. -func (c *ApiService) CreateNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *CreateNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetwork, error) { +func (c *ApiService) CreateNetworkAccessProfileNetwork( + NetworkAccessProfileSid string, + params *CreateNetworkAccessProfileNetworkParams, +) (*SupersimV1NetworkAccessProfileNetwork, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) @@ -81,7 +84,10 @@ func (c *ApiService) DeleteNetworkAccessProfileNetwork(NetworkAccessProfileSid s } // Fetch a Network Access Profile resource's Network resource. -func (c *ApiService) FetchNetworkAccessProfileNetwork(NetworkAccessProfileSid string, Sid string) (*SupersimV1NetworkAccessProfileNetwork, error) { +func (c *ApiService) FetchNetworkAccessProfileNetwork( + NetworkAccessProfileSid string, + Sid string, +) (*SupersimV1NetworkAccessProfileNetwork, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -122,7 +128,11 @@ func (params *ListNetworkAccessProfileNetworkParams) SetLimit(Limit int) *ListNe } // Retrieve a single page of NetworkAccessProfileNetwork records from the API. Request is executed immediately. -func (c *ApiService) PageNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams, pageToken, pageNumber string) (*ListNetworkAccessProfileNetworkResponse, error) { +func (c *ApiService) PageNetworkAccessProfileNetwork( + NetworkAccessProfileSid string, + params *ListNetworkAccessProfileNetworkParams, + pageToken, pageNumber string, +) (*ListNetworkAccessProfileNetworkResponse, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) @@ -157,7 +167,10 @@ func (c *ApiService) PageNetworkAccessProfileNetwork(NetworkAccessProfileSid str } // Lists NetworkAccessProfileNetwork records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) ([]SupersimV1NetworkAccessProfileNetwork, error) { +func (c *ApiService) ListNetworkAccessProfileNetwork( + NetworkAccessProfileSid string, + params *ListNetworkAccessProfileNetworkParams, +) ([]SupersimV1NetworkAccessProfileNetwork, error) { response, errors := c.StreamNetworkAccessProfileNetwork(NetworkAccessProfileSid, params) records := make([]SupersimV1NetworkAccessProfileNetwork, 0) @@ -173,7 +186,10 @@ func (c *ApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfileSid str } // Streams NetworkAccessProfileNetwork records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (chan SupersimV1NetworkAccessProfileNetwork, chan error) { +func (c *ApiService) StreamNetworkAccessProfileNetwork( + NetworkAccessProfileSid string, + params *ListNetworkAccessProfileNetworkParams, +) (chan SupersimV1NetworkAccessProfileNetwork, chan error) { if params == nil { params = &ListNetworkAccessProfileNetworkParams{} } @@ -194,7 +210,12 @@ func (c *ApiService) StreamNetworkAccessProfileNetwork(NetworkAccessProfileSid s return recordChannel, errorChannel } -func (c *ApiService) streamNetworkAccessProfileNetwork(response *ListNetworkAccessProfileNetworkResponse, params *ListNetworkAccessProfileNetworkParams, recordChannel chan SupersimV1NetworkAccessProfileNetwork, errorChannel chan error) { +func (c *ApiService) streamNetworkAccessProfileNetwork( + response *ListNetworkAccessProfileNetworkResponse, + params *ListNetworkAccessProfileNetworkParams, + recordChannel chan SupersimV1NetworkAccessProfileNetwork, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/networks.go b/rest/supersim/v1/networks.go index d49f3300b..721db992d 100644 --- a/rest/supersim/v1/networks.go +++ b/rest/supersim/v1/networks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a Network resource. @@ -82,7 +82,10 @@ func (params *ListNetworkParams) SetLimit(Limit int) *ListNetworkParams { } // Retrieve a single page of Network records from the API. Request is executed immediately. -func (c *ApiService) PageNetwork(params *ListNetworkParams, pageToken, pageNumber string) (*ListNetworkResponse, error) { +func (c *ApiService) PageNetwork( + params *ListNetworkParams, + pageToken, pageNumber string, +) (*ListNetworkResponse, error) { path := "/v1/Networks" data := url.Values{} @@ -161,7 +164,12 @@ func (c *ApiService) StreamNetwork(params *ListNetworkParams) (chan SupersimV1Ne return recordChannel, errorChannel } -func (c *ApiService) streamNetwork(response *ListNetworkResponse, params *ListNetworkParams, recordChannel chan SupersimV1Network, errorChannel chan error) { +func (c *ApiService) streamNetwork( + response *ListNetworkResponse, + params *ListNetworkParams, + recordChannel chan SupersimV1Network, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/settings_updates.go b/rest/supersim/v1/settings_updates.go index 69134286a..d191f13ae 100644 --- a/rest/supersim/v1/settings_updates.go +++ b/rest/supersim/v1/settings_updates.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListSettingsUpdate' @@ -52,7 +52,10 @@ func (params *ListSettingsUpdateParams) SetLimit(Limit int) *ListSettingsUpdateP } // Retrieve a single page of SettingsUpdate records from the API. Request is executed immediately. -func (c *ApiService) PageSettingsUpdate(params *ListSettingsUpdateParams, pageToken, pageNumber string) (*ListSettingsUpdateResponse, error) { +func (c *ApiService) PageSettingsUpdate( + params *ListSettingsUpdateParams, + pageToken, pageNumber string, +) (*ListSettingsUpdateResponse, error) { path := "/v1/SettingsUpdates" data := url.Values{} @@ -128,7 +131,12 @@ func (c *ApiService) StreamSettingsUpdate(params *ListSettingsUpdateParams) (cha return recordChannel, errorChannel } -func (c *ApiService) streamSettingsUpdate(response *ListSettingsUpdateResponse, params *ListSettingsUpdateParams, recordChannel chan SupersimV1SettingsUpdate, errorChannel chan error) { +func (c *ApiService) streamSettingsUpdate( + response *ListSettingsUpdateResponse, + params *ListSettingsUpdateParams, + recordChannel chan SupersimV1SettingsUpdate, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/sims.go b/rest/supersim/v1/sims.go index c988a08e0..8ac84a875 100644 --- a/rest/supersim/v1/sims.go +++ b/rest/supersim/v1/sims.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSim' @@ -207,7 +207,12 @@ func (c *ApiService) StreamSim(params *ListSimParams) (chan SupersimV1Sim, chan return recordChannel, errorChannel } -func (c *ApiService) streamSim(response *ListSimResponse, params *ListSimParams, recordChannel chan SupersimV1Sim, errorChannel chan error) { +func (c *ApiService) streamSim( + response *ListSimResponse, + params *ListSimParams, + recordChannel chan SupersimV1Sim, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/sims_billing_periods.go b/rest/supersim/v1/sims_billing_periods.go index c6b866fed..db07350a6 100644 --- a/rest/supersim/v1/sims_billing_periods.go +++ b/rest/supersim/v1/sims_billing_periods.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListBillingPeriod' @@ -41,7 +41,11 @@ func (params *ListBillingPeriodParams) SetLimit(Limit int) *ListBillingPeriodPar } // Retrieve a single page of BillingPeriod records from the API. Request is executed immediately. -func (c *ApiService) PageBillingPeriod(SimSid string, params *ListBillingPeriodParams, pageToken, pageNumber string) (*ListBillingPeriodResponse, error) { +func (c *ApiService) PageBillingPeriod( + SimSid string, + params *ListBillingPeriodParams, + pageToken, pageNumber string, +) (*ListBillingPeriodResponse, error) { path := "/v1/Sims/{SimSid}/BillingPeriods" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -76,7 +80,10 @@ func (c *ApiService) PageBillingPeriod(SimSid string, params *ListBillingPeriodP } // Lists BillingPeriod records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListBillingPeriod(SimSid string, params *ListBillingPeriodParams) ([]SupersimV1BillingPeriod, error) { +func (c *ApiService) ListBillingPeriod( + SimSid string, + params *ListBillingPeriodParams, +) ([]SupersimV1BillingPeriod, error) { response, errors := c.StreamBillingPeriod(SimSid, params) records := make([]SupersimV1BillingPeriod, 0) @@ -92,7 +99,10 @@ func (c *ApiService) ListBillingPeriod(SimSid string, params *ListBillingPeriodP } // Streams BillingPeriod records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamBillingPeriod(SimSid string, params *ListBillingPeriodParams) (chan SupersimV1BillingPeriod, chan error) { +func (c *ApiService) StreamBillingPeriod( + SimSid string, + params *ListBillingPeriodParams, +) (chan SupersimV1BillingPeriod, chan error) { if params == nil { params = &ListBillingPeriodParams{} } @@ -113,7 +123,12 @@ func (c *ApiService) StreamBillingPeriod(SimSid string, params *ListBillingPerio return recordChannel, errorChannel } -func (c *ApiService) streamBillingPeriod(response *ListBillingPeriodResponse, params *ListBillingPeriodParams, recordChannel chan SupersimV1BillingPeriod, errorChannel chan error) { +func (c *ApiService) streamBillingPeriod( + response *ListBillingPeriodResponse, + params *ListBillingPeriodParams, + recordChannel chan SupersimV1BillingPeriod, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/sims_ip_addresses.go b/rest/supersim/v1/sims_ip_addresses.go index f1e73eab5..a292583ba 100644 --- a/rest/supersim/v1/sims_ip_addresses.go +++ b/rest/supersim/v1/sims_ip_addresses.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListSimIpAddress' @@ -41,7 +41,11 @@ func (params *ListSimIpAddressParams) SetLimit(Limit int) *ListSimIpAddressParam } // Retrieve a single page of SimIpAddress records from the API. Request is executed immediately. -func (c *ApiService) PageSimIpAddress(SimSid string, params *ListSimIpAddressParams, pageToken, pageNumber string) (*ListSimIpAddressResponse, error) { +func (c *ApiService) PageSimIpAddress( + SimSid string, + params *ListSimIpAddressParams, + pageToken, pageNumber string, +) (*ListSimIpAddressResponse, error) { path := "/v1/Sims/{SimSid}/IpAddresses" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -92,7 +96,10 @@ func (c *ApiService) ListSimIpAddress(SimSid string, params *ListSimIpAddressPar } // Streams SimIpAddress records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSimIpAddress(SimSid string, params *ListSimIpAddressParams) (chan SupersimV1SimIpAddress, chan error) { +func (c *ApiService) StreamSimIpAddress( + SimSid string, + params *ListSimIpAddressParams, +) (chan SupersimV1SimIpAddress, chan error) { if params == nil { params = &ListSimIpAddressParams{} } @@ -113,7 +120,12 @@ func (c *ApiService) StreamSimIpAddress(SimSid string, params *ListSimIpAddressP return recordChannel, errorChannel } -func (c *ApiService) streamSimIpAddress(response *ListSimIpAddressResponse, params *ListSimIpAddressParams, recordChannel chan SupersimV1SimIpAddress, errorChannel chan error) { +func (c *ApiService) streamSimIpAddress( + response *ListSimIpAddressResponse, + params *ListSimIpAddressParams, + recordChannel chan SupersimV1SimIpAddress, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/sms_commands.go b/rest/supersim/v1/sms_commands.go index 5e36deb00..9f239bf0e 100644 --- a/rest/supersim/v1/sms_commands.go +++ b/rest/supersim/v1/sms_commands.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSmsCommand' @@ -146,7 +146,10 @@ func (params *ListSmsCommandParams) SetLimit(Limit int) *ListSmsCommandParams { } // Retrieve a single page of SmsCommand records from the API. Request is executed immediately. -func (c *ApiService) PageSmsCommand(params *ListSmsCommandParams, pageToken, pageNumber string) (*ListSmsCommandResponse, error) { +func (c *ApiService) PageSmsCommand( + params *ListSmsCommandParams, + pageToken, pageNumber string, +) (*ListSmsCommandResponse, error) { path := "/v1/SmsCommands" data := url.Values{} @@ -225,7 +228,12 @@ func (c *ApiService) StreamSmsCommand(params *ListSmsCommandParams) (chan Supers return recordChannel, errorChannel } -func (c *ApiService) streamSmsCommand(response *ListSmsCommandResponse, params *ListSmsCommandParams, recordChannel chan SupersimV1SmsCommand, errorChannel chan error) { +func (c *ApiService) streamSmsCommand( + response *ListSmsCommandResponse, + params *ListSmsCommandParams, + recordChannel chan SupersimV1SmsCommand, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/supersim/v1/usage_records.go b/rest/supersim/v1/usage_records.go index 1b31e5bae..0611cb215 100644 --- a/rest/supersim/v1/usage_records.go +++ b/rest/supersim/v1/usage_records.go @@ -20,7 +20,7 @@ import ( "net/url" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecord' @@ -89,7 +89,10 @@ func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams } // Retrieve a single page of UsageRecord records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecordResponse, error) { +func (c *ApiService) PageUsageRecord( + params *ListUsageRecordParams, + pageToken, pageNumber string, +) (*ListUsageRecordResponse, error) { path := "/v1/UsageRecords" data := url.Values{} @@ -183,7 +186,12 @@ func (c *ApiService) StreamUsageRecord(params *ListUsageRecordParams) (chan Supe return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan SupersimV1UsageRecord, errorChannel chan error) { +func (c *ApiService) streamUsageRecord( + response *ListUsageRecordResponse, + params *ListUsageRecordParams, + recordChannel chan SupersimV1UsageRecord, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/sync/v1/api_service.go b/rest/sync/v1/api_service.go index 44fb59f7a..d42140620 100644 --- a/rest/sync/v1/api_service.go +++ b/rest/sync/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/sync/v1/services.go b/rest/sync/v1/services.go index 848858339..9e1d5d8cf 100644 --- a/rest/sync/v1/services.go +++ b/rest/sync/v1/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -173,7 +173,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v1/Services" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan SyncV1Servic return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan SyncV1Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan SyncV1Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/sync/v1/services_documents.go b/rest/sync/v1/services_documents.go index 6aae3ba8b..18e07c53f 100644 --- a/rest/sync/v1/services_documents.go +++ b/rest/sync/v1/services_documents.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateDocument' @@ -146,7 +146,11 @@ func (params *ListDocumentParams) SetLimit(Limit int) *ListDocumentParams { } // Retrieve a single page of Document records from the API. Request is executed immediately. -func (c *ApiService) PageDocument(ServiceSid string, params *ListDocumentParams, pageToken, pageNumber string) (*ListDocumentResponse, error) { +func (c *ApiService) PageDocument( + ServiceSid string, + params *ListDocumentParams, + pageToken, pageNumber string, +) (*ListDocumentResponse, error) { path := "/v1/Services/{ServiceSid}/Documents" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -218,7 +222,12 @@ func (c *ApiService) StreamDocument(ServiceSid string, params *ListDocumentParam return recordChannel, errorChannel } -func (c *ApiService) streamDocument(response *ListDocumentResponse, params *ListDocumentParams, recordChannel chan SyncV1Document, errorChannel chan error) { +func (c *ApiService) streamDocument( + response *ListDocumentResponse, + params *ListDocumentParams, + recordChannel chan SyncV1Document, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -290,7 +299,11 @@ func (params *UpdateDocumentParams) SetTtl(Ttl int) *UpdateDocumentParams { } // -func (c *ApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*SyncV1Document, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/sync/v1/services_documents_permissions.go b/rest/sync/v1/services_documents_permissions.go index d4517d884..301e49584 100644 --- a/rest/sync/v1/services_documents_permissions.go +++ b/rest/sync/v1/services_documents_permissions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific Sync Document Permission. @@ -44,7 +44,11 @@ func (c *ApiService) DeleteDocumentPermission(ServiceSid string, DocumentSid str } // Fetch a specific Sync Document Permission. -func (c *ApiService) FetchDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (*SyncV1DocumentPermission, error) { +func (c *ApiService) FetchDocumentPermission( + ServiceSid string, + DocumentSid string, + Identity string, +) (*SyncV1DocumentPermission, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) @@ -86,7 +90,12 @@ func (params *ListDocumentPermissionParams) SetLimit(Limit int) *ListDocumentPer } // Retrieve a single page of DocumentPermission records from the API. Request is executed immediately. -func (c *ApiService) PageDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams, pageToken, pageNumber string) (*ListDocumentPermissionResponse, error) { +func (c *ApiService) PageDocumentPermission( + ServiceSid string, + DocumentSid string, + params *ListDocumentPermissionParams, + pageToken, pageNumber string, +) (*ListDocumentPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +131,11 @@ func (c *ApiService) PageDocumentPermission(ServiceSid string, DocumentSid strin } // Lists DocumentPermission records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) ([]SyncV1DocumentPermission, error) { +func (c *ApiService) ListDocumentPermission( + ServiceSid string, + DocumentSid string, + params *ListDocumentPermissionParams, +) ([]SyncV1DocumentPermission, error) { response, errors := c.StreamDocumentPermission(ServiceSid, DocumentSid, params) records := make([]SyncV1DocumentPermission, 0) @@ -138,7 +151,11 @@ func (c *ApiService) ListDocumentPermission(ServiceSid string, DocumentSid strin } // Streams DocumentPermission records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (chan SyncV1DocumentPermission, chan error) { +func (c *ApiService) StreamDocumentPermission( + ServiceSid string, + DocumentSid string, + params *ListDocumentPermissionParams, +) (chan SyncV1DocumentPermission, chan error) { if params == nil { params = &ListDocumentPermissionParams{} } @@ -159,7 +176,12 @@ func (c *ApiService) StreamDocumentPermission(ServiceSid string, DocumentSid str return recordChannel, errorChannel } -func (c *ApiService) streamDocumentPermission(response *ListDocumentPermissionResponse, params *ListDocumentPermissionParams, recordChannel chan SyncV1DocumentPermission, errorChannel chan error) { +func (c *ApiService) streamDocumentPermission( + response *ListDocumentPermissionResponse, + params *ListDocumentPermissionParams, + recordChannel chan SyncV1DocumentPermission, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -231,7 +253,12 @@ func (params *UpdateDocumentPermissionParams) SetManage(Manage bool) *UpdateDocu } // Update an identity's access to a specific Sync Document. -func (c *ApiService) UpdateDocumentPermission(ServiceSid string, DocumentSid string, Identity string, params *UpdateDocumentPermissionParams) (*SyncV1DocumentPermission, error) { +func (c *ApiService) UpdateDocumentPermission( + ServiceSid string, + DocumentSid string, + Identity string, + params *UpdateDocumentPermissionParams, +) (*SyncV1DocumentPermission, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) diff --git a/rest/sync/v1/services_lists.go b/rest/sync/v1/services_lists.go index 358ea56bf..eeeac5987 100644 --- a/rest/sync/v1/services_lists.go +++ b/rest/sync/v1/services_lists.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSyncList' @@ -140,7 +140,11 @@ func (params *ListSyncListParams) SetLimit(Limit int) *ListSyncListParams { } // Retrieve a single page of SyncList records from the API. Request is executed immediately. -func (c *ApiService) PageSyncList(ServiceSid string, params *ListSyncListParams, pageToken, pageNumber string) (*ListSyncListResponse, error) { +func (c *ApiService) PageSyncList( + ServiceSid string, + params *ListSyncListParams, + pageToken, pageNumber string, +) (*ListSyncListResponse, error) { path := "/v1/Services/{ServiceSid}/Lists" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -212,7 +216,12 @@ func (c *ApiService) StreamSyncList(ServiceSid string, params *ListSyncListParam return recordChannel, errorChannel } -func (c *ApiService) streamSyncList(response *ListSyncListResponse, params *ListSyncListParams, recordChannel chan SyncV1SyncList, errorChannel chan error) { +func (c *ApiService) streamSyncList( + response *ListSyncListResponse, + params *ListSyncListParams, + recordChannel chan SyncV1SyncList, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -278,7 +287,11 @@ func (params *UpdateSyncListParams) SetCollectionTtl(CollectionTtl int) *UpdateS } // -func (c *ApiService) UpdateSyncList(ServiceSid string, Sid string, params *UpdateSyncListParams) (*SyncV1SyncList, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/sync/v1/services_lists_items.go b/rest/sync/v1/services_lists_items.go index 572df5abc..f3d7df631 100644 --- a/rest/sync/v1/services_lists_items.go +++ b/rest/sync/v1/services_lists_items.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSyncListItem' @@ -53,7 +53,11 @@ func (params *CreateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Cre } // -func (c *ApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*SyncV1SyncListItem, error) { +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) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -107,7 +111,12 @@ func (params *DeleteSyncListItemParams) SetIfMatch(IfMatch string) *DeleteSyncLi } // -func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int, params *DeleteSyncListItemParams) error { +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) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -190,7 +199,12 @@ func (params *ListSyncListItemParams) SetLimit(Limit int) *ListSyncListItemParam } // Retrieve a single page of SyncListItem records from the API. Request is executed immediately. -func (c *ApiService) PageSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams, pageToken, pageNumber string) (*ListSyncListItemResponse, error) { +func (c *ApiService) PageSyncListItem( + ServiceSid string, + ListSid string, + params *ListSyncListItemParams, + pageToken, pageNumber string, +) (*ListSyncListItemResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -235,7 +249,11 @@ func (c *ApiService) PageSyncListItem(ServiceSid string, ListSid string, params } // Lists SyncListItem records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) ([]SyncV1SyncListItem, error) { +func (c *ApiService) ListSyncListItem( + ServiceSid string, + ListSid string, + params *ListSyncListItemParams, +) ([]SyncV1SyncListItem, error) { response, errors := c.StreamSyncListItem(ServiceSid, ListSid, params) records := make([]SyncV1SyncListItem, 0) @@ -251,7 +269,11 @@ func (c *ApiService) ListSyncListItem(ServiceSid string, ListSid string, params } // Streams SyncListItem records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (chan SyncV1SyncListItem, chan error) { +func (c *ApiService) StreamSyncListItem( + ServiceSid string, + ListSid string, + params *ListSyncListItemParams, +) (chan SyncV1SyncListItem, chan error) { if params == nil { params = &ListSyncListItemParams{} } @@ -272,7 +294,12 @@ func (c *ApiService) StreamSyncListItem(ServiceSid string, ListSid string, param return recordChannel, errorChannel } -func (c *ApiService) streamSyncListItem(response *ListSyncListItemResponse, params *ListSyncListItemParams, recordChannel chan SyncV1SyncListItem, errorChannel chan error) { +func (c *ApiService) streamSyncListItem( + response *ListSyncListItemResponse, + params *ListSyncListItemParams, + recordChannel chan SyncV1SyncListItem, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -356,7 +383,12 @@ func (params *UpdateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Upd } // -func (c *ApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int, params *UpdateSyncListItemParams) (*SyncV1SyncListItem, error) { +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) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) diff --git a/rest/sync/v1/services_lists_permissions.go b/rest/sync/v1/services_lists_permissions.go index d0a3bae2d..310199f8b 100644 --- a/rest/sync/v1/services_lists_permissions.go +++ b/rest/sync/v1/services_lists_permissions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific Sync List Permission. @@ -44,7 +44,11 @@ func (c *ApiService) DeleteSyncListPermission(ServiceSid string, ListSid string, } // Fetch a specific Sync List Permission. -func (c *ApiService) FetchSyncListPermission(ServiceSid string, ListSid string, Identity string) (*SyncV1SyncListPermission, error) { +func (c *ApiService) FetchSyncListPermission( + ServiceSid string, + ListSid string, + Identity string, +) (*SyncV1SyncListPermission, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -86,7 +90,12 @@ func (params *ListSyncListPermissionParams) SetLimit(Limit int) *ListSyncListPer } // Retrieve a single page of SyncListPermission records from the API. Request is executed immediately. -func (c *ApiService) PageSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams, pageToken, pageNumber string) (*ListSyncListPermissionResponse, error) { +func (c *ApiService) PageSyncListPermission( + ServiceSid string, + ListSid string, + params *ListSyncListPermissionParams, + pageToken, pageNumber string, +) (*ListSyncListPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +131,11 @@ func (c *ApiService) PageSyncListPermission(ServiceSid string, ListSid string, p } // Lists SyncListPermission records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) ([]SyncV1SyncListPermission, error) { +func (c *ApiService) ListSyncListPermission( + ServiceSid string, + ListSid string, + params *ListSyncListPermissionParams, +) ([]SyncV1SyncListPermission, error) { response, errors := c.StreamSyncListPermission(ServiceSid, ListSid, params) records := make([]SyncV1SyncListPermission, 0) @@ -138,7 +151,11 @@ func (c *ApiService) ListSyncListPermission(ServiceSid string, ListSid string, p } // Streams SyncListPermission records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (chan SyncV1SyncListPermission, chan error) { +func (c *ApiService) StreamSyncListPermission( + ServiceSid string, + ListSid string, + params *ListSyncListPermissionParams, +) (chan SyncV1SyncListPermission, chan error) { if params == nil { params = &ListSyncListPermissionParams{} } @@ -159,7 +176,12 @@ func (c *ApiService) StreamSyncListPermission(ServiceSid string, ListSid string, return recordChannel, errorChannel } -func (c *ApiService) streamSyncListPermission(response *ListSyncListPermissionResponse, params *ListSyncListPermissionParams, recordChannel chan SyncV1SyncListPermission, errorChannel chan error) { +func (c *ApiService) streamSyncListPermission( + response *ListSyncListPermissionResponse, + params *ListSyncListPermissionParams, + recordChannel chan SyncV1SyncListPermission, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -231,7 +253,12 @@ func (params *UpdateSyncListPermissionParams) SetManage(Manage bool) *UpdateSync } // Update an identity's access to a specific Sync List. -func (c *ApiService) UpdateSyncListPermission(ServiceSid string, ListSid string, Identity string, params *UpdateSyncListPermissionParams) (*SyncV1SyncListPermission, error) { +func (c *ApiService) UpdateSyncListPermission( + ServiceSid string, + ListSid string, + Identity string, + params *UpdateSyncListPermissionParams, +) (*SyncV1SyncListPermission, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) diff --git a/rest/sync/v1/services_maps.go b/rest/sync/v1/services_maps.go index 731ada14d..fcc94c5cd 100644 --- a/rest/sync/v1/services_maps.go +++ b/rest/sync/v1/services_maps.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSyncMap' @@ -140,7 +140,11 @@ func (params *ListSyncMapParams) SetLimit(Limit int) *ListSyncMapParams { } // Retrieve a single page of SyncMap records from the API. Request is executed immediately. -func (c *ApiService) PageSyncMap(ServiceSid string, params *ListSyncMapParams, pageToken, pageNumber string) (*ListSyncMapResponse, error) { +func (c *ApiService) PageSyncMap( + ServiceSid string, + params *ListSyncMapParams, + pageToken, pageNumber string, +) (*ListSyncMapResponse, error) { path := "/v1/Services/{ServiceSid}/Maps" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -212,7 +216,12 @@ func (c *ApiService) StreamSyncMap(ServiceSid string, params *ListSyncMapParams) return recordChannel, errorChannel } -func (c *ApiService) streamSyncMap(response *ListSyncMapResponse, params *ListSyncMapParams, recordChannel chan SyncV1SyncMap, errorChannel chan error) { +func (c *ApiService) streamSyncMap( + response *ListSyncMapResponse, + params *ListSyncMapParams, + recordChannel chan SyncV1SyncMap, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/sync/v1/services_maps_items.go b/rest/sync/v1/services_maps_items.go index 961e98735..70aa5b158 100644 --- a/rest/sync/v1/services_maps_items.go +++ b/rest/sync/v1/services_maps_items.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSyncMapItem' @@ -59,7 +59,11 @@ func (params *CreateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Crea } // -func (c *ApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*SyncV1SyncMapItem, error) { +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) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -116,7 +120,12 @@ func (params *DeleteSyncMapItemParams) SetIfMatch(IfMatch string) *DeleteSyncMap } // -func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) error { +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) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -199,7 +208,12 @@ func (params *ListSyncMapItemParams) SetLimit(Limit int) *ListSyncMapItemParams } // Retrieve a single page of SyncMapItem records from the API. Request is executed immediately. -func (c *ApiService) PageSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams, pageToken, pageNumber string) (*ListSyncMapItemResponse, error) { +func (c *ApiService) PageSyncMapItem( + ServiceSid string, + MapSid string, + params *ListSyncMapItemParams, + pageToken, pageNumber string, +) (*ListSyncMapItemResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -244,7 +258,11 @@ func (c *ApiService) PageSyncMapItem(ServiceSid string, MapSid string, params *L } // Lists SyncMapItem records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) ([]SyncV1SyncMapItem, error) { +func (c *ApiService) ListSyncMapItem( + ServiceSid string, + MapSid string, + params *ListSyncMapItemParams, +) ([]SyncV1SyncMapItem, error) { response, errors := c.StreamSyncMapItem(ServiceSid, MapSid, params) records := make([]SyncV1SyncMapItem, 0) @@ -260,7 +278,11 @@ func (c *ApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *L } // Streams SyncMapItem records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (chan SyncV1SyncMapItem, chan error) { +func (c *ApiService) StreamSyncMapItem( + ServiceSid string, + MapSid string, + params *ListSyncMapItemParams, +) (chan SyncV1SyncMapItem, chan error) { if params == nil { params = &ListSyncMapItemParams{} } @@ -281,7 +303,12 @@ func (c *ApiService) StreamSyncMapItem(ServiceSid string, MapSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamSyncMapItem(response *ListSyncMapItemResponse, params *ListSyncMapItemParams, recordChannel chan SyncV1SyncMapItem, errorChannel chan error) { +func (c *ApiService) streamSyncMapItem( + response *ListSyncMapItemResponse, + params *ListSyncMapItemParams, + recordChannel chan SyncV1SyncMapItem, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -365,7 +392,12 @@ func (params *UpdateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Upda } // -func (c *ApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*SyncV1SyncMapItem, error) { +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) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) diff --git a/rest/sync/v1/services_maps_permissions.go b/rest/sync/v1/services_maps_permissions.go index 70b4dd777..f025463ea 100644 --- a/rest/sync/v1/services_maps_permissions.go +++ b/rest/sync/v1/services_maps_permissions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a specific Sync Map Permission. @@ -44,7 +44,11 @@ func (c *ApiService) DeleteSyncMapPermission(ServiceSid string, MapSid string, I } // Fetch a specific Sync Map Permission. -func (c *ApiService) FetchSyncMapPermission(ServiceSid string, MapSid string, Identity string) (*SyncV1SyncMapPermission, error) { +func (c *ApiService) FetchSyncMapPermission( + ServiceSid string, + MapSid string, + Identity string, +) (*SyncV1SyncMapPermission, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -86,7 +90,12 @@ func (params *ListSyncMapPermissionParams) SetLimit(Limit int) *ListSyncMapPermi } // Retrieve a single page of SyncMapPermission records from the API. Request is executed immediately. -func (c *ApiService) PageSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams, pageToken, pageNumber string) (*ListSyncMapPermissionResponse, error) { +func (c *ApiService) PageSyncMapPermission( + ServiceSid string, + MapSid string, + params *ListSyncMapPermissionParams, + pageToken, pageNumber string, +) (*ListSyncMapPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -122,7 +131,11 @@ func (c *ApiService) PageSyncMapPermission(ServiceSid string, MapSid string, par } // Lists SyncMapPermission records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) ([]SyncV1SyncMapPermission, error) { +func (c *ApiService) ListSyncMapPermission( + ServiceSid string, + MapSid string, + params *ListSyncMapPermissionParams, +) ([]SyncV1SyncMapPermission, error) { response, errors := c.StreamSyncMapPermission(ServiceSid, MapSid, params) records := make([]SyncV1SyncMapPermission, 0) @@ -138,7 +151,11 @@ func (c *ApiService) ListSyncMapPermission(ServiceSid string, MapSid string, par } // Streams SyncMapPermission records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (chan SyncV1SyncMapPermission, chan error) { +func (c *ApiService) StreamSyncMapPermission( + ServiceSid string, + MapSid string, + params *ListSyncMapPermissionParams, +) (chan SyncV1SyncMapPermission, chan error) { if params == nil { params = &ListSyncMapPermissionParams{} } @@ -159,7 +176,12 @@ func (c *ApiService) StreamSyncMapPermission(ServiceSid string, MapSid string, p return recordChannel, errorChannel } -func (c *ApiService) streamSyncMapPermission(response *ListSyncMapPermissionResponse, params *ListSyncMapPermissionParams, recordChannel chan SyncV1SyncMapPermission, errorChannel chan error) { +func (c *ApiService) streamSyncMapPermission( + response *ListSyncMapPermissionResponse, + params *ListSyncMapPermissionParams, + recordChannel chan SyncV1SyncMapPermission, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -231,7 +253,12 @@ func (params *UpdateSyncMapPermissionParams) SetManage(Manage bool) *UpdateSyncM } // Update an identity's access to a specific Sync Map. -func (c *ApiService) UpdateSyncMapPermission(ServiceSid string, MapSid string, Identity string, params *UpdateSyncMapPermissionParams) (*SyncV1SyncMapPermission, error) { +func (c *ApiService) UpdateSyncMapPermission( + ServiceSid string, + MapSid string, + Identity string, + params *UpdateSyncMapPermissionParams, +) (*SyncV1SyncMapPermission, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) diff --git a/rest/sync/v1/services_streams.go b/rest/sync/v1/services_streams.go index d16add427..e72fdb52d 100644 --- a/rest/sync/v1/services_streams.go +++ b/rest/sync/v1/services_streams.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSyncStream' @@ -131,7 +131,11 @@ func (params *ListSyncStreamParams) SetLimit(Limit int) *ListSyncStreamParams { } // Retrieve a single page of SyncStream records from the API. Request is executed immediately. -func (c *ApiService) PageSyncStream(ServiceSid string, params *ListSyncStreamParams, pageToken, pageNumber string) (*ListSyncStreamResponse, error) { +func (c *ApiService) PageSyncStream( + ServiceSid string, + params *ListSyncStreamParams, + pageToken, pageNumber string, +) (*ListSyncStreamResponse, error) { path := "/v1/Services/{ServiceSid}/Streams" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -182,7 +186,10 @@ func (c *ApiService) ListSyncStream(ServiceSid string, params *ListSyncStreamPar } // Streams SyncStream records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamSyncStream(ServiceSid string, params *ListSyncStreamParams) (chan SyncV1SyncStream, chan error) { +func (c *ApiService) StreamSyncStream( + ServiceSid string, + params *ListSyncStreamParams, +) (chan SyncV1SyncStream, chan error) { if params == nil { params = &ListSyncStreamParams{} } @@ -203,7 +210,12 @@ func (c *ApiService) StreamSyncStream(ServiceSid string, params *ListSyncStreamP return recordChannel, errorChannel } -func (c *ApiService) streamSyncStream(response *ListSyncStreamResponse, params *ListSyncStreamParams, recordChannel chan SyncV1SyncStream, errorChannel chan error) { +func (c *ApiService) streamSyncStream( + response *ListSyncStreamResponse, + params *ListSyncStreamParams, + recordChannel chan SyncV1SyncStream, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +275,11 @@ func (params *UpdateSyncStreamParams) SetTtl(Ttl int) *UpdateSyncStreamParams { } // Update a specific Stream. -func (c *ApiService) UpdateSyncStream(ServiceSid string, Sid string, params *UpdateSyncStreamParams) (*SyncV1SyncStream, error) { +func (c *ApiService) UpdateSyncStream( + ServiceSid string, + Sid string, + params *UpdateSyncStreamParams, +) (*SyncV1SyncStream, error) { path := "/v1/Services/{ServiceSid}/Streams/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/api_service.go b/rest/taskrouter/v1/api_service.go index 233d22d0b..76c41ca2b 100644 --- a/rest/taskrouter/v1/api_service.go +++ b/rest/taskrouter/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/taskrouter/v1/workspaces.go b/rest/taskrouter/v1/workspaces.go index a1890a26a..6d81cf5d1 100644 --- a/rest/taskrouter/v1/workspaces.go +++ b/rest/taskrouter/v1/workspaces.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateWorkspace' @@ -170,7 +170,10 @@ func (params *ListWorkspaceParams) SetLimit(Limit int) *ListWorkspaceParams { } // Retrieve a single page of Workspace records from the API. Request is executed immediately. -func (c *ApiService) PageWorkspace(params *ListWorkspaceParams, pageToken, pageNumber string) (*ListWorkspaceResponse, error) { +func (c *ApiService) PageWorkspace( + params *ListWorkspaceParams, + pageToken, pageNumber string, +) (*ListWorkspaceResponse, error) { path := "/v1/Workspaces" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamWorkspace(params *ListWorkspaceParams) (chan Taskrout return recordChannel, errorChannel } -func (c *ApiService) streamWorkspace(response *ListWorkspaceResponse, params *ListWorkspaceParams, recordChannel chan TaskrouterV1Workspace, errorChannel chan error) { +func (c *ApiService) streamWorkspace( + response *ListWorkspaceResponse, + params *ListWorkspaceParams, + recordChannel chan TaskrouterV1Workspace, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/taskrouter/v1/workspaces_activities.go b/rest/taskrouter/v1/workspaces_activities.go index 563c227c4..d9c2b6a48 100644 --- a/rest/taskrouter/v1/workspaces_activities.go +++ b/rest/taskrouter/v1/workspaces_activities.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateActivity' @@ -143,7 +143,11 @@ func (params *ListActivityParams) SetLimit(Limit int) *ListActivityParams { } // Retrieve a single page of Activity records from the API. Request is executed immediately. -func (c *ApiService) PageActivity(WorkspaceSid string, params *ListActivityParams, pageToken, pageNumber string) (*ListActivityResponse, error) { +func (c *ApiService) PageActivity( + WorkspaceSid string, + params *ListActivityParams, + pageToken, pageNumber string, +) (*ListActivityResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -200,7 +204,10 @@ func (c *ApiService) ListActivity(WorkspaceSid string, params *ListActivityParam } // Streams Activity records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamActivity(WorkspaceSid string, params *ListActivityParams) (chan TaskrouterV1Activity, chan error) { +func (c *ApiService) StreamActivity( + WorkspaceSid string, + params *ListActivityParams, +) (chan TaskrouterV1Activity, chan error) { if params == nil { params = &ListActivityParams{} } @@ -221,7 +228,12 @@ func (c *ApiService) StreamActivity(WorkspaceSid string, params *ListActivityPar return recordChannel, errorChannel } -func (c *ApiService) streamActivity(response *ListActivityResponse, params *ListActivityParams, recordChannel chan TaskrouterV1Activity, errorChannel chan error) { +func (c *ApiService) streamActivity( + response *ListActivityResponse, + params *ListActivityParams, + recordChannel chan TaskrouterV1Activity, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -281,7 +293,11 @@ func (params *UpdateActivityParams) SetFriendlyName(FriendlyName string) *Update } // -func (c *ApiService) UpdateActivity(WorkspaceSid string, Sid string, params *UpdateActivityParams) (*TaskrouterV1Activity, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_events.go b/rest/taskrouter/v1/workspaces_events.go index b9bc46cbf..af8373a62 100644 --- a/rest/taskrouter/v1/workspaces_events.go +++ b/rest/taskrouter/v1/workspaces_events.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -132,7 +132,11 @@ func (params *ListEventParams) SetLimit(Limit int) *ListEventParams { } // Retrieve a single page of Event records from the API. Request is executed immediately. -func (c *ApiService) PageEvent(WorkspaceSid string, params *ListEventParams, pageToken, pageNumber string) (*ListEventResponse, error) { +func (c *ApiService) PageEvent( + WorkspaceSid string, + params *ListEventParams, + pageToken, pageNumber string, +) (*ListEventResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -237,7 +241,12 @@ func (c *ApiService) StreamEvent(WorkspaceSid string, params *ListEventParams) ( return recordChannel, errorChannel } -func (c *ApiService) streamEvent(response *ListEventResponse, params *ListEventParams, recordChannel chan TaskrouterV1Event, errorChannel chan error) { +func (c *ApiService) streamEvent( + response *ListEventResponse, + params *ListEventParams, + recordChannel chan TaskrouterV1Event, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/taskrouter/v1/workspaces_task_channels.go b/rest/taskrouter/v1/workspaces_task_channels.go index ab0035c54..467f3e2df 100644 --- a/rest/taskrouter/v1/workspaces_task_channels.go +++ b/rest/taskrouter/v1/workspaces_task_channels.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTaskChannel' @@ -47,7 +47,10 @@ func (params *CreateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz } // -func (c *ApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { +func (c *ApiService) CreateTaskChannel( + WorkspaceSid string, + params *CreateTaskChannelParams, +) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -140,7 +143,11 @@ func (params *ListTaskChannelParams) SetLimit(Limit int) *ListTaskChannelParams } // Retrieve a single page of TaskChannel records from the API. Request is executed immediately. -func (c *ApiService) PageTaskChannel(WorkspaceSid string, params *ListTaskChannelParams, pageToken, pageNumber string) (*ListTaskChannelResponse, error) { +func (c *ApiService) PageTaskChannel( + WorkspaceSid string, + params *ListTaskChannelParams, + pageToken, pageNumber string, +) (*ListTaskChannelResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -175,7 +182,10 @@ func (c *ApiService) PageTaskChannel(WorkspaceSid string, params *ListTaskChanne } // Lists TaskChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTaskChannel(WorkspaceSid string, params *ListTaskChannelParams) ([]TaskrouterV1TaskChannel, error) { +func (c *ApiService) ListTaskChannel( + WorkspaceSid string, + params *ListTaskChannelParams, +) ([]TaskrouterV1TaskChannel, error) { response, errors := c.StreamTaskChannel(WorkspaceSid, params) records := make([]TaskrouterV1TaskChannel, 0) @@ -191,7 +201,10 @@ func (c *ApiService) ListTaskChannel(WorkspaceSid string, params *ListTaskChanne } // Streams TaskChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTaskChannel(WorkspaceSid string, params *ListTaskChannelParams) (chan TaskrouterV1TaskChannel, chan error) { +func (c *ApiService) StreamTaskChannel( + WorkspaceSid string, + params *ListTaskChannelParams, +) (chan TaskrouterV1TaskChannel, chan error) { if params == nil { params = &ListTaskChannelParams{} } @@ -212,7 +225,12 @@ func (c *ApiService) StreamTaskChannel(WorkspaceSid string, params *ListTaskChan return recordChannel, errorChannel } -func (c *ApiService) streamTaskChannel(response *ListTaskChannelResponse, params *ListTaskChannelParams, recordChannel chan TaskrouterV1TaskChannel, errorChannel chan error) { +func (c *ApiService) streamTaskChannel( + response *ListTaskChannelResponse, + params *ListTaskChannelParams, + recordChannel chan TaskrouterV1TaskChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -278,7 +296,11 @@ func (params *UpdateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz } // -func (c *ApiService) UpdateTaskChannel(WorkspaceSid string, Sid string, params *UpdateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues.go b/rest/taskrouter/v1/workspaces_task_queues.go index 9bdfc7224..9f4fff95e 100644 --- a/rest/taskrouter/v1/workspaces_task_queues.go +++ b/rest/taskrouter/v1/workspaces_task_queues.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTaskQueue' @@ -65,7 +65,10 @@ func (params *CreateTaskQueueParams) SetAssignmentActivitySid(AssignmentActivity } // -func (c *ApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { +func (c *ApiService) CreateTaskQueue( + WorkspaceSid string, + params *CreateTaskQueueParams, +) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -191,7 +194,11 @@ func (params *ListTaskQueueParams) SetLimit(Limit int) *ListTaskQueueParams { } // Retrieve a single page of TaskQueue records from the API. Request is executed immediately. -func (c *ApiService) PageTaskQueue(WorkspaceSid string, params *ListTaskQueueParams, pageToken, pageNumber string) (*ListTaskQueueResponse, error) { +func (c *ApiService) PageTaskQueue( + WorkspaceSid string, + params *ListTaskQueueParams, + pageToken, pageNumber string, +) (*ListTaskQueueResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -254,7 +261,10 @@ func (c *ApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQueuePar } // Streams TaskQueue records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTaskQueue(WorkspaceSid string, params *ListTaskQueueParams) (chan TaskrouterV1TaskQueue, chan error) { +func (c *ApiService) StreamTaskQueue( + WorkspaceSid string, + params *ListTaskQueueParams, +) (chan TaskrouterV1TaskQueue, chan error) { if params == nil { params = &ListTaskQueueParams{} } @@ -275,7 +285,12 @@ func (c *ApiService) StreamTaskQueue(WorkspaceSid string, params *ListTaskQueueP return recordChannel, errorChannel } -func (c *ApiService) streamTaskQueue(response *ListTaskQueueResponse, params *ListTaskQueueParams, recordChannel chan TaskrouterV1TaskQueue, errorChannel chan error) { +func (c *ApiService) streamTaskQueue( + response *ListTaskQueueResponse, + params *ListTaskQueueParams, + recordChannel chan TaskrouterV1TaskQueue, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -365,7 +380,11 @@ func (params *UpdateTaskQueueParams) SetTaskOrder(TaskOrder string) *UpdateTaskQ } // -func (c *ApiService) UpdateTaskQueue(WorkspaceSid string, Sid string, params *UpdateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_statistics.go index c5ea20fd7..3ee4e7fb0 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_statistics.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'FetchTaskQueueStatistics' @@ -60,7 +60,11 @@ func (params *FetchTaskQueueStatisticsParams) SetSplitByWaitTime(SplitByWaitTime } // -func (c *ApiService) FetchTaskQueueStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1TaskQueueStatistics, error) { +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) path = strings.Replace(path, "{"+"TaskQueueSid"+"}", TaskQueueSid, -1) @@ -153,7 +157,11 @@ func (params *ListTaskQueuesStatisticsParams) SetLimit(Limit int) *ListTaskQueue } // Retrieve a single page of TaskQueuesStatistics records from the API. Request is executed immediately. -func (c *ApiService) PageTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams, pageToken, pageNumber string) (*ListTaskQueuesStatisticsResponse, error) { +func (c *ApiService) PageTaskQueuesStatistics( + WorkspaceSid string, + params *ListTaskQueuesStatisticsParams, + pageToken, pageNumber string, +) (*ListTaskQueuesStatisticsResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -206,7 +214,10 @@ func (c *ApiService) PageTaskQueuesStatistics(WorkspaceSid string, params *ListT } // Lists TaskQueuesStatistics records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams) ([]TaskrouterV1TaskQueuesStatistics, error) { +func (c *ApiService) ListTaskQueuesStatistics( + WorkspaceSid string, + params *ListTaskQueuesStatisticsParams, +) ([]TaskrouterV1TaskQueuesStatistics, error) { response, errors := c.StreamTaskQueuesStatistics(WorkspaceSid, params) records := make([]TaskrouterV1TaskQueuesStatistics, 0) @@ -222,7 +233,10 @@ func (c *ApiService) ListTaskQueuesStatistics(WorkspaceSid string, params *ListT } // Streams TaskQueuesStatistics records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams) (chan TaskrouterV1TaskQueuesStatistics, chan error) { +func (c *ApiService) StreamTaskQueuesStatistics( + WorkspaceSid string, + params *ListTaskQueuesStatisticsParams, +) (chan TaskrouterV1TaskQueuesStatistics, chan error) { if params == nil { params = &ListTaskQueuesStatisticsParams{} } @@ -243,7 +257,12 @@ func (c *ApiService) StreamTaskQueuesStatistics(WorkspaceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamTaskQueuesStatistics(response *ListTaskQueuesStatisticsResponse, params *ListTaskQueuesStatisticsParams, recordChannel chan TaskrouterV1TaskQueuesStatistics, errorChannel chan error) { +func (c *ApiService) streamTaskQueuesStatistics( + response *ListTaskQueuesStatisticsResponse, + params *ListTaskQueuesStatisticsParams, + recordChannel chan TaskrouterV1TaskQueuesStatistics, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/taskrouter/v1/workspaces_tasks.go b/rest/taskrouter/v1/workspaces_tasks.go index bdb0b0762..8c207f23e 100644 --- a/rest/taskrouter/v1/workspaces_tasks.go +++ b/rest/taskrouter/v1/workspaces_tasks.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTask' @@ -236,7 +236,11 @@ func (params *ListTaskParams) SetLimit(Limit int) *ListTaskParams { } // Retrieve a single page of Task records from the API. Request is executed immediately. -func (c *ApiService) PageTask(WorkspaceSid string, params *ListTaskParams, pageToken, pageNumber string) (*ListTaskResponse, error) { +func (c *ApiService) PageTask( + WorkspaceSid string, + params *ListTaskParams, + pageToken, pageNumber string, +) (*ListTaskResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -337,7 +341,12 @@ func (c *ApiService) StreamTask(WorkspaceSid string, params *ListTaskParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamTask(response *ListTaskResponse, params *ListTaskParams, recordChannel chan TaskrouterV1Task, errorChannel chan error) { +func (c *ApiService) streamTask( + response *ListTaskResponse, + params *ListTaskParams, + recordChannel chan TaskrouterV1Task, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/taskrouter/v1/workspaces_tasks_reservations.go b/rest/taskrouter/v1/workspaces_tasks_reservations.go index c6a075d95..b274290b0 100644 --- a/rest/taskrouter/v1/workspaces_tasks_reservations.go +++ b/rest/taskrouter/v1/workspaces_tasks_reservations.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // -func (c *ApiService) FetchTaskReservation(WorkspaceSid string, TaskSid string, Sid string) (*TaskrouterV1TaskReservation, error) { +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) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -78,7 +82,12 @@ func (params *ListTaskReservationParams) SetLimit(Limit int) *ListTaskReservatio } // Retrieve a single page of TaskReservation records from the API. Request is executed immediately. -func (c *ApiService) PageTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams, pageToken, pageNumber string) (*ListTaskReservationResponse, error) { +func (c *ApiService) PageTaskReservation( + WorkspaceSid string, + TaskSid string, + params *ListTaskReservationParams, + pageToken, pageNumber string, +) (*ListTaskReservationResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -120,7 +129,11 @@ func (c *ApiService) PageTaskReservation(WorkspaceSid string, TaskSid string, pa } // Lists TaskReservation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams) ([]TaskrouterV1TaskReservation, error) { +func (c *ApiService) ListTaskReservation( + WorkspaceSid string, + TaskSid string, + params *ListTaskReservationParams, +) ([]TaskrouterV1TaskReservation, error) { response, errors := c.StreamTaskReservation(WorkspaceSid, TaskSid, params) records := make([]TaskrouterV1TaskReservation, 0) @@ -136,7 +149,11 @@ func (c *ApiService) ListTaskReservation(WorkspaceSid string, TaskSid string, pa } // Streams TaskReservation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams) (chan TaskrouterV1TaskReservation, chan error) { +func (c *ApiService) StreamTaskReservation( + WorkspaceSid string, + TaskSid string, + params *ListTaskReservationParams, +) (chan TaskrouterV1TaskReservation, chan error) { if params == nil { params = &ListTaskReservationParams{} } @@ -157,7 +174,12 @@ func (c *ApiService) StreamTaskReservation(WorkspaceSid string, TaskSid string, return recordChannel, errorChannel } -func (c *ApiService) streamTaskReservation(response *ListTaskReservationResponse, params *ListTaskReservationParams, recordChannel chan TaskrouterV1TaskReservation, errorChannel chan error) { +func (c *ApiService) streamTaskReservation( + response *ListTaskReservationResponse, + params *ListTaskReservationParams, + recordChannel chan TaskrouterV1TaskReservation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -541,7 +563,12 @@ func (params *UpdateTaskReservationParams) SetJitterBufferSize(JitterBufferSize } // -func (c *ApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid string, Sid string, params *UpdateTaskReservationParams) (*TaskrouterV1TaskReservation, error) { +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) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers.go b/rest/taskrouter/v1/workspaces_workers.go index 88c4f41cf..7da07f35f 100644 --- a/rest/taskrouter/v1/workspaces_workers.go +++ b/rest/taskrouter/v1/workspaces_workers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateWorker' @@ -202,7 +202,11 @@ func (params *ListWorkerParams) SetLimit(Limit int) *ListWorkerParams { } // Retrieve a single page of Worker records from the API. Request is executed immediately. -func (c *ApiService) PageWorker(WorkspaceSid string, params *ListWorkerParams, pageToken, pageNumber string) (*ListWorkerResponse, error) { +func (c *ApiService) PageWorker( + WorkspaceSid string, + params *ListWorkerParams, + pageToken, pageNumber string, +) (*ListWorkerResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -298,7 +302,12 @@ func (c *ApiService) StreamWorker(WorkspaceSid string, params *ListWorkerParams) return recordChannel, errorChannel } -func (c *ApiService) streamWorker(response *ListWorkerResponse, params *ListWorkerParams, recordChannel chan TaskrouterV1Worker, errorChannel chan error) { +func (c *ApiService) streamWorker( + response *ListWorkerResponse, + params *ListWorkerParams, + recordChannel chan TaskrouterV1Worker, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -382,7 +391,11 @@ func (params *UpdateWorkerParams) SetRejectPendingReservations(RejectPendingRese } // -func (c *ApiService) UpdateWorker(WorkspaceSid string, Sid string, params *UpdateWorkerParams) (*TaskrouterV1Worker, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_channels.go b/rest/taskrouter/v1/workspaces_workers_channels.go index d6e72fafb..56aca78ca 100644 --- a/rest/taskrouter/v1/workspaces_workers_channels.go +++ b/rest/taskrouter/v1/workspaces_workers_channels.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // -func (c *ApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerChannel, error) { +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) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) @@ -66,7 +70,12 @@ func (params *ListWorkerChannelParams) SetLimit(Limit int) *ListWorkerChannelPar } // Retrieve a single page of WorkerChannel records from the API. Request is executed immediately. -func (c *ApiService) PageWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams, pageToken, pageNumber string) (*ListWorkerChannelResponse, error) { +func (c *ApiService) PageWorkerChannel( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerChannelParams, + pageToken, pageNumber string, +) (*ListWorkerChannelResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageWorkerChannel(WorkspaceSid string, WorkerSid string, pa } // Lists WorkerChannel records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams) ([]TaskrouterV1WorkerChannel, error) { +func (c *ApiService) ListWorkerChannel( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerChannelParams, +) ([]TaskrouterV1WorkerChannel, error) { response, errors := c.StreamWorkerChannel(WorkspaceSid, WorkerSid, params) records := make([]TaskrouterV1WorkerChannel, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid string, pa } // Streams WorkerChannel records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams) (chan TaskrouterV1WorkerChannel, chan error) { +func (c *ApiService) StreamWorkerChannel( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerChannelParams, +) (chan TaskrouterV1WorkerChannel, chan error) { if params == nil { params = &ListWorkerChannelParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamWorkerChannel(WorkspaceSid string, WorkerSid string, return recordChannel, errorChannel } -func (c *ApiService) streamWorkerChannel(response *ListWorkerChannelResponse, params *ListWorkerChannelParams, recordChannel chan TaskrouterV1WorkerChannel, errorChannel chan error) { +func (c *ApiService) streamWorkerChannel( + response *ListWorkerChannelResponse, + params *ListWorkerChannelParams, + recordChannel chan TaskrouterV1WorkerChannel, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -205,7 +227,12 @@ func (params *UpdateWorkerChannelParams) SetAvailable(Available bool) *UpdateWor } // -func (c *ApiService) UpdateWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkerChannel, error) { +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) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_reservations.go b/rest/taskrouter/v1/workspaces_workers_reservations.go index 0f09a20c8..0c1a43cc2 100644 --- a/rest/taskrouter/v1/workspaces_workers_reservations.go +++ b/rest/taskrouter/v1/workspaces_workers_reservations.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // -func (c *ApiService) FetchWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerReservation, error) { +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) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) @@ -72,7 +76,12 @@ func (params *ListWorkerReservationParams) SetLimit(Limit int) *ListWorkerReserv } // Retrieve a single page of WorkerReservation records from the API. Request is executed immediately. -func (c *ApiService) PageWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams, pageToken, pageNumber string) (*ListWorkerReservationResponse, error) { +func (c *ApiService) PageWorkerReservation( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerReservationParams, + pageToken, pageNumber string, +) (*ListWorkerReservationResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -111,7 +120,11 @@ func (c *ApiService) PageWorkerReservation(WorkspaceSid string, WorkerSid string } // Lists WorkerReservation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams) ([]TaskrouterV1WorkerReservation, error) { +func (c *ApiService) ListWorkerReservation( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerReservationParams, +) ([]TaskrouterV1WorkerReservation, error) { response, errors := c.StreamWorkerReservation(WorkspaceSid, WorkerSid, params) records := make([]TaskrouterV1WorkerReservation, 0) @@ -127,7 +140,11 @@ func (c *ApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid string } // Streams WorkerReservation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams) (chan TaskrouterV1WorkerReservation, chan error) { +func (c *ApiService) StreamWorkerReservation( + WorkspaceSid string, + WorkerSid string, + params *ListWorkerReservationParams, +) (chan TaskrouterV1WorkerReservation, chan error) { if params == nil { params = &ListWorkerReservationParams{} } @@ -148,7 +165,12 @@ func (c *ApiService) StreamWorkerReservation(WorkspaceSid string, WorkerSid stri return recordChannel, errorChannel } -func (c *ApiService) streamWorkerReservation(response *ListWorkerReservationResponse, params *ListWorkerReservationParams, recordChannel chan TaskrouterV1WorkerReservation, errorChannel chan error) { +func (c *ApiService) streamWorkerReservation( + response *ListWorkerReservationResponse, + params *ListWorkerReservationParams, + recordChannel chan TaskrouterV1WorkerReservation, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -520,7 +542,12 @@ func (params *UpdateWorkerReservationParams) SetJitterBufferSize(JitterBufferSiz } // -func (c *ApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkerReservation, error) { +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) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows.go b/rest/taskrouter/v1/workspaces_workflows.go index e7dadffd7..b8591813c 100644 --- a/rest/taskrouter/v1/workspaces_workflows.go +++ b/rest/taskrouter/v1/workspaces_workflows.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateWorkflow' @@ -164,7 +164,11 @@ func (params *ListWorkflowParams) SetLimit(Limit int) *ListWorkflowParams { } // Retrieve a single page of Workflow records from the API. Request is executed immediately. -func (c *ApiService) PageWorkflow(WorkspaceSid string, params *ListWorkflowParams, pageToken, pageNumber string) (*ListWorkflowResponse, error) { +func (c *ApiService) PageWorkflow( + WorkspaceSid string, + params *ListWorkflowParams, + pageToken, pageNumber string, +) (*ListWorkflowResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -218,7 +222,10 @@ func (c *ApiService) ListWorkflow(WorkspaceSid string, params *ListWorkflowParam } // Streams Workflow records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamWorkflow(WorkspaceSid string, params *ListWorkflowParams) (chan TaskrouterV1Workflow, chan error) { +func (c *ApiService) StreamWorkflow( + WorkspaceSid string, + params *ListWorkflowParams, +) (chan TaskrouterV1Workflow, chan error) { if params == nil { params = &ListWorkflowParams{} } @@ -239,7 +246,12 @@ func (c *ApiService) StreamWorkflow(WorkspaceSid string, params *ListWorkflowPar return recordChannel, errorChannel } -func (c *ApiService) streamWorkflow(response *ListWorkflowResponse, params *ListWorkflowParams, recordChannel chan TaskrouterV1Workflow, errorChannel chan error) { +func (c *ApiService) streamWorkflow( + response *ListWorkflowResponse, + params *ListWorkflowParams, + recordChannel chan TaskrouterV1Workflow, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -329,7 +341,11 @@ func (params *UpdateWorkflowParams) SetReEvaluateTasks(ReEvaluateTasks string) * } // -func (c *ApiService) UpdateWorkflow(WorkspaceSid string, Sid string, params *UpdateWorkflowParams) (*TaskrouterV1Workflow, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trunking/v1/api_service.go b/rest/trunking/v1/api_service.go index 9fcddb260..cec638b8f 100644 --- a/rest/trunking/v1/api_service.go +++ b/rest/trunking/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/trunking/v1/trunks.go b/rest/trunking/v1/trunks.go index 45a5e80ac..2338842ea 100644 --- a/rest/trunking/v1/trunks.go +++ b/rest/trunking/v1/trunks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTrunk' @@ -252,7 +252,12 @@ func (c *ApiService) StreamTrunk(params *ListTrunkParams) (chan TrunkingV1Trunk, return recordChannel, errorChannel } -func (c *ApiService) streamTrunk(response *ListTrunkResponse, params *ListTrunkParams, recordChannel chan TrunkingV1Trunk, errorChannel chan error) { +func (c *ApiService) streamTrunk( + response *ListTrunkResponse, + params *ListTrunkParams, + recordChannel chan TrunkingV1Trunk, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trunking/v1/trunks_credential_lists.go b/rest/trunking/v1/trunks_credential_lists.go index 25b8c0f66..8793702d0 100644 --- a/rest/trunking/v1/trunks_credential_lists.go +++ b/rest/trunking/v1/trunks_credential_lists.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCredentialList' @@ -35,7 +35,10 @@ func (params *CreateCredentialListParams) SetCredentialListSid(CredentialListSid } // -func (c *ApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1CredentialList, error) { +func (c *ApiService) CreateCredentialList( + TrunkSid string, + params *CreateCredentialListParams, +) (*TrunkingV1CredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -122,7 +125,11 @@ func (params *ListCredentialListParams) SetLimit(Limit int) *ListCredentialListP } // Retrieve a single page of CredentialList records from the API. Request is executed immediately. -func (c *ApiService) PageCredentialList(TrunkSid string, params *ListCredentialListParams, pageToken, pageNumber string) (*ListCredentialListResponse, error) { +func (c *ApiService) PageCredentialList( + TrunkSid string, + params *ListCredentialListParams, + pageToken, pageNumber string, +) (*ListCredentialListResponse, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -157,7 +164,10 @@ func (c *ApiService) PageCredentialList(TrunkSid string, params *ListCredentialL } // Lists CredentialList records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) ([]TrunkingV1CredentialList, error) { +func (c *ApiService) ListCredentialList( + TrunkSid string, + params *ListCredentialListParams, +) ([]TrunkingV1CredentialList, error) { response, errors := c.StreamCredentialList(TrunkSid, params) records := make([]TrunkingV1CredentialList, 0) @@ -173,7 +183,10 @@ func (c *ApiService) ListCredentialList(TrunkSid string, params *ListCredentialL } // Streams CredentialList records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCredentialList(TrunkSid string, params *ListCredentialListParams) (chan TrunkingV1CredentialList, chan error) { +func (c *ApiService) StreamCredentialList( + TrunkSid string, + params *ListCredentialListParams, +) (chan TrunkingV1CredentialList, chan error) { if params == nil { params = &ListCredentialListParams{} } @@ -194,7 +207,12 @@ func (c *ApiService) StreamCredentialList(TrunkSid string, params *ListCredentia return recordChannel, errorChannel } -func (c *ApiService) streamCredentialList(response *ListCredentialListResponse, params *ListCredentialListParams, recordChannel chan TrunkingV1CredentialList, errorChannel chan error) { +func (c *ApiService) streamCredentialList( + response *ListCredentialListResponse, + params *ListCredentialListParams, + recordChannel chan TrunkingV1CredentialList, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trunking/v1/trunks_ip_access_control_lists.go b/rest/trunking/v1/trunks_ip_access_control_lists.go index 3ab9fdf5a..6200c6780 100644 --- a/rest/trunking/v1/trunks_ip_access_control_lists.go +++ b/rest/trunking/v1/trunks_ip_access_control_lists.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIpAccessControlList' @@ -35,7 +35,10 @@ func (params *CreateIpAccessControlListParams) SetIpAccessControlListSid(IpAcces } // Associate an IP Access Control List with a Trunk -func (c *ApiService) CreateIpAccessControlList(TrunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1IpAccessControlList, error) { +func (c *ApiService) CreateIpAccessControlList( + TrunkSid string, + params *CreateIpAccessControlListParams, +) (*TrunkingV1IpAccessControlList, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -122,7 +125,11 @@ func (params *ListIpAccessControlListParams) SetLimit(Limit int) *ListIpAccessCo } // Retrieve a single page of IpAccessControlList records from the API. Request is executed immediately. -func (c *ApiService) PageIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams, pageToken, pageNumber string) (*ListIpAccessControlListResponse, error) { +func (c *ApiService) PageIpAccessControlList( + TrunkSid string, + params *ListIpAccessControlListParams, + pageToken, pageNumber string, +) (*ListIpAccessControlListResponse, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -157,7 +164,10 @@ func (c *ApiService) PageIpAccessControlList(TrunkSid string, params *ListIpAcce } // Lists IpAccessControlList records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) ([]TrunkingV1IpAccessControlList, error) { +func (c *ApiService) ListIpAccessControlList( + TrunkSid string, + params *ListIpAccessControlListParams, +) ([]TrunkingV1IpAccessControlList, error) { response, errors := c.StreamIpAccessControlList(TrunkSid, params) records := make([]TrunkingV1IpAccessControlList, 0) @@ -173,7 +183,10 @@ func (c *ApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAcce } // Streams IpAccessControlList records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (chan TrunkingV1IpAccessControlList, chan error) { +func (c *ApiService) StreamIpAccessControlList( + TrunkSid string, + params *ListIpAccessControlListParams, +) (chan TrunkingV1IpAccessControlList, chan error) { if params == nil { params = &ListIpAccessControlListParams{} } @@ -194,7 +207,12 @@ func (c *ApiService) StreamIpAccessControlList(TrunkSid string, params *ListIpAc return recordChannel, errorChannel } -func (c *ApiService) streamIpAccessControlList(response *ListIpAccessControlListResponse, params *ListIpAccessControlListParams, recordChannel chan TrunkingV1IpAccessControlList, errorChannel chan error) { +func (c *ApiService) streamIpAccessControlList( + response *ListIpAccessControlListResponse, + params *ListIpAccessControlListParams, + recordChannel chan TrunkingV1IpAccessControlList, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trunking/v1/trunks_origination_urls.go b/rest/trunking/v1/trunks_origination_urls.go index 147bdb0e1..80c684d4a 100644 --- a/rest/trunking/v1/trunks_origination_urls.go +++ b/rest/trunking/v1/trunks_origination_urls.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateOriginationUrl' @@ -59,7 +59,10 @@ func (params *CreateOriginationUrlParams) SetSipUrl(SipUrl string) *CreateOrigin } // -func (c *ApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { +func (c *ApiService) CreateOriginationUrl( + TrunkSid string, + params *CreateOriginationUrlParams, +) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -158,7 +161,11 @@ func (params *ListOriginationUrlParams) SetLimit(Limit int) *ListOriginationUrlP } // Retrieve a single page of OriginationUrl records from the API. Request is executed immediately. -func (c *ApiService) PageOriginationUrl(TrunkSid string, params *ListOriginationUrlParams, pageToken, pageNumber string) (*ListOriginationUrlResponse, error) { +func (c *ApiService) PageOriginationUrl( + TrunkSid string, + params *ListOriginationUrlParams, + pageToken, pageNumber string, +) (*ListOriginationUrlResponse, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -193,7 +200,10 @@ func (c *ApiService) PageOriginationUrl(TrunkSid string, params *ListOrigination } // Lists OriginationUrl records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) ([]TrunkingV1OriginationUrl, error) { +func (c *ApiService) ListOriginationUrl( + TrunkSid string, + params *ListOriginationUrlParams, +) ([]TrunkingV1OriginationUrl, error) { response, errors := c.StreamOriginationUrl(TrunkSid, params) records := make([]TrunkingV1OriginationUrl, 0) @@ -209,7 +219,10 @@ func (c *ApiService) ListOriginationUrl(TrunkSid string, params *ListOrigination } // Streams OriginationUrl records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (chan TrunkingV1OriginationUrl, chan error) { +func (c *ApiService) StreamOriginationUrl( + TrunkSid string, + params *ListOriginationUrlParams, +) (chan TrunkingV1OriginationUrl, chan error) { if params == nil { params = &ListOriginationUrlParams{} } @@ -230,7 +243,12 @@ func (c *ApiService) StreamOriginationUrl(TrunkSid string, params *ListOriginati return recordChannel, errorChannel } -func (c *ApiService) streamOriginationUrl(response *ListOriginationUrlResponse, params *ListOriginationUrlParams, recordChannel chan TrunkingV1OriginationUrl, errorChannel chan error) { +func (c *ApiService) streamOriginationUrl( + response *ListOriginationUrlResponse, + params *ListOriginationUrlParams, + recordChannel chan TrunkingV1OriginationUrl, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -314,7 +332,11 @@ func (params *UpdateOriginationUrlParams) SetSipUrl(SipUrl string) *UpdateOrigin } // -func (c *ApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trunking/v1/trunks_phone_numbers.go b/rest/trunking/v1/trunks_phone_numbers.go index 4670e4b37..e4b807c69 100644 --- a/rest/trunking/v1/trunks_phone_numbers.go +++ b/rest/trunking/v1/trunks_phone_numbers.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreatePhoneNumber' @@ -35,7 +35,10 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) } // -func (c *ApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1PhoneNumber, error) { +func (c *ApiService) CreatePhoneNumber( + TrunkSid string, + params *CreatePhoneNumberParams, +) (*TrunkingV1PhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -122,7 +125,11 @@ func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams } // Retrieve a single page of PhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PagePhoneNumber(TrunkSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error) { +func (c *ApiService) PagePhoneNumber( + TrunkSid string, + params *ListPhoneNumberParams, + pageToken, pageNumber string, +) (*ListPhoneNumberResponse, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -173,7 +180,10 @@ func (c *ApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberPar } // Streams PhoneNumber records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (chan TrunkingV1PhoneNumber, chan error) { +func (c *ApiService) StreamPhoneNumber( + TrunkSid string, + params *ListPhoneNumberParams, +) (chan TrunkingV1PhoneNumber, chan error) { if params == nil { params = &ListPhoneNumberParams{} } @@ -194,7 +204,12 @@ func (c *ApiService) StreamPhoneNumber(TrunkSid string, params *ListPhoneNumberP return recordChannel, errorChannel } -func (c *ApiService) streamPhoneNumber(response *ListPhoneNumberResponse, params *ListPhoneNumberParams, recordChannel chan TrunkingV1PhoneNumber, errorChannel chan error) { +func (c *ApiService) streamPhoneNumber( + response *ListPhoneNumberResponse, + params *ListPhoneNumberParams, + recordChannel chan TrunkingV1PhoneNumber, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/api_service.go b/rest/trusthub/v1/api_service.go index 4811b5e51..1d99147ba 100644 --- a/rest/trusthub/v1/api_service.go +++ b/rest/trusthub/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/trusthub/v1/customer_profiles.go b/rest/trusthub/v1/customer_profiles.go index f6cf893ca..2bbdf43ee 100644 --- a/rest/trusthub/v1/customer_profiles.go +++ b/rest/trusthub/v1/customer_profiles.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCustomerProfile' @@ -164,7 +164,10 @@ func (params *ListCustomerProfileParams) SetLimit(Limit int) *ListCustomerProfil } // Retrieve a single page of CustomerProfile records from the API. Request is executed immediately. -func (c *ApiService) PageCustomerProfile(params *ListCustomerProfileParams, pageToken, pageNumber string) (*ListCustomerProfileResponse, error) { +func (c *ApiService) PageCustomerProfile( + params *ListCustomerProfileParams, + pageToken, pageNumber string, +) (*ListCustomerProfileResponse, error) { path := "/v1/CustomerProfiles" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamCustomerProfile(params *ListCustomerProfileParams) (c return recordChannel, errorChannel } -func (c *ApiService) streamCustomerProfile(response *ListCustomerProfileResponse, params *ListCustomerProfileParams, recordChannel chan TrusthubV1CustomerProfile, errorChannel chan error) { +func (c *ApiService) streamCustomerProfile( + response *ListCustomerProfileResponse, + params *ListCustomerProfileParams, + recordChannel chan TrusthubV1CustomerProfile, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -321,7 +329,10 @@ func (params *UpdateCustomerProfileParams) SetEmail(Email string) *UpdateCustome } // Updates a Customer-Profile in an account. -func (c *ApiService) UpdateCustomerProfile(Sid string, params *UpdateCustomerProfileParams) (*TrusthubV1CustomerProfile, error) { +func (c *ApiService) UpdateCustomerProfile( + Sid string, + params *UpdateCustomerProfileParams, +) (*TrusthubV1CustomerProfile, error) { path := "/v1/CustomerProfiles/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go b/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go index 81f947b6d..7d2c5dc37 100644 --- a/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go +++ b/rest/trusthub/v1/customer_profiles_channel_endpoint_assignments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCustomerProfileChannelEndpointAssignment' @@ -41,7 +41,10 @@ func (params *CreateCustomerProfileChannelEndpointAssignmentParams) SetChannelEn } // Create a new Assigned Item. -func (c *ApiService) CreateCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *CreateCustomerProfileChannelEndpointAssignmentParams) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error) { +func (c *ApiService) CreateCustomerProfileChannelEndpointAssignment( + CustomerProfileSid string, + params *CreateCustomerProfileChannelEndpointAssignmentParams, +) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -90,7 +93,10 @@ func (c *ApiService) DeleteCustomerProfileChannelEndpointAssignment(CustomerProf } // Fetch specific Assigned Item Instance. -func (c *ApiService) FetchCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error) { +func (c *ApiService) FetchCustomerProfileChannelEndpointAssignment( + CustomerProfileSid string, + Sid string, +) (*TrusthubV1CustomerProfileChannelEndpointAssignment, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -143,7 +149,11 @@ func (params *ListCustomerProfileChannelEndpointAssignmentParams) SetLimit(Limit } // Retrieve a single page of CustomerProfileChannelEndpointAssignment records from the API. Request is executed immediately. -func (c *ApiService) PageCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams, pageToken, pageNumber string) (*ListCustomerProfileChannelEndpointAssignmentResponse, error) { +func (c *ApiService) PageCustomerProfileChannelEndpointAssignment( + CustomerProfileSid string, + params *ListCustomerProfileChannelEndpointAssignmentParams, + pageToken, pageNumber string, +) (*ListCustomerProfileChannelEndpointAssignmentResponse, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -184,7 +194,10 @@ func (c *ApiService) PageCustomerProfileChannelEndpointAssignment(CustomerProfil } // Lists CustomerProfileChannelEndpointAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams) ([]TrusthubV1CustomerProfileChannelEndpointAssignment, error) { +func (c *ApiService) ListCustomerProfileChannelEndpointAssignment( + CustomerProfileSid string, + params *ListCustomerProfileChannelEndpointAssignmentParams, +) ([]TrusthubV1CustomerProfileChannelEndpointAssignment, error) { response, errors := c.StreamCustomerProfileChannelEndpointAssignment(CustomerProfileSid, params) records := make([]TrusthubV1CustomerProfileChannelEndpointAssignment, 0) @@ -200,7 +213,10 @@ func (c *ApiService) ListCustomerProfileChannelEndpointAssignment(CustomerProfil } // Streams CustomerProfileChannelEndpointAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCustomerProfileChannelEndpointAssignment(CustomerProfileSid string, params *ListCustomerProfileChannelEndpointAssignmentParams) (chan TrusthubV1CustomerProfileChannelEndpointAssignment, chan error) { +func (c *ApiService) StreamCustomerProfileChannelEndpointAssignment( + CustomerProfileSid string, + params *ListCustomerProfileChannelEndpointAssignmentParams, +) (chan TrusthubV1CustomerProfileChannelEndpointAssignment, chan error) { if params == nil { params = &ListCustomerProfileChannelEndpointAssignmentParams{} } @@ -221,7 +237,12 @@ func (c *ApiService) StreamCustomerProfileChannelEndpointAssignment(CustomerProf return recordChannel, errorChannel } -func (c *ApiService) streamCustomerProfileChannelEndpointAssignment(response *ListCustomerProfileChannelEndpointAssignmentResponse, params *ListCustomerProfileChannelEndpointAssignmentParams, recordChannel chan TrusthubV1CustomerProfileChannelEndpointAssignment, errorChannel chan error) { +func (c *ApiService) streamCustomerProfileChannelEndpointAssignment( + response *ListCustomerProfileChannelEndpointAssignmentResponse, + params *ListCustomerProfileChannelEndpointAssignmentParams, + recordChannel chan TrusthubV1CustomerProfileChannelEndpointAssignment, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -236,7 +257,11 @@ func (c *ApiService) streamCustomerProfileChannelEndpointAssignment(response *Li } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCustomerProfileChannelEndpointAssignmentResponse) + record, err := client.GetNext( + c.baseURL, + response, + c.getNextListCustomerProfileChannelEndpointAssignmentResponse, + ) if err != nil { errorChannel <- err break diff --git a/rest/trusthub/v1/customer_profiles_entity_assignments.go b/rest/trusthub/v1/customer_profiles_entity_assignments.go index 49eec7e32..f8c9ea0c9 100644 --- a/rest/trusthub/v1/customer_profiles_entity_assignments.go +++ b/rest/trusthub/v1/customer_profiles_entity_assignments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCustomerProfileEntityAssignment' @@ -35,7 +35,10 @@ func (params *CreateCustomerProfileEntityAssignmentParams) SetObjectSid(ObjectSi } // Create a new Assigned Item. -func (c *ApiService) CreateCustomerProfileEntityAssignment(CustomerProfileSid string, params *CreateCustomerProfileEntityAssignmentParams) (*TrusthubV1CustomerProfileEntityAssignment, error) { +func (c *ApiService) CreateCustomerProfileEntityAssignment( + CustomerProfileSid string, + params *CreateCustomerProfileEntityAssignmentParams, +) (*TrusthubV1CustomerProfileEntityAssignment, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -81,7 +84,10 @@ func (c *ApiService) DeleteCustomerProfileEntityAssignment(CustomerProfileSid st } // Fetch specific Assigned Item Instance. -func (c *ApiService) FetchCustomerProfileEntityAssignment(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileEntityAssignment, error) { +func (c *ApiService) FetchCustomerProfileEntityAssignment( + CustomerProfileSid string, + Sid string, +) (*TrusthubV1CustomerProfileEntityAssignment, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -128,7 +134,11 @@ func (params *ListCustomerProfileEntityAssignmentParams) SetLimit(Limit int) *Li } // Retrieve a single page of CustomerProfileEntityAssignment records from the API. Request is executed immediately. -func (c *ApiService) PageCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams, pageToken, pageNumber string) (*ListCustomerProfileEntityAssignmentResponse, error) { +func (c *ApiService) PageCustomerProfileEntityAssignment( + CustomerProfileSid string, + params *ListCustomerProfileEntityAssignmentParams, + pageToken, pageNumber string, +) (*ListCustomerProfileEntityAssignmentResponse, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -166,7 +176,10 @@ func (c *ApiService) PageCustomerProfileEntityAssignment(CustomerProfileSid stri } // Lists CustomerProfileEntityAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams) ([]TrusthubV1CustomerProfileEntityAssignment, error) { +func (c *ApiService) ListCustomerProfileEntityAssignment( + CustomerProfileSid string, + params *ListCustomerProfileEntityAssignmentParams, +) ([]TrusthubV1CustomerProfileEntityAssignment, error) { response, errors := c.StreamCustomerProfileEntityAssignment(CustomerProfileSid, params) records := make([]TrusthubV1CustomerProfileEntityAssignment, 0) @@ -182,7 +195,10 @@ func (c *ApiService) ListCustomerProfileEntityAssignment(CustomerProfileSid stri } // Streams CustomerProfileEntityAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCustomerProfileEntityAssignment(CustomerProfileSid string, params *ListCustomerProfileEntityAssignmentParams) (chan TrusthubV1CustomerProfileEntityAssignment, chan error) { +func (c *ApiService) StreamCustomerProfileEntityAssignment( + CustomerProfileSid string, + params *ListCustomerProfileEntityAssignmentParams, +) (chan TrusthubV1CustomerProfileEntityAssignment, chan error) { if params == nil { params = &ListCustomerProfileEntityAssignmentParams{} } @@ -203,7 +219,12 @@ func (c *ApiService) StreamCustomerProfileEntityAssignment(CustomerProfileSid st return recordChannel, errorChannel } -func (c *ApiService) streamCustomerProfileEntityAssignment(response *ListCustomerProfileEntityAssignmentResponse, params *ListCustomerProfileEntityAssignmentParams, recordChannel chan TrusthubV1CustomerProfileEntityAssignment, errorChannel chan error) { +func (c *ApiService) streamCustomerProfileEntityAssignment( + response *ListCustomerProfileEntityAssignmentResponse, + params *ListCustomerProfileEntityAssignmentParams, + recordChannel chan TrusthubV1CustomerProfileEntityAssignment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/customer_profiles_evaluations.go b/rest/trusthub/v1/customer_profiles_evaluations.go index e56546485..a24629b17 100644 --- a/rest/trusthub/v1/customer_profiles_evaluations.go +++ b/rest/trusthub/v1/customer_profiles_evaluations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCustomerProfileEvaluation' @@ -35,7 +35,10 @@ func (params *CreateCustomerProfileEvaluationParams) SetPolicySid(PolicySid stri } // Create a new Evaluation -func (c *ApiService) CreateCustomerProfileEvaluation(CustomerProfileSid string, params *CreateCustomerProfileEvaluationParams) (*TrusthubV1CustomerProfileEvaluation, error) { +func (c *ApiService) CreateCustomerProfileEvaluation( + CustomerProfileSid string, + params *CreateCustomerProfileEvaluationParams, +) (*TrusthubV1CustomerProfileEvaluation, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/Evaluations" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -62,7 +65,10 @@ func (c *ApiService) CreateCustomerProfileEvaluation(CustomerProfileSid string, } // Fetch specific Evaluation Instance. -func (c *ApiService) FetchCustomerProfileEvaluation(CustomerProfileSid string, Sid string) (*TrusthubV1CustomerProfileEvaluation, error) { +func (c *ApiService) FetchCustomerProfileEvaluation( + CustomerProfileSid string, + Sid string, +) (*TrusthubV1CustomerProfileEvaluation, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/Evaluations/{Sid}" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -103,7 +109,11 @@ func (params *ListCustomerProfileEvaluationParams) SetLimit(Limit int) *ListCust } // Retrieve a single page of CustomerProfileEvaluation records from the API. Request is executed immediately. -func (c *ApiService) PageCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams, pageToken, pageNumber string) (*ListCustomerProfileEvaluationResponse, error) { +func (c *ApiService) PageCustomerProfileEvaluation( + CustomerProfileSid string, + params *ListCustomerProfileEvaluationParams, + pageToken, pageNumber string, +) (*ListCustomerProfileEvaluationResponse, error) { path := "/v1/CustomerProfiles/{CustomerProfileSid}/Evaluations" path = strings.Replace(path, "{"+"CustomerProfileSid"+"}", CustomerProfileSid, -1) @@ -138,7 +148,10 @@ func (c *ApiService) PageCustomerProfileEvaluation(CustomerProfileSid string, pa } // Lists CustomerProfileEvaluation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams) ([]TrusthubV1CustomerProfileEvaluation, error) { +func (c *ApiService) ListCustomerProfileEvaluation( + CustomerProfileSid string, + params *ListCustomerProfileEvaluationParams, +) ([]TrusthubV1CustomerProfileEvaluation, error) { response, errors := c.StreamCustomerProfileEvaluation(CustomerProfileSid, params) records := make([]TrusthubV1CustomerProfileEvaluation, 0) @@ -154,7 +167,10 @@ func (c *ApiService) ListCustomerProfileEvaluation(CustomerProfileSid string, pa } // Streams CustomerProfileEvaluation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamCustomerProfileEvaluation(CustomerProfileSid string, params *ListCustomerProfileEvaluationParams) (chan TrusthubV1CustomerProfileEvaluation, chan error) { +func (c *ApiService) StreamCustomerProfileEvaluation( + CustomerProfileSid string, + params *ListCustomerProfileEvaluationParams, +) (chan TrusthubV1CustomerProfileEvaluation, chan error) { if params == nil { params = &ListCustomerProfileEvaluationParams{} } @@ -175,7 +191,12 @@ func (c *ApiService) StreamCustomerProfileEvaluation(CustomerProfileSid string, return recordChannel, errorChannel } -func (c *ApiService) streamCustomerProfileEvaluation(response *ListCustomerProfileEvaluationResponse, params *ListCustomerProfileEvaluationParams, recordChannel chan TrusthubV1CustomerProfileEvaluation, errorChannel chan error) { +func (c *ApiService) streamCustomerProfileEvaluation( + response *ListCustomerProfileEvaluationResponse, + params *ListCustomerProfileEvaluationParams, + recordChannel chan TrusthubV1CustomerProfileEvaluation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/end_user_types.go b/rest/trusthub/v1/end_user_types.go index 4acde972e..d80538ef5 100644 --- a/rest/trusthub/v1/end_user_types.go +++ b/rest/trusthub/v1/end_user_types.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific End-User Type Instance. @@ -64,7 +64,10 @@ func (params *ListEndUserTypeParams) SetLimit(Limit int) *ListEndUserTypeParams } // Retrieve a single page of EndUserType records from the API. Request is executed immediately. -func (c *ApiService) PageEndUserType(params *ListEndUserTypeParams, pageToken, pageNumber string) (*ListEndUserTypeResponse, error) { +func (c *ApiService) PageEndUserType( + params *ListEndUserTypeParams, + pageToken, pageNumber string, +) (*ListEndUserTypeResponse, error) { path := "/v1/EndUserTypes" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamEndUserType(params *ListEndUserTypeParams) (chan Trus return recordChannel, errorChannel } -func (c *ApiService) streamEndUserType(response *ListEndUserTypeResponse, params *ListEndUserTypeParams, recordChannel chan TrusthubV1EndUserType, errorChannel chan error) { +func (c *ApiService) streamEndUserType( + response *ListEndUserTypeResponse, + params *ListEndUserTypeParams, + recordChannel chan TrusthubV1EndUserType, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/end_users.go b/rest/trusthub/v1/end_users.go index 47d0b5525..eade835f6 100644 --- a/rest/trusthub/v1/end_users.go +++ b/rest/trusthub/v1/end_users.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEndUser' @@ -143,7 +143,10 @@ func (params *ListEndUserParams) SetLimit(Limit int) *ListEndUserParams { } // Retrieve a single page of EndUser records from the API. Request is executed immediately. -func (c *ApiService) PageEndUser(params *ListEndUserParams, pageToken, pageNumber string) (*ListEndUserResponse, error) { +func (c *ApiService) PageEndUser( + params *ListEndUserParams, + pageToken, pageNumber string, +) (*ListEndUserResponse, error) { path := "/v1/EndUsers" data := url.Values{} @@ -213,7 +216,12 @@ func (c *ApiService) StreamEndUser(params *ListEndUserParams) (chan TrusthubV1En return recordChannel, errorChannel } -func (c *ApiService) streamEndUser(response *ListEndUserResponse, params *ListEndUserParams, recordChannel chan TrusthubV1EndUser, errorChannel chan error) { +func (c *ApiService) streamEndUser( + response *ListEndUserResponse, + params *ListEndUserParams, + recordChannel chan TrusthubV1EndUser, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/policies.go b/rest/trusthub/v1/policies.go index 2c06d0452..bfd8b8ee5 100644 --- a/rest/trusthub/v1/policies.go +++ b/rest/trusthub/v1/policies.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch specific Policy Instance. @@ -64,7 +64,10 @@ func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams { } // Retrieve a single page of Policies records from the API. Request is executed immediately. -func (c *ApiService) PagePolicies(params *ListPoliciesParams, pageToken, pageNumber string) (*ListPoliciesResponse, error) { +func (c *ApiService) PagePolicies( + params *ListPoliciesParams, + pageToken, pageNumber string, +) (*ListPoliciesResponse, error) { path := "/v1/Policies" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan TrusthubV1 return recordChannel, errorChannel } -func (c *ApiService) streamPolicies(response *ListPoliciesResponse, params *ListPoliciesParams, recordChannel chan TrusthubV1Policies, errorChannel chan error) { +func (c *ApiService) streamPolicies( + response *ListPoliciesResponse, + params *ListPoliciesParams, + recordChannel chan TrusthubV1Policies, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/supporting_document_types.go b/rest/trusthub/v1/supporting_document_types.go index 6c929f71e..20b529f94 100644 --- a/rest/trusthub/v1/supporting_document_types.go +++ b/rest/trusthub/v1/supporting_document_types.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific Supporting Document Type Instance. @@ -64,7 +64,10 @@ func (params *ListSupportingDocumentTypeParams) SetLimit(Limit int) *ListSupport } // Retrieve a single page of SupportingDocumentType records from the API. Request is executed immediately. -func (c *ApiService) PageSupportingDocumentType(params *ListSupportingDocumentTypeParams, pageToken, pageNumber string) (*ListSupportingDocumentTypeResponse, error) { +func (c *ApiService) PageSupportingDocumentType( + params *ListSupportingDocumentTypeParams, + pageToken, pageNumber string, +) (*ListSupportingDocumentTypeResponse, error) { path := "/v1/SupportingDocumentTypes" data := url.Values{} @@ -134,7 +137,12 @@ func (c *ApiService) StreamSupportingDocumentType(params *ListSupportingDocument return recordChannel, errorChannel } -func (c *ApiService) streamSupportingDocumentType(response *ListSupportingDocumentTypeResponse, params *ListSupportingDocumentTypeParams, recordChannel chan TrusthubV1SupportingDocumentType, errorChannel chan error) { +func (c *ApiService) streamSupportingDocumentType( + response *ListSupportingDocumentTypeResponse, + params *ListSupportingDocumentTypeParams, + recordChannel chan TrusthubV1SupportingDocumentType, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/supporting_documents.go b/rest/trusthub/v1/supporting_documents.go index ac2e78c0b..c6966bac5 100644 --- a/rest/trusthub/v1/supporting_documents.go +++ b/rest/trusthub/v1/supporting_documents.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSupportingDocument' @@ -143,7 +143,10 @@ func (params *ListSupportingDocumentParams) SetLimit(Limit int) *ListSupportingD } // Retrieve a single page of SupportingDocument records from the API. Request is executed immediately. -func (c *ApiService) PageSupportingDocument(params *ListSupportingDocumentParams, pageToken, pageNumber string) (*ListSupportingDocumentResponse, error) { +func (c *ApiService) PageSupportingDocument( + params *ListSupportingDocumentParams, + pageToken, pageNumber string, +) (*ListSupportingDocumentResponse, error) { path := "/v1/SupportingDocuments" data := url.Values{} @@ -213,7 +216,12 @@ func (c *ApiService) StreamSupportingDocument(params *ListSupportingDocumentPara return recordChannel, errorChannel } -func (c *ApiService) streamSupportingDocument(response *ListSupportingDocumentResponse, params *ListSupportingDocumentParams, recordChannel chan TrusthubV1SupportingDocument, errorChannel chan error) { +func (c *ApiService) streamSupportingDocument( + response *ListSupportingDocumentResponse, + params *ListSupportingDocumentParams, + recordChannel chan TrusthubV1SupportingDocument, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -279,7 +287,10 @@ func (params *UpdateSupportingDocumentParams) SetAttributes(Attributes interface } // Update an existing Supporting Document. -func (c *ApiService) UpdateSupportingDocument(Sid string, params *UpdateSupportingDocumentParams) (*TrusthubV1SupportingDocument, error) { +func (c *ApiService) UpdateSupportingDocument( + Sid string, + params *UpdateSupportingDocumentParams, +) (*TrusthubV1SupportingDocument, error) { path := "/v1/SupportingDocuments/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trusthub/v1/trust_products.go b/rest/trusthub/v1/trust_products.go index a916a760e..df533bd20 100644 --- a/rest/trusthub/v1/trust_products.go +++ b/rest/trusthub/v1/trust_products.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTrustProduct' @@ -164,7 +164,10 @@ func (params *ListTrustProductParams) SetLimit(Limit int) *ListTrustProductParam } // Retrieve a single page of TrustProduct records from the API. Request is executed immediately. -func (c *ApiService) PageTrustProduct(params *ListTrustProductParams, pageToken, pageNumber string) (*ListTrustProductResponse, error) { +func (c *ApiService) PageTrustProduct( + params *ListTrustProductParams, + pageToken, pageNumber string, +) (*ListTrustProductResponse, error) { path := "/v1/TrustProducts" data := url.Values{} @@ -243,7 +246,12 @@ func (c *ApiService) StreamTrustProduct(params *ListTrustProductParams) (chan Tr return recordChannel, errorChannel } -func (c *ApiService) streamTrustProduct(response *ListTrustProductResponse, params *ListTrustProductParams, recordChannel chan TrusthubV1TrustProduct, errorChannel chan error) { +func (c *ApiService) streamTrustProduct( + response *ListTrustProductResponse, + params *ListTrustProductParams, + recordChannel chan TrusthubV1TrustProduct, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go b/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go index c90bc4ca0..4503e0ffc 100644 --- a/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go +++ b/rest/trusthub/v1/trust_products_channel_endpoint_assignments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTrustProductChannelEndpointAssignment' @@ -41,7 +41,10 @@ func (params *CreateTrustProductChannelEndpointAssignmentParams) SetChannelEndpo } // Create a new Assigned Item. -func (c *ApiService) CreateTrustProductChannelEndpointAssignment(TrustProductSid string, params *CreateTrustProductChannelEndpointAssignmentParams) (*TrusthubV1TrustProductChannelEndpointAssignment, error) { +func (c *ApiService) CreateTrustProductChannelEndpointAssignment( + TrustProductSid string, + params *CreateTrustProductChannelEndpointAssignmentParams, +) (*TrusthubV1TrustProductChannelEndpointAssignment, error) { path := "/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -90,7 +93,10 @@ func (c *ApiService) DeleteTrustProductChannelEndpointAssignment(TrustProductSid } // Fetch specific Assigned Item Instance. -func (c *ApiService) FetchTrustProductChannelEndpointAssignment(TrustProductSid string, Sid string) (*TrusthubV1TrustProductChannelEndpointAssignment, error) { +func (c *ApiService) FetchTrustProductChannelEndpointAssignment( + TrustProductSid string, + Sid string, +) (*TrusthubV1TrustProductChannelEndpointAssignment, error) { path := "/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -143,7 +149,11 @@ func (params *ListTrustProductChannelEndpointAssignmentParams) SetLimit(Limit in } // Retrieve a single page of TrustProductChannelEndpointAssignment records from the API. Request is executed immediately. -func (c *ApiService) PageTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams, pageToken, pageNumber string) (*ListTrustProductChannelEndpointAssignmentResponse, error) { +func (c *ApiService) PageTrustProductChannelEndpointAssignment( + TrustProductSid string, + params *ListTrustProductChannelEndpointAssignmentParams, + pageToken, pageNumber string, +) (*ListTrustProductChannelEndpointAssignmentResponse, error) { path := "/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -184,7 +194,10 @@ func (c *ApiService) PageTrustProductChannelEndpointAssignment(TrustProductSid s } // Lists TrustProductChannelEndpointAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams) ([]TrusthubV1TrustProductChannelEndpointAssignment, error) { +func (c *ApiService) ListTrustProductChannelEndpointAssignment( + TrustProductSid string, + params *ListTrustProductChannelEndpointAssignmentParams, +) ([]TrusthubV1TrustProductChannelEndpointAssignment, error) { response, errors := c.StreamTrustProductChannelEndpointAssignment(TrustProductSid, params) records := make([]TrusthubV1TrustProductChannelEndpointAssignment, 0) @@ -200,7 +213,10 @@ func (c *ApiService) ListTrustProductChannelEndpointAssignment(TrustProductSid s } // Streams TrustProductChannelEndpointAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTrustProductChannelEndpointAssignment(TrustProductSid string, params *ListTrustProductChannelEndpointAssignmentParams) (chan TrusthubV1TrustProductChannelEndpointAssignment, chan error) { +func (c *ApiService) StreamTrustProductChannelEndpointAssignment( + TrustProductSid string, + params *ListTrustProductChannelEndpointAssignmentParams, +) (chan TrusthubV1TrustProductChannelEndpointAssignment, chan error) { if params == nil { params = &ListTrustProductChannelEndpointAssignmentParams{} } @@ -221,7 +237,12 @@ func (c *ApiService) StreamTrustProductChannelEndpointAssignment(TrustProductSid return recordChannel, errorChannel } -func (c *ApiService) streamTrustProductChannelEndpointAssignment(response *ListTrustProductChannelEndpointAssignmentResponse, params *ListTrustProductChannelEndpointAssignmentParams, recordChannel chan TrusthubV1TrustProductChannelEndpointAssignment, errorChannel chan error) { +func (c *ApiService) streamTrustProductChannelEndpointAssignment( + response *ListTrustProductChannelEndpointAssignmentResponse, + params *ListTrustProductChannelEndpointAssignmentParams, + recordChannel chan TrusthubV1TrustProductChannelEndpointAssignment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/trust_products_entity_assignments.go b/rest/trusthub/v1/trust_products_entity_assignments.go index 114b930bb..74623cc25 100644 --- a/rest/trusthub/v1/trust_products_entity_assignments.go +++ b/rest/trusthub/v1/trust_products_entity_assignments.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTrustProductEntityAssignment' @@ -35,7 +35,10 @@ func (params *CreateTrustProductEntityAssignmentParams) SetObjectSid(ObjectSid s } // Create a new Assigned Item. -func (c *ApiService) CreateTrustProductEntityAssignment(TrustProductSid string, params *CreateTrustProductEntityAssignmentParams) (*TrusthubV1TrustProductEntityAssignment, error) { +func (c *ApiService) CreateTrustProductEntityAssignment( + TrustProductSid string, + params *CreateTrustProductEntityAssignmentParams, +) (*TrusthubV1TrustProductEntityAssignment, error) { path := "/v1/TrustProducts/{TrustProductSid}/EntityAssignments" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -81,7 +84,10 @@ func (c *ApiService) DeleteTrustProductEntityAssignment(TrustProductSid string, } // Fetch specific Assigned Item Instance. -func (c *ApiService) FetchTrustProductEntityAssignment(TrustProductSid string, Sid string) (*TrusthubV1TrustProductEntityAssignment, error) { +func (c *ApiService) FetchTrustProductEntityAssignment( + TrustProductSid string, + Sid string, +) (*TrusthubV1TrustProductEntityAssignment, error) { path := "/v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -128,7 +134,11 @@ func (params *ListTrustProductEntityAssignmentParams) SetLimit(Limit int) *ListT } // Retrieve a single page of TrustProductEntityAssignment records from the API. Request is executed immediately. -func (c *ApiService) PageTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams, pageToken, pageNumber string) (*ListTrustProductEntityAssignmentResponse, error) { +func (c *ApiService) PageTrustProductEntityAssignment( + TrustProductSid string, + params *ListTrustProductEntityAssignmentParams, + pageToken, pageNumber string, +) (*ListTrustProductEntityAssignmentResponse, error) { path := "/v1/TrustProducts/{TrustProductSid}/EntityAssignments" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -166,7 +176,10 @@ func (c *ApiService) PageTrustProductEntityAssignment(TrustProductSid string, pa } // Lists TrustProductEntityAssignment records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams) ([]TrusthubV1TrustProductEntityAssignment, error) { +func (c *ApiService) ListTrustProductEntityAssignment( + TrustProductSid string, + params *ListTrustProductEntityAssignmentParams, +) ([]TrusthubV1TrustProductEntityAssignment, error) { response, errors := c.StreamTrustProductEntityAssignment(TrustProductSid, params) records := make([]TrusthubV1TrustProductEntityAssignment, 0) @@ -182,7 +195,10 @@ func (c *ApiService) ListTrustProductEntityAssignment(TrustProductSid string, pa } // Streams TrustProductEntityAssignment records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTrustProductEntityAssignment(TrustProductSid string, params *ListTrustProductEntityAssignmentParams) (chan TrusthubV1TrustProductEntityAssignment, chan error) { +func (c *ApiService) StreamTrustProductEntityAssignment( + TrustProductSid string, + params *ListTrustProductEntityAssignmentParams, +) (chan TrusthubV1TrustProductEntityAssignment, chan error) { if params == nil { params = &ListTrustProductEntityAssignmentParams{} } @@ -203,7 +219,12 @@ func (c *ApiService) StreamTrustProductEntityAssignment(TrustProductSid string, return recordChannel, errorChannel } -func (c *ApiService) streamTrustProductEntityAssignment(response *ListTrustProductEntityAssignmentResponse, params *ListTrustProductEntityAssignmentParams, recordChannel chan TrusthubV1TrustProductEntityAssignment, errorChannel chan error) { +func (c *ApiService) streamTrustProductEntityAssignment( + response *ListTrustProductEntityAssignmentResponse, + params *ListTrustProductEntityAssignmentParams, + recordChannel chan TrusthubV1TrustProductEntityAssignment, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/trusthub/v1/trust_products_evaluations.go b/rest/trusthub/v1/trust_products_evaluations.go index 652c6e9b0..10ce9c29a 100644 --- a/rest/trusthub/v1/trust_products_evaluations.go +++ b/rest/trusthub/v1/trust_products_evaluations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateTrustProductEvaluation' @@ -35,7 +35,10 @@ func (params *CreateTrustProductEvaluationParams) SetPolicySid(PolicySid string) } // Create a new Evaluation -func (c *ApiService) CreateTrustProductEvaluation(TrustProductSid string, params *CreateTrustProductEvaluationParams) (*TrusthubV1TrustProductEvaluation, error) { +func (c *ApiService) CreateTrustProductEvaluation( + TrustProductSid string, + params *CreateTrustProductEvaluationParams, +) (*TrusthubV1TrustProductEvaluation, error) { path := "/v1/TrustProducts/{TrustProductSid}/Evaluations" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -62,7 +65,10 @@ func (c *ApiService) CreateTrustProductEvaluation(TrustProductSid string, params } // Fetch specific Evaluation Instance. -func (c *ApiService) FetchTrustProductEvaluation(TrustProductSid string, Sid string) (*TrusthubV1TrustProductEvaluation, error) { +func (c *ApiService) FetchTrustProductEvaluation( + TrustProductSid string, + Sid string, +) (*TrusthubV1TrustProductEvaluation, error) { path := "/v1/TrustProducts/{TrustProductSid}/Evaluations/{Sid}" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -103,7 +109,11 @@ func (params *ListTrustProductEvaluationParams) SetLimit(Limit int) *ListTrustPr } // Retrieve a single page of TrustProductEvaluation records from the API. Request is executed immediately. -func (c *ApiService) PageTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams, pageToken, pageNumber string) (*ListTrustProductEvaluationResponse, error) { +func (c *ApiService) PageTrustProductEvaluation( + TrustProductSid string, + params *ListTrustProductEvaluationParams, + pageToken, pageNumber string, +) (*ListTrustProductEvaluationResponse, error) { path := "/v1/TrustProducts/{TrustProductSid}/Evaluations" path = strings.Replace(path, "{"+"TrustProductSid"+"}", TrustProductSid, -1) @@ -138,7 +148,10 @@ func (c *ApiService) PageTrustProductEvaluation(TrustProductSid string, params * } // Lists TrustProductEvaluation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams) ([]TrusthubV1TrustProductEvaluation, error) { +func (c *ApiService) ListTrustProductEvaluation( + TrustProductSid string, + params *ListTrustProductEvaluationParams, +) ([]TrusthubV1TrustProductEvaluation, error) { response, errors := c.StreamTrustProductEvaluation(TrustProductSid, params) records := make([]TrusthubV1TrustProductEvaluation, 0) @@ -154,7 +167,10 @@ func (c *ApiService) ListTrustProductEvaluation(TrustProductSid string, params * } // Streams TrustProductEvaluation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamTrustProductEvaluation(TrustProductSid string, params *ListTrustProductEvaluationParams) (chan TrusthubV1TrustProductEvaluation, chan error) { +func (c *ApiService) StreamTrustProductEvaluation( + TrustProductSid string, + params *ListTrustProductEvaluationParams, +) (chan TrusthubV1TrustProductEvaluation, chan error) { if params == nil { params = &ListTrustProductEvaluationParams{} } @@ -175,7 +191,12 @@ func (c *ApiService) StreamTrustProductEvaluation(TrustProductSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamTrustProductEvaluation(response *ListTrustProductEvaluationResponse, params *ListTrustProductEvaluationParams, recordChannel chan TrusthubV1TrustProductEvaluation, errorChannel chan error) { +func (c *ApiService) streamTrustProductEvaluation( + response *ListTrustProductEvaluationResponse, + params *ListTrustProductEvaluationParams, + recordChannel chan TrusthubV1TrustProductEvaluation, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/verify/v2/api_service.go b/rest/verify/v2/api_service.go index fa0c14223..23a3a21bf 100644 --- a/rest/verify/v2/api_service.go +++ b/rest/verify/v2/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/verify/v2/attempts.go b/rest/verify/v2/attempts.go index 426ad0dcc..0f0449ced 100644 --- a/rest/verify/v2/attempts.go +++ b/rest/verify/v2/attempts.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch a specific verification attempt. @@ -113,7 +113,10 @@ func (params *ListVerificationAttemptParams) SetLimit(Limit int) *ListVerificati } // Retrieve a single page of VerificationAttempt records from the API. Request is executed immediately. -func (c *ApiService) PageVerificationAttempt(params *ListVerificationAttemptParams, pageToken, pageNumber string) (*ListVerificationAttemptResponse, error) { +func (c *ApiService) PageVerificationAttempt( + params *ListVerificationAttemptParams, + pageToken, pageNumber string, +) (*ListVerificationAttemptResponse, error) { path := "/v2/Attempts" data := url.Values{} @@ -207,7 +210,12 @@ func (c *ApiService) StreamVerificationAttempt(params *ListVerificationAttemptPa return recordChannel, errorChannel } -func (c *ApiService) streamVerificationAttempt(response *ListVerificationAttemptResponse, params *ListVerificationAttemptParams, recordChannel chan VerifyV2VerificationAttempt, errorChannel chan error) { +func (c *ApiService) streamVerificationAttempt( + response *ListVerificationAttemptResponse, + params *ListVerificationAttemptParams, + recordChannel chan VerifyV2VerificationAttempt, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/verify/v2/model_verify_v2_verification_attempts_summary.go b/rest/verify/v2/model_verify_v2_verification_attempts_summary.go index 10f6793d0..88a8159fa 100644 --- a/rest/verify/v2/model_verify_v2_verification_attempts_summary.go +++ b/rest/verify/v2/model_verify_v2_verification_attempts_summary.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // VerifyV2VerificationAttemptsSummary struct for VerifyV2VerificationAttemptsSummary diff --git a/rest/verify/v2/services.go b/rest/verify/v2/services.go index 97ba28643..95db9a5da 100644 --- a/rest/verify/v2/services.go +++ b/rest/verify/v2/services.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateService' @@ -290,7 +290,10 @@ func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams { } // Retrieve a single page of Service records from the API. Request is executed immediately. -func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error) { +func (c *ApiService) PageService( + params *ListServiceParams, + pageToken, pageNumber string, +) (*ListServiceResponse, error) { path := "/v2/Services" data := url.Values{} @@ -360,7 +363,12 @@ func (c *ApiService) StreamService(params *ListServiceParams) (chan VerifyV2Serv return recordChannel, errorChannel } -func (c *ApiService) streamService(response *ListServiceResponse, params *ListServiceParams, recordChannel chan VerifyV2Service, errorChannel chan error) { +func (c *ApiService) streamService( + response *ListServiceResponse, + params *ListServiceParams, + recordChannel chan VerifyV2Service, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/verify/v2/services_entities.go b/rest/verify/v2/services_entities.go index 4f5ce3457..4d89a79ea 100644 --- a/rest/verify/v2/services_entities.go +++ b/rest/verify/v2/services_entities.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateEntity' @@ -122,7 +122,11 @@ func (params *ListEntityParams) SetLimit(Limit int) *ListEntityParams { } // Retrieve a single page of Entity records from the API. Request is executed immediately. -func (c *ApiService) PageEntity(ServiceSid string, params *ListEntityParams, pageToken, pageNumber string) (*ListEntityResponse, error) { +func (c *ApiService) PageEntity( + ServiceSid string, + params *ListEntityParams, + pageToken, pageNumber string, +) (*ListEntityResponse, error) { path := "/v2/Services/{ServiceSid}/Entities" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -194,7 +198,12 @@ func (c *ApiService) StreamEntity(ServiceSid string, params *ListEntityParams) ( return recordChannel, errorChannel } -func (c *ApiService) streamEntity(response *ListEntityResponse, params *ListEntityParams, recordChannel chan VerifyV2Entity, errorChannel chan error) { +func (c *ApiService) streamEntity( + response *ListEntityResponse, + params *ListEntityParams, + recordChannel chan VerifyV2Entity, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/verify/v2/services_entities_challenges.go b/rest/verify/v2/services_entities_challenges.go index 9b200d5e4..a55104b44 100644 --- a/rest/verify/v2/services_entities_challenges.go +++ b/rest/verify/v2/services_entities_challenges.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateChallenge' @@ -66,7 +66,11 @@ func (params *CreateChallengeParams) SetAuthPayload(AuthPayload string) *CreateC } // Create a new Challenge for the Factor -func (c *ApiService) CreateChallenge(ServiceSid string, Identity string, params *CreateChallengeParams) (*VerifyV2Challenge, error) { +func (c *ApiService) CreateChallenge( + ServiceSid string, + Identity string, + params *CreateChallengeParams, +) (*VerifyV2Challenge, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) @@ -183,7 +187,12 @@ func (params *ListChallengeParams) SetLimit(Limit int) *ListChallengeParams { } // Retrieve a single page of Challenge records from the API. Request is executed immediately. -func (c *ApiService) PageChallenge(ServiceSid string, Identity string, params *ListChallengeParams, pageToken, pageNumber string) (*ListChallengeResponse, error) { +func (c *ApiService) PageChallenge( + ServiceSid string, + Identity string, + params *ListChallengeParams, + pageToken, pageNumber string, +) (*ListChallengeResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -228,7 +237,11 @@ func (c *ApiService) PageChallenge(ServiceSid string, Identity string, params *L } // Lists Challenge records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) ([]VerifyV2Challenge, error) { +func (c *ApiService) ListChallenge( + ServiceSid string, + Identity string, + params *ListChallengeParams, +) ([]VerifyV2Challenge, error) { response, errors := c.StreamChallenge(ServiceSid, Identity, params) records := make([]VerifyV2Challenge, 0) @@ -244,7 +257,11 @@ func (c *ApiService) ListChallenge(ServiceSid string, Identity string, params *L } // Streams Challenge records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (chan VerifyV2Challenge, chan error) { +func (c *ApiService) StreamChallenge( + ServiceSid string, + Identity string, + params *ListChallengeParams, +) (chan VerifyV2Challenge, chan error) { if params == nil { params = &ListChallengeParams{} } @@ -265,7 +282,12 @@ func (c *ApiService) StreamChallenge(ServiceSid string, Identity string, params return recordChannel, errorChannel } -func (c *ApiService) streamChallenge(response *ListChallengeResponse, params *ListChallengeParams, recordChannel chan VerifyV2Challenge, errorChannel chan error) { +func (c *ApiService) streamChallenge( + response *ListChallengeResponse, + params *ListChallengeParams, + recordChannel chan VerifyV2Challenge, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -331,7 +353,12 @@ func (params *UpdateChallengeParams) SetMetadata(Metadata interface{}) *UpdateCh } // Verify a specific Challenge. -func (c *ApiService) UpdateChallenge(ServiceSid string, Identity string, Sid string, params *UpdateChallengeParams) (*VerifyV2Challenge, error) { +func (c *ApiService) UpdateChallenge( + ServiceSid string, + Identity string, + Sid string, + params *UpdateChallengeParams, +) (*VerifyV2Challenge, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) diff --git a/rest/verify/v2/services_entities_factors.go b/rest/verify/v2/services_entities_factors.go index 089255ec7..3a95269a5 100644 --- a/rest/verify/v2/services_entities_factors.go +++ b/rest/verify/v2/services_entities_factors.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateNewFactor' @@ -113,7 +113,11 @@ func (params *CreateNewFactorParams) SetMetadata(Metadata interface{}) *CreateNe } // Create a new Factor for the Entity -func (c *ApiService) CreateNewFactor(ServiceSid string, Identity string, params *CreateNewFactorParams) (*VerifyV2NewFactor, error) { +func (c *ApiService) CreateNewFactor( + ServiceSid string, + Identity string, + params *CreateNewFactorParams, +) (*VerifyV2NewFactor, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) @@ -248,7 +252,12 @@ func (params *ListFactorParams) SetLimit(Limit int) *ListFactorParams { } // Retrieve a single page of Factor records from the API. Request is executed immediately. -func (c *ApiService) PageFactor(ServiceSid string, Identity string, params *ListFactorParams, pageToken, pageNumber string) (*ListFactorResponse, error) { +func (c *ApiService) PageFactor( + ServiceSid string, + Identity string, + params *ListFactorParams, + pageToken, pageNumber string, +) (*ListFactorResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -284,7 +293,11 @@ func (c *ApiService) PageFactor(ServiceSid string, Identity string, params *List } // Lists Factor records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) ([]VerifyV2Factor, error) { +func (c *ApiService) ListFactor( + ServiceSid string, + Identity string, + params *ListFactorParams, +) ([]VerifyV2Factor, error) { response, errors := c.StreamFactor(ServiceSid, Identity, params) records := make([]VerifyV2Factor, 0) @@ -300,7 +313,11 @@ func (c *ApiService) ListFactor(ServiceSid string, Identity string, params *List } // Streams Factor records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamFactor(ServiceSid string, Identity string, params *ListFactorParams) (chan VerifyV2Factor, chan error) { +func (c *ApiService) StreamFactor( + ServiceSid string, + Identity string, + params *ListFactorParams, +) (chan VerifyV2Factor, chan error) { if params == nil { params = &ListFactorParams{} } @@ -321,7 +338,12 @@ func (c *ApiService) StreamFactor(ServiceSid string, Identity string, params *Li return recordChannel, errorChannel } -func (c *ApiService) streamFactor(response *ListFactorResponse, params *ListFactorParams, recordChannel chan VerifyV2Factor, errorChannel chan error) { +func (c *ApiService) streamFactor( + response *ListFactorResponse, + params *ListFactorParams, + recordChannel chan VerifyV2Factor, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -429,7 +451,12 @@ func (params *UpdateFactorParams) SetConfigNotificationPlatform(ConfigNotificati } // Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. -func (c *ApiService) UpdateFactor(ServiceSid string, Identity string, Sid string, params *UpdateFactorParams) (*VerifyV2Factor, error) { +func (c *ApiService) UpdateFactor( + ServiceSid string, + Identity string, + Sid string, + params *UpdateFactorParams, +) (*VerifyV2Factor, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) diff --git a/rest/verify/v2/services_messaging_configurations.go b/rest/verify/v2/services_messaging_configurations.go index 06b8f916a..24e61f2f8 100644 --- a/rest/verify/v2/services_messaging_configurations.go +++ b/rest/verify/v2/services_messaging_configurations.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateMessagingConfiguration' @@ -41,7 +41,10 @@ func (params *CreateMessagingConfigurationParams) SetMessagingServiceSid(Messagi } // Create a new MessagingConfiguration for a service. -func (c *ApiService) CreateMessagingConfiguration(ServiceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error) { +func (c *ApiService) CreateMessagingConfiguration( + ServiceSid string, + params *CreateMessagingConfigurationParams, +) (*VerifyV2MessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -90,7 +93,10 @@ func (c *ApiService) DeleteMessagingConfiguration(ServiceSid string, Country str } // Fetch a specific MessagingConfiguration. -func (c *ApiService) FetchMessagingConfiguration(ServiceSid string, Country string) (*VerifyV2MessagingConfiguration, error) { +func (c *ApiService) FetchMessagingConfiguration( + ServiceSid string, + Country string, +) (*VerifyV2MessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Country"+"}", Country, -1) @@ -131,7 +137,11 @@ func (params *ListMessagingConfigurationParams) SetLimit(Limit int) *ListMessagi } // Retrieve a single page of MessagingConfiguration records from the API. Request is executed immediately. -func (c *ApiService) PageMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams, pageToken, pageNumber string) (*ListMessagingConfigurationResponse, error) { +func (c *ApiService) PageMessagingConfiguration( + ServiceSid string, + params *ListMessagingConfigurationParams, + pageToken, pageNumber string, +) (*ListMessagingConfigurationResponse, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -166,7 +176,10 @@ func (c *ApiService) PageMessagingConfiguration(ServiceSid string, params *ListM } // Lists MessagingConfiguration records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) ([]VerifyV2MessagingConfiguration, error) { +func (c *ApiService) ListMessagingConfiguration( + ServiceSid string, + params *ListMessagingConfigurationParams, +) ([]VerifyV2MessagingConfiguration, error) { response, errors := c.StreamMessagingConfiguration(ServiceSid, params) records := make([]VerifyV2MessagingConfiguration, 0) @@ -182,7 +195,10 @@ func (c *ApiService) ListMessagingConfiguration(ServiceSid string, params *ListM } // Streams MessagingConfiguration records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (chan VerifyV2MessagingConfiguration, chan error) { +func (c *ApiService) StreamMessagingConfiguration( + ServiceSid string, + params *ListMessagingConfigurationParams, +) (chan VerifyV2MessagingConfiguration, chan error) { if params == nil { params = &ListMessagingConfigurationParams{} } @@ -203,7 +219,12 @@ func (c *ApiService) StreamMessagingConfiguration(ServiceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamMessagingConfiguration(response *ListMessagingConfigurationResponse, params *ListMessagingConfigurationParams, recordChannel chan VerifyV2MessagingConfiguration, errorChannel chan error) { +func (c *ApiService) streamMessagingConfiguration( + response *ListMessagingConfigurationResponse, + params *ListMessagingConfigurationParams, + recordChannel chan VerifyV2MessagingConfiguration, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +284,11 @@ func (params *UpdateMessagingConfigurationParams) SetMessagingServiceSid(Messagi } // Update a specific MessagingConfiguration -func (c *ApiService) UpdateMessagingConfiguration(ServiceSid string, Country string, params *UpdateMessagingConfigurationParams) (*VerifyV2MessagingConfiguration, error) { +func (c *ApiService) UpdateMessagingConfiguration( + ServiceSid string, + Country string, + params *UpdateMessagingConfigurationParams, +) (*VerifyV2MessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Country"+"}", Country, -1) diff --git a/rest/verify/v2/services_rate_limits.go b/rest/verify/v2/services_rate_limits.go index 82c83ac73..74591d5f8 100644 --- a/rest/verify/v2/services_rate_limits.go +++ b/rest/verify/v2/services_rate_limits.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRateLimit' @@ -131,7 +131,11 @@ func (params *ListRateLimitParams) SetLimit(Limit int) *ListRateLimitParams { } // Retrieve a single page of RateLimit records from the API. Request is executed immediately. -func (c *ApiService) PageRateLimit(ServiceSid string, params *ListRateLimitParams, pageToken, pageNumber string) (*ListRateLimitResponse, error) { +func (c *ApiService) PageRateLimit( + ServiceSid string, + params *ListRateLimitParams, + pageToken, pageNumber string, +) (*ListRateLimitResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -182,7 +186,10 @@ func (c *ApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParam } // Streams RateLimit records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRateLimit(ServiceSid string, params *ListRateLimitParams) (chan VerifyV2RateLimit, chan error) { +func (c *ApiService) StreamRateLimit( + ServiceSid string, + params *ListRateLimitParams, +) (chan VerifyV2RateLimit, chan error) { if params == nil { params = &ListRateLimitParams{} } @@ -203,7 +210,12 @@ func (c *ApiService) StreamRateLimit(ServiceSid string, params *ListRateLimitPar return recordChannel, errorChannel } -func (c *ApiService) streamRateLimit(response *ListRateLimitResponse, params *ListRateLimitParams, recordChannel chan VerifyV2RateLimit, errorChannel chan error) { +func (c *ApiService) streamRateLimit( + response *ListRateLimitResponse, + params *ListRateLimitParams, + recordChannel chan VerifyV2RateLimit, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -263,7 +275,11 @@ func (params *UpdateRateLimitParams) SetDescription(Description string) *UpdateR } // Update a specific Rate Limit. -func (c *ApiService) UpdateRateLimit(ServiceSid string, Sid string, params *UpdateRateLimitParams) (*VerifyV2RateLimit, error) { +func (c *ApiService) UpdateRateLimit( + ServiceSid string, + Sid string, + params *UpdateRateLimitParams, +) (*VerifyV2RateLimit, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/verify/v2/services_rate_limits_buckets.go b/rest/verify/v2/services_rate_limits_buckets.go index 1eb51fac3..15287560b 100644 --- a/rest/verify/v2/services_rate_limits_buckets.go +++ b/rest/verify/v2/services_rate_limits_buckets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateBucket' @@ -41,7 +41,11 @@ func (params *CreateBucketParams) SetInterval(Interval int) *CreateBucketParams } // Create a new Bucket for a Rate Limit -func (c *ApiService) CreateBucket(ServiceSid string, RateLimitSid string, params *CreateBucketParams) (*VerifyV2Bucket, error) { +func (c *ApiService) CreateBucket( + ServiceSid string, + RateLimitSid string, + params *CreateBucketParams, +) (*VerifyV2Bucket, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) @@ -134,7 +138,12 @@ func (params *ListBucketParams) SetLimit(Limit int) *ListBucketParams { } // Retrieve a single page of Bucket records from the API. Request is executed immediately. -func (c *ApiService) PageBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams, pageToken, pageNumber string) (*ListBucketResponse, error) { +func (c *ApiService) PageBucket( + ServiceSid string, + RateLimitSid string, + params *ListBucketParams, + pageToken, pageNumber string, +) (*ListBucketResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -170,7 +179,11 @@ func (c *ApiService) PageBucket(ServiceSid string, RateLimitSid string, params * } // Lists Bucket records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) ([]VerifyV2Bucket, error) { +func (c *ApiService) ListBucket( + ServiceSid string, + RateLimitSid string, + params *ListBucketParams, +) ([]VerifyV2Bucket, error) { response, errors := c.StreamBucket(ServiceSid, RateLimitSid, params) records := make([]VerifyV2Bucket, 0) @@ -186,7 +199,11 @@ func (c *ApiService) ListBucket(ServiceSid string, RateLimitSid string, params * } // Streams Bucket records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (chan VerifyV2Bucket, chan error) { +func (c *ApiService) StreamBucket( + ServiceSid string, + RateLimitSid string, + params *ListBucketParams, +) (chan VerifyV2Bucket, chan error) { if params == nil { params = &ListBucketParams{} } @@ -207,7 +224,12 @@ func (c *ApiService) StreamBucket(ServiceSid string, RateLimitSid string, params return recordChannel, errorChannel } -func (c *ApiService) streamBucket(response *ListBucketResponse, params *ListBucketParams, recordChannel chan VerifyV2Bucket, errorChannel chan error) { +func (c *ApiService) streamBucket( + response *ListBucketResponse, + params *ListBucketParams, + recordChannel chan VerifyV2Bucket, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -273,7 +295,12 @@ func (params *UpdateBucketParams) SetInterval(Interval int) *UpdateBucketParams } // Update a specific Bucket. -func (c *ApiService) UpdateBucket(ServiceSid string, RateLimitSid string, Sid string, params *UpdateBucketParams) (*VerifyV2Bucket, error) { +func (c *ApiService) UpdateBucket( + ServiceSid string, + RateLimitSid string, + Sid string, + params *UpdateBucketParams, +) (*VerifyV2Bucket, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) diff --git a/rest/verify/v2/services_webhooks.go b/rest/verify/v2/services_webhooks.go index 46dd9318c..b91b48869 100644 --- a/rest/verify/v2/services_webhooks.go +++ b/rest/verify/v2/services_webhooks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateWebhook' @@ -160,7 +160,11 @@ func (params *ListWebhookParams) SetLimit(Limit int) *ListWebhookParams { } // Retrieve a single page of Webhook records from the API. Request is executed immediately. -func (c *ApiService) PageWebhook(ServiceSid string, params *ListWebhookParams, pageToken, pageNumber string) (*ListWebhookResponse, error) { +func (c *ApiService) PageWebhook( + ServiceSid string, + params *ListWebhookParams, + pageToken, pageNumber string, +) (*ListWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -232,7 +236,12 @@ func (c *ApiService) StreamWebhook(ServiceSid string, params *ListWebhookParams) return recordChannel, errorChannel } -func (c *ApiService) streamWebhook(response *ListWebhookResponse, params *ListWebhookParams, recordChannel chan VerifyV2Webhook, errorChannel chan error) { +func (c *ApiService) streamWebhook( + response *ListWebhookResponse, + params *ListWebhookParams, + recordChannel chan VerifyV2Webhook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -316,7 +325,11 @@ func (params *UpdateWebhookParams) SetVersion(Version string) *UpdateWebhookPara } // -func (c *ApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2Webhook, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/verify/v2/templates.go b/rest/verify/v2/templates.go index ef868baca..5afbcb3d1 100644 --- a/rest/verify/v2/templates.go +++ b/rest/verify/v2/templates.go @@ -19,7 +19,7 @@ import ( "fmt" "net/url" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListVerificationTemplate' @@ -46,7 +46,10 @@ func (params *ListVerificationTemplateParams) SetLimit(Limit int) *ListVerificat } // Retrieve a single page of VerificationTemplate records from the API. Request is executed immediately. -func (c *ApiService) PageVerificationTemplate(params *ListVerificationTemplateParams, pageToken, pageNumber string) (*ListVerificationTemplateResponse, error) { +func (c *ApiService) PageVerificationTemplate( + params *ListVerificationTemplateParams, + pageToken, pageNumber string, +) (*ListVerificationTemplateResponse, error) { path := "/v2/Templates" data := url.Values{} @@ -119,7 +122,12 @@ func (c *ApiService) StreamVerificationTemplate(params *ListVerificationTemplate return recordChannel, errorChannel } -func (c *ApiService) streamVerificationTemplate(response *ListVerificationTemplateResponse, params *ListVerificationTemplateParams, recordChannel chan VerifyV2VerificationTemplate, errorChannel chan error) { +func (c *ApiService) streamVerificationTemplate( + response *ListVerificationTemplateResponse, + params *ListVerificationTemplateParams, + recordChannel chan VerifyV2VerificationTemplate, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/api_service.go b/rest/video/v1/api_service.go index e5f66e599..12cfa2efe 100644 --- a/rest/video/v1/api_service.go +++ b/rest/video/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/video/v1/composition_hooks.go b/rest/video/v1/composition_hooks.go index a7a824e18..0dd164db7 100644 --- a/rest/video/v1/composition_hooks.go +++ b/rest/video/v1/composition_hooks.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCompositionHook' @@ -235,7 +235,10 @@ func (params *ListCompositionHookParams) SetLimit(Limit int) *ListCompositionHoo } // Retrieve a single page of CompositionHook records from the API. Request is executed immediately. -func (c *ApiService) PageCompositionHook(params *ListCompositionHookParams, pageToken, pageNumber string) (*ListCompositionHookResponse, error) { +func (c *ApiService) PageCompositionHook( + params *ListCompositionHookParams, + pageToken, pageNumber string, +) (*ListCompositionHookResponse, error) { path := "/v1/CompositionHooks" data := url.Values{} @@ -317,7 +320,12 @@ func (c *ApiService) StreamCompositionHook(params *ListCompositionHookParams) (c return recordChannel, errorChannel } -func (c *ApiService) streamCompositionHook(response *ListCompositionHookResponse, params *ListCompositionHookParams, recordChannel chan VideoV1CompositionHook, errorChannel chan error) { +func (c *ApiService) streamCompositionHook( + response *ListCompositionHookResponse, + params *ListCompositionHookParams, + recordChannel chan VideoV1CompositionHook, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -431,7 +439,10 @@ func (params *UpdateCompositionHookParams) SetStatusCallbackMethod(StatusCallbac } // -func (c *ApiService) UpdateCompositionHook(Sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { +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/compositions.go b/rest/video/v1/compositions.go index d0dce4ee9..3fed2f18e 100644 --- a/rest/video/v1/compositions.go +++ b/rest/video/v1/compositions.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateComposition' @@ -226,7 +226,10 @@ func (params *ListCompositionParams) SetLimit(Limit int) *ListCompositionParams } // Retrieve a single page of Composition records from the API. Request is executed immediately. -func (c *ApiService) PageComposition(params *ListCompositionParams, pageToken, pageNumber string) (*ListCompositionResponse, error) { +func (c *ApiService) PageComposition( + params *ListCompositionParams, + pageToken, pageNumber string, +) (*ListCompositionResponse, error) { path := "/v1/Compositions" data := url.Values{} @@ -308,7 +311,12 @@ func (c *ApiService) StreamComposition(params *ListCompositionParams) (chan Vide return recordChannel, errorChannel } -func (c *ApiService) streamComposition(response *ListCompositionResponse, params *ListCompositionParams, recordChannel chan VideoV1Composition, errorChannel chan error) { +func (c *ApiService) streamComposition( + response *ListCompositionResponse, + params *ListCompositionParams, + recordChannel chan VideoV1Composition, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/recordings.go b/rest/video/v1/recordings.go index fede4f40f..4c274a125 100644 --- a/rest/video/v1/recordings.go +++ b/rest/video/v1/recordings.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a Recording resource identified by a Recording SID. @@ -119,7 +119,10 @@ func (params *ListRecordingParams) SetLimit(Limit int) *ListRecordingParams { } // Retrieve a single page of Recording records from the API. Request is executed immediately. -func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageNumber string) (*ListRecordingResponse, error) { +func (c *ApiService) PageRecording( + params *ListRecordingParams, + pageToken, pageNumber string, +) (*ListRecordingResponse, error) { path := "/v1/Recordings" data := url.Values{} @@ -209,7 +212,12 @@ func (c *ApiService) StreamRecording(params *ListRecordingParams) (chan VideoV1R return recordChannel, errorChannel } -func (c *ApiService) streamRecording(response *ListRecordingResponse, params *ListRecordingParams, recordChannel chan VideoV1Recording, errorChannel chan error) { +func (c *ApiService) streamRecording( + response *ListRecordingResponse, + params *ListRecordingParams, + recordChannel chan VideoV1Recording, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/rooms.go b/rest/video/v1/rooms.go index 0ea1b2229..5cab08c94 100644 --- a/rest/video/v1/rooms.go +++ b/rest/video/v1/rooms.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRoom' @@ -342,7 +342,12 @@ func (c *ApiService) StreamRoom(params *ListRoomParams) (chan VideoV1Room, chan return recordChannel, errorChannel } -func (c *ApiService) streamRoom(response *ListRoomResponse, params *ListRoomParams, recordChannel chan VideoV1Room, errorChannel chan error) { +func (c *ApiService) streamRoom( + response *ListRoomResponse, + params *ListRoomParams, + recordChannel chan VideoV1Room, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/rooms_participants.go b/rest/video/v1/rooms_participants.go index af815d01e..5463a44e5 100644 --- a/rest/video/v1/rooms_participants.go +++ b/rest/video/v1/rooms_participants.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -90,7 +90,11 @@ func (params *ListRoomParticipantParams) SetLimit(Limit int) *ListRoomParticipan } // Retrieve a single page of RoomParticipant records from the API. Request is executed immediately. -func (c *ApiService) PageRoomParticipant(RoomSid string, params *ListRoomParticipantParams, pageToken, pageNumber string) (*ListRoomParticipantResponse, error) { +func (c *ApiService) PageRoomParticipant( + RoomSid string, + params *ListRoomParticipantParams, + pageToken, pageNumber string, +) (*ListRoomParticipantResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -137,7 +141,10 @@ func (c *ApiService) PageRoomParticipant(RoomSid string, params *ListRoomPartici } // Lists RoomParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRoomParticipant(RoomSid string, params *ListRoomParticipantParams) ([]VideoV1RoomParticipant, error) { +func (c *ApiService) ListRoomParticipant( + RoomSid string, + params *ListRoomParticipantParams, +) ([]VideoV1RoomParticipant, error) { response, errors := c.StreamRoomParticipant(RoomSid, params) records := make([]VideoV1RoomParticipant, 0) @@ -153,7 +160,10 @@ func (c *ApiService) ListRoomParticipant(RoomSid string, params *ListRoomPartici } // Streams RoomParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRoomParticipant(RoomSid string, params *ListRoomParticipantParams) (chan VideoV1RoomParticipant, chan error) { +func (c *ApiService) StreamRoomParticipant( + RoomSid string, + params *ListRoomParticipantParams, +) (chan VideoV1RoomParticipant, chan error) { if params == nil { params = &ListRoomParticipantParams{} } @@ -174,7 +184,12 @@ func (c *ApiService) StreamRoomParticipant(RoomSid string, params *ListRoomParti return recordChannel, errorChannel } -func (c *ApiService) streamRoomParticipant(response *ListRoomParticipantResponse, params *ListRoomParticipantParams, recordChannel chan VideoV1RoomParticipant, errorChannel chan error) { +func (c *ApiService) streamRoomParticipant( + response *ListRoomParticipantResponse, + params *ListRoomParticipantParams, + recordChannel chan VideoV1RoomParticipant, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -234,7 +249,11 @@ func (params *UpdateRoomParticipantParams) SetStatus(Status string) *UpdateRoomP } // -func (c *ApiService) UpdateRoomParticipant(RoomSid string, Sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomParticipant, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/video/v1/rooms_participants_published_tracks.go b/rest/video/v1/rooms_participants_published_tracks.go index 940564dc0..06e12b9c2 100644 --- a/rest/video/v1/rooms_participants_published_tracks.go +++ b/rest/video/v1/rooms_participants_published_tracks.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Returns a single Track resource represented by TrackName or SID. -func (c *ApiService) FetchRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, Sid string) (*VideoV1RoomParticipantPublishedTrack, error) { +func (c *ApiService) FetchRoomParticipantPublishedTrack( + RoomSid string, + ParticipantSid string, + Sid string, +) (*VideoV1RoomParticipantPublishedTrack, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -66,7 +70,12 @@ func (params *ListRoomParticipantPublishedTrackParams) SetLimit(Limit int) *List } // Retrieve a single page of RoomParticipantPublishedTrack records from the API. Request is executed immediately. -func (c *ApiService) PageRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams, pageToken, pageNumber string) (*ListRoomParticipantPublishedTrackResponse, error) { +func (c *ApiService) PageRoomParticipantPublishedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantPublishedTrackParams, + pageToken, pageNumber string, +) (*ListRoomParticipantPublishedTrackResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageRoomParticipantPublishedTrack(RoomSid string, Participa } // Lists RoomParticipantPublishedTrack records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) ([]VideoV1RoomParticipantPublishedTrack, error) { +func (c *ApiService) ListRoomParticipantPublishedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantPublishedTrackParams, +) ([]VideoV1RoomParticipantPublishedTrack, error) { response, errors := c.StreamRoomParticipantPublishedTrack(RoomSid, ParticipantSid, params) records := make([]VideoV1RoomParticipantPublishedTrack, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListRoomParticipantPublishedTrack(RoomSid string, Participa } // Streams RoomParticipantPublishedTrack records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) (chan VideoV1RoomParticipantPublishedTrack, chan error) { +func (c *ApiService) StreamRoomParticipantPublishedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantPublishedTrackParams, +) (chan VideoV1RoomParticipantPublishedTrack, chan error) { if params == nil { params = &ListRoomParticipantPublishedTrackParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamRoomParticipantPublishedTrack(RoomSid string, Partici return recordChannel, errorChannel } -func (c *ApiService) streamRoomParticipantPublishedTrack(response *ListRoomParticipantPublishedTrackResponse, params *ListRoomParticipantPublishedTrackParams, recordChannel chan VideoV1RoomParticipantPublishedTrack, errorChannel chan error) { +func (c *ApiService) streamRoomParticipantPublishedTrack( + response *ListRoomParticipantPublishedTrackResponse, + params *ListRoomParticipantPublishedTrackParams, + recordChannel chan VideoV1RoomParticipantPublishedTrack, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/rooms_participants_subscribed_tracks.go b/rest/video/v1/rooms_participants_subscribed_tracks.go index fa5525002..61e40a93b 100644 --- a/rest/video/v1/rooms_participants_subscribed_tracks.go +++ b/rest/video/v1/rooms_participants_subscribed_tracks.go @@ -20,11 +20,15 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Returns a single Track resource represented by `track_sid`. Note: This is one resource with the Video API that requires a SID, be Track Name on the subscriber side is not guaranteed to be unique. -func (c *ApiService) FetchRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, Sid string) (*VideoV1RoomParticipantSubscribedTrack, error) { +func (c *ApiService) FetchRoomParticipantSubscribedTrack( + RoomSid string, + ParticipantSid string, + Sid string, +) (*VideoV1RoomParticipantSubscribedTrack, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -66,7 +70,12 @@ func (params *ListRoomParticipantSubscribedTrackParams) SetLimit(Limit int) *Lis } // Retrieve a single page of RoomParticipantSubscribedTrack records from the API. Request is executed immediately. -func (c *ApiService) PageRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams, pageToken, pageNumber string) (*ListRoomParticipantSubscribedTrackResponse, error) { +func (c *ApiService) PageRoomParticipantSubscribedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantSubscribedTrackParams, + pageToken, pageNumber string, +) (*ListRoomParticipantSubscribedTrackResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -102,7 +111,11 @@ func (c *ApiService) PageRoomParticipantSubscribedTrack(RoomSid string, Particip } // Lists RoomParticipantSubscribedTrack records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams) ([]VideoV1RoomParticipantSubscribedTrack, error) { +func (c *ApiService) ListRoomParticipantSubscribedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantSubscribedTrackParams, +) ([]VideoV1RoomParticipantSubscribedTrack, error) { response, errors := c.StreamRoomParticipantSubscribedTrack(RoomSid, ParticipantSid, params) records := make([]VideoV1RoomParticipantSubscribedTrack, 0) @@ -118,7 +131,11 @@ func (c *ApiService) ListRoomParticipantSubscribedTrack(RoomSid string, Particip } // Streams RoomParticipantSubscribedTrack records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams) (chan VideoV1RoomParticipantSubscribedTrack, chan error) { +func (c *ApiService) StreamRoomParticipantSubscribedTrack( + RoomSid string, + ParticipantSid string, + params *ListRoomParticipantSubscribedTrackParams, +) (chan VideoV1RoomParticipantSubscribedTrack, chan error) { if params == nil { params = &ListRoomParticipantSubscribedTrackParams{} } @@ -139,7 +156,12 @@ func (c *ApiService) StreamRoomParticipantSubscribedTrack(RoomSid string, Partic return recordChannel, errorChannel } -func (c *ApiService) streamRoomParticipantSubscribedTrack(response *ListRoomParticipantSubscribedTrackResponse, params *ListRoomParticipantSubscribedTrackParams, recordChannel chan VideoV1RoomParticipantSubscribedTrack, errorChannel chan error) { +func (c *ApiService) streamRoomParticipantSubscribedTrack( + response *ListRoomParticipantSubscribedTrackResponse, + params *ListRoomParticipantSubscribedTrackParams, + recordChannel chan VideoV1RoomParticipantSubscribedTrack, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/video/v1/rooms_recordings.go b/rest/video/v1/rooms_recordings.go index 37b72820c..96aa9f4c5 100644 --- a/rest/video/v1/rooms_recordings.go +++ b/rest/video/v1/rooms_recordings.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // @@ -109,7 +109,11 @@ func (params *ListRoomRecordingParams) SetLimit(Limit int) *ListRoomRecordingPar } // Retrieve a single page of RoomRecording records from the API. Request is executed immediately. -func (c *ApiService) PageRoomRecording(RoomSid string, params *ListRoomRecordingParams, pageToken, pageNumber string) (*ListRoomRecordingResponse, error) { +func (c *ApiService) PageRoomRecording( + RoomSid string, + params *ListRoomRecordingParams, + pageToken, pageNumber string, +) (*ListRoomRecordingResponse, error) { path := "/v1/Rooms/{RoomSid}/Recordings" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -156,7 +160,10 @@ func (c *ApiService) PageRoomRecording(RoomSid string, params *ListRoomRecording } // Lists RoomRecording records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListRoomRecording(RoomSid string, params *ListRoomRecordingParams) ([]VideoV1RoomRecording, error) { +func (c *ApiService) ListRoomRecording( + RoomSid string, + params *ListRoomRecordingParams, +) ([]VideoV1RoomRecording, error) { response, errors := c.StreamRoomRecording(RoomSid, params) records := make([]VideoV1RoomRecording, 0) @@ -172,7 +179,10 @@ func (c *ApiService) ListRoomRecording(RoomSid string, params *ListRoomRecording } // Streams RoomRecording records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamRoomRecording(RoomSid string, params *ListRoomRecordingParams) (chan VideoV1RoomRecording, chan error) { +func (c *ApiService) StreamRoomRecording( + RoomSid string, + params *ListRoomRecordingParams, +) (chan VideoV1RoomRecording, chan error) { if params == nil { params = &ListRoomRecordingParams{} } @@ -193,7 +203,12 @@ func (c *ApiService) StreamRoomRecording(RoomSid string, params *ListRoomRecordi return recordChannel, errorChannel } -func (c *ApiService) streamRoomRecording(response *ListRoomRecordingResponse, params *ListRoomRecordingParams, recordChannel chan VideoV1RoomRecording, errorChannel chan error) { +func (c *ApiService) streamRoomRecording( + response *ListRoomRecordingResponse, + params *ListRoomRecordingParams, + recordChannel chan VideoV1RoomRecording, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/voice/v1/api_service.go b/rest/voice/v1/api_service.go index f8b84c0a6..681cc76e4 100644 --- a/rest/voice/v1/api_service.go +++ b/rest/voice/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/voice/v1/byoc_trunks.go b/rest/voice/v1/byoc_trunks.go index 8bc50ff79..560e7afab 100644 --- a/rest/voice/v1/byoc_trunks.go +++ b/rest/voice/v1/byoc_trunks.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateByocTrunk' @@ -200,7 +200,10 @@ func (params *ListByocTrunkParams) SetLimit(Limit int) *ListByocTrunkParams { } // Retrieve a single page of ByocTrunk records from the API. Request is executed immediately. -func (c *ApiService) PageByocTrunk(params *ListByocTrunkParams, pageToken, pageNumber string) (*ListByocTrunkResponse, error) { +func (c *ApiService) PageByocTrunk( + params *ListByocTrunkParams, + pageToken, pageNumber string, +) (*ListByocTrunkResponse, error) { path := "/v1/ByocTrunks" data := url.Values{} @@ -270,7 +273,12 @@ func (c *ApiService) StreamByocTrunk(params *ListByocTrunkParams) (chan VoiceV1B return recordChannel, errorChannel } -func (c *ApiService) streamByocTrunk(response *ListByocTrunkResponse, params *ListByocTrunkParams, recordChannel chan VoiceV1ByocTrunk, errorChannel chan error) { +func (c *ApiService) streamByocTrunk( + response *ListByocTrunkResponse, + params *ListByocTrunkParams, + recordChannel chan VoiceV1ByocTrunk, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/voice/v1/connection_policies.go b/rest/voice/v1/connection_policies.go index 24eda12dd..47bae80e0 100644 --- a/rest/voice/v1/connection_policies.go +++ b/rest/voice/v1/connection_policies.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConnectionPolicy' @@ -119,7 +119,10 @@ func (params *ListConnectionPolicyParams) SetLimit(Limit int) *ListConnectionPol } // Retrieve a single page of ConnectionPolicy records from the API. Request is executed immediately. -func (c *ApiService) PageConnectionPolicy(params *ListConnectionPolicyParams, pageToken, pageNumber string) (*ListConnectionPolicyResponse, error) { +func (c *ApiService) PageConnectionPolicy( + params *ListConnectionPolicyParams, + pageToken, pageNumber string, +) (*ListConnectionPolicyResponse, error) { path := "/v1/ConnectionPolicies" data := url.Values{} @@ -189,7 +192,12 @@ func (c *ApiService) StreamConnectionPolicy(params *ListConnectionPolicyParams) return recordChannel, errorChannel } -func (c *ApiService) streamConnectionPolicy(response *ListConnectionPolicyResponse, params *ListConnectionPolicyParams, recordChannel chan VoiceV1ConnectionPolicy, errorChannel chan error) { +func (c *ApiService) streamConnectionPolicy( + response *ListConnectionPolicyResponse, + params *ListConnectionPolicyParams, + recordChannel chan VoiceV1ConnectionPolicy, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -249,7 +257,10 @@ func (params *UpdateConnectionPolicyParams) SetFriendlyName(FriendlyName string) } // -func (c *ApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { +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 015b0c972..78292948d 100644 --- a/rest/voice/v1/connection_policies_targets.go +++ b/rest/voice/v1/connection_policies_targets.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateConnectionPolicyTarget' @@ -59,7 +59,10 @@ func (params *CreateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Crea } // -func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { +func (c *ApiService) CreateConnectionPolicyTarget( + ConnectionPolicySid string, + params *CreateConnectionPolicyTargetParams, +) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -117,7 +120,10 @@ func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Si } // -func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyTarget, error) { +func (c *ApiService) FetchConnectionPolicyTarget( + ConnectionPolicySid string, + Sid string, +) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -158,7 +164,11 @@ func (params *ListConnectionPolicyTargetParams) SetLimit(Limit int) *ListConnect } // Retrieve a single page of ConnectionPolicyTarget records from the API. Request is executed immediately. -func (c *ApiService) PageConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams, pageToken, pageNumber string) (*ListConnectionPolicyTargetResponse, error) { +func (c *ApiService) PageConnectionPolicyTarget( + ConnectionPolicySid string, + params *ListConnectionPolicyTargetParams, + pageToken, pageNumber string, +) (*ListConnectionPolicyTargetResponse, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -193,7 +203,10 @@ func (c *ApiService) PageConnectionPolicyTarget(ConnectionPolicySid string, para } // Lists ConnectionPolicyTarget records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) ([]VoiceV1ConnectionPolicyTarget, error) { +func (c *ApiService) ListConnectionPolicyTarget( + ConnectionPolicySid string, + params *ListConnectionPolicyTargetParams, +) ([]VoiceV1ConnectionPolicyTarget, error) { response, errors := c.StreamConnectionPolicyTarget(ConnectionPolicySid, params) records := make([]VoiceV1ConnectionPolicyTarget, 0) @@ -209,7 +222,10 @@ func (c *ApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, para } // Streams ConnectionPolicyTarget records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (chan VoiceV1ConnectionPolicyTarget, chan error) { +func (c *ApiService) StreamConnectionPolicyTarget( + ConnectionPolicySid string, + params *ListConnectionPolicyTargetParams, +) (chan VoiceV1ConnectionPolicyTarget, chan error) { if params == nil { params = &ListConnectionPolicyTargetParams{} } @@ -230,7 +246,12 @@ func (c *ApiService) StreamConnectionPolicyTarget(ConnectionPolicySid string, pa return recordChannel, errorChannel } -func (c *ApiService) streamConnectionPolicyTarget(response *ListConnectionPolicyTargetResponse, params *ListConnectionPolicyTargetParams, recordChannel chan VoiceV1ConnectionPolicyTarget, errorChannel chan error) { +func (c *ApiService) streamConnectionPolicyTarget( + response *ListConnectionPolicyTargetResponse, + params *ListConnectionPolicyTargetParams, + recordChannel chan VoiceV1ConnectionPolicyTarget, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -314,7 +335,11 @@ func (params *UpdateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Upda } // -func (c *ApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { +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) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/dialing_permissions_countries.go b/rest/voice/v1/dialing_permissions_countries.go index be09fb584..c3832cf5a 100644 --- a/rest/voice/v1/dialing_permissions_countries.go +++ b/rest/voice/v1/dialing_permissions_countries.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Retrieve voice dialing country permissions identified by the given ISO country code @@ -100,7 +100,10 @@ func (params *ListDialingPermissionsCountryParams) SetLimit(Limit int) *ListDial } // Retrieve a single page of DialingPermissionsCountry records from the API. Request is executed immediately. -func (c *ApiService) PageDialingPermissionsCountry(params *ListDialingPermissionsCountryParams, pageToken, pageNumber string) (*ListDialingPermissionsCountryResponse, error) { +func (c *ApiService) PageDialingPermissionsCountry( + params *ListDialingPermissionsCountryParams, + pageToken, pageNumber string, +) (*ListDialingPermissionsCountryResponse, error) { path := "/v1/DialingPermissions/Countries" data := url.Values{} @@ -188,7 +191,12 @@ func (c *ApiService) StreamDialingPermissionsCountry(params *ListDialingPermissi return recordChannel, errorChannel } -func (c *ApiService) streamDialingPermissionsCountry(response *ListDialingPermissionsCountryResponse, params *ListDialingPermissionsCountryParams, recordChannel chan VoiceV1DialingPermissionsCountry, errorChannel chan error) { +func (c *ApiService) streamDialingPermissionsCountry( + response *ListDialingPermissionsCountryResponse, + params *ListDialingPermissionsCountryParams, + recordChannel chan VoiceV1DialingPermissionsCountry, + errorChannel chan error, +) { curRecord := 1 for response != nil { 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 db256ce6d..ebb43f68f 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 @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListDialingPermissionsHrsPrefixes' @@ -41,7 +41,11 @@ func (params *ListDialingPermissionsHrsPrefixesParams) SetLimit(Limit int) *List } // Retrieve a single page of DialingPermissionsHrsPrefixes records from the API. Request is executed immediately. -func (c *ApiService) PageDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams, pageToken, pageNumber string) (*ListDialingPermissionsHrsPrefixesResponse, error) { +func (c *ApiService) PageDialingPermissionsHrsPrefixes( + IsoCode string, + params *ListDialingPermissionsHrsPrefixesParams, + pageToken, pageNumber string, +) (*ListDialingPermissionsHrsPrefixesResponse, error) { path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" path = strings.Replace(path, "{"+"IsoCode"+"}", IsoCode, -1) @@ -76,7 +80,10 @@ func (c *ApiService) PageDialingPermissionsHrsPrefixes(IsoCode string, params *L } // Lists DialingPermissionsHrsPrefixes records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) ([]VoiceV1DialingPermissionsHrsPrefixes, error) { +func (c *ApiService) ListDialingPermissionsHrsPrefixes( + IsoCode string, + params *ListDialingPermissionsHrsPrefixesParams, +) ([]VoiceV1DialingPermissionsHrsPrefixes, error) { response, errors := c.StreamDialingPermissionsHrsPrefixes(IsoCode, params) records := make([]VoiceV1DialingPermissionsHrsPrefixes, 0) @@ -92,7 +99,10 @@ func (c *ApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *L } // Streams DialingPermissionsHrsPrefixes records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (chan VoiceV1DialingPermissionsHrsPrefixes, chan error) { +func (c *ApiService) StreamDialingPermissionsHrsPrefixes( + IsoCode string, + params *ListDialingPermissionsHrsPrefixesParams, +) (chan VoiceV1DialingPermissionsHrsPrefixes, chan error) { if params == nil { params = &ListDialingPermissionsHrsPrefixesParams{} } @@ -113,7 +123,12 @@ func (c *ApiService) StreamDialingPermissionsHrsPrefixes(IsoCode string, params return recordChannel, errorChannel } -func (c *ApiService) streamDialingPermissionsHrsPrefixes(response *ListDialingPermissionsHrsPrefixesResponse, params *ListDialingPermissionsHrsPrefixesParams, recordChannel chan VoiceV1DialingPermissionsHrsPrefixes, errorChannel chan error) { +func (c *ApiService) streamDialingPermissionsHrsPrefixes( + response *ListDialingPermissionsHrsPrefixesResponse, + params *ListDialingPermissionsHrsPrefixesParams, + recordChannel chan VoiceV1DialingPermissionsHrsPrefixes, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/voice/v1/ip_records.go b/rest/voice/v1/ip_records.go index 93ed82dde..eb309fb43 100644 --- a/rest/voice/v1/ip_records.go +++ b/rest/voice/v1/ip_records.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateIpRecord' @@ -137,7 +137,10 @@ func (params *ListIpRecordParams) SetLimit(Limit int) *ListIpRecordParams { } // Retrieve a single page of IpRecord records from the API. Request is executed immediately. -func (c *ApiService) PageIpRecord(params *ListIpRecordParams, pageToken, pageNumber string) (*ListIpRecordResponse, error) { +func (c *ApiService) PageIpRecord( + params *ListIpRecordParams, + pageToken, pageNumber string, +) (*ListIpRecordResponse, error) { path := "/v1/IpRecords" data := url.Values{} @@ -207,7 +210,12 @@ func (c *ApiService) StreamIpRecord(params *ListIpRecordParams) (chan VoiceV1IpR return recordChannel, errorChannel } -func (c *ApiService) streamIpRecord(response *ListIpRecordResponse, params *ListIpRecordParams, recordChannel chan VoiceV1IpRecord, errorChannel chan error) { +func (c *ApiService) streamIpRecord( + response *ListIpRecordResponse, + params *ListIpRecordParams, + recordChannel chan VoiceV1IpRecord, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/voice/v1/source_ip_mappings.go b/rest/voice/v1/source_ip_mappings.go index 083da2e12..79ac44c0a 100644 --- a/rest/voice/v1/source_ip_mappings.go +++ b/rest/voice/v1/source_ip_mappings.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateSourceIpMapping' @@ -128,7 +128,10 @@ func (params *ListSourceIpMappingParams) SetLimit(Limit int) *ListSourceIpMappin } // Retrieve a single page of SourceIpMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSourceIpMapping(params *ListSourceIpMappingParams, pageToken, pageNumber string) (*ListSourceIpMappingResponse, error) { +func (c *ApiService) PageSourceIpMapping( + params *ListSourceIpMappingParams, + pageToken, pageNumber string, +) (*ListSourceIpMappingResponse, error) { path := "/v1/SourceIpMappings" data := url.Values{} @@ -198,7 +201,12 @@ func (c *ApiService) StreamSourceIpMapping(params *ListSourceIpMappingParams) (c return recordChannel, errorChannel } -func (c *ApiService) streamSourceIpMapping(response *ListSourceIpMappingResponse, params *ListSourceIpMappingParams, recordChannel chan VoiceV1SourceIpMapping, errorChannel chan error) { +func (c *ApiService) streamSourceIpMapping( + response *ListSourceIpMappingResponse, + params *ListSourceIpMappingParams, + recordChannel chan VoiceV1SourceIpMapping, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -258,7 +266,10 @@ func (params *UpdateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) } // -func (c *ApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { +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/api_service.go b/rest/wireless/v1/api_service.go index 6c75acb40..6a31090bf 100644 --- a/rest/wireless/v1/api_service.go +++ b/rest/wireless/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/wireless/v1/commands.go b/rest/wireless/v1/commands.go index 92c40607f..7ddffd21d 100644 --- a/rest/wireless/v1/commands.go +++ b/rest/wireless/v1/commands.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateCommand' @@ -197,7 +197,10 @@ func (params *ListCommandParams) SetLimit(Limit int) *ListCommandParams { } // Retrieve a single page of Command records from the API. Request is executed immediately. -func (c *ApiService) PageCommand(params *ListCommandParams, pageToken, pageNumber string) (*ListCommandResponse, error) { +func (c *ApiService) PageCommand( + params *ListCommandParams, + pageToken, pageNumber string, +) (*ListCommandResponse, error) { path := "/v1/Commands" data := url.Values{} @@ -279,7 +282,12 @@ func (c *ApiService) StreamCommand(params *ListCommandParams) (chan WirelessV1Co return recordChannel, errorChannel } -func (c *ApiService) streamCommand(response *ListCommandResponse, params *ListCommandParams, recordChannel chan WirelessV1Command, errorChannel chan error) { +func (c *ApiService) streamCommand( + response *ListCommandResponse, + params *ListCommandParams, + recordChannel chan WirelessV1Command, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/wireless/v1/rate_plans.go b/rest/wireless/v1/rate_plans.go index a115db739..30d612aa4 100644 --- a/rest/wireless/v1/rate_plans.go +++ b/rest/wireless/v1/rate_plans.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateRatePlan' @@ -211,7 +211,10 @@ func (params *ListRatePlanParams) SetLimit(Limit int) *ListRatePlanParams { } // Retrieve a single page of RatePlan records from the API. Request is executed immediately. -func (c *ApiService) PageRatePlan(params *ListRatePlanParams, pageToken, pageNumber string) (*ListRatePlanResponse, error) { +func (c *ApiService) PageRatePlan( + params *ListRatePlanParams, + pageToken, pageNumber string, +) (*ListRatePlanResponse, error) { path := "/v1/RatePlans" data := url.Values{} @@ -281,7 +284,12 @@ func (c *ApiService) StreamRatePlan(params *ListRatePlanParams) (chan WirelessV1 return recordChannel, errorChannel } -func (c *ApiService) streamRatePlan(response *ListRatePlanResponse, params *ListRatePlanParams, recordChannel chan WirelessV1RatePlan, errorChannel chan error) { +func (c *ApiService) streamRatePlan( + response *ListRatePlanResponse, + params *ListRatePlanParams, + recordChannel chan WirelessV1RatePlan, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/wireless/v1/sims.go b/rest/wireless/v1/sims.go index 001f8128a..eb4ea61fc 100644 --- a/rest/wireless/v1/sims.go +++ b/rest/wireless/v1/sims.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Delete a Sim resource on your Account. @@ -197,7 +197,12 @@ func (c *ApiService) StreamSim(params *ListSimParams) (chan WirelessV1Sim, chan return recordChannel, errorChannel } -func (c *ApiService) streamSim(response *ListSimResponse, params *ListSimParams, recordChannel chan WirelessV1Sim, errorChannel chan error) { +func (c *ApiService) streamSim( + response *ListSimResponse, + params *ListSimParams, + recordChannel chan WirelessV1Sim, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/wireless/v1/sims_data_sessions.go b/rest/wireless/v1/sims_data_sessions.go index e54aa72f1..daaa6fae3 100644 --- a/rest/wireless/v1/sims_data_sessions.go +++ b/rest/wireless/v1/sims_data_sessions.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListDataSession' @@ -41,7 +41,11 @@ func (params *ListDataSessionParams) SetLimit(Limit int) *ListDataSessionParams } // Retrieve a single page of DataSession records from the API. Request is executed immediately. -func (c *ApiService) PageDataSession(SimSid string, params *ListDataSessionParams, pageToken, pageNumber string) (*ListDataSessionResponse, error) { +func (c *ApiService) PageDataSession( + SimSid string, + params *ListDataSessionParams, + pageToken, pageNumber string, +) (*ListDataSessionResponse, error) { path := "/v1/Sims/{SimSid}/DataSessions" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -92,7 +96,10 @@ func (c *ApiService) ListDataSession(SimSid string, params *ListDataSessionParam } // Streams DataSession records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamDataSession(SimSid string, params *ListDataSessionParams) (chan WirelessV1DataSession, chan error) { +func (c *ApiService) StreamDataSession( + SimSid string, + params *ListDataSessionParams, +) (chan WirelessV1DataSession, chan error) { if params == nil { params = &ListDataSessionParams{} } @@ -113,7 +120,12 @@ func (c *ApiService) StreamDataSession(SimSid string, params *ListDataSessionPar return recordChannel, errorChannel } -func (c *ApiService) streamDataSession(response *ListDataSessionResponse, params *ListDataSessionParams, recordChannel chan WirelessV1DataSession, errorChannel chan error) { +func (c *ApiService) streamDataSession( + response *ListDataSessionResponse, + params *ListDataSessionParams, + recordChannel chan WirelessV1DataSession, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/wireless/v1/sims_usage_records.go b/rest/wireless/v1/sims_usage_records.go index db9896288..583d96671 100644 --- a/rest/wireless/v1/sims_usage_records.go +++ b/rest/wireless/v1/sims_usage_records.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListUsageRecord' @@ -60,7 +60,11 @@ func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams } // Retrieve a single page of UsageRecord records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecord(SimSid string, params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecordResponse, error) { +func (c *ApiService) PageUsageRecord( + SimSid string, + params *ListUsageRecordParams, + pageToken, pageNumber string, +) (*ListUsageRecordResponse, error) { path := "/v1/Sims/{SimSid}/UsageRecords" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -120,7 +124,10 @@ func (c *ApiService) ListUsageRecord(SimSid string, params *ListUsageRecordParam } // Streams UsageRecord records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamUsageRecord(SimSid string, params *ListUsageRecordParams) (chan WirelessV1UsageRecord, chan error) { +func (c *ApiService) StreamUsageRecord( + SimSid string, + params *ListUsageRecordParams, +) (chan WirelessV1UsageRecord, chan error) { if params == nil { params = &ListUsageRecordParams{} } @@ -141,7 +148,12 @@ func (c *ApiService) StreamUsageRecord(SimSid string, params *ListUsageRecordPar return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan WirelessV1UsageRecord, errorChannel chan error) { +func (c *ApiService) streamUsageRecord( + response *ListUsageRecordResponse, + params *ListUsageRecordParams, + recordChannel chan WirelessV1UsageRecord, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/wireless/v1/usage_records.go b/rest/wireless/v1/usage_records.go index 4f22007f3..c390726de 100644 --- a/rest/wireless/v1/usage_records.go +++ b/rest/wireless/v1/usage_records.go @@ -20,7 +20,7 @@ import ( "net/url" "time" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'ListAccountUsageRecord' @@ -59,7 +59,10 @@ func (params *ListAccountUsageRecordParams) SetLimit(Limit int) *ListAccountUsag } // Retrieve a single page of AccountUsageRecord records from the API. Request is executed immediately. -func (c *ApiService) PageAccountUsageRecord(params *ListAccountUsageRecordParams, pageToken, pageNumber string) (*ListAccountUsageRecordResponse, error) { +func (c *ApiService) PageAccountUsageRecord( + params *ListAccountUsageRecordParams, + pageToken, pageNumber string, +) (*ListAccountUsageRecordResponse, error) { path := "/v1/UsageRecords" data := url.Values{} @@ -138,7 +141,12 @@ func (c *ApiService) StreamAccountUsageRecord(params *ListAccountUsageRecordPara return recordChannel, errorChannel } -func (c *ApiService) streamAccountUsageRecord(response *ListAccountUsageRecordResponse, params *ListAccountUsageRecordParams, recordChannel chan WirelessV1AccountUsageRecord, errorChannel chan error) { +func (c *ApiService) streamAccountUsageRecord( + response *ListAccountUsageRecordResponse, + params *ListAccountUsageRecordParams, + recordChannel chan WirelessV1AccountUsageRecord, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/twilio.go b/twilio.go index 2134ad77e..a3739475e 100644 --- a/twilio.go +++ b/twilio.go @@ -15,49 +15,49 @@ import ( "os" "time" - "github.com/twilio/twilio-go/client" - AccountsV1 "github.com/twilio/twilio-go/rest/accounts/v1" - Api "github.com/twilio/twilio-go/rest/api/v2010" - BulkexportsV1 "github.com/twilio/twilio-go/rest/bulkexports/v1" - ChatV1 "github.com/twilio/twilio-go/rest/chat/v1" - ChatV2 "github.com/twilio/twilio-go/rest/chat/v2" - ChatV3 "github.com/twilio/twilio-go/rest/chat/v3" - ContentV1 "github.com/twilio/twilio-go/rest/content/v1" - ConversationsV1 "github.com/twilio/twilio-go/rest/conversations/v1" - EventsV1 "github.com/twilio/twilio-go/rest/events/v1" - FlexV1 "github.com/twilio/twilio-go/rest/flex/v1" - FlexV2 "github.com/twilio/twilio-go/rest/flex/v2" - FrontlineV1 "github.com/twilio/twilio-go/rest/frontline/v1" - InsightsV1 "github.com/twilio/twilio-go/rest/insights/v1" - IntelligenceV2 "github.com/twilio/twilio-go/rest/intelligence/v2" - IpMessagingV1 "github.com/twilio/twilio-go/rest/ip_messaging/v1" - IpMessagingV2 "github.com/twilio/twilio-go/rest/ip_messaging/v2" - LookupsV1 "github.com/twilio/twilio-go/rest/lookups/v1" - LookupsV2 "github.com/twilio/twilio-go/rest/lookups/v2" - MessagingV1 "github.com/twilio/twilio-go/rest/messaging/v1" - MicrovisorV1 "github.com/twilio/twilio-go/rest/microvisor/v1" - MonitorV1 "github.com/twilio/twilio-go/rest/monitor/v1" - NotifyV1 "github.com/twilio/twilio-go/rest/notify/v1" - NumbersV1 "github.com/twilio/twilio-go/rest/numbers/v1" - NumbersV2 "github.com/twilio/twilio-go/rest/numbers/v2" - OauthV1 "github.com/twilio/twilio-go/rest/oauth/v1" - PreviewMessagingV1 "github.com/twilio/twilio-go/rest/preview_messaging/v1" - PricingV1 "github.com/twilio/twilio-go/rest/pricing/v1" - PricingV2 "github.com/twilio/twilio-go/rest/pricing/v2" - ProxyV1 "github.com/twilio/twilio-go/rest/proxy/v1" - RoutesV2 "github.com/twilio/twilio-go/rest/routes/v2" - ServerlessV1 "github.com/twilio/twilio-go/rest/serverless/v1" - StudioV1 "github.com/twilio/twilio-go/rest/studio/v1" - StudioV2 "github.com/twilio/twilio-go/rest/studio/v2" - SupersimV1 "github.com/twilio/twilio-go/rest/supersim/v1" - SyncV1 "github.com/twilio/twilio-go/rest/sync/v1" - TaskrouterV1 "github.com/twilio/twilio-go/rest/taskrouter/v1" - TrunkingV1 "github.com/twilio/twilio-go/rest/trunking/v1" - TrusthubV1 "github.com/twilio/twilio-go/rest/trusthub/v1" - VerifyV2 "github.com/twilio/twilio-go/rest/verify/v2" - VideoV1 "github.com/twilio/twilio-go/rest/video/v1" - VoiceV1 "github.com/twilio/twilio-go/rest/voice/v1" - WirelessV1 "github.com/twilio/twilio-go/rest/wireless/v1" + "github.com/ghostmonitor/twilio-go/client" + AccountsV1 "github.com/ghostmonitor/twilio-go/rest/accounts/v1" + Api "github.com/ghostmonitor/twilio-go/rest/api/v2010" + BulkexportsV1 "github.com/ghostmonitor/twilio-go/rest/bulkexports/v1" + ChatV1 "github.com/ghostmonitor/twilio-go/rest/chat/v1" + ChatV2 "github.com/ghostmonitor/twilio-go/rest/chat/v2" + ChatV3 "github.com/ghostmonitor/twilio-go/rest/chat/v3" + ContentV1 "github.com/ghostmonitor/twilio-go/rest/content/v1" + ConversationsV1 "github.com/ghostmonitor/twilio-go/rest/conversations/v1" + EventsV1 "github.com/ghostmonitor/twilio-go/rest/events/v1" + FlexV1 "github.com/ghostmonitor/twilio-go/rest/flex/v1" + FlexV2 "github.com/ghostmonitor/twilio-go/rest/flex/v2" + FrontlineV1 "github.com/ghostmonitor/twilio-go/rest/frontline/v1" + InsightsV1 "github.com/ghostmonitor/twilio-go/rest/insights/v1" + IntelligenceV2 "github.com/ghostmonitor/twilio-go/rest/intelligence/v2" + IpMessagingV1 "github.com/ghostmonitor/twilio-go/rest/ip_messaging/v1" + IpMessagingV2 "github.com/ghostmonitor/twilio-go/rest/ip_messaging/v2" + LookupsV1 "github.com/ghostmonitor/twilio-go/rest/lookups/v1" + LookupsV2 "github.com/ghostmonitor/twilio-go/rest/lookups/v2" + MessagingV1 "github.com/ghostmonitor/twilio-go/rest/messaging/v1" + MicrovisorV1 "github.com/ghostmonitor/twilio-go/rest/microvisor/v1" + MonitorV1 "github.com/ghostmonitor/twilio-go/rest/monitor/v1" + NotifyV1 "github.com/ghostmonitor/twilio-go/rest/notify/v1" + NumbersV1 "github.com/ghostmonitor/twilio-go/rest/numbers/v1" + NumbersV2 "github.com/ghostmonitor/twilio-go/rest/numbers/v2" + OauthV1 "github.com/ghostmonitor/twilio-go/rest/oauth/v1" + PreviewMessagingV1 "github.com/ghostmonitor/twilio-go/rest/preview_messaging/v1" + PricingV1 "github.com/ghostmonitor/twilio-go/rest/pricing/v1" + PricingV2 "github.com/ghostmonitor/twilio-go/rest/pricing/v2" + ProxyV1 "github.com/ghostmonitor/twilio-go/rest/proxy/v1" + RoutesV2 "github.com/ghostmonitor/twilio-go/rest/routes/v2" + ServerlessV1 "github.com/ghostmonitor/twilio-go/rest/serverless/v1" + StudioV1 "github.com/ghostmonitor/twilio-go/rest/studio/v1" + StudioV2 "github.com/ghostmonitor/twilio-go/rest/studio/v2" + SupersimV1 "github.com/ghostmonitor/twilio-go/rest/supersim/v1" + SyncV1 "github.com/ghostmonitor/twilio-go/rest/sync/v1" + TaskrouterV1 "github.com/ghostmonitor/twilio-go/rest/taskrouter/v1" + TrunkingV1 "github.com/ghostmonitor/twilio-go/rest/trunking/v1" + TrusthubV1 "github.com/ghostmonitor/twilio-go/rest/trusthub/v1" + VerifyV2 "github.com/ghostmonitor/twilio-go/rest/verify/v2" + VideoV1 "github.com/ghostmonitor/twilio-go/rest/video/v1" + VoiceV1 "github.com/ghostmonitor/twilio-go/rest/voice/v1" + WirelessV1 "github.com/ghostmonitor/twilio-go/rest/wireless/v1" ) // RestClient provides access to Twilio services. diff --git a/twiml/twiml_test.go b/twiml/twiml_test.go index 315768e7c..1a77902e1 100644 --- a/twiml/twiml_test.go +++ b/twiml/twiml_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/beevik/etree" + "github.com/ghostmonitor/twilio-go/twiml" "github.com/stretchr/testify/assert" - "github.com/twilio/twilio-go/twiml" ) type MockElement struct { @@ -75,7 +75,8 @@ func TestAddAllVerbs_ManyVerbList(t *testing.T) { "Thank you!", map[string]string{"Voice": "alice", "Language": "en"}, map[string]string{"Loop": "1"}, - []twiml.Element{}} + []twiml.Element{}, + } verbs := []twiml.Element{v1, v2} resEl := etree.Element{} @@ -148,10 +149,12 @@ func TestToXML(t *testing.T) { xml, _ := twiml.ToXML(doc) - assert.Equal(t, + assert.Equal( + t, expected, xml, - "Output XML string should match expected value.") + "Output XML string should match expected value.", + ) } // Utilities @@ -160,16 +163,20 @@ Asserts that a given XML element contains the list of TwiML Elements as child XML elements. */ func assertDefinesTwiMLXMLElements(t *testing.T, el *etree.Element, elements []twiml.Element) { - assert.Equal(t, + assert.Equal( + t, len(elements), len(el.ChildElements()), - "Parent element should have same number of child elements as child TwiML Elements.") + "Parent element should have same number of child elements as child TwiML Elements.", + ) for _, element := range elements { xmlEl := el.FindElement(element.GetName()) - assert.NotNil(t, + assert.NotNil( + t, xmlEl, - "Parent element should contain a child corresponding to the twiML element.") + "Parent element should contain a child corresponding to the twiML element.", + ) assert.Equal(t, element.GetName(), xmlEl.Tag, "Child element tag should match twiML element name.") assert.Equal(t, element.GetText(), xmlEl.Text(), "Child element text should match twiML element text.") diff --git a/twiml/voice_response_test.go b/twiml/voice_response_test.go index 8158ed279..68ece3274 100644 --- a/twiml/voice_response_test.go +++ b/twiml/voice_response_test.go @@ -3,24 +3,28 @@ package twiml_test import ( "testing" + "github.com/ghostmonitor/twilio-go/twiml" "github.com/stretchr/testify/assert" - "github.com/twilio/twilio-go/twiml" ) func TestVoice_ZeroValueVerbList(t *testing.T) { var verbs []twiml.Element resp, _ := twiml.Voice(verbs) - assert.Equal(t, + assert.Equal( + t, ``, - resp) + resp, + ) } func TestVoice_EmptyVerbList(t *testing.T) { verbs := []twiml.Element{} resp, _ := twiml.Voice(verbs) - assert.Equal(t, + assert.Equal( + t, ``, - resp) + resp, + ) } func TestVoice_SayVerb(t *testing.T) { @@ -29,9 +33,11 @@ func TestVoice_SayVerb(t *testing.T) { } verbs := []twiml.Element{say} resp, _ := twiml.Messages(verbs) - assert.Equal(t, + assert.Equal( + t, `Hello World!`, - resp) + resp, + ) } func TestVoice_SayVerbWithParams(t *testing.T) { @@ -68,7 +74,9 @@ func TestVoice_GatherVerbWithNestedPlayVerb(t *testing.T) { } verbs := []twiml.Element{gather} resp, _ := twiml.Messages(verbs) - assert.Equal(t, + assert.Equal( + t, `https://demo.twilio.com`, - resp) + resp, + ) } diff --git a/webhook_cluster_test.go b/webhook_cluster_test.go index c32fd6d54..ceb09bce2 100644 --- a/webhook_cluster_test.go +++ b/webhook_cluster_test.go @@ -11,10 +11,10 @@ import ( "testing" "time" + twilio "github.com/ghostmonitor/twilio-go/client" + StudioV2 "github.com/ghostmonitor/twilio-go/rest/studio/v2" "github.com/localtunnel/go-localtunnel" "github.com/stretchr/testify/assert" - twilio "github.com/twilio/twilio-go/client" - StudioV2 "github.com/twilio/twilio-go/rest/studio/v2" ) var testClient *RestClient @@ -32,26 +32,29 @@ func TestMain(m *testing.M) { func createValidationServer(channel chan bool) *http.Server { server := &http.Server{} - server.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - url := r.Header["X-Forwarded-Proto"][0] + "://" + r.Header["X-Forwarded-Host"][0] + r.URL.RequestURI() - signatureHeader := r.Header["X-Twilio-Signature"] - r.ParseForm() - params := make(map[string]string) - for k, v := range r.PostForm { - params[k] = v[0] - } - requestValidator := twilio.NewRequestValidator(authToken) - if len(signatureHeader) != 0 { - channel <- requestValidator.Validate(url, params, r.Header["X-Twilio-Signature"][0]) - } else { - channel <- false - } - }) + server.Handler = http.HandlerFunc( + func(w http.ResponseWriter, r *http.Request) { + url := r.Header["X-Forwarded-Proto"][0] + "://" + r.Header["X-Forwarded-Host"][0] + r.URL.RequestURI() + signatureHeader := r.Header["X-Twilio-Signature"] + r.ParseForm() + params := make(map[string]string) + for k, v := range r.PostForm { + params[k] = v[0] + } + requestValidator := twilio.NewRequestValidator(authToken) + if len(signatureHeader) != 0 { + channel <- requestValidator.Validate(url, params, r.Header["X-Twilio-Signature"][0]) + } else { + channel <- false + } + }, + ) return server } func createStudioFlowParams(url string, method string) *StudioV2.CreateFlowParams { - jsonStr := fmt.Sprintf(`{ + jsonStr := fmt.Sprintf( + `{ "description": "Studio Flow", "states": [ { @@ -81,7 +84,8 @@ func createStudioFlowParams(url string, method string) *StudioV2.CreateFlowParam "flags": { "allow_concurrent_calls": true } - }`, method, url) + }`, method, url, + ) var definition interface{} _ = json.Unmarshal([]byte(jsonStr), &definition) From f610e75454740ecbcae2774c26351ae2945c7d25 Mon Sep 17 00:00:00 2001 From: Poros David Date: Tue, 7 May 2024 10:26:38 +0200 Subject: [PATCH 2/6] add tags to message sending --- rest/api/v2010/accounts_messages.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index c0049ad77..044575dda 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -74,6 +74,8 @@ type CreateMessageParams struct { MediaUrl *[]string `json:"MediaUrl,omitempty"` // For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). ContentSid *string `json:"ContentSid,omitempty"` + // Tags is a private beta feature, which is switched on for Recart + Tags *map[string]string `json:"Tags,omitempty"` } func (params *CreateMessageParams) SetPathAccountSid(PathAccountSid string) *CreateMessageParams { @@ -172,6 +174,10 @@ func (params *CreateMessageParams) SetContentSid(ContentSid string) *CreateMessa params.ContentSid = &ContentSid return params } +func (params *CreateMessageParams) SetTags(Tags map[string]string) *CreateMessageParams { + params.Tags = &Tags + return params +} // Send a message func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Message, error) { @@ -258,6 +264,14 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag if params != nil && params.ContentSid != nil { data.Set("ContentSid", *params.ContentSid) } + if params != nil && params.Tags != nil { + res, err := json.Marshal(*params.Tags) + if err != nil { + return nil, err + } + + data.Set("Tags", string(res)) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { From 489616aba229896bb33a61d334e8d3c92d94e825 Mon Sep 17 00:00:00 2001 From: Akos Date: Wed, 8 May 2024 16:02:14 +0200 Subject: [PATCH 3/6] add missing experimental property Tags --- rest/api/v2010/model_api_v2010_message.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rest/api/v2010/model_api_v2010_message.go b/rest/api/v2010/model_api_v2010_message.go index a83ac7720..6adef5f5e 100644 --- a/rest/api/v2010/model_api_v2010_message.go +++ b/rest/api/v2010/model_api_v2010_message.go @@ -54,4 +54,5 @@ type ApiV2010Message struct { ApiVersion *string `json:"api_version,omitempty"` // A list of related resources identified by their URIs relative to `https://api.twilio.com` SubresourceUris *map[string]interface{} `json:"subresource_uris,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` } From 42b0f8b377d41b8cedfb816d2f1a17153a0897b6 Mon Sep 17 00:00:00 2001 From: Poros David Date: Thu, 30 May 2024 13:34:46 +0200 Subject: [PATCH 4/6] set message intent on create message --- rest/api/v2010/accounts_messages.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index 044575dda..61e8ac1b8 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -76,6 +76,8 @@ type CreateMessageParams struct { ContentSid *string `json:"ContentSid,omitempty"` // Tags is a private beta feature, which is switched on for Recart Tags *map[string]string `json:"Tags,omitempty"` + // MessageIntent is to assign a Traffic Shaping Service Level + MessageIntent *string `json:"MessageIntent,omitempty"` } func (params *CreateMessageParams) SetPathAccountSid(PathAccountSid string) *CreateMessageParams { @@ -178,6 +180,10 @@ func (params *CreateMessageParams) SetTags(Tags map[string]string) *CreateMessag params.Tags = &Tags return params } +func (params *CreateMessageParams) SetMessageIntent(MessageIntent string) *CreateMessageParams { + params.MessageIntent = &MessageIntent + return params +} // Send a message func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Message, error) { @@ -272,6 +278,9 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag data.Set("Tags", string(res)) } + if params != nil && params.MessageIntent != nil { + data.Set("MessageIntent", *params.MessageIntent) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { From 93d811ffe2f68182bf6af07080b2807bf5a1288a Mon Sep 17 00:00:00 2001 From: Poros David Date: Thu, 30 May 2024 13:43:41 +0200 Subject: [PATCH 5/6] fix --- twilio.go | 1 - 1 file changed, 1 deletion(-) diff --git a/twilio.go b/twilio.go index 35353212a..fa8bb0cdb 100644 --- a/twilio.go +++ b/twilio.go @@ -175,7 +175,6 @@ func NewRestClientWithParams(params ClientParams) *RestClient { c.IpMessagingV2 = IpMessagingV2.NewApiService(c.RequestHandler) c.LookupsV1 = LookupsV1.NewApiService(c.RequestHandler) c.LookupsV2 = LookupsV2.NewApiService(c.RequestHandler) - c.PreviewMessagingV1 = PreviewMessagingV1.NewApiService(c.RequestHandler) c.MessagingV1 = MessagingV1.NewApiService(c.RequestHandler) c.MicrovisorV1 = MicrovisorV1.NewApiService(c.RequestHandler) c.MonitorV1 = MonitorV1.NewApiService(c.RequestHandler) From 69d8ff6d91f8eccb015970ead129f456dda1dc4c Mon Sep 17 00:00:00 2001 From: Akos Date: Fri, 26 Jul 2024 09:34:15 +0200 Subject: [PATCH 6/6] use forked package in new code --- rest/marketplace/v1/api_service.go | 2 +- rest/marketplace/v1/available_add_ons.go | 14 ++++++-- .../v1/available_add_ons_extensions.go | 30 ++++++++++++---- rest/marketplace/v1/installed_add_ons.go | 19 +++++++--- .../v1/installed_add_ons_extensions.go | 36 +++++++++++++++---- ...te_billing_usage_request_billable_items.go | 2 +- ...l_marketplace_v1_billing_usage_response.go | 2 +- ...n_billing_usage_response_billable_items.go | 2 +- 8 files changed, 83 insertions(+), 24 deletions(-) diff --git a/rest/marketplace/v1/api_service.go b/rest/marketplace/v1/api_service.go index 1d21d4a8a..2180b01bb 100644 --- a/rest/marketplace/v1/api_service.go +++ b/rest/marketplace/v1/api_service.go @@ -15,7 +15,7 @@ package openapi import ( - twilio "github.com/twilio/twilio-go/client" + twilio "github.com/ghostmonitor/twilio-go/client" ) type ApiService struct { diff --git a/rest/marketplace/v1/available_add_ons.go b/rest/marketplace/v1/available_add_ons.go index cfbae759d..54f887078 100644 --- a/rest/marketplace/v1/available_add_ons.go +++ b/rest/marketplace/v1/available_add_ons.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch an instance of an Add-on currently available to be installed. @@ -66,7 +66,10 @@ func (params *ListAvailableAddOnParams) SetLimit(Limit int) *ListAvailableAddOnP } // Retrieve a single page of AvailableAddOn records from the API. Request is executed immediately. -func (c *ApiService) PageAvailableAddOn(params *ListAvailableAddOnParams, pageToken, pageNumber string) (*ListAvailableAddOnResponse, error) { +func (c *ApiService) PageAvailableAddOn( + params *ListAvailableAddOnParams, + pageToken, pageNumber string, +) (*ListAvailableAddOnResponse, error) { path := "/v1/AvailableAddOns" data := url.Values{} @@ -138,7 +141,12 @@ func (c *ApiService) StreamAvailableAddOn(params *ListAvailableAddOnParams) (cha return recordChannel, errorChannel } -func (c *ApiService) streamAvailableAddOn(response *ListAvailableAddOnResponse, params *ListAvailableAddOnParams, recordChannel chan MarketplaceV1AvailableAddOn, errorChannel chan error) { +func (c *ApiService) streamAvailableAddOn( + response *ListAvailableAddOnResponse, + params *ListAvailableAddOnParams, + recordChannel chan MarketplaceV1AvailableAddOn, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/marketplace/v1/available_add_ons_extensions.go b/rest/marketplace/v1/available_add_ons_extensions.go index 2936202e4..0c6885377 100644 --- a/rest/marketplace/v1/available_add_ons_extensions.go +++ b/rest/marketplace/v1/available_add_ons_extensions.go @@ -20,11 +20,14 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch an instance of an Extension for the Available Add-on. -func (c *ApiService) FetchAvailableAddOnExtension(AvailableAddOnSid string, Sid string) (*MarketplaceV1AvailableAddOnExtension, error) { +func (c *ApiService) FetchAvailableAddOnExtension( + AvailableAddOnSid string, + Sid string, +) (*MarketplaceV1AvailableAddOnExtension, error) { path := "/v1/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}" path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", AvailableAddOnSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -67,7 +70,11 @@ func (params *ListAvailableAddOnExtensionParams) SetLimit(Limit int) *ListAvaila } // Retrieve a single page of AvailableAddOnExtension records from the API. Request is executed immediately. -func (c *ApiService) PageAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams, pageToken, pageNumber string) (*ListAvailableAddOnExtensionResponse, error) { +func (c *ApiService) PageAvailableAddOnExtension( + AvailableAddOnSid string, + params *ListAvailableAddOnExtensionParams, + pageToken, pageNumber string, +) (*ListAvailableAddOnExtensionResponse, error) { path := "/v1/AvailableAddOns/{AvailableAddOnSid}/Extensions" path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", AvailableAddOnSid, -1) @@ -104,7 +111,10 @@ func (c *ApiService) PageAvailableAddOnExtension(AvailableAddOnSid string, param } // Lists AvailableAddOnExtension records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams) ([]MarketplaceV1AvailableAddOnExtension, error) { +func (c *ApiService) ListAvailableAddOnExtension( + AvailableAddOnSid string, + params *ListAvailableAddOnExtensionParams, +) ([]MarketplaceV1AvailableAddOnExtension, error) { response, errors := c.StreamAvailableAddOnExtension(AvailableAddOnSid, params) records := make([]MarketplaceV1AvailableAddOnExtension, 0) @@ -120,7 +130,10 @@ func (c *ApiService) ListAvailableAddOnExtension(AvailableAddOnSid string, param } // Streams AvailableAddOnExtension records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams) (chan MarketplaceV1AvailableAddOnExtension, chan error) { +func (c *ApiService) StreamAvailableAddOnExtension( + AvailableAddOnSid string, + params *ListAvailableAddOnExtensionParams, +) (chan MarketplaceV1AvailableAddOnExtension, chan error) { if params == nil { params = &ListAvailableAddOnExtensionParams{} } @@ -141,7 +154,12 @@ func (c *ApiService) StreamAvailableAddOnExtension(AvailableAddOnSid string, par return recordChannel, errorChannel } -func (c *ApiService) streamAvailableAddOnExtension(response *ListAvailableAddOnExtensionResponse, params *ListAvailableAddOnExtensionParams, recordChannel chan MarketplaceV1AvailableAddOnExtension, errorChannel chan error) { +func (c *ApiService) streamAvailableAddOnExtension( + response *ListAvailableAddOnExtensionResponse, + params *ListAvailableAddOnExtensionParams, + recordChannel chan MarketplaceV1AvailableAddOnExtension, + errorChannel chan error, +) { curRecord := 1 for response != nil { diff --git a/rest/marketplace/v1/installed_add_ons.go b/rest/marketplace/v1/installed_add_ons.go index 054a7f8dc..d4d71d4dd 100644 --- a/rest/marketplace/v1/installed_add_ons.go +++ b/rest/marketplace/v1/installed_add_ons.go @@ -20,7 +20,7 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Optional parameters for the method 'CreateInstalledAddOn' @@ -158,7 +158,10 @@ func (params *ListInstalledAddOnParams) SetLimit(Limit int) *ListInstalledAddOnP } // Retrieve a single page of InstalledAddOn records from the API. Request is executed immediately. -func (c *ApiService) PageInstalledAddOn(params *ListInstalledAddOnParams, pageToken, pageNumber string) (*ListInstalledAddOnResponse, error) { +func (c *ApiService) PageInstalledAddOn( + params *ListInstalledAddOnParams, + pageToken, pageNumber string, +) (*ListInstalledAddOnResponse, error) { path := "/v1/InstalledAddOns" data := url.Values{} @@ -230,7 +233,12 @@ func (c *ApiService) StreamInstalledAddOn(params *ListInstalledAddOnParams) (cha return recordChannel, errorChannel } -func (c *ApiService) streamInstalledAddOn(response *ListInstalledAddOnResponse, params *ListInstalledAddOnParams, recordChannel chan MarketplaceV1InstalledAddOn, errorChannel chan error) { +func (c *ApiService) streamInstalledAddOn( + response *ListInstalledAddOnResponse, + params *ListInstalledAddOnParams, + recordChannel chan MarketplaceV1InstalledAddOn, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -296,7 +304,10 @@ func (params *UpdateInstalledAddOnParams) SetUniqueName(UniqueName string) *Upda } // Update an Add-on installation for the Account specified. -func (c *ApiService) UpdateInstalledAddOn(Sid string, params *UpdateInstalledAddOnParams) (*MarketplaceV1InstalledAddOn, error) { +func (c *ApiService) UpdateInstalledAddOn( + Sid string, + params *UpdateInstalledAddOnParams, +) (*MarketplaceV1InstalledAddOn, error) { path := "/v1/InstalledAddOns/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/marketplace/v1/installed_add_ons_extensions.go b/rest/marketplace/v1/installed_add_ons_extensions.go index c31263dec..7b9e9ffb9 100644 --- a/rest/marketplace/v1/installed_add_ons_extensions.go +++ b/rest/marketplace/v1/installed_add_ons_extensions.go @@ -20,11 +20,14 @@ import ( "net/url" "strings" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // Fetch an instance of an Extension for the Installed Add-on. -func (c *ApiService) FetchInstalledAddOnExtension(InstalledAddOnSid string, Sid string) (*MarketplaceV1InstalledAddOnExtension, error) { +func (c *ApiService) FetchInstalledAddOnExtension( + InstalledAddOnSid string, + Sid string, +) (*MarketplaceV1InstalledAddOnExtension, error) { path := "/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -67,7 +70,11 @@ func (params *ListInstalledAddOnExtensionParams) SetLimit(Limit int) *ListInstal } // Retrieve a single page of InstalledAddOnExtension records from the API. Request is executed immediately. -func (c *ApiService) PageInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams, pageToken, pageNumber string) (*ListInstalledAddOnExtensionResponse, error) { +func (c *ApiService) PageInstalledAddOnExtension( + InstalledAddOnSid string, + params *ListInstalledAddOnExtensionParams, + pageToken, pageNumber string, +) (*ListInstalledAddOnExtensionResponse, error) { path := "/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions" path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) @@ -104,7 +111,10 @@ func (c *ApiService) PageInstalledAddOnExtension(InstalledAddOnSid string, param } // Lists InstalledAddOnExtension records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. -func (c *ApiService) ListInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams) ([]MarketplaceV1InstalledAddOnExtension, error) { +func (c *ApiService) ListInstalledAddOnExtension( + InstalledAddOnSid string, + params *ListInstalledAddOnExtensionParams, +) ([]MarketplaceV1InstalledAddOnExtension, error) { response, errors := c.StreamInstalledAddOnExtension(InstalledAddOnSid, params) records := make([]MarketplaceV1InstalledAddOnExtension, 0) @@ -120,7 +130,10 @@ func (c *ApiService) ListInstalledAddOnExtension(InstalledAddOnSid string, param } // Streams InstalledAddOnExtension records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. -func (c *ApiService) StreamInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams) (chan MarketplaceV1InstalledAddOnExtension, chan error) { +func (c *ApiService) StreamInstalledAddOnExtension( + InstalledAddOnSid string, + params *ListInstalledAddOnExtensionParams, +) (chan MarketplaceV1InstalledAddOnExtension, chan error) { if params == nil { params = &ListInstalledAddOnExtensionParams{} } @@ -141,7 +154,12 @@ func (c *ApiService) StreamInstalledAddOnExtension(InstalledAddOnSid string, par return recordChannel, errorChannel } -func (c *ApiService) streamInstalledAddOnExtension(response *ListInstalledAddOnExtensionResponse, params *ListInstalledAddOnExtensionParams, recordChannel chan MarketplaceV1InstalledAddOnExtension, errorChannel chan error) { +func (c *ApiService) streamInstalledAddOnExtension( + response *ListInstalledAddOnExtensionResponse, + params *ListInstalledAddOnExtensionParams, + recordChannel chan MarketplaceV1InstalledAddOnExtension, + errorChannel chan error, +) { curRecord := 1 for response != nil { @@ -201,7 +219,11 @@ func (params *UpdateInstalledAddOnExtensionParams) SetEnabled(Enabled bool) *Upd } // Update an Extension for an Add-on installation. -func (c *ApiService) UpdateInstalledAddOnExtension(InstalledAddOnSid string, Sid string, params *UpdateInstalledAddOnExtensionParams) (*MarketplaceV1InstalledAddOnExtension, error) { +func (c *ApiService) UpdateInstalledAddOnExtension( + InstalledAddOnSid string, + Sid string, + params *UpdateInstalledAddOnExtensionParams, +) (*MarketplaceV1InstalledAddOnExtension, error) { path := "/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/marketplace/v1/model_create_billing_usage_request_billable_items.go b/rest/marketplace/v1/model_create_billing_usage_request_billable_items.go index 58ed0b78c..425e59a1e 100644 --- a/rest/marketplace/v1/model_create_billing_usage_request_billable_items.go +++ b/rest/marketplace/v1/model_create_billing_usage_request_billable_items.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // CreateBillingUsageRequestBillableItems struct for CreateBillingUsageRequestBillableItems diff --git a/rest/marketplace/v1/model_marketplace_v1_billing_usage_response.go b/rest/marketplace/v1/model_marketplace_v1_billing_usage_response.go index b84c03ce3..a317328c0 100644 --- a/rest/marketplace/v1/model_marketplace_v1_billing_usage_response.go +++ b/rest/marketplace/v1/model_marketplace_v1_billing_usage_response.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // MarketplaceV1BillingUsageResponse struct for MarketplaceV1BillingUsageResponse diff --git a/rest/marketplace/v1/model_marketplace_v1_installed_add_on_billing_usage_response_billable_items.go b/rest/marketplace/v1/model_marketplace_v1_installed_add_on_billing_usage_response_billable_items.go index d4993a0c0..f46bd3e19 100644 --- a/rest/marketplace/v1/model_marketplace_v1_installed_add_on_billing_usage_response_billable_items.go +++ b/rest/marketplace/v1/model_marketplace_v1_installed_add_on_billing_usage_response_billable_items.go @@ -17,7 +17,7 @@ package openapi import ( "encoding/json" - "github.com/twilio/twilio-go/client" + "github.com/ghostmonitor/twilio-go/client" ) // MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems struct for MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems