From 6411a908a1cc6c6e8aa5083ac8f3a1d998af56e6 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 23 Oct 2024 07:04:53 +0000 Subject: [PATCH] Generated v1.0.0-beta.36 --- CHANGELOG.md | 10 + README.md | 2 +- docs/Backend.md | 4 +- docs/BackendAPI.md | 12 +- docs/BackendResponse.md | 4 +- fastly/api_acl.go | 193 ++- fastly/api_acl_entry.go | 226 ++-- fastly/api_acls_in_compute.go | 195 ++- fastly/api_apex_redirect.go | 199 +-- fastly/api_automation_tokens.go | 140 +- fastly/api_backend.go | 405 +++--- fastly/api_billing.go | 95 +- fastly/api_billing_address.go | 103 +- fastly/api_billing_invoices.go | 85 +- fastly/api_billing_usage_metrics.go | 78 +- fastly/api_cache_settings.go | 221 ++-- fastly/api_condition.go | 229 ++-- fastly/api_config_store.go | 190 ++- fastly/api_config_store_item.go | 236 ++-- fastly/api_contact.go | 97 +- fastly/api_content.go | 26 +- fastly/api_customer.go | 193 +-- fastly/api_customer_addresses.go | 75 +- fastly/api_dictionary.go | 199 ++- fastly/api_dictionary_info.go | 43 +- fastly/api_dictionary_item.go | 288 +++-- fastly/api_diff.go | 44 +- fastly/api_director.go | 213 ++-- fastly/api_director_backend.go | 141 +- fastly/api_domain.go | 257 ++-- fastly/api_domain_inspector_historical.go | 59 +- fastly/api_domain_inspector_realtime.go | 97 +- fastly/api_domain_ownerships.go | 25 +- fastly/api_enabled_products.go | 173 ++- fastly/api_events.go | 98 +- fastly/api_gzip.go | 211 ++- fastly/api_header.go | 249 ++-- fastly/api_healthcheck.go | 265 ++-- fastly/api_historical.go | 338 ++--- fastly/api_http3.go | 121 +- fastly/api_iam_permissions.go | 25 +- fastly/api_iam_roles.go | 219 ++-- fastly/api_iam_service_groups.go | 223 ++-- fastly/api_iam_user_groups.go | 385 +++--- .../api_image_optimizer_default_settings.go | 74 +- fastly/api_invitations.go | 74 +- fastly/api_kv_store.go | 109 +- fastly/api_kv_store_item.go | 160 +-- fastly/api_legacy_waf_configuration_sets.go | 88 +- fastly/api_legacy_waf_firewall.go | 285 ++--- fastly/api_legacy_waf_owasp.go | 105 +- fastly/api_legacy_waf_rule.go | 146 +-- fastly/api_legacy_waf_rule_status.go | 181 +-- fastly/api_legacy_waf_ruleset.go | 102 +- fastly/api_legacy_waf_tag.go | 35 +- fastly/api_legacy_waf_update_status.go | 84 +- fastly/api_logging_azureblob.go | 291 +++-- fastly/api_logging_bigquery.go | 267 ++-- fastly/api_logging_cloudfiles.go | 291 +++-- fastly/api_logging_datadog.go | 241 ++-- fastly/api_logging_digitalocean.go | 291 +++-- fastly/api_logging_elasticsearch.go | 289 +++-- fastly/api_logging_ftp.go | 303 +++-- fastly/api_logging_gcs.go | 297 +++-- fastly/api_logging_heroku.go | 235 ++-- fastly/api_logging_honeycomb.go | 237 ++-- fastly/api_logging_https.go | 299 +++-- fastly/api_logging_kafka.go | 250 ++-- fastly/api_logging_kinesis.go | 218 ++-- fastly/api_logging_logentries.go | 259 ++-- fastly/api_logging_loggly.go | 229 ++-- fastly/api_logging_logshuttle.go | 237 ++-- fastly/api_logging_newrelic.go | 237 ++-- fastly/api_logging_newrelicotlp.go | 243 ++-- fastly/api_logging_openstack.go | 291 +++-- fastly/api_logging_papertrail.go | 237 ++-- fastly/api_logging_pubsub.go | 255 ++-- fastly/api_logging_s3.go | 327 ++--- fastly/api_logging_scalyr.go | 241 ++-- fastly/api_logging_sftp.go | 303 +++-- fastly/api_logging_splunk.go | 273 ++-- fastly/api_logging_sumologic.go | 237 ++-- fastly/api_logging_syslog.go | 289 +++-- fastly/api_mutual_authentication.go | 141 +- fastly/api_observability_custom_dashboards.go | 131 +- fastly/api_origin_inspector_historical.go | 59 +- fastly/api_origin_inspector_realtime.go | 97 +- fastly/api_package.go | 81 +- fastly/api_pool.go | 349 ++--- fastly/api_pop.go | 25 +- fastly/api_public_ip_list.go | 25 +- fastly/api_publish.go | 34 +- fastly/api_purge.go | 132 +- fastly/api_rate_limiter.go | 213 ++-- fastly/api_realtime.go | 95 +- fastly/api_request_settings.go | 225 ++-- fastly/api_resource.go | 195 ++- fastly/api_response_object.go | 193 ++- fastly/api_secret_store.go | 153 ++- fastly/api_secret_store_item.go | 200 ++- fastly/api_server.go | 229 ++-- fastly/api_service.go | 236 ++-- fastly/api_service_authorizations.go | 179 ++- fastly/api_settings.go | 81 +- fastly/api_snippet.go | 285 ++--- fastly/api_star.go | 102 +- fastly/api_stats.go | 41 +- fastly/api_sudo.go | 26 +- fastly/api_tls_activations.go | 152 ++- fastly/api_tls_bulk_certificates.go | 141 +- fastly/api_tls_certificates.go | 182 ++- fastly/api_tls_configurations.go | 93 +- fastly/api_tls_csrs.go | 26 +- fastly/api_tls_domains.go | 46 +- fastly/api_tls_private_keys.go | 109 +- fastly/api_tls_subscriptions.go | 247 ++-- fastly/api_tokens.go | 188 ++- fastly/api_user.go | 227 ++-- fastly/api_vcl.go | 480 ++++--- fastly/api_vcl_diff.go | 44 +- fastly/api_version.go | 396 +++--- fastly/api_waf_active_rules.go | 312 +++-- fastly/api_waf_exclusions.go | 219 ++-- fastly/api_waf_firewall_versions.go | 211 ++- fastly/api_waf_firewalls.go | 153 ++- fastly/api_waf_rule_revisions.go | 77 +- fastly/api_waf_rules.go | 81 +- fastly/api_waf_tags.go | 33 +- fastly/api_whole_platform_ddos_historical.go | 30 +- fastly/client.go | 37 +- fastly/configuration.go | 1131 ++++++++--------- fastly/model_acl.go | 11 +- fastly/model_acl_entry.go | 17 +- fastly/model_acl_entry_response.go | 32 +- fastly/model_acl_entry_response_all_of.go | 15 +- fastly/model_acl_response.go | 24 +- fastly/model_acl_response_all_of.go | 13 +- fastly/model_apex_redirect.go | 22 +- fastly/model_apex_redirect_all_of.go | 11 +- fastly/model_async_response.go | 13 +- fastly/model_automation_token.go | 13 +- .../model_automation_token_create_request.go | 11 +- ...omation_token_create_request_attributes.go | 16 +- .../model_automation_token_create_response.go | 33 +- ...automation_token_create_response_all_of.go | 25 +- .../model_automation_token_error_response.go | 17 +- fastly/model_automation_token_response.go | 25 +- .../model_automation_token_response_all_of.go | 17 +- fastly/model_aws_region.go | 45 +- fastly/model_backend.go | 87 +- fastly/model_backend_response.go | 100 +- fastly/model_backend_response_all_of.go | 11 +- fastly/model_batch.go | 11 +- fastly/model_batch_errors.go | 11 +- fastly/model_billing.go | 27 +- fastly/model_billing_address_attributes.go | 25 +- fastly/model_billing_address_request.go | 13 +- fastly/model_billing_address_request_data.go | 13 +- fastly/model_billing_address_response.go | 11 +- fastly/model_billing_address_response_data.go | 17 +- ...ing_address_verification_error_response.go | 11 +- ...ress_verification_error_response_errors.go | 27 +- fastly/model_billing_bandwidth.go | 13 +- fastly/model_billing_bandwidth_tiers.go | 19 +- fastly/model_billing_estimate_invoice_id.go | 11 +- fastly/model_billing_estimate_lines.go | 11 +- ...model_billing_estimate_lines_line_items.go | 27 +- fastly/model_billing_estimate_response.go | 31 +- fastly/model_billing_invoice_id.go | 11 +- fastly/model_billing_regions.go | 17 +- fastly/model_billing_response.go | 31 +- .../model_billing_response_item_items_data.go | 11 +- fastly/model_billing_response_line_item.go | 102 +- fastly/model_billing_status.go | 14 +- fastly/model_billing_total.go | 14 +- fastly/model_billing_total_extras.go | 11 +- .../model_bulk_update_acl_entries_request.go | 11 +- fastly/model_bulk_update_acl_entry.go | 21 +- fastly/model_bulk_update_acl_entry_all_of.go | 13 +- fastly/model_bulk_update_config_store_item.go | 13 +- ...el_bulk_update_config_store_item_all_of.go | 11 +- ...l_bulk_update_config_store_list_request.go | 11 +- fastly/model_bulk_update_dictionary_item.go | 13 +- ...del_bulk_update_dictionary_list_request.go | 11 +- fastly/model_bulk_waf_active_rules.go | 11 +- fastly/model_cache_setting.go | 19 +- fastly/model_cache_setting_response.go | 32 +- fastly/model_client_key.go | 14 +- .../model_compute_acl_create_acls_request.go | 11 +- .../model_compute_acl_create_acls_response.go | 11 +- fastly/model_compute_acl_list_entries.go | 13 +- fastly/model_compute_acl_list_entries_item.go | 11 +- fastly/model_compute_acl_list_entries_meta.go | 11 +- fastly/model_compute_acl_lookup.go | 11 +- fastly/model_compute_acl_update_entry.go | 11 +- fastly/model_condition.go | 14 +- fastly/model_condition_response.go | 23 +- fastly/model_config_store.go | 11 +- fastly/model_config_store_info_response.go | 11 +- fastly/model_config_store_item.go | 11 +- fastly/model_config_store_item_response.go | 22 +- ...model_config_store_item_response_all_of.go | 11 +- fastly/model_config_store_response.go | 20 +- fastly/model_config_store_response_all_of.go | 11 +- fastly/model_configured_product_response.go | 17 +- ...odel_configured_product_response__links.go | 11 +- ...nfigured_product_response_configuration.go | 11 +- ...del_configured_product_response_product.go | 11 +- fastly/model_contact.go | 26 +- fastly/model_contact_response.go | 37 +- fastly/model_contact_response_all_of.go | 11 +- fastly/model_content.go | 21 +- fastly/model_create_dashboard_request.go | 15 +- .../model_create_response_object_request.go | 20 +- fastly/model_customer.go | 32 +- fastly/model_customer_address.go | 11 +- fastly/model_customer_response.go | 43 +- fastly/model_customer_response_all_of.go | 11 +- fastly/model_dashboard.go | 23 +- fastly/model_dashboard_item.go | 23 +- ...del_dashboard_item_property_data_source.go | 17 +- ...em_property_data_source_property_config.go | 13 +- ...l_dashboard_item_property_visualization.go | 21 +- ..._property_visualization_property_config.go | 19 +- fastly/model_dashboard_property_created_by.go | 7 +- fastly/model_dashboard_property_updated_by.go | 7 +- fastly/model_default_settings.go | 21 +- fastly/model_default_settings_error.go | 15 +- fastly/model_default_settings_response.go | 35 +- fastly/model_dictionary.go | 11 +- fastly/model_dictionary_info_response.go | 11 +- fastly/model_dictionary_item.go | 11 +- fastly/model_dictionary_item_response.go | 24 +- .../model_dictionary_item_response_all_of.go | 13 +- fastly/model_dictionary_response.go | 26 +- fastly/model_dictionary_response_all_of.go | 11 +- fastly/model_diff_response.go | 11 +- fastly/model_director.go | 17 +- fastly/model_director_backend.go | 24 +- fastly/model_director_backend_all_of.go | 11 +- fastly/model_director_response.go | 30 +- fastly/model_domain.go | 14 +- fastly/model_domain_inspector.go | 11 +- fastly/model_domain_inspector_entry.go | 13 +- ...model_domain_inspector_entry_dimensions.go | 11 +- fastly/model_domain_inspector_measurements.go | 13 +- .../model_domain_inspector_realtime_entry.go | 13 +- fastly/model_domain_response.go | 27 +- fastly/model_enabled_product_response.go | 15 +- .../model_enabled_product_response__links.go | 11 +- .../model_enabled_product_response_product.go | 11 +- .../model_enabled_product_response_service.go | 11 +- fastly/model_environment.go | 13 +- fastly/model_environment_name.go | 11 +- fastly/model_eom_invoice_response.go | 15 +- fastly/model_error.go | 17 +- fastly/model_error_response_data.go | 13 +- fastly/model_event.go | 15 +- fastly/model_event_attributes.go | 24 +- fastly/model_event_data.go | 11 +- fastly/model_event_response.go | 11 +- fastly/model_events_response.go | 15 +- fastly/model_generic_token_error.go | 11 +- .../model_get_service_level_usage_response.go | 11 +- ..._get_service_level_usage_types_response.go | 11 +- fastly/model_gzip.go | 20 +- fastly/model_gzip_response.go | 33 +- fastly/model_header.go | 29 +- fastly/model_header_response.go | 42 +- fastly/model_header_response_additional.go | 11 +- fastly/model_healthcheck.go | 14 +- fastly/model_healthcheck_response.go | 27 +- fastly/model_historical.go | 18 +- fastly/model_historical_ddos.go | 18 +- fastly/model_historical_ddos_meta.go | 11 +- fastly/model_historical_domains.go | 18 +- fastly/model_historical_domains_data.go | 13 +- fastly/model_historical_domains_meta.go | 13 +- .../model_historical_domains_meta_filters.go | 15 +- fastly/model_historical_domains_response.go | 18 +- ...odel_historical_domains_response_all_of.go | 11 +- fastly/model_historical_meta.go | 17 +- fastly/model_historical_origins_response.go | 18 +- ...odel_historical_origins_response_all_of.go | 11 +- fastly/model_historical_regions_response.go | 20 +- ...odel_historical_regions_response_all_of.go | 11 +- ...el_historical_stats_aggregated_response.go | 20 +- ...orical_stats_aggregated_response_all_of.go | 11 +- ...el_historical_stats_by_service_response.go | 18 +- ...orical_stats_by_service_response_all_of.go | 11 +- ...el_historical_usage_aggregated_response.go | 18 +- ...orical_usage_aggregated_response_all_of.go | 11 +- fastly/model_historical_usage_data.go | 15 +- .../model_historical_usage_month_response.go | 20 +- ..._historical_usage_month_response_all_of.go | 11 +- ...el_historical_usage_month_response_data.go | 11 +- fastly/model_historical_usage_service.go | 7 +- ...model_historical_usage_service_response.go | 18 +- ...istorical_usage_service_response_all_of.go | 11 +- fastly/model_http3.go | 22 +- fastly/model_http3_all_of.go | 11 +- fastly/model_http_response_format.go | 11 +- fastly/model_http_stream_format.go | 11 +- fastly/model_iam_permission.go | 11 +- fastly/model_iam_role.go | 17 +- fastly/model_iam_role_all_of.go | 11 +- fastly/model_iam_service_group.go | 17 +- fastly/model_iam_service_group_all_of.go | 11 +- fastly/model_iam_user_group.go | 17 +- fastly/model_iam_user_group_all_of.go | 11 +- .../model_included_with_tls_configuration.go | 11 +- ...el_included_with_tls_configuration_item.go | 15 +- ...odel_included_with_waf_active_rule_item.go | 19 +- .../model_included_with_waf_exclusion_item.go | 19 +- ...included_with_waf_firewall_version_item.go | 19 +- fastly/model_included_with_waf_rule_item.go | 19 +- fastly/model_inline_object.go | 13 +- fastly/model_inline_object_1.go | 13 +- fastly/model_inline_response_200.go | 11 +- fastly/model_inline_response_200_1.go | 11 +- fastly/model_inline_response_200_2.go | 11 +- fastly/model_inline_response_200_3.go | 13 +- fastly/model_inline_response_200_3_meta.go | 11 +- fastly/model_inline_response_200_4.go | 13 +- fastly/model_inline_response_200_4_meta.go | 13 +- fastly/model_inline_response_200_5.go | 13 +- fastly/model_inline_response_200_6.go | 13 +- fastly/model_inline_response_200_7.go | 11 +- fastly/model_inline_response_201.go | 11 +- fastly/model_inline_response_400.go | 11 +- fastly/model_invitation.go | 11 +- fastly/model_invitation_data.go | 15 +- fastly/model_invitation_data_attributes.go | 15 +- fastly/model_invitation_response.go | 11 +- fastly/model_invitation_response_all_of.go | 11 +- fastly/model_invitation_response_data.go | 17 +- .../model_invitation_response_data_all_of.go | 15 +- fastly/model_invitations_response.go | 15 +- fastly/model_invitations_response_all_of.go | 11 +- fastly/model_invoice.go | 15 +- fastly/model_invoicelineitems.go | 11 +- fastly/model_legacy_waf_configuration_set.go | 11 +- fastly/model_legacy_waf_firewall.go | 15 +- fastly/model_legacy_waf_owasp.go | 11 +- fastly/model_legacy_waf_rule.go | 11 +- fastly/model_legacy_waf_rule_status.go | 13 +- fastly/model_legacy_waf_ruleset.go | 11 +- fastly/model_legacy_waf_tag.go | 11 +- fastly/model_legacy_waf_update_status.go | 11 +- fastly/model_line_item_data.go | 89 +- .../model_list_customer_addresses_response.go | 11 +- fastly/model_list_dashboards_response.go | 13 +- fastly/model_list_eom_invoices_response.go | 13 +- fastly/model_listinvoices.go | 13 +- fastly/model_logging_address_and_port.go | 11 +- fastly/model_logging_azureblob_additional.go | 17 +- fastly/model_logging_azureblob_response.go | 43 +- fastly/model_logging_bigquery_additional.go | 14 +- fastly/model_logging_bigquery_response.go | 37 +- fastly/model_logging_cloudfiles_additional.go | 20 +- fastly/model_logging_cloudfiles_response.go | 46 +- fastly/model_logging_common.go | 19 +- fastly/model_logging_common_response.go | 21 +- .../model_logging_common_response_all_of.go | 19 +- .../model_logging_common_response_all_of_1.go | 13 +- fastly/model_logging_datadog_additional.go | 13 +- fastly/model_logging_datadog_response.go | 36 +- .../model_logging_digitalocean_additional.go | 17 +- fastly/model_logging_digitalocean_response.go | 43 +- .../model_logging_elasticsearch_additional.go | 20 +- .../model_logging_elasticsearch_response.go | 55 +- .../model_logging_format_version_integer.go | 13 +- fastly/model_logging_format_version_string.go | 13 +- fastly/model_logging_ftp_additional.go | 14 +- fastly/model_logging_ftp_response.go | 40 +- fastly/model_logging_ftp_response_all_of.go | 11 +- fastly/model_logging_gcs_additional.go | 16 +- fastly/model_logging_gcs_common.go | 11 +- fastly/model_logging_gcs_response.go | 42 +- fastly/model_logging_generic_common.go | 14 +- .../model_logging_generic_common_response.go | 14 +- ..._logging_generic_common_response_all_of.go | 14 +- ...ogging_generic_common_response_all_of_1.go | 11 +- .../model_logging_google_pubsub_additional.go | 11 +- .../model_logging_google_pubsub_response.go | 34 +- fastly/model_logging_heroku_additional.go | 11 +- fastly/model_logging_heroku_response.go | 34 +- fastly/model_logging_honeycomb_additional.go | 11 +- fastly/model_logging_honeycomb_response.go | 34 +- fastly/model_logging_https_additional.go | 22 +- fastly/model_logging_https_response.go | 57 +- fastly/model_logging_kafka_additional.go | 16 +- fastly/model_logging_kafka_response.go | 51 +- fastly/model_logging_kafka_response_post.go | 51 +- fastly/model_logging_kinesis_additional.go | 27 +- fastly/model_logging_kinesis_response.go | 42 +- fastly/model_logging_logentries_additional.go | 13 +- fastly/model_logging_logentries_response.go | 36 +- fastly/model_logging_loggly_additional.go | 11 +- fastly/model_logging_loggly_response.go | 34 +- fastly/model_logging_logshuttle_additional.go | 14 +- fastly/model_logging_logshuttle_response.go | 37 +- fastly/model_logging_message_type.go | 15 +- fastly/model_logging_newrelic_additional.go | 11 +- fastly/model_logging_newrelic_response.go | 34 +- .../model_logging_newrelicotlp_additional.go | 14 +- fastly/model_logging_newrelicotlp_response.go | 37 +- fastly/model_logging_openstack_additional.go | 17 +- fastly/model_logging_openstack_response.go | 43 +- fastly/model_logging_papertrail_response.go | 34 +- fastly/model_logging_placement.go | 17 +- fastly/model_logging_request_caps_common.go | 11 +- fastly/model_logging_s3_additional.go | 35 +- fastly/model_logging_s3_response.go | 61 +- fastly/model_logging_scalyr_additional.go | 11 +- fastly/model_logging_scalyr_response.go | 34 +- fastly/model_logging_sftp_additional.go | 20 +- fastly/model_logging_sftp_response.go | 46 +- fastly/model_logging_sftp_response_all_of.go | 11 +- fastly/model_logging_splunk_additional.go | 13 +- fastly/model_logging_splunk_response.go | 48 +- fastly/model_logging_sumologic_additional.go | 11 +- fastly/model_logging_sumologic_response.go | 38 +- fastly/model_logging_syslog_additional.go | 19 +- fastly/model_logging_syslog_response.go | 56 +- fastly/model_logging_tls_common.go | 23 +- fastly/model_logging_use_tls_string.go | 13 +- fastly/model_metadata.go | 11 +- fastly/model_mtd_invoice_response.go | 15 +- fastly/model_mtdinvoice.go | 15 +- fastly/model_mtdlineitems.go | 11 +- fastly/model_mutual_authentication.go | 11 +- fastly/model_mutual_authentication_data.go | 15 +- ...l_mutual_authentication_data_attributes.go | 11 +- .../model_mutual_authentication_response.go | 11 +- ...tual_authentication_response_attributes.go | 20 +- ...thentication_response_attributes_all_of.go | 11 +- ...del_mutual_authentication_response_data.go | 17 +- ...ual_authentication_response_data_all_of.go | 13 +- .../model_mutual_authentications_response.go | 15 +- ..._mutual_authentications_response_all_of.go | 11 +- fastly/model_origin_inspector.go | 11 +- fastly/model_origin_inspector_dimensions.go | 11 +- fastly/model_origin_inspector_entry.go | 13 +- fastly/model_origin_inspector_historical.go | 18 +- .../model_origin_inspector_historical_data.go | 13 +- .../model_origin_inspector_historical_meta.go | 13 +- ...rigin_inspector_historical_meta_filters.go | 15 +- fastly/model_origin_inspector_measurements.go | 13 +- .../model_origin_inspector_realtime_entry.go | 13 +- fastly/model_origin_inspector_values.go | 11 +- fastly/model_package.go | 11 +- fastly/model_package_metadata.go | 13 +- fastly/model_package_response.go | 26 +- fastly/model_package_response_all_of.go | 11 +- fastly/model_pagination.go | 13 +- fastly/model_pagination_cursor_meta.go | 11 +- fastly/model_pagination_links.go | 23 +- fastly/model_pagination_meta.go | 11 +- fastly/model_permission.go | 17 +- fastly/model_platform_ddos_data_items.go | 11 +- fastly/model_platform_ddos_entry.go | 13 +- fastly/model_platform_ddos_response.go | 18 +- fastly/model_platform_ddos_response_all_of.go | 11 +- fastly/model_pool_additional.go | 38 +- fastly/model_pool_response.go | 68 +- fastly/model_pool_response_all_of.go | 11 +- fastly/model_pool_response_common.go | 16 +- fastly/model_pool_response_post.go | 68 +- fastly/model_pool_response_post_all_of.go | 11 +- fastly/model_pop.go | 31 +- fastly/model_pop_coordinates.go | 17 +- fastly/model_public_ip_list.go | 11 +- fastly/model_publish_item.go | 17 +- fastly/model_publish_item_formats.go | 15 +- fastly/model_publish_request.go | 13 +- fastly/model_purge_keys.go | 11 +- fastly/model_purge_response.go | 13 +- fastly/model_rate_limiter.go | 19 +- fastly/model_rate_limiter_response.go | 34 +- fastly/model_rate_limiter_response_all_of.go | 11 +- fastly/model_read_only_customer_id.go | 7 +- fastly/model_read_only_id.go | 7 +- fastly/model_read_only_service_id.go | 7 +- fastly/model_read_only_user_id.go | 7 +- fastly/model_read_only_version.go | 7 +- fastly/model_realtime.go | 11 +- fastly/model_realtime_entry.go | 13 +- fastly/model_realtime_entry_aggregated.go | 11 +- fastly/model_realtime_entry_recorded.go | 7 +- fastly/model_realtime_measurements.go | 11 +- fastly/model_relationship_common_name.go | 11 +- fastly/model_relationship_customer.go | 11 +- .../model_relationship_customer_customer.go | 11 +- ...ationship_default_ecdsa_tls_certificate.go | 11 +- ...s_certificate_default_ecdsa_certificate.go | 11 +- ...tificate_default_ecdsa_certificate_data.go | 11 +- ...el_relationship_default_tls_certificate.go | 11 +- ...ult_tls_certificate_default_certificate.go | 11 +- ...ls_certificate_default_certificate_data.go | 11 +- fastly/model_relationship_member_customer.go | 13 +- ...lationship_member_mutual_authentication.go | 13 +- fastly/model_relationship_member_service.go | 13 +- ..._relationship_member_service_invitation.go | 11 +- ...odel_relationship_member_tls_activation.go | 13 +- ...elationship_member_tls_bulk_certificate.go | 13 +- ...del_relationship_member_tls_certificate.go | 13 +- ...l_relationship_member_tls_configuration.go | 13 +- .../model_relationship_member_tls_domain.go | 11 +- ...del_relationship_member_tls_private_key.go | 13 +- ...el_relationship_member_tls_subscription.go | 13 +- ...del_relationship_member_waf_active_rule.go | 13 +- .../model_relationship_member_waf_firewall.go | 13 +- ...elationship_member_waf_firewall_version.go | 11 +- fastly/model_relationship_member_waf_rule.go | 13 +- ...l_relationship_member_waf_rule_revision.go | 11 +- fastly/model_relationship_member_waf_tag.go | 11 +- ...odel_relationship_mutual_authentication.go | 9 +- ...al_authentication_mutual_authentication.go | 11 +- ...del_relationship_mutual_authentications.go | 11 +- ..._authentications_mutual_authentications.go | 11 +- fastly/model_relationship_service.go | 11 +- .../model_relationship_service_invitations.go | 11 +- ...relationship_service_invitations_create.go | 11 +- ..._invitations_create_service_invitations.go | 11 +- ...service_invitations_service_invitations.go | 11 +- fastly/model_relationship_services.go | 11 +- .../model_relationship_services_services.go | 11 +- fastly/model_relationship_tls_activation.go | 11 +- ...ationship_tls_activation_tls_activation.go | 11 +- fastly/model_relationship_tls_activations.go | 11 +- ...model_relationship_tls_bulk_certificate.go | 11 +- ...s_bulk_certificate_tls_bulk_certificate.go | 11 +- ...odel_relationship_tls_bulk_certificates.go | 11 +- fastly/model_relationship_tls_certificate.go | 11 +- ...ionship_tls_certificate_tls_certificate.go | 11 +- fastly/model_relationship_tls_certificates.go | 11 +- ...nship_tls_certificates_tls_certificates.go | 11 +- .../model_relationship_tls_configuration.go | 11 +- ..._tls_configuration_for_tls_subscription.go | 11 +- ...hip_tls_configuration_tls_configuration.go | 11 +- .../model_relationship_tls_configurations.go | 11 +- ...p_tls_configurations_tls_configurations.go | 11 +- ...el_relationship_tls_dns_records_request.go | 11 +- ...hip_tls_dns_records_request_dns_records.go | 11 +- ...ls_dns_records_request_dns_records_data.go | 13 +- ...l_relationship_tls_dns_records_response.go | 11 +- ...ip_tls_dns_records_response_dns_records.go | 11 +- ...s_dns_records_response_dns_records_data.go | 13 +- fastly/model_relationship_tls_domain.go | 11 +- ...odel_relationship_tls_domain_tls_domain.go | 11 +- fastly/model_relationship_tls_domains.go | 11 +- ...el_relationship_tls_domains_tls_domains.go | 11 +- fastly/model_relationship_tls_private_key.go | 11 +- ...ionship_tls_private_key_tls_private_key.go | 11 +- fastly/model_relationship_tls_private_keys.go | 11 +- ...nship_tls_private_keys_tls_private_keys.go | 11 +- fastly/model_relationship_tls_subscription.go | 11 +- ...nship_tls_subscription_tls_subscription.go | 11 +- .../model_relationship_tls_subscriptions.go | 11 +- fastly/model_relationship_user.go | 11 +- fastly/model_relationship_user_user.go | 11 +- fastly/model_relationship_waf_active_rules.go | 11 +- ...nship_waf_active_rules_waf_active_rules.go | 11 +- fastly/model_relationship_waf_firewall.go | 11 +- ...model_relationship_waf_firewall_version.go | 11 +- ...f_firewall_version_waf_firewall_version.go | 11 +- ...odel_relationship_waf_firewall_versions.go | 11 +- ..._relationship_waf_firewall_waf_firewall.go | 11 +- fastly/model_relationship_waf_rule.go | 11 +- .../model_relationship_waf_rule_revision.go | 11 +- ...ip_waf_rule_revision_waf_rule_revisions.go | 11 +- .../model_relationship_waf_rule_revisions.go | 11 +- .../model_relationship_waf_rule_waf_rule.go | 11 +- fastly/model_relationship_waf_rules.go | 11 +- fastly/model_relationship_waf_tags.go | 11 +- .../model_relationship_waf_tags_waf_tags.go | 11 +- fastly/model_relationships_for_invitation.go | 19 +- ...relationships_for_mutual_authentication.go | 13 +- fastly/model_relationships_for_star.go | 13 +- .../model_relationships_for_tls_activation.go | 15 +- ..._relationships_for_tls_bulk_certificate.go | 19 +- ...del_relationships_for_tls_configuration.go | 19 +- fastly/model_relationships_for_tls_domain.go | 25 +- ...model_relationships_for_tls_private_key.go | 19 +- ...odel_relationships_for_tls_subscription.go | 31 +- ...model_relationships_for_waf_active_rule.go | 19 +- .../model_relationships_for_waf_exclusion.go | 19 +- ..._relationships_for_waf_firewall_version.go | 19 +- fastly/model_relationships_for_waf_rule.go | 19 +- fastly/model_request_settings_additional.go | 26 +- fastly/model_request_settings_response.go | 54 +- .../model_request_settings_response_all_of.go | 26 +- fastly/model_resource.go | 11 +- fastly/model_resource_response.go | 22 +- fastly/model_resource_response_all_of.go | 13 +- fastly/model_response_object.go | 20 +- fastly/model_response_object_response.go | 33 +- fastly/model_results.go | 18 +- fastly/model_role_user.go | 17 +- fastly/model_schemas_contact_response.go | 37 +- fastly/model_schemas_snippet_response.go | 24 +- .../model_schemas_snippet_response_common.go | 24 +- fastly/model_schemas_user_response.go | 35 +- .../model_schemas_user_response_read_only.go | 13 +- fastly/model_schemas_vcl_response.go | 24 +- fastly/model_schemas_version.go | 14 +- fastly/model_schemas_version_response.go | 25 +- fastly/model_schemas_waf_firewall_version.go | 11 +- ...model_schemas_waf_firewall_version_data.go | 13 +- fastly/model_secret.go | 14 +- fastly/model_secret_response.go | 17 +- fastly/model_secret_store.go | 11 +- fastly/model_secret_store_response.go | 14 +- fastly/model_server.go | 17 +- fastly/model_server_response.go | 32 +- fastly/model_server_response_all_of.go | 15 +- fastly/model_service.go | 14 +- fastly/model_service_authorization.go | 11 +- fastly/model_service_authorization_data.go | 15 +- ...l_service_authorization_data_attributes.go | 11 +- ...ervice_authorization_data_relationships.go | 13 +- ...e_authorization_data_relationships_user.go | 11 +- ...horization_data_relationships_user_data.go | 13 +- .../model_service_authorization_response.go | 11 +- ...del_service_authorization_response_data.go | 17 +- ...vice_authorization_response_data_all_of.go | 13 +- .../model_service_authorizations_response.go | 15 +- ..._service_authorizations_response_all_of.go | 11 +- fastly/model_service_create.go | 14 +- fastly/model_service_create_all_of.go | 11 +- fastly/model_service_detail.go | 32 +- fastly/model_service_detail_all_of.go | 16 +- fastly/model_service_id_and_version.go | 13 +- fastly/model_service_id_and_version_string.go | 13 +- fastly/model_service_invitation.go | 11 +- fastly/model_service_invitation_data.go | 15 +- ...odel_service_invitation_data_attributes.go | 11 +- ...l_service_invitation_data_relationships.go | 11 +- fastly/model_service_invitation_response.go | 11 +- ...odel_service_invitation_response_all_of.go | 11 +- ...service_invitation_response_all_of_data.go | 13 +- fastly/model_service_list_response.go | 25 +- fastly/model_service_list_response_all_of.go | 11 +- fastly/model_service_response.go | 25 +- fastly/model_service_response_all_of.go | 11 +- fastly/model_service_version_detail.go | 27 +- .../model_service_version_detail_or_null.go | 27 +- fastly/model_serviceusagemetric.go | 11 +- fastly/model_serviceusagemetrics.go | 11 +- fastly/model_serviceusagemetrics_data.go | 15 +- fastly/model_serviceusagetype.go | 11 +- fastly/model_serviceusagetypes.go | 11 +- fastly/model_set_configuration.go | 11 +- fastly/model_set_workspace_id.go | 11 +- fastly/model_settings.go | 11 +- fastly/model_settings_response.go | 17 +- fastly/model_signing_key.go | 11 +- fastly/model_snippet.go | 11 +- fastly/model_snippet_all_of.go | 11 +- fastly/model_snippet_common.go | 11 +- fastly/model_snippet_response.go | 24 +- fastly/model_snippet_response_common.go | 24 +- .../model_snippet_response_common_all_of.go | 13 +- fastly/model_snippet_response_post.go | 24 +- fastly/model_snippet_with_dynamic_number.go | 11 +- ...odel_snippet_with_dynamic_number_all_of.go | 11 +- fastly/model_star.go | 11 +- fastly/model_star_data.go | 13 +- fastly/model_star_response.go | 13 +- fastly/model_star_response_all_of.go | 13 +- fastly/model_stats.go | 11 +- fastly/model_store.go | 11 +- fastly/model_store_response.go | 11 +- fastly/model_sudo_generic_token_error.go | 11 +- fastly/model_sudo_request.go | 19 +- fastly/model_sudo_response.go | 11 +- fastly/model_timestamps.go | 20 +- fastly/model_timestamps_no_delete.go | 17 +- fastly/model_tls_activation.go | 11 +- fastly/model_tls_activation_data.go | 13 +- fastly/model_tls_activation_response.go | 11 +- fastly/model_tls_activation_response_data.go | 17 +- ...del_tls_activation_response_data_all_of.go | 13 +- fastly/model_tls_activations_response.go | 15 +- .../model_tls_activations_response_all_of.go | 11 +- fastly/model_tls_bulk_certificate.go | 11 +- fastly/model_tls_bulk_certificate_data.go | 15 +- ...el_tls_bulk_certificate_data_attributes.go | 11 +- fastly/model_tls_bulk_certificate_response.go | 11 +- ...ls_bulk_certificate_response_attributes.go | 20 +- ..._certificate_response_attributes_all_of.go | 11 +- ...odel_tls_bulk_certificate_response_data.go | 17 +- ...s_bulk_certificate_response_data_all_of.go | 13 +- .../model_tls_bulk_certificates_response.go | 15 +- ...l_tls_bulk_certificates_response_all_of.go | 11 +- fastly/model_tls_certificate.go | 11 +- fastly/model_tls_certificate_blob_response.go | 11 +- fastly/model_tls_certificate_data.go | 15 +- .../model_tls_certificate_data_attributes.go | 11 +- fastly/model_tls_certificate_response.go | 11 +- ...del_tls_certificate_response_attributes.go | 20 +- ..._certificate_response_attributes_all_of.go | 11 +- fastly/model_tls_certificate_response_data.go | 17 +- ...el_tls_certificate_response_data_all_of.go | 13 +- fastly/model_tls_certificates_response.go | 15 +- .../model_tls_certificates_response_all_of.go | 11 +- fastly/model_tls_common_response.go | 23 +- fastly/model_tls_common_response_all_of.go | 23 +- fastly/model_tls_common_response_all_of_1.go | 11 +- fastly/model_tls_configuration.go | 11 +- fastly/model_tls_configuration_data.go | 15 +- ...model_tls_configuration_data_attributes.go | 11 +- fastly/model_tls_configuration_response.go | 11 +- ...l_tls_configuration_response_attributes.go | 20 +- ...onfiguration_response_attributes_all_of.go | 11 +- .../model_tls_configuration_response_data.go | 17 +- ..._tls_configuration_response_data_all_of.go | 13 +- fastly/model_tls_configurations_response.go | 15 +- ...odel_tls_configurations_response_all_of.go | 11 +- fastly/model_tls_csr.go | 11 +- fastly/model_tls_csr_data.go | 15 +- fastly/model_tls_csr_data_attributes.go | 13 +- fastly/model_tls_csr_error_response.go | 11 +- fastly/model_tls_csr_response.go | 11 +- fastly/model_tls_csr_response_attributes.go | 11 +- fastly/model_tls_csr_response_data.go | 17 +- fastly/model_tls_dns_record.go | 11 +- fastly/model_tls_domain_data.go | 15 +- fastly/model_tls_domains_response.go | 15 +- fastly/model_tls_domains_response_all_of.go | 11 +- fastly/model_tls_private_key.go | 11 +- fastly/model_tls_private_key_data.go | 15 +- .../model_tls_private_key_data_attributes.go | 11 +- fastly/model_tls_private_key_response.go | 11 +- ...del_tls_private_key_response_attributes.go | 20 +- ..._private_key_response_attributes_all_of.go | 11 +- fastly/model_tls_private_key_response_data.go | 15 +- fastly/model_tls_private_keys_response.go | 15 +- .../model_tls_private_keys_response_all_of.go | 11 +- fastly/model_tls_subscription.go | 11 +- fastly/model_tls_subscription_data.go | 15 +- .../model_tls_subscription_data_attributes.go | 9 +- fastly/model_tls_subscription_response.go | 11 +- ...el_tls_subscription_response_attributes.go | 20 +- ...subscription_response_attributes_all_of.go | 11 +- .../model_tls_subscription_response_data.go | 13 +- fastly/model_tls_subscriptions_response.go | 15 +- ...model_tls_subscriptions_response_all_of.go | 11 +- fastly/model_token.go | 13 +- fastly/model_token_created_response.go | 23 +- fastly/model_token_created_response_all_of.go | 11 +- fastly/model_token_response.go | 23 +- fastly/model_token_response_all_of.go | 13 +- fastly/model_tokens_additional_props.go | 19 +- fastly/model_type_billing_address.go | 11 +- fastly/model_type_contact.go | 11 +- fastly/model_type_customer.go | 11 +- fastly/model_type_event.go | 11 +- fastly/model_type_invitation.go | 11 +- fastly/model_type_mutual_authentication.go | 11 +- fastly/model_type_resource.go | 15 +- fastly/model_type_service.go | 11 +- fastly/model_type_service_authorization.go | 11 +- fastly/model_type_service_invitation.go | 11 +- fastly/model_type_star.go | 11 +- fastly/model_type_tls_activation.go | 11 +- fastly/model_type_tls_bulk_certificate.go | 11 +- fastly/model_type_tls_certificate.go | 11 +- fastly/model_type_tls_configuration.go | 11 +- fastly/model_type_tls_csr.go | 11 +- fastly/model_type_tls_dns_record.go | 11 +- fastly/model_type_tls_domain.go | 11 +- fastly/model_type_tls_private_key.go | 11 +- fastly/model_type_tls_subscription.go | 11 +- fastly/model_type_user.go | 11 +- fastly/model_type_waf_active_rule.go | 11 +- fastly/model_type_waf_exclusion.go | 11 +- fastly/model_type_waf_firewall.go | 11 +- fastly/model_type_waf_firewall_version.go | 11 +- fastly/model_type_waf_rule.go | 11 +- fastly/model_type_waf_rule_revision.go | 11 +- fastly/model_type_waf_tag.go | 11 +- .../model_update_billing_address_request.go | 13 +- ...del_update_billing_address_request_data.go | 13 +- fastly/model_update_dashboard_request.go | 13 +- fastly/model_user.go | 22 +- fastly/model_user_response.go | 35 +- fastly/model_user_response_read_only.go | 13 +- fastly/model_validator_result.go | 11 +- fastly/model_validator_result_data.go | 15 +- .../model_validator_result_data_attributes.go | 22 +- ...lidator_result_data_attributes_messages.go | 25 +- fastly/model_values.go | 11 +- fastly/model_values_ddos.go | 11 +- fastly/model_vcl.go | 11 +- fastly/model_vcl_diff.go | 11 +- fastly/model_vcl_response.go | 24 +- .../model_vcl_syntax_highlighting_response.go | 11 +- fastly/model_version.go | 14 +- fastly/model_version_create_response.go | 13 +- fastly/model_version_detail.go | 13 +- fastly/model_version_detail_settings.go | 11 +- fastly/model_version_response.go | 25 +- fastly/model_version_response_all_of.go | 11 +- fastly/model_waf_active_rule.go | 11 +- ...model_waf_active_rule_creation_response.go | 14 +- fastly/model_waf_active_rule_data.go | 15 +- .../model_waf_active_rule_data_attributes.go | 15 +- fastly/model_waf_active_rule_response.go | 11 +- fastly/model_waf_active_rule_response_data.go | 17 +- ...el_waf_active_rule_response_data_all_of.go | 15 +- ...af_active_rule_response_data_attributes.go | 20 +- ...ve_rule_response_data_attributes_all_of.go | 11 +- ...active_rule_response_data_relationships.go | 19 +- fastly/model_waf_active_rules_response.go | 17 +- .../model_waf_active_rules_response_all_of.go | 13 +- fastly/model_waf_exclusion.go | 11 +- fastly/model_waf_exclusion_data.go | 15 +- fastly/model_waf_exclusion_data_attributes.go | 14 +- fastly/model_waf_exclusion_response.go | 11 +- fastly/model_waf_exclusion_response_data.go | 15 +- ...odel_waf_exclusion_response_data_all_of.go | 15 +- ..._waf_exclusion_response_data_attributes.go | 23 +- ...clusion_response_data_attributes_all_of.go | 14 +- ...f_exclusion_response_data_relationships.go | 19 +- fastly/model_waf_exclusions_response.go | 17 +- .../model_waf_exclusions_response_all_of.go | 13 +- fastly/model_waf_firewall.go | 11 +- fastly/model_waf_firewall_data.go | 13 +- fastly/model_waf_firewall_data_attributes.go | 13 +- fastly/model_waf_firewall_response.go | 13 +- fastly/model_waf_firewall_response_data.go | 17 +- ...model_waf_firewall_response_data_all_of.go | 15 +- ...l_waf_firewall_response_data_attributes.go | 22 +- ...irewall_response_data_attributes_all_of.go | 11 +- fastly/model_waf_firewall_version.go | 11 +- fastly/model_waf_firewall_version_data.go | 13 +- ...el_waf_firewall_version_data_attributes.go | 16 +- fastly/model_waf_firewall_version_response.go | 13 +- ...odel_waf_firewall_version_response_data.go | 15 +- ...f_firewall_version_response_data_all_of.go | 15 +- ...rewall_version_response_data_attributes.go | 23 +- ...version_response_data_attributes_all_of.go | 14 +- .../model_waf_firewall_versions_response.go | 17 +- ...l_waf_firewall_versions_response_all_of.go | 13 +- fastly/model_waf_firewalls_response.go | 17 +- fastly/model_waf_firewalls_response_all_of.go | 13 +- fastly/model_waf_rule.go | 15 +- fastly/model_waf_rule_attributes.go | 11 +- fastly/model_waf_rule_response.go | 13 +- fastly/model_waf_rule_response_data.go | 17 +- fastly/model_waf_rule_response_data_all_of.go | 11 +- fastly/model_waf_rule_revision.go | 13 +- fastly/model_waf_rule_revision_attributes.go | 11 +- fastly/model_waf_rule_revision_or_latest.go | 14 +- fastly/model_waf_rule_revision_response.go | 13 +- .../model_waf_rule_revision_response_data.go | 15 +- ..._waf_rule_revision_response_data_all_of.go | 11 +- fastly/model_waf_rule_revisions_response.go | 17 +- ...odel_waf_rule_revisions_response_all_of.go | 13 +- fastly/model_waf_rules_response.go | 17 +- fastly/model_waf_rules_response_all_of.go | 13 +- fastly/model_waf_tag.go | 13 +- fastly/model_waf_tag_attributes.go | 11 +- fastly/model_waf_tags_response.go | 17 +- fastly/model_waf_tags_response_all_of.go | 13 +- fastly/model_waf_tags_response_data_item.go | 15 +- fastly/model_ws_message_format.go | 11 +- fastly/response.go | 7 +- fastly/utils.go | 51 +- sig.json | 2 +- 872 files changed, 17835 insertions(+), 17670 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c350efc..58255a0 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [v1.0.0-beta.36](https://github.com/fastly/fastly-go/releases/tag/release/v1.0.0-beta.36) (2024-10-23) + +**Enhancements:** + +- feat(go): Run 'gofmt' on generated Go code. + +**Documentation:** + +- doc(backend): Correct spelling in `connect_timeout` and `first_byte_timeout` field descriptions. + ## [v1.0.0-beta.35](https://github.com/fastly/fastly-go/releases/tag/release/v1.0.0-beta.35) (2024-09-13) **Bug fixes:** diff --git a/README.md b/README.md index f7b8eda..19138df 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add the following to your project's `go.mod`: ```go.mod require ( - github.com/fastly/fastly-go 1.0.0-beta.35 + github.com/fastly/fastly-go 1.0.0-beta.36 ) ``` diff --git a/docs/Backend.md b/docs/Backend.md index e55f5da..cb06681 100644 --- a/docs/Backend.md +++ b/docs/Backend.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **BetweenBytesTimeout** | Pointer to **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] **ClientCert** | Pointer to **NullableString** | Unused. | [optional] **Comment** | Pointer to **NullableString** | A freeform descriptive note. | [optional] -**ConnectTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | [optional] -**FirstByteTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | [optional] +**ConnectTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | [optional] +**FirstByteTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | [optional] **Healthcheck** | Pointer to **NullableString** | The name of the healthcheck to use with this backend. | [optional] **Hostname** | Pointer to **NullableString** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **Ipv4** | Pointer to **NullableString** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] diff --git a/docs/BackendAPI.md b/docs/BackendAPI.md index 1f7ff64..e637506 100644 --- a/docs/BackendAPI.md +++ b/docs/BackendAPI.md @@ -39,8 +39,8 @@ func main() { betweenBytesTimeout := int32(56) // int32 | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional) clientCert := "clientCert_example" // string | Unused. (optional) comment := "comment_example" // string | A freeform descriptive note. (optional) - connectTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. (optional) - firstByteTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. (optional) + connectTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. (optional) + firstByteTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. (optional) healthcheck := "healthcheck_example" // string | The name of the healthcheck to use with this backend. (optional) hostname := "hostname_example" // string | The hostname of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv4 := "ipv4_example" // string | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) @@ -99,7 +99,7 @@ Other parameters are passed through a pointer to a apiCreateBackendRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **address** | **string** | A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. | **autoLoadbalance** | **bool** | Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. | **betweenBytesTimeout** | **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | **clientCert** | **string** | Unused. | **comment** | **string** | A freeform descriptive note. | **connectTimeout** | **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | **firstByteTimeout** | **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | **healthcheck** | **string** | The name of the healthcheck to use with this backend. | **hostname** | **string** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | **ipv4** | **string** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | **ipv6** | **string** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | **keepaliveTime** | **int32** | How long in seconds to keep a persistent connection to the backend between requests. | **maxConn** | **int32** | Maximum number of concurrent connections this backend will accept. | **maxTLSVersion** | **string** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **minTLSVersion** | **string** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **name** | **string** | The name of the backend. | **overrideHost** | **string** | If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. | **port** | **int32** | Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. | **requestCondition** | **string** | Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. | **shareKey** | **string** | Value that when shared across backends will enable those backends to share the same health check. | **shield** | **string** | Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). | **sslCaCert** | **string** | CA certificate attached to origin. | **sslCertHostname** | **string** | Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. | **sslCheckCert** | **bool** | Be strict on checking SSL certs. | [default to true] **sslCiphers** | **string** | List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **sslClientCert** | **string** | Client certificate attached to origin. | **sslClientKey** | **string** | Client key attached to origin. | **sslHostname** | **string** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | **sslSniHostname** | **string** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | **tcpKeepaliveEnable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | **tcpKeepaliveInterval** | **int32** | Interval in seconds between subsequent keepalive probes. | **tcpKeepaliveProbes** | **int32** | Number of unacknowledged probes to send before considering the connection dead. | **tcpKeepaliveTime** | **int32** | Interval in seconds between the last data packet sent and the first keepalive probe. | **useSsl** | **bool** | Whether or not to require TLS for connections to this backend. | **weight** | **int32** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | + **address** | **string** | A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. | **autoLoadbalance** | **bool** | Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. | **betweenBytesTimeout** | **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | **clientCert** | **string** | Unused. | **comment** | **string** | A freeform descriptive note. | **connectTimeout** | **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | **firstByteTimeout** | **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | **healthcheck** | **string** | The name of the healthcheck to use with this backend. | **hostname** | **string** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | **ipv4** | **string** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | **ipv6** | **string** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | **keepaliveTime** | **int32** | How long in seconds to keep a persistent connection to the backend between requests. | **maxConn** | **int32** | Maximum number of concurrent connections this backend will accept. | **maxTLSVersion** | **string** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **minTLSVersion** | **string** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **name** | **string** | The name of the backend. | **overrideHost** | **string** | If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. | **port** | **int32** | Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. | **requestCondition** | **string** | Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. | **shareKey** | **string** | Value that when shared across backends will enable those backends to share the same health check. | **shield** | **string** | Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). | **sslCaCert** | **string** | CA certificate attached to origin. | **sslCertHostname** | **string** | Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. | **sslCheckCert** | **bool** | Be strict on checking SSL certs. | [default to true] **sslCiphers** | **string** | List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **sslClientCert** | **string** | Client certificate attached to origin. | **sslClientKey** | **string** | Client key attached to origin. | **sslHostname** | **string** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | **sslSniHostname** | **string** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | **tcpKeepaliveEnable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | **tcpKeepaliveInterval** | **int32** | Interval in seconds between subsequent keepalive probes. | **tcpKeepaliveProbes** | **int32** | Number of unacknowledged probes to send before considering the connection dead. | **tcpKeepaliveTime** | **int32** | Interval in seconds between the last data packet sent and the first keepalive probe. | **useSsl** | **bool** | Whether or not to require TLS for connections to this backend. | **weight** | **int32** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | ### Return type @@ -355,8 +355,8 @@ func main() { betweenBytesTimeout := int32(56) // int32 | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional) clientCert := "clientCert_example" // string | Unused. (optional) comment := "comment_example" // string | A freeform descriptive note. (optional) - connectTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. (optional) - firstByteTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. (optional) + connectTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. (optional) + firstByteTimeout := int32(56) // int32 | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. (optional) healthcheck := "healthcheck_example" // string | The name of the healthcheck to use with this backend. (optional) hostname := "hostname_example" // string | The hostname of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv4 := "ipv4_example" // string | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) @@ -416,7 +416,7 @@ Other parameters are passed through a pointer to a apiUpdateBackendRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **address** | **string** | A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. | **autoLoadbalance** | **bool** | Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. | **betweenBytesTimeout** | **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | **clientCert** | **string** | Unused. | **comment** | **string** | A freeform descriptive note. | **connectTimeout** | **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | **firstByteTimeout** | **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | **healthcheck** | **string** | The name of the healthcheck to use with this backend. | **hostname** | **string** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | **ipv4** | **string** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | **ipv6** | **string** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | **keepaliveTime** | **int32** | How long in seconds to keep a persistent connection to the backend between requests. | **maxConn** | **int32** | Maximum number of concurrent connections this backend will accept. | **maxTLSVersion** | **string** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **minTLSVersion** | **string** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **name** | **string** | The name of the backend. | **overrideHost** | **string** | If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. | **port** | **int32** | Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. | **requestCondition** | **string** | Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. | **shareKey** | **string** | Value that when shared across backends will enable those backends to share the same health check. | **shield** | **string** | Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). | **sslCaCert** | **string** | CA certificate attached to origin. | **sslCertHostname** | **string** | Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. | **sslCheckCert** | **bool** | Be strict on checking SSL certs. | [default to true] **sslCiphers** | **string** | List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **sslClientCert** | **string** | Client certificate attached to origin. | **sslClientKey** | **string** | Client key attached to origin. | **sslHostname** | **string** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | **sslSniHostname** | **string** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | **tcpKeepaliveEnable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | **tcpKeepaliveInterval** | **int32** | Interval in seconds between subsequent keepalive probes. | **tcpKeepaliveProbes** | **int32** | Number of unacknowledged probes to send before considering the connection dead. | **tcpKeepaliveTime** | **int32** | Interval in seconds between the last data packet sent and the first keepalive probe. | **useSsl** | **bool** | Whether or not to require TLS for connections to this backend. | **weight** | **int32** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | + **address** | **string** | A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. | **autoLoadbalance** | **bool** | Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. | **betweenBytesTimeout** | **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | **clientCert** | **string** | Unused. | **comment** | **string** | A freeform descriptive note. | **connectTimeout** | **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | **firstByteTimeout** | **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | **healthcheck** | **string** | The name of the healthcheck to use with this backend. | **hostname** | **string** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | **ipv4** | **string** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | **ipv6** | **string** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | **keepaliveTime** | **int32** | How long in seconds to keep a persistent connection to the backend between requests. | **maxConn** | **int32** | Maximum number of concurrent connections this backend will accept. | **maxTLSVersion** | **string** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **minTLSVersion** | **string** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **name** | **string** | The name of the backend. | **overrideHost** | **string** | If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. | **port** | **int32** | Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. | **requestCondition** | **string** | Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. | **shareKey** | **string** | Value that when shared across backends will enable those backends to share the same health check. | **shield** | **string** | Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). | **sslCaCert** | **string** | CA certificate attached to origin. | **sslCertHostname** | **string** | Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. | **sslCheckCert** | **bool** | Be strict on checking SSL certs. | [default to true] **sslCiphers** | **string** | List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | **sslClientCert** | **string** | Client certificate attached to origin. | **sslClientKey** | **string** | Client key attached to origin. | **sslHostname** | **string** | Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. | **sslSniHostname** | **string** | Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. | **tcpKeepaliveEnable** | **bool** | Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. | **tcpKeepaliveInterval** | **int32** | Interval in seconds between subsequent keepalive probes. | **tcpKeepaliveProbes** | **int32** | Number of unacknowledged probes to send before considering the connection dead. | **tcpKeepaliveTime** | **int32** | Interval in seconds between the last data packet sent and the first keepalive probe. | **useSsl** | **bool** | Whether or not to require TLS for connections to this backend. | **weight** | **int32** | Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. | ### Return type diff --git a/docs/BackendResponse.md b/docs/BackendResponse.md index 9e42428..066afbb 100644 --- a/docs/BackendResponse.md +++ b/docs/BackendResponse.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **BetweenBytesTimeout** | Pointer to **int32** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] **ClientCert** | Pointer to **NullableString** | Unused. | [optional] **Comment** | Pointer to **NullableString** | A freeform descriptive note. | [optional] -**ConnectTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | [optional] -**FirstByteTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | [optional] +**ConnectTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. | [optional] +**FirstByteTimeout** | Pointer to **int32** | Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. | [optional] **Healthcheck** | Pointer to **NullableString** | The name of the healthcheck to use with this backend. | [optional] **Hostname** | Pointer to **NullableString** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **Ipv4** | Pointer to **NullableString** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] diff --git a/fastly/api_acl.go b/fastly/api_acl.go index 08a4f67..dbcb975 100644 --- a/fastly/api_acl.go +++ b/fastly/api_acl.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ACLAPI interface { /* - CreateACL Create a new ACL + CreateACL Create a new ACL - Create a new ACL attached to the specified service version. A new, empty ACL must be attached to a draft version of a service. The version associated with the ACL must be activated to be used. + Create a new ACL attached to the specified service version. A new, empty ACL must be attached to a draft version of a service. The version associated with the ACL must be activated to be used. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateACLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateACLRequest */ CreateACL(ctx context.Context, serviceID string, versionID int32) APICreateACLRequest @@ -48,15 +47,15 @@ type ACLAPI interface { CreateACLExecute(r APICreateACLRequest) (*ACLResponse, *http.Response, error) /* - DeleteACL Delete an ACL + DeleteACL Delete an ACL - Delete an ACL from the specified service version. To remove an ACL from use, the ACL must be deleted from a draft version and the version without the ACL must be activated. + Delete an ACL from the specified service version. To remove an ACL from use, the ACL must be deleted from a draft version and the version without the ACL must be activated. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. - @return APIDeleteACLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. + @return APIDeleteACLRequest */ DeleteACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIDeleteACLRequest @@ -65,15 +64,15 @@ type ACLAPI interface { DeleteACLExecute(r APIDeleteACLRequest) (*InlineResponse200, *http.Response, error) /* - GetACL Describe an ACL + GetACL Describe an ACL - Retrieve a single ACL by name for the version and service. + Retrieve a single ACL by name for the version and service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. - @return APIGetACLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. + @return APIGetACLRequest */ GetACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIGetACLRequest @@ -82,14 +81,14 @@ type ACLAPI interface { GetACLExecute(r APIGetACLRequest) (*ACLResponse, *http.Response, error) /* - ListACLs List ACLs + ListACLs List ACLs - List ACLs. + List ACLs. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListACLsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListACLsRequest */ ListACLs(ctx context.Context, serviceID string, versionID int32) APIListACLsRequest @@ -98,15 +97,15 @@ type ACLAPI interface { ListACLsExecute(r APIListACLsRequest) ([]ACLResponse, *http.Response, error) /* - UpdateACL Update an ACL + UpdateACL Update an ACL - Update an ACL for a particular service and version. + Update an ACL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. - @return APIUpdateACLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param aclName Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. + @return APIUpdateACLRequest */ UpdateACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIUpdateACLRequest @@ -120,11 +119,11 @@ type ACLAPIService service // APICreateACLRequest represents a request for the resource. type APICreateACLRequest struct { - ctx context.Context + ctx context.Context APIService ACLAPI - serviceID string - versionID int32 - name *string + serviceID string + versionID int32 + name *string } // Name Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. @@ -151,9 +150,9 @@ Create a new ACL attached to the specified service version. A new, empty ACL mus func (a *ACLAPIService) CreateACL(ctx context.Context, serviceID string, versionID int32) APICreateACLRequest { return APICreateACLRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -161,10 +160,10 @@ func (a *ACLAPIService) CreateACL(ctx context.Context, serviceID string, version // @return ACLResponse func (a *ACLAPIService) CreateACLExecute(r APICreateACLRequest) (*ACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLAPIService.CreateACL") @@ -248,7 +247,6 @@ func (a *ACLAPIService) CreateACLExecute(r APICreateACLRequest) (*ACLResponse, * return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -267,14 +265,13 @@ func (a *ACLAPIService) CreateACLExecute(r APICreateACLRequest) (*ACLResponse, * // APIDeleteACLRequest represents a request for the resource. type APIDeleteACLRequest struct { - ctx context.Context + ctx context.Context APIService ACLAPI - serviceID string - versionID int32 - aclName string + serviceID string + versionID int32 + aclName string } - // Execute calls the API using the request data configured. func (r APIDeleteACLRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteACLExecute(r) @@ -294,10 +291,10 @@ Delete an ACL from the specified service version. To remove an ACL from use, the func (a *ACLAPIService) DeleteACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIDeleteACLRequest { return APIDeleteACLRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - aclName: aclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + aclName: aclName, } } @@ -305,10 +302,10 @@ func (a *ACLAPIService) DeleteACL(ctx context.Context, serviceID string, version // @return InlineResponse200 func (a *ACLAPIService) DeleteACLExecute(r APIDeleteACLRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLAPIService.DeleteACL") @@ -390,7 +387,6 @@ func (a *ACLAPIService) DeleteACLExecute(r APIDeleteACLRequest) (*InlineResponse return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -409,14 +405,13 @@ func (a *ACLAPIService) DeleteACLExecute(r APIDeleteACLRequest) (*InlineResponse // APIGetACLRequest represents a request for the resource. type APIGetACLRequest struct { - ctx context.Context + ctx context.Context APIService ACLAPI - serviceID string - versionID int32 - aclName string + serviceID string + versionID int32 + aclName string } - // Execute calls the API using the request data configured. func (r APIGetACLRequest) Execute() (*ACLResponse, *http.Response, error) { return r.APIService.GetACLExecute(r) @@ -436,10 +431,10 @@ Retrieve a single ACL by name for the version and service. func (a *ACLAPIService) GetACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIGetACLRequest { return APIGetACLRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - aclName: aclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + aclName: aclName, } } @@ -447,10 +442,10 @@ func (a *ACLAPIService) GetACL(ctx context.Context, serviceID string, versionID // @return ACLResponse func (a *ACLAPIService) GetACLExecute(r APIGetACLRequest) (*ACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLAPIService.GetACL") @@ -532,7 +527,6 @@ func (a *ACLAPIService) GetACLExecute(r APIGetACLRequest) (*ACLResponse, *http.R return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -551,13 +545,12 @@ func (a *ACLAPIService) GetACLExecute(r APIGetACLRequest) (*ACLResponse, *http.R // APIListACLsRequest represents a request for the resource. type APIListACLsRequest struct { - ctx context.Context + ctx context.Context APIService ACLAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListACLsRequest) Execute() ([]ACLResponse, *http.Response, error) { return r.APIService.ListACLsExecute(r) @@ -576,9 +569,9 @@ List ACLs. func (a *ACLAPIService) ListACLs(ctx context.Context, serviceID string, versionID int32) APIListACLsRequest { return APIListACLsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -586,10 +579,10 @@ func (a *ACLAPIService) ListACLs(ctx context.Context, serviceID string, versionI // @return []ACLResponse func (a *ACLAPIService) ListACLsExecute(r APIListACLsRequest) ([]ACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ACLResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ACLResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLAPIService.ListACLs") @@ -670,7 +663,6 @@ func (a *ACLAPIService) ListACLsExecute(r APIListACLsRequest) ([]ACLResponse, *h return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -689,12 +681,12 @@ func (a *ACLAPIService) ListACLsExecute(r APIListACLsRequest) ([]ACLResponse, *h // APIUpdateACLRequest represents a request for the resource. type APIUpdateACLRequest struct { - ctx context.Context + ctx context.Context APIService ACLAPI - serviceID string - versionID int32 - aclName string - name *string + serviceID string + versionID int32 + aclName string + name *string } // Name Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. @@ -722,10 +714,10 @@ Update an ACL for a particular service and version. func (a *ACLAPIService) UpdateACL(ctx context.Context, serviceID string, versionID int32, aclName string) APIUpdateACLRequest { return APIUpdateACLRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - aclName: aclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + aclName: aclName, } } @@ -733,10 +725,10 @@ func (a *ACLAPIService) UpdateACL(ctx context.Context, serviceID string, version // @return ACLResponse func (a *ACLAPIService) UpdateACLExecute(r APIUpdateACLRequest) (*ACLResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLAPIService.UpdateACL") @@ -821,7 +813,6 @@ func (a *ACLAPIService) UpdateACLExecute(r APIUpdateACLRequest) (*ACLResponse, * return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_acl_entry.go b/fastly/api_acl_entry.go index aba4195..c89c81a 100644 --- a/fastly/api_acl_entry.go +++ b/fastly/api_acl_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ACLEntryAPI interface { /* - BulkUpdateACLEntries Update multiple ACL entries + BulkUpdateACLEntries Update multiple ACL entries - Update multiple ACL entries on the same ACL. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 entries. [Contact support](https://support.fastly.com/) to discuss raising this limit. + Update multiple ACL entries on the same ACL. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 entries. [Contact support](https://support.fastly.com/) to discuss raising this limit. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @return APIBulkUpdateACLEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @return APIBulkUpdateACLEntriesRequest */ BulkUpdateACLEntries(ctx context.Context, serviceID string, aclID string) APIBulkUpdateACLEntriesRequest @@ -48,14 +47,14 @@ type ACLEntryAPI interface { BulkUpdateACLEntriesExecute(r APIBulkUpdateACLEntriesRequest) (*InlineResponse200, *http.Response, error) /* - CreateACLEntry Create an ACL entry + CreateACLEntry Create an ACL entry - Add an ACL entry to an ACL. + Add an ACL entry to an ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @return APICreateACLEntryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @return APICreateACLEntryRequest */ CreateACLEntry(ctx context.Context, serviceID string, aclID string) APICreateACLEntryRequest @@ -64,15 +63,15 @@ type ACLEntryAPI interface { CreateACLEntryExecute(r APICreateACLEntryRequest) (*ACLEntryResponse, *http.Response, error) /* - DeleteACLEntry Delete an ACL entry + DeleteACLEntry Delete an ACL entry - Delete an ACL entry from a specified ACL. + Delete an ACL entry from a specified ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @param aclEntryID Alphanumeric string identifying an ACL Entry. - @return APIDeleteACLEntryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @param aclEntryID Alphanumeric string identifying an ACL Entry. + @return APIDeleteACLEntryRequest */ DeleteACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIDeleteACLEntryRequest @@ -81,15 +80,15 @@ type ACLEntryAPI interface { DeleteACLEntryExecute(r APIDeleteACLEntryRequest) (*InlineResponse200, *http.Response, error) /* - GetACLEntry Describe an ACL entry + GetACLEntry Describe an ACL entry - Retrieve a single ACL entry. + Retrieve a single ACL entry. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @param aclEntryID Alphanumeric string identifying an ACL Entry. - @return APIGetACLEntryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @param aclEntryID Alphanumeric string identifying an ACL Entry. + @return APIGetACLEntryRequest */ GetACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIGetACLEntryRequest @@ -98,14 +97,14 @@ type ACLEntryAPI interface { GetACLEntryExecute(r APIGetACLEntryRequest) (*ACLEntryResponse, *http.Response, error) /* - ListACLEntries List ACL entries + ListACLEntries List ACL entries - List ACL entries for a specified ACL. + List ACL entries for a specified ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @return APIListACLEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @return APIListACLEntriesRequest */ ListACLEntries(ctx context.Context, serviceID string, aclID string) APIListACLEntriesRequest @@ -114,15 +113,15 @@ type ACLEntryAPI interface { ListACLEntriesExecute(r APIListACLEntriesRequest) ([]ACLEntryResponse, *http.Response, error) /* - UpdateACLEntry Update an ACL entry + UpdateACLEntry Update an ACL entry - Update an ACL entry for a specified ACL. + Update an ACL entry for a specified ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param aclID Alphanumeric string identifying a ACL. - @param aclEntryID Alphanumeric string identifying an ACL Entry. - @return APIUpdateACLEntryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param aclID Alphanumeric string identifying a ACL. + @param aclEntryID Alphanumeric string identifying an ACL Entry. + @return APIUpdateACLEntryRequest */ UpdateACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIUpdateACLEntryRequest @@ -136,10 +135,10 @@ type ACLEntryAPIService service // APIBulkUpdateACLEntriesRequest represents a request for the resource. type APIBulkUpdateACLEntriesRequest struct { - ctx context.Context - APIService ACLEntryAPI - serviceID string - aclID string + ctx context.Context + APIService ACLEntryAPI + serviceID string + aclID string bulkUpdateACLEntriesRequest *BulkUpdateACLEntriesRequest } @@ -167,9 +166,9 @@ Update multiple ACL entries on the same ACL. For faster updates to your service, func (a *ACLEntryAPIService) BulkUpdateACLEntries(ctx context.Context, serviceID string, aclID string) APIBulkUpdateACLEntriesRequest { return APIBulkUpdateACLEntriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, } } @@ -177,10 +176,10 @@ func (a *ACLEntryAPIService) BulkUpdateACLEntries(ctx context.Context, serviceID // @return InlineResponse200 func (a *ACLEntryAPIService) BulkUpdateACLEntriesExecute(r APIBulkUpdateACLEntriesRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.BulkUpdateACLEntries") @@ -263,7 +262,6 @@ func (a *ACLEntryAPIService) BulkUpdateACLEntriesExecute(r APIBulkUpdateACLEntri return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -282,11 +280,11 @@ func (a *ACLEntryAPIService) BulkUpdateACLEntriesExecute(r APIBulkUpdateACLEntri // APICreateACLEntryRequest represents a request for the resource. type APICreateACLEntryRequest struct { - ctx context.Context + ctx context.Context APIService ACLEntryAPI - serviceID string - aclID string - aclEntry *ACLEntry + serviceID string + aclID string + aclEntry *ACLEntry } // ACLEntry returns a pointer to a request. @@ -313,9 +311,9 @@ Add an ACL entry to an ACL. func (a *ACLEntryAPIService) CreateACLEntry(ctx context.Context, serviceID string, aclID string) APICreateACLEntryRequest { return APICreateACLEntryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, } } @@ -323,10 +321,10 @@ func (a *ACLEntryAPIService) CreateACLEntry(ctx context.Context, serviceID strin // @return ACLEntryResponse func (a *ACLEntryAPIService) CreateACLEntryExecute(r APICreateACLEntryRequest) (*ACLEntryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLEntryResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLEntryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.CreateACLEntry") @@ -409,7 +407,6 @@ func (a *ACLEntryAPIService) CreateACLEntryExecute(r APICreateACLEntryRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -428,14 +425,13 @@ func (a *ACLEntryAPIService) CreateACLEntryExecute(r APICreateACLEntryRequest) ( // APIDeleteACLEntryRequest represents a request for the resource. type APIDeleteACLEntryRequest struct { - ctx context.Context + ctx context.Context APIService ACLEntryAPI - serviceID string - aclID string + serviceID string + aclID string aclEntryID string } - // Execute calls the API using the request data configured. func (r APIDeleteACLEntryRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteACLEntryExecute(r) @@ -455,9 +451,9 @@ Delete an ACL entry from a specified ACL. func (a *ACLEntryAPIService) DeleteACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIDeleteACLEntryRequest { return APIDeleteACLEntryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, aclEntryID: aclEntryID, } } @@ -466,10 +462,10 @@ func (a *ACLEntryAPIService) DeleteACLEntry(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *ACLEntryAPIService) DeleteACLEntryExecute(r APIDeleteACLEntryRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.DeleteACLEntry") @@ -551,7 +547,6 @@ func (a *ACLEntryAPIService) DeleteACLEntryExecute(r APIDeleteACLEntryRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -570,14 +565,13 @@ func (a *ACLEntryAPIService) DeleteACLEntryExecute(r APIDeleteACLEntryRequest) ( // APIGetACLEntryRequest represents a request for the resource. type APIGetACLEntryRequest struct { - ctx context.Context + ctx context.Context APIService ACLEntryAPI - serviceID string - aclID string + serviceID string + aclID string aclEntryID string } - // Execute calls the API using the request data configured. func (r APIGetACLEntryRequest) Execute() (*ACLEntryResponse, *http.Response, error) { return r.APIService.GetACLEntryExecute(r) @@ -597,9 +591,9 @@ Retrieve a single ACL entry. func (a *ACLEntryAPIService) GetACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIGetACLEntryRequest { return APIGetACLEntryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, aclEntryID: aclEntryID, } } @@ -608,10 +602,10 @@ func (a *ACLEntryAPIService) GetACLEntry(ctx context.Context, serviceID string, // @return ACLEntryResponse func (a *ACLEntryAPIService) GetACLEntryExecute(r APIGetACLEntryRequest) (*ACLEntryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLEntryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLEntryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.GetACLEntry") @@ -693,7 +687,6 @@ func (a *ACLEntryAPIService) GetACLEntryExecute(r APIGetACLEntryRequest) (*ACLEn return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -712,14 +705,14 @@ func (a *ACLEntryAPIService) GetACLEntryExecute(r APIGetACLEntryRequest) (*ACLEn // APIListACLEntriesRequest represents a request for the resource. type APIListACLEntriesRequest struct { - ctx context.Context + ctx context.Context APIService ACLEntryAPI - serviceID string - aclID string - page *int32 - perPage *int32 - sort *string - direction *string + serviceID string + aclID string + page *int32 + perPage *int32 + sort *string + direction *string } // Page Current page. @@ -727,16 +720,19 @@ func (r *APIListACLEntriesRequest) Page(page int32) *APIListACLEntriesRequest { r.page = &page return r } + // PerPage Number of records per page. func (r *APIListACLEntriesRequest) PerPage(perPage int32) *APIListACLEntriesRequest { r.perPage = &perPage return r } + // Sort Field on which to sort. func (r *APIListACLEntriesRequest) Sort(sort string) *APIListACLEntriesRequest { r.sort = &sort return r } + // Direction Direction in which to sort results. func (r *APIListACLEntriesRequest) Direction(direction string) *APIListACLEntriesRequest { r.direction = &direction @@ -761,9 +757,9 @@ List ACL entries for a specified ACL. func (a *ACLEntryAPIService) ListACLEntries(ctx context.Context, serviceID string, aclID string) APIListACLEntriesRequest { return APIListACLEntriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, } } @@ -771,10 +767,10 @@ func (a *ACLEntryAPIService) ListACLEntries(ctx context.Context, serviceID strin // @return []ACLEntryResponse func (a *ACLEntryAPIService) ListACLEntriesExecute(r APIListACLEntriesRequest) ([]ACLEntryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ACLEntryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ACLEntryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.ListACLEntries") @@ -867,7 +863,6 @@ func (a *ACLEntryAPIService) ListACLEntriesExecute(r APIListACLEntriesRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -886,12 +881,12 @@ func (a *ACLEntryAPIService) ListACLEntriesExecute(r APIListACLEntriesRequest) ( // APIUpdateACLEntryRequest represents a request for the resource. type APIUpdateACLEntryRequest struct { - ctx context.Context + ctx context.Context APIService ACLEntryAPI - serviceID string - aclID string + serviceID string + aclID string aclEntryID string - aclEntry *ACLEntry + aclEntry *ACLEntry } // ACLEntry returns a pointer to a request. @@ -919,9 +914,9 @@ Update an ACL entry for a specified ACL. func (a *ACLEntryAPIService) UpdateACLEntry(ctx context.Context, serviceID string, aclID string, aclEntryID string) APIUpdateACLEntryRequest { return APIUpdateACLEntryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - aclID: aclID, + ctx: ctx, + serviceID: serviceID, + aclID: aclID, aclEntryID: aclEntryID, } } @@ -930,10 +925,10 @@ func (a *ACLEntryAPIService) UpdateACLEntry(ctx context.Context, serviceID strin // @return ACLEntryResponse func (a *ACLEntryAPIService) UpdateACLEntryExecute(r APIUpdateACLEntryRequest) (*ACLEntryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *ACLEntryResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ACLEntryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLEntryAPIService.UpdateACLEntry") @@ -1017,7 +1012,6 @@ func (a *ACLEntryAPIService) UpdateACLEntryExecute(r APIUpdateACLEntryRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_acls_in_compute.go b/fastly/api_acls_in_compute.go index 4658036..86d5d95 100644 --- a/fastly/api_acls_in_compute.go +++ b/fastly/api_acls_in_compute.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type ACLsInComputeAPI interface { /* - ComputeACLCreateAcls Create a new ACL + ComputeACLCreateAcls Create a new ACL - Create a new ACL. + Create a new ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIComputeACLCreateAclsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIComputeACLCreateAclsRequest */ ComputeACLCreateAcls(ctx context.Context) APIComputeACLCreateAclsRequest @@ -46,13 +45,13 @@ type ACLsInComputeAPI interface { ComputeACLCreateAclsExecute(r APIComputeACLCreateAclsRequest) (*ComputeACLCreateAclsResponse, *http.Response, error) /* - ComputeACLDeleteSAclID Delete an ACL + ComputeACLDeleteSAclID Delete an ACL - Delete an ACL. + Delete an ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclID - @return APIComputeACLDeleteSAclIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclID + @return APIComputeACLDeleteSAclIDRequest */ ComputeACLDeleteSAclID(ctx context.Context, aclID string) APIComputeACLDeleteSAclIDRequest @@ -60,13 +59,13 @@ type ACLsInComputeAPI interface { ComputeACLDeleteSAclIDExecute(r APIComputeACLDeleteSAclIDRequest) (*http.Response, error) /* - ComputeACLListAclEntries List an ACL + ComputeACLListAclEntries List an ACL - List an ACL. + List an ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclID - @return APIComputeACLListAclEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclID + @return APIComputeACLListAclEntriesRequest */ ComputeACLListAclEntries(ctx context.Context, aclID string) APIComputeACLListAclEntriesRequest @@ -75,12 +74,12 @@ type ACLsInComputeAPI interface { ComputeACLListAclEntriesExecute(r APIComputeACLListAclEntriesRequest) (*ComputeACLListEntries, *http.Response, error) /* - ComputeACLListAcls List ACLs + ComputeACLListAcls List ACLs - List all ACLs. + List all ACLs. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIComputeACLListAclsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIComputeACLListAclsRequest */ ComputeACLListAcls(ctx context.Context) APIComputeACLListAclsRequest @@ -89,13 +88,13 @@ type ACLsInComputeAPI interface { ComputeACLListAclsExecute(r APIComputeACLListAclsRequest) ([]ComputeACLCreateAclsResponse, *http.Response, error) /* - ComputeACLListAclsSAclID Describe an ACL + ComputeACLListAclsSAclID Describe an ACL - Describe an ACL. + Describe an ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclID - @return APIComputeACLListAclsSAclIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclID + @return APIComputeACLListAclsSAclIDRequest */ ComputeACLListAclsSAclID(ctx context.Context, aclID string) APIComputeACLListAclsSAclIDRequest @@ -104,14 +103,14 @@ type ACLsInComputeAPI interface { ComputeACLListAclsSAclIDExecute(r APIComputeACLListAclsSAclIDRequest) (*ComputeACLCreateAclsResponse, *http.Response, error) /* - ComputeACLLookupAcls Lookup an ACL + ComputeACLLookupAcls Lookup an ACL - Find a matching ACL entry for an IP address. + Find a matching ACL entry for an IP address. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclID - @param aclIP - @return APIComputeACLLookupAclsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclID + @param aclIP + @return APIComputeACLLookupAclsRequest */ ComputeACLLookupAcls(ctx context.Context, aclID string, aclIP string) APIComputeACLLookupAclsRequest @@ -120,13 +119,13 @@ type ACLsInComputeAPI interface { ComputeACLLookupAclsExecute(r APIComputeACLLookupAclsRequest) (*ComputeACLLookup, *http.Response, error) /* - ComputeACLUpdateAcls Update an ACL + ComputeACLUpdateAcls Update an ACL - Update an ACL. + Update an ACL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param aclID - @return APIComputeACLUpdateAclsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param aclID + @return APIComputeACLUpdateAclsRequest */ ComputeACLUpdateAcls(ctx context.Context, aclID string) APIComputeACLUpdateAclsRequest @@ -139,8 +138,8 @@ type ACLsInComputeAPIService service // APIComputeACLCreateAclsRequest represents a request for the resource. type APIComputeACLCreateAclsRequest struct { - ctx context.Context - APIService ACLsInComputeAPI + ctx context.Context + APIService ACLsInComputeAPI computeACLCreateAclsRequest *ComputeACLCreateAclsRequest } @@ -166,7 +165,7 @@ Create a new ACL. func (a *ACLsInComputeAPIService) ComputeACLCreateAcls(ctx context.Context) APIComputeACLCreateAclsRequest { return APIComputeACLCreateAclsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -174,10 +173,10 @@ func (a *ACLsInComputeAPIService) ComputeACLCreateAcls(ctx context.Context) APIC // @return ComputeACLCreateAclsResponse func (a *ACLsInComputeAPIService) ComputeACLCreateAclsExecute(r APIComputeACLCreateAclsRequest) (*ComputeACLCreateAclsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ComputeACLCreateAclsResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ComputeACLCreateAclsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLCreateAcls") @@ -258,7 +257,6 @@ func (a *ACLsInComputeAPIService) ComputeACLCreateAclsExecute(r APIComputeACLCre return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -277,12 +275,11 @@ func (a *ACLsInComputeAPIService) ComputeACLCreateAclsExecute(r APIComputeACLCre // APIComputeACLDeleteSAclIDRequest represents a request for the resource. type APIComputeACLDeleteSAclIDRequest struct { - ctx context.Context + ctx context.Context APIService ACLsInComputeAPI - aclID string + aclID string } - // Execute calls the API using the request data configured. func (r APIComputeACLDeleteSAclIDRequest) Execute() (*http.Response, error) { return r.APIService.ComputeACLDeleteSAclIDExecute(r) @@ -300,17 +297,17 @@ Delete an ACL. func (a *ACLsInComputeAPIService) ComputeACLDeleteSAclID(ctx context.Context, aclID string) APIComputeACLDeleteSAclIDRequest { return APIComputeACLDeleteSAclIDRequest{ APIService: a, - ctx: ctx, - aclID: aclID, + ctx: ctx, + aclID: aclID, } } // ComputeACLDeleteSAclIDExecute executes the request func (a *ACLsInComputeAPIService) ComputeACLDeleteSAclIDExecute(r APIComputeACLDeleteSAclIDRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLDeleteSAclID") @@ -381,7 +378,6 @@ func (a *ACLsInComputeAPIService) ComputeACLDeleteSAclIDExecute(r APIComputeACLD return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -400,11 +396,11 @@ func (a *ACLsInComputeAPIService) ComputeACLDeleteSAclIDExecute(r APIComputeACLD // APIComputeACLListAclEntriesRequest represents a request for the resource. type APIComputeACLListAclEntriesRequest struct { - ctx context.Context + ctx context.Context APIService ACLsInComputeAPI - aclID string - cursor *string - limit *int32 + aclID string + cursor *string + limit *int32 } // Cursor returns a pointer to a request. @@ -412,6 +408,7 @@ func (r *APIComputeACLListAclEntriesRequest) Cursor(cursor string) *APIComputeAC r.cursor = &cursor return r } + // Limit returns a pointer to a request. func (r *APIComputeACLListAclEntriesRequest) Limit(limit int32) *APIComputeACLListAclEntriesRequest { r.limit = &limit @@ -435,8 +432,8 @@ List an ACL. func (a *ACLsInComputeAPIService) ComputeACLListAclEntries(ctx context.Context, aclID string) APIComputeACLListAclEntriesRequest { return APIComputeACLListAclEntriesRequest{ APIService: a, - ctx: ctx, - aclID: aclID, + ctx: ctx, + aclID: aclID, } } @@ -444,10 +441,10 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclEntries(ctx context.Context, // @return ComputeACLListEntries func (a *ACLsInComputeAPIService) ComputeACLListAclEntriesExecute(r APIComputeACLListAclEntriesRequest) (*ComputeACLListEntries, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ComputeACLListEntries + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ComputeACLListEntries ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLListAclEntries") @@ -533,7 +530,6 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclEntriesExecute(r APIComputeAC return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -552,11 +548,10 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclEntriesExecute(r APIComputeAC // APIComputeACLListAclsRequest represents a request for the resource. type APIComputeACLListAclsRequest struct { - ctx context.Context + ctx context.Context APIService ACLsInComputeAPI } - // Execute calls the API using the request data configured. func (r APIComputeACLListAclsRequest) Execute() ([]ComputeACLCreateAclsResponse, *http.Response, error) { return r.APIService.ComputeACLListAclsExecute(r) @@ -573,7 +568,7 @@ List all ACLs. func (a *ACLsInComputeAPIService) ComputeACLListAcls(ctx context.Context) APIComputeACLListAclsRequest { return APIComputeACLListAclsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -581,10 +576,10 @@ func (a *ACLsInComputeAPIService) ComputeACLListAcls(ctx context.Context) APICom // @return []ComputeACLCreateAclsResponse func (a *ACLsInComputeAPIService) ComputeACLListAclsExecute(r APIComputeACLListAclsRequest) ([]ComputeACLCreateAclsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ComputeACLCreateAclsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ComputeACLCreateAclsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLListAcls") @@ -663,7 +658,6 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclsExecute(r APIComputeACLListA return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -682,12 +676,11 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclsExecute(r APIComputeACLListA // APIComputeACLListAclsSAclIDRequest represents a request for the resource. type APIComputeACLListAclsSAclIDRequest struct { - ctx context.Context + ctx context.Context APIService ACLsInComputeAPI - aclID string + aclID string } - // Execute calls the API using the request data configured. func (r APIComputeACLListAclsSAclIDRequest) Execute() (*ComputeACLCreateAclsResponse, *http.Response, error) { return r.APIService.ComputeACLListAclsSAclIDExecute(r) @@ -705,8 +698,8 @@ Describe an ACL. func (a *ACLsInComputeAPIService) ComputeACLListAclsSAclID(ctx context.Context, aclID string) APIComputeACLListAclsSAclIDRequest { return APIComputeACLListAclsSAclIDRequest{ APIService: a, - ctx: ctx, - aclID: aclID, + ctx: ctx, + aclID: aclID, } } @@ -714,10 +707,10 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclsSAclID(ctx context.Context, // @return ComputeACLCreateAclsResponse func (a *ACLsInComputeAPIService) ComputeACLListAclsSAclIDExecute(r APIComputeACLListAclsSAclIDRequest) (*ComputeACLCreateAclsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ComputeACLCreateAclsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ComputeACLCreateAclsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLListAclsSAclID") @@ -797,7 +790,6 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclsSAclIDExecute(r APIComputeAC return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -816,13 +808,12 @@ func (a *ACLsInComputeAPIService) ComputeACLListAclsSAclIDExecute(r APIComputeAC // APIComputeACLLookupAclsRequest represents a request for the resource. type APIComputeACLLookupAclsRequest struct { - ctx context.Context + ctx context.Context APIService ACLsInComputeAPI - aclID string - aclIP string + aclID string + aclIP string } - // Execute calls the API using the request data configured. func (r APIComputeACLLookupAclsRequest) Execute() (*ComputeACLLookup, *http.Response, error) { return r.APIService.ComputeACLLookupAclsExecute(r) @@ -841,9 +832,9 @@ Find a matching ACL entry for an IP address. func (a *ACLsInComputeAPIService) ComputeACLLookupAcls(ctx context.Context, aclID string, aclIP string) APIComputeACLLookupAclsRequest { return APIComputeACLLookupAclsRequest{ APIService: a, - ctx: ctx, - aclID: aclID, - aclIP: aclIP, + ctx: ctx, + aclID: aclID, + aclIP: aclIP, } } @@ -851,10 +842,10 @@ func (a *ACLsInComputeAPIService) ComputeACLLookupAcls(ctx context.Context, aclI // @return ComputeACLLookup func (a *ACLsInComputeAPIService) ComputeACLLookupAclsExecute(r APIComputeACLLookupAclsRequest) (*ComputeACLLookup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ComputeACLLookup + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ComputeACLLookup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLLookupAcls") @@ -935,7 +926,6 @@ func (a *ACLsInComputeAPIService) ComputeACLLookupAclsExecute(r APIComputeACLLoo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -954,9 +944,9 @@ func (a *ACLsInComputeAPIService) ComputeACLLookupAclsExecute(r APIComputeACLLoo // APIComputeACLUpdateAclsRequest represents a request for the resource. type APIComputeACLUpdateAclsRequest struct { - ctx context.Context - APIService ACLsInComputeAPI - aclID string + ctx context.Context + APIService ACLsInComputeAPI + aclID string computeACLUpdateEntry *[]ComputeACLUpdateEntry } @@ -983,17 +973,17 @@ Update an ACL. func (a *ACLsInComputeAPIService) ComputeACLUpdateAcls(ctx context.Context, aclID string) APIComputeACLUpdateAclsRequest { return APIComputeACLUpdateAclsRequest{ APIService: a, - ctx: ctx, - aclID: aclID, + ctx: ctx, + aclID: aclID, } } // ComputeACLUpdateAclsExecute executes the request func (a *ACLsInComputeAPIService) ComputeACLUpdateAclsExecute(r APIComputeACLUpdateAclsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ACLsInComputeAPIService.ComputeACLUpdateAcls") @@ -1066,7 +1056,6 @@ func (a *ACLsInComputeAPIService) ComputeACLUpdateAclsExecute(r APIComputeACLUpd return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_apex_redirect.go b/fastly/api_apex_redirect.go index 0e07562..86e2441 100644 --- a/fastly/api_apex_redirect.go +++ b/fastly/api_apex_redirect.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -33,14 +32,14 @@ var ( type ApexRedirectAPI interface { /* - CreateApexRedirect Create an apex redirect + CreateApexRedirect Create an apex redirect - Create an apex redirect for a particular service and version. + Create an apex redirect for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateApexRedirectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateApexRedirectRequest */ CreateApexRedirect(ctx context.Context, serviceID string, versionID int32) APICreateApexRedirectRequest @@ -49,13 +48,13 @@ type ApexRedirectAPI interface { CreateApexRedirectExecute(r APICreateApexRedirectRequest) (*ApexRedirect, *http.Response, error) /* - DeleteApexRedirect Delete an apex redirect + DeleteApexRedirect Delete an apex redirect - Delete an apex redirect by its ID. + Delete an apex redirect by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param apexRedirectID - @return APIDeleteApexRedirectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apexRedirectID + @return APIDeleteApexRedirectRequest */ DeleteApexRedirect(ctx context.Context, apexRedirectID string) APIDeleteApexRedirectRequest @@ -64,13 +63,13 @@ type ApexRedirectAPI interface { DeleteApexRedirectExecute(r APIDeleteApexRedirectRequest) (*InlineResponse200, *http.Response, error) /* - GetApexRedirect Get an apex redirect + GetApexRedirect Get an apex redirect - Get an apex redirect by its ID. + Get an apex redirect by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param apexRedirectID - @return APIGetApexRedirectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apexRedirectID + @return APIGetApexRedirectRequest */ GetApexRedirect(ctx context.Context, apexRedirectID string) APIGetApexRedirectRequest @@ -79,14 +78,14 @@ type ApexRedirectAPI interface { GetApexRedirectExecute(r APIGetApexRedirectRequest) (*ApexRedirect, *http.Response, error) /* - ListApexRedirects List apex redirects + ListApexRedirects List apex redirects - List all apex redirects for a particular service and version. + List all apex redirects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListApexRedirectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListApexRedirectsRequest */ ListApexRedirects(ctx context.Context, serviceID string, versionID int32) APIListApexRedirectsRequest @@ -95,13 +94,13 @@ type ApexRedirectAPI interface { ListApexRedirectsExecute(r APIListApexRedirectsRequest) ([]ApexRedirect, *http.Response, error) /* - UpdateApexRedirect Update an apex redirect + UpdateApexRedirect Update an apex redirect - Update an apex redirect by its ID. + Update an apex redirect by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param apexRedirectID - @return APIUpdateApexRedirectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param apexRedirectID + @return APIUpdateApexRedirectRequest */ UpdateApexRedirect(ctx context.Context, apexRedirectID string) APIUpdateApexRedirectRequest @@ -115,17 +114,17 @@ type ApexRedirectAPIService service // APICreateApexRedirectRequest represents a request for the resource. type APICreateApexRedirectRequest struct { - ctx context.Context - APIService ApexRedirectAPI - serviceID string - versionID int32 - serviceID2 *string - version *int32 - createdAt *time.Time - deletedAt *time.Time - updatedAt *time.Time - statusCode *int32 - domains *[]string + ctx context.Context + APIService ApexRedirectAPI + serviceID string + versionID int32 + serviceID2 *string + version *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time + statusCode *int32 + domains *[]string featureRevision *int32 } @@ -134,36 +133,43 @@ func (r *APICreateApexRedirectRequest) ServiceID2(serviceID2 string) *APICreateA r.serviceID2 = &serviceID2 return r } + // Version returns a pointer to a request. func (r *APICreateApexRedirectRequest) Version(version int32) *APICreateApexRedirectRequest { r.version = &version return r } + // CreatedAt Date and time in ISO 8601 format. func (r *APICreateApexRedirectRequest) CreatedAt(createdAt time.Time) *APICreateApexRedirectRequest { r.createdAt = &createdAt return r } + // DeletedAt Date and time in ISO 8601 format. func (r *APICreateApexRedirectRequest) DeletedAt(deletedAt time.Time) *APICreateApexRedirectRequest { r.deletedAt = &deletedAt return r } + // UpdatedAt Date and time in ISO 8601 format. func (r *APICreateApexRedirectRequest) UpdatedAt(updatedAt time.Time) *APICreateApexRedirectRequest { r.updatedAt = &updatedAt return r } + // StatusCode HTTP status code used to redirect the client. func (r *APICreateApexRedirectRequest) StatusCode(statusCode int32) *APICreateApexRedirectRequest { r.statusCode = &statusCode return r } + // Domains Array of apex domains that should redirect to their WWW subdomain. func (r *APICreateApexRedirectRequest) Domains(domains []string) *APICreateApexRedirectRequest { r.domains = &domains return r } + // FeatureRevision Revision number of the apex redirect feature implementation. Defaults to the most recent revision. func (r *APICreateApexRedirectRequest) FeatureRevision(featureRevision int32) *APICreateApexRedirectRequest { r.featureRevision = &featureRevision @@ -188,9 +194,9 @@ Create an apex redirect for a particular service and version. func (a *ApexRedirectAPIService) CreateApexRedirect(ctx context.Context, serviceID string, versionID int32) APICreateApexRedirectRequest { return APICreateApexRedirectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -198,10 +204,10 @@ func (a *ApexRedirectAPIService) CreateApexRedirect(ctx context.Context, service // @return ApexRedirect func (a *ApexRedirectAPIService) CreateApexRedirectExecute(r APICreateApexRedirectRequest) (*ApexRedirect, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ApexRedirect + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ApexRedirect ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.CreateApexRedirect") @@ -314,7 +320,6 @@ func (a *ApexRedirectAPIService) CreateApexRedirectExecute(r APICreateApexRedire return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -333,12 +338,11 @@ func (a *ApexRedirectAPIService) CreateApexRedirectExecute(r APICreateApexRedire // APIDeleteApexRedirectRequest represents a request for the resource. type APIDeleteApexRedirectRequest struct { - ctx context.Context - APIService ApexRedirectAPI + ctx context.Context + APIService ApexRedirectAPI apexRedirectID string } - // Execute calls the API using the request data configured. func (r APIDeleteApexRedirectRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteApexRedirectExecute(r) @@ -355,8 +359,8 @@ Delete an apex redirect by its ID. */ func (a *ApexRedirectAPIService) DeleteApexRedirect(ctx context.Context, apexRedirectID string) APIDeleteApexRedirectRequest { return APIDeleteApexRedirectRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, apexRedirectID: apexRedirectID, } } @@ -365,10 +369,10 @@ func (a *ApexRedirectAPIService) DeleteApexRedirect(ctx context.Context, apexRed // @return InlineResponse200 func (a *ApexRedirectAPIService) DeleteApexRedirectExecute(r APIDeleteApexRedirectRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.DeleteApexRedirect") @@ -448,7 +452,6 @@ func (a *ApexRedirectAPIService) DeleteApexRedirectExecute(r APIDeleteApexRedire return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -467,12 +470,11 @@ func (a *ApexRedirectAPIService) DeleteApexRedirectExecute(r APIDeleteApexRedire // APIGetApexRedirectRequest represents a request for the resource. type APIGetApexRedirectRequest struct { - ctx context.Context - APIService ApexRedirectAPI + ctx context.Context + APIService ApexRedirectAPI apexRedirectID string } - // Execute calls the API using the request data configured. func (r APIGetApexRedirectRequest) Execute() (*ApexRedirect, *http.Response, error) { return r.APIService.GetApexRedirectExecute(r) @@ -489,8 +491,8 @@ Get an apex redirect by its ID. */ func (a *ApexRedirectAPIService) GetApexRedirect(ctx context.Context, apexRedirectID string) APIGetApexRedirectRequest { return APIGetApexRedirectRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, apexRedirectID: apexRedirectID, } } @@ -499,10 +501,10 @@ func (a *ApexRedirectAPIService) GetApexRedirect(ctx context.Context, apexRedire // @return ApexRedirect func (a *ApexRedirectAPIService) GetApexRedirectExecute(r APIGetApexRedirectRequest) (*ApexRedirect, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ApexRedirect + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ApexRedirect ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.GetApexRedirect") @@ -582,7 +584,6 @@ func (a *ApexRedirectAPIService) GetApexRedirectExecute(r APIGetApexRedirectRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -601,13 +602,12 @@ func (a *ApexRedirectAPIService) GetApexRedirectExecute(r APIGetApexRedirectRequ // APIListApexRedirectsRequest represents a request for the resource. type APIListApexRedirectsRequest struct { - ctx context.Context + ctx context.Context APIService ApexRedirectAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListApexRedirectsRequest) Execute() ([]ApexRedirect, *http.Response, error) { return r.APIService.ListApexRedirectsExecute(r) @@ -626,9 +626,9 @@ List all apex redirects for a particular service and version. func (a *ApexRedirectAPIService) ListApexRedirects(ctx context.Context, serviceID string, versionID int32) APIListApexRedirectsRequest { return APIListApexRedirectsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -636,10 +636,10 @@ func (a *ApexRedirectAPIService) ListApexRedirects(ctx context.Context, serviceI // @return []ApexRedirect func (a *ApexRedirectAPIService) ListApexRedirectsExecute(r APIListApexRedirectsRequest) ([]ApexRedirect, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ApexRedirect + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ApexRedirect ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.ListApexRedirects") @@ -720,7 +720,6 @@ func (a *ApexRedirectAPIService) ListApexRedirectsExecute(r APIListApexRedirects return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -739,16 +738,16 @@ func (a *ApexRedirectAPIService) ListApexRedirectsExecute(r APIListApexRedirects // APIUpdateApexRedirectRequest represents a request for the resource. type APIUpdateApexRedirectRequest struct { - ctx context.Context - APIService ApexRedirectAPI - apexRedirectID string - serviceID *string - version *int32 - createdAt *time.Time - deletedAt *time.Time - updatedAt *time.Time - statusCode *int32 - domains *[]string + ctx context.Context + APIService ApexRedirectAPI + apexRedirectID string + serviceID *string + version *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time + statusCode *int32 + domains *[]string featureRevision *int32 } @@ -757,36 +756,43 @@ func (r *APIUpdateApexRedirectRequest) ServiceID(serviceID string) *APIUpdateApe r.serviceID = &serviceID return r } + // Version returns a pointer to a request. func (r *APIUpdateApexRedirectRequest) Version(version int32) *APIUpdateApexRedirectRequest { r.version = &version return r } + // CreatedAt Date and time in ISO 8601 format. func (r *APIUpdateApexRedirectRequest) CreatedAt(createdAt time.Time) *APIUpdateApexRedirectRequest { r.createdAt = &createdAt return r } + // DeletedAt Date and time in ISO 8601 format. func (r *APIUpdateApexRedirectRequest) DeletedAt(deletedAt time.Time) *APIUpdateApexRedirectRequest { r.deletedAt = &deletedAt return r } + // UpdatedAt Date and time in ISO 8601 format. func (r *APIUpdateApexRedirectRequest) UpdatedAt(updatedAt time.Time) *APIUpdateApexRedirectRequest { r.updatedAt = &updatedAt return r } + // StatusCode HTTP status code used to redirect the client. func (r *APIUpdateApexRedirectRequest) StatusCode(statusCode int32) *APIUpdateApexRedirectRequest { r.statusCode = &statusCode return r } + // Domains Array of apex domains that should redirect to their WWW subdomain. func (r *APIUpdateApexRedirectRequest) Domains(domains []string) *APIUpdateApexRedirectRequest { r.domains = &domains return r } + // FeatureRevision Revision number of the apex redirect feature implementation. Defaults to the most recent revision. func (r *APIUpdateApexRedirectRequest) FeatureRevision(featureRevision int32) *APIUpdateApexRedirectRequest { r.featureRevision = &featureRevision @@ -809,8 +815,8 @@ Update an apex redirect by its ID. */ func (a *ApexRedirectAPIService) UpdateApexRedirect(ctx context.Context, apexRedirectID string) APIUpdateApexRedirectRequest { return APIUpdateApexRedirectRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, apexRedirectID: apexRedirectID, } } @@ -819,10 +825,10 @@ func (a *ApexRedirectAPIService) UpdateApexRedirect(ctx context.Context, apexRed // @return ApexRedirect func (a *ApexRedirectAPIService) UpdateApexRedirectExecute(r APIUpdateApexRedirectRequest) (*ApexRedirect, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ApexRedirect + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ApexRedirect ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.UpdateApexRedirect") @@ -934,7 +940,6 @@ func (a *ApexRedirectAPIService) UpdateApexRedirectExecute(r APIUpdateApexRedire return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_automation_tokens.go b/fastly/api_automation_tokens.go index 47f4349..8c611ad 100644 --- a/fastly/api_automation_tokens.go +++ b/fastly/api_automation_tokens.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type AutomationTokensAPI interface { /* - CreateAutomationToken Create Automation Token + CreateAutomationToken Create Automation Token - Creates a new automation token. + Creates a new automation token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateAutomationTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAutomationTokenRequest */ CreateAutomationToken(ctx context.Context) APICreateAutomationTokenRequest @@ -46,13 +45,13 @@ type AutomationTokensAPI interface { CreateAutomationTokenExecute(r APICreateAutomationTokenRequest) (*AutomationTokenCreateResponse, *http.Response, error) /* - GetAutomationTokenID Retrieve an Automation Token by ID + GetAutomationTokenID Retrieve an Automation Token by ID - Retrieves an automation token by ID. + Retrieves an automation token by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return APIGetAutomationTokenIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return APIGetAutomationTokenIDRequest */ GetAutomationTokenID(ctx context.Context, id string) APIGetAutomationTokenIDRequest @@ -61,13 +60,13 @@ type AutomationTokensAPI interface { GetAutomationTokenIDExecute(r APIGetAutomationTokenIDRequest) (*AutomationTokenResponse, *http.Response, error) /* - GetAutomationTokensIDServices List Automation Token Services + GetAutomationTokensIDServices List Automation Token Services - List of services associated with the automation token. + List of services associated with the automation token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return APIGetAutomationTokensIDServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return APIGetAutomationTokensIDServicesRequest */ GetAutomationTokensIDServices(ctx context.Context, id string) APIGetAutomationTokensIDServicesRequest @@ -76,12 +75,12 @@ type AutomationTokensAPI interface { GetAutomationTokensIDServicesExecute(r APIGetAutomationTokensIDServicesRequest) (*InlineResponse2001, *http.Response, error) /* - ListAutomationTokens List Customer Automation Tokens + ListAutomationTokens List Customer Automation Tokens - Lists all automation tokens for a customer. + Lists all automation tokens for a customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListAutomationTokensRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListAutomationTokensRequest */ ListAutomationTokens(ctx context.Context) APIListAutomationTokensRequest @@ -90,13 +89,13 @@ type AutomationTokensAPI interface { ListAutomationTokensExecute(r APIListAutomationTokensRequest) ([]AutomationTokenResponse, *http.Response, error) /* - RevokeAutomationTokenID Revoke an Automation Token by ID + RevokeAutomationTokenID Revoke an Automation Token by ID - Revoke an automation token by ID. + Revoke an automation token by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return APIRevokeAutomationTokenIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return APIRevokeAutomationTokenIDRequest */ RevokeAutomationTokenID(ctx context.Context, id string) APIRevokeAutomationTokenIDRequest @@ -110,8 +109,8 @@ type AutomationTokensAPIService service // APICreateAutomationTokenRequest represents a request for the resource. type APICreateAutomationTokenRequest struct { - ctx context.Context - APIService AutomationTokensAPI + ctx context.Context + APIService AutomationTokensAPI automationTokenCreateRequest *AutomationTokenCreateRequest } @@ -137,7 +136,7 @@ Creates a new automation token. func (a *AutomationTokensAPIService) CreateAutomationToken(ctx context.Context) APICreateAutomationTokenRequest { return APICreateAutomationTokenRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -145,10 +144,10 @@ func (a *AutomationTokensAPIService) CreateAutomationToken(ctx context.Context) // @return AutomationTokenCreateResponse func (a *AutomationTokensAPIService) CreateAutomationTokenExecute(r APICreateAutomationTokenRequest) (*AutomationTokenCreateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *AutomationTokenCreateResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *AutomationTokenCreateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutomationTokensAPIService.CreateAutomationToken") @@ -229,7 +228,6 @@ func (a *AutomationTokensAPIService) CreateAutomationTokenExecute(r APICreateAut return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -248,12 +246,11 @@ func (a *AutomationTokensAPIService) CreateAutomationTokenExecute(r APICreateAut // APIGetAutomationTokenIDRequest represents a request for the resource. type APIGetAutomationTokenIDRequest struct { - ctx context.Context + ctx context.Context APIService AutomationTokensAPI - id string + id string } - // Execute calls the API using the request data configured. func (r APIGetAutomationTokenIDRequest) Execute() (*AutomationTokenResponse, *http.Response, error) { return r.APIService.GetAutomationTokenIDExecute(r) @@ -271,8 +268,8 @@ Retrieves an automation token by ID. func (a *AutomationTokensAPIService) GetAutomationTokenID(ctx context.Context, id string) APIGetAutomationTokenIDRequest { return APIGetAutomationTokenIDRequest{ APIService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } @@ -280,10 +277,10 @@ func (a *AutomationTokensAPIService) GetAutomationTokenID(ctx context.Context, i // @return AutomationTokenResponse func (a *AutomationTokensAPIService) GetAutomationTokenIDExecute(r APIGetAutomationTokenIDRequest) (*AutomationTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *AutomationTokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *AutomationTokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutomationTokensAPIService.GetAutomationTokenID") @@ -382,7 +379,6 @@ func (a *AutomationTokensAPIService) GetAutomationTokenIDExecute(r APIGetAutomat return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -401,11 +397,11 @@ func (a *AutomationTokensAPIService) GetAutomationTokenIDExecute(r APIGetAutomat // APIGetAutomationTokensIDServicesRequest represents a request for the resource. type APIGetAutomationTokensIDServicesRequest struct { - ctx context.Context + ctx context.Context APIService AutomationTokensAPI - id string - perPage *int32 - page *int32 + id string + perPage *int32 + page *int32 } // PerPage returns a pointer to a request. @@ -413,6 +409,7 @@ func (r *APIGetAutomationTokensIDServicesRequest) PerPage(perPage int32) *APIGet r.perPage = &perPage return r } + // Page returns a pointer to a request. func (r *APIGetAutomationTokensIDServicesRequest) Page(page int32) *APIGetAutomationTokensIDServicesRequest { r.page = &page @@ -436,8 +433,8 @@ List of services associated with the automation token. func (a *AutomationTokensAPIService) GetAutomationTokensIDServices(ctx context.Context, id string) APIGetAutomationTokensIDServicesRequest { return APIGetAutomationTokensIDServicesRequest{ APIService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } @@ -445,10 +442,10 @@ func (a *AutomationTokensAPIService) GetAutomationTokensIDServices(ctx context.C // @return InlineResponse2001 func (a *AutomationTokensAPIService) GetAutomationTokensIDServicesExecute(r APIGetAutomationTokensIDServicesRequest) (*InlineResponse2001, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2001 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2001 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutomationTokensAPIService.GetAutomationTokensIDServices") @@ -553,7 +550,6 @@ func (a *AutomationTokensAPIService) GetAutomationTokensIDServicesExecute(r APIG return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -572,10 +568,10 @@ func (a *AutomationTokensAPIService) GetAutomationTokensIDServicesExecute(r APIG // APIListAutomationTokensRequest represents a request for the resource. type APIListAutomationTokensRequest struct { - ctx context.Context + ctx context.Context APIService AutomationTokensAPI - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage returns a pointer to a request. @@ -583,6 +579,7 @@ func (r *APIListAutomationTokensRequest) PerPage(perPage int32) *APIListAutomati r.perPage = &perPage return r } + // Page returns a pointer to a request. func (r *APIListAutomationTokensRequest) Page(page int32) *APIListAutomationTokensRequest { r.page = &page @@ -605,7 +602,7 @@ Lists all automation tokens for a customer. func (a *AutomationTokensAPIService) ListAutomationTokens(ctx context.Context) APIListAutomationTokensRequest { return APIListAutomationTokensRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -613,10 +610,10 @@ func (a *AutomationTokensAPIService) ListAutomationTokens(ctx context.Context) A // @return []AutomationTokenResponse func (a *AutomationTokensAPIService) ListAutomationTokensExecute(r APIListAutomationTokensRequest) ([]AutomationTokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []AutomationTokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []AutomationTokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutomationTokensAPIService.ListAutomationTokens") @@ -720,7 +717,6 @@ func (a *AutomationTokensAPIService) ListAutomationTokensExecute(r APIListAutoma return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -739,12 +735,11 @@ func (a *AutomationTokensAPIService) ListAutomationTokensExecute(r APIListAutoma // APIRevokeAutomationTokenIDRequest represents a request for the resource. type APIRevokeAutomationTokenIDRequest struct { - ctx context.Context + ctx context.Context APIService AutomationTokensAPI - id string + id string } - // Execute calls the API using the request data configured. func (r APIRevokeAutomationTokenIDRequest) Execute() (*AutomationTokenErrorResponse, *http.Response, error) { return r.APIService.RevokeAutomationTokenIDExecute(r) @@ -762,8 +757,8 @@ Revoke an automation token by ID. func (a *AutomationTokensAPIService) RevokeAutomationTokenID(ctx context.Context, id string) APIRevokeAutomationTokenIDRequest { return APIRevokeAutomationTokenIDRequest{ APIService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } @@ -771,10 +766,10 @@ func (a *AutomationTokensAPIService) RevokeAutomationTokenID(ctx context.Context // @return AutomationTokenErrorResponse func (a *AutomationTokensAPIService) RevokeAutomationTokenIDExecute(r APIRevokeAutomationTokenIDRequest) (*AutomationTokenErrorResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *AutomationTokenErrorResponse + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *AutomationTokenErrorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutomationTokensAPIService.RevokeAutomationTokenID") @@ -893,7 +888,6 @@ func (a *AutomationTokensAPIService) RevokeAutomationTokenIDExecute(r APIRevokeA return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_backend.go b/fastly/api_backend.go index 67d2b86..72153c0 100644 --- a/fastly/api_backend.go +++ b/fastly/api_backend.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type BackendAPI interface { /* - CreateBackend Create a backend + CreateBackend Create a backend - Create a backend for a particular service and version. + Create a backend for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateBackendRequest */ CreateBackend(ctx context.Context, serviceID string, versionID int32) APICreateBackendRequest @@ -48,15 +47,15 @@ type BackendAPI interface { CreateBackendExecute(r APICreateBackendRequest) (*BackendResponse, *http.Response, error) /* - DeleteBackend Delete a backend + DeleteBackend Delete a backend - Delete the backend for a particular service and version. + Delete the backend for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APIDeleteBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APIDeleteBackendRequest */ DeleteBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIDeleteBackendRequest @@ -65,15 +64,15 @@ type BackendAPI interface { DeleteBackendExecute(r APIDeleteBackendRequest) (*InlineResponse200, *http.Response, error) /* - GetBackend Describe a backend + GetBackend Describe a backend - Get the backend for a particular service and version. + Get the backend for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APIGetBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APIGetBackendRequest */ GetBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIGetBackendRequest @@ -82,14 +81,14 @@ type BackendAPI interface { GetBackendExecute(r APIGetBackendRequest) (*BackendResponse, *http.Response, error) /* - ListBackends List backends + ListBackends List backends - List all backends for a particular service and version. + List all backends for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListBackendsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListBackendsRequest */ ListBackends(ctx context.Context, serviceID string, versionID int32) APIListBackendsRequest @@ -98,15 +97,15 @@ type BackendAPI interface { ListBackendsExecute(r APIListBackendsRequest) ([]BackendResponse, *http.Response, error) /* - UpdateBackend Update a backend + UpdateBackend Update a backend - Update the backend for a particular service and version. + Update the backend for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APIUpdateBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APIUpdateBackendRequest */ UpdateBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIUpdateBackendRequest @@ -120,45 +119,45 @@ type BackendAPIService service // APICreateBackendRequest represents a request for the resource. type APICreateBackendRequest struct { - ctx context.Context - APIService BackendAPI - serviceID string - versionID int32 - address *string - autoLoadbalance *bool - betweenBytesTimeout *int32 - clientCert *string - comment *string - connectTimeout *int32 - firstByteTimeout *int32 - healthcheck *string - hostname *string - ipv4 *string - ipv6 *string - keepaliveTime *int32 - maxConn *int32 - maxTLSVersion *string - minTLSVersion *string - name *string - overrideHost *string - port *int32 - requestCondition *string - shareKey *string - shield *string - sslCaCert *string - sslCertHostname *string - sslCheckCert *bool - sslCiphers *string - sslClientCert *string - sslClientKey *string - sslHostname *string - sslSniHostname *string - tcpKeepaliveEnable *bool + ctx context.Context + APIService BackendAPI + serviceID string + versionID int32 + address *string + autoLoadbalance *bool + betweenBytesTimeout *int32 + clientCert *string + comment *string + connectTimeout *int32 + firstByteTimeout *int32 + healthcheck *string + hostname *string + ipv4 *string + ipv6 *string + keepaliveTime *int32 + maxConn *int32 + maxTLSVersion *string + minTLSVersion *string + name *string + overrideHost *string + port *int32 + requestCondition *string + shareKey *string + shield *string + sslCaCert *string + sslCertHostname *string + sslCheckCert *bool + sslCiphers *string + sslClientCert *string + sslClientKey *string + sslHostname *string + sslSniHostname *string + tcpKeepaliveEnable *bool tcpKeepaliveInterval *int32 - tcpKeepaliveProbes *int32 - tcpKeepaliveTime *int32 - useSsl *bool - weight *int32 + tcpKeepaliveProbes *int32 + tcpKeepaliveTime *int32 + useSsl *bool + weight *int32 } // Address A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. @@ -166,171 +165,205 @@ func (r *APICreateBackendRequest) Address(address string) *APICreateBackendReque r.address = &address return r } + // AutoLoadbalance Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. func (r *APICreateBackendRequest) AutoLoadbalance(autoLoadbalance bool) *APICreateBackendRequest { r.autoLoadbalance = &autoLoadbalance return r } + // BetweenBytesTimeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. func (r *APICreateBackendRequest) BetweenBytesTimeout(betweenBytesTimeout int32) *APICreateBackendRequest { r.betweenBytesTimeout = &betweenBytesTimeout return r } + // ClientCert Unused. func (r *APICreateBackendRequest) ClientCert(clientCert string) *APICreateBackendRequest { r.clientCert = &clientCert return r } + // Comment A freeform descriptive note. func (r *APICreateBackendRequest) Comment(comment string) *APICreateBackendRequest { r.comment = &comment return r } -// ConnectTimeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. + +// ConnectTimeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. func (r *APICreateBackendRequest) ConnectTimeout(connectTimeout int32) *APICreateBackendRequest { r.connectTimeout = &connectTimeout return r } -// FirstByteTimeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. + +// FirstByteTimeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. func (r *APICreateBackendRequest) FirstByteTimeout(firstByteTimeout int32) *APICreateBackendRequest { r.firstByteTimeout = &firstByteTimeout return r } + // Healthcheck The name of the healthcheck to use with this backend. func (r *APICreateBackendRequest) Healthcheck(healthcheck string) *APICreateBackendRequest { r.healthcheck = &healthcheck return r } + // Hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location. func (r *APICreateBackendRequest) Hostname(hostname string) *APICreateBackendRequest { r.hostname = &hostname return r } + // Ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. func (r *APICreateBackendRequest) Ipv4(ipv4 string) *APICreateBackendRequest { r.ipv4 = &ipv4 return r } + // Ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. func (r *APICreateBackendRequest) Ipv6(ipv6 string) *APICreateBackendRequest { r.ipv6 = &ipv6 return r } + // KeepaliveTime How long in seconds to keep a persistent connection to the backend between requests. func (r *APICreateBackendRequest) KeepaliveTime(keepaliveTime int32) *APICreateBackendRequest { r.keepaliveTime = &keepaliveTime return r } + // MaxConn Maximum number of concurrent connections this backend will accept. func (r *APICreateBackendRequest) MaxConn(maxConn int32) *APICreateBackendRequest { r.maxConn = &maxConn return r } + // MaxTLSVersion Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APICreateBackendRequest) MaxTLSVersion(maxTLSVersion string) *APICreateBackendRequest { r.maxTLSVersion = &maxTLSVersion return r } + // MinTLSVersion Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APICreateBackendRequest) MinTLSVersion(minTLSVersion string) *APICreateBackendRequest { r.minTLSVersion = &minTLSVersion return r } + // Name The name of the backend. func (r *APICreateBackendRequest) Name(name string) *APICreateBackendRequest { r.name = &name return r } + // OverrideHost If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. func (r *APICreateBackendRequest) OverrideHost(overrideHost string) *APICreateBackendRequest { r.overrideHost = &overrideHost return r } + // Port Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. func (r *APICreateBackendRequest) Port(port int32) *APICreateBackendRequest { r.port = &port return r } + // RequestCondition Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. func (r *APICreateBackendRequest) RequestCondition(requestCondition string) *APICreateBackendRequest { r.requestCondition = &requestCondition return r } + // ShareKey Value that when shared across backends will enable those backends to share the same health check. func (r *APICreateBackendRequest) ShareKey(shareKey string) *APICreateBackendRequest { r.shareKey = &shareKey return r } + // Shield Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). func (r *APICreateBackendRequest) Shield(shield string) *APICreateBackendRequest { r.shield = &shield return r } + // SslCaCert CA certificate attached to origin. func (r *APICreateBackendRequest) SslCaCert(sslCaCert string) *APICreateBackendRequest { r.sslCaCert = &sslCaCert return r } + // SslCertHostname Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. func (r *APICreateBackendRequest) SslCertHostname(sslCertHostname string) *APICreateBackendRequest { r.sslCertHostname = &sslCertHostname return r } + // SslCheckCert Be strict on checking SSL certs. func (r *APICreateBackendRequest) SslCheckCert(sslCheckCert bool) *APICreateBackendRequest { r.sslCheckCert = &sslCheckCert return r } + // SslCiphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APICreateBackendRequest) SslCiphers(sslCiphers string) *APICreateBackendRequest { r.sslCiphers = &sslCiphers return r } + // SslClientCert Client certificate attached to origin. func (r *APICreateBackendRequest) SslClientCert(sslClientCert string) *APICreateBackendRequest { r.sslClientCert = &sslClientCert return r } + // SslClientKey Client key attached to origin. func (r *APICreateBackendRequest) SslClientKey(sslClientKey string) *APICreateBackendRequest { r.sslClientKey = &sslClientKey return r } + // SslHostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. func (r *APICreateBackendRequest) SslHostname(sslHostname string) *APICreateBackendRequest { r.sslHostname = &sslHostname return r } + // SslSniHostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. func (r *APICreateBackendRequest) SslSniHostname(sslSniHostname string) *APICreateBackendRequest { r.sslSniHostname = &sslSniHostname return r } + // TcpKeepaliveEnable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. func (r *APICreateBackendRequest) TcpKeepaliveEnable(tcpKeepaliveEnable bool) *APICreateBackendRequest { r.tcpKeepaliveEnable = &tcpKeepaliveEnable return r } + // TcpKeepaliveInterval Interval in seconds between subsequent keepalive probes. func (r *APICreateBackendRequest) TcpKeepaliveInterval(tcpKeepaliveInterval int32) *APICreateBackendRequest { r.tcpKeepaliveInterval = &tcpKeepaliveInterval return r } + // TcpKeepaliveProbes Number of unacknowledged probes to send before considering the connection dead. func (r *APICreateBackendRequest) TcpKeepaliveProbes(tcpKeepaliveProbes int32) *APICreateBackendRequest { r.tcpKeepaliveProbes = &tcpKeepaliveProbes return r } + // TcpKeepaliveTime Interval in seconds between the last data packet sent and the first keepalive probe. func (r *APICreateBackendRequest) TcpKeepaliveTime(tcpKeepaliveTime int32) *APICreateBackendRequest { r.tcpKeepaliveTime = &tcpKeepaliveTime return r } + // UseSsl Whether or not to require TLS for connections to this backend. func (r *APICreateBackendRequest) UseSsl(useSsl bool) *APICreateBackendRequest { r.useSsl = &useSsl return r } + // Weight Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. func (r *APICreateBackendRequest) Weight(weight int32) *APICreateBackendRequest { r.weight = &weight @@ -355,9 +388,9 @@ Create a backend for a particular service and version. func (a *BackendAPIService) CreateBackend(ctx context.Context, serviceID string, versionID int32) APICreateBackendRequest { return APICreateBackendRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -365,10 +398,10 @@ func (a *BackendAPIService) CreateBackend(ctx context.Context, serviceID string, // @return BackendResponse func (a *BackendAPIService) CreateBackendExecute(r APICreateBackendRequest) (*BackendResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *BackendResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *BackendResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BackendAPIService.CreateBackend") @@ -554,7 +587,6 @@ func (a *BackendAPIService) CreateBackendExecute(r APICreateBackendRequest) (*Ba return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -573,14 +605,13 @@ func (a *BackendAPIService) CreateBackendExecute(r APICreateBackendRequest) (*Ba // APIDeleteBackendRequest represents a request for the resource. type APIDeleteBackendRequest struct { - ctx context.Context - APIService BackendAPI - serviceID string - versionID int32 + ctx context.Context + APIService BackendAPI + serviceID string + versionID int32 backendName string } - // Execute calls the API using the request data configured. func (r APIDeleteBackendRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteBackendExecute(r) @@ -599,10 +630,10 @@ Delete the backend for a particular service and version. */ func (a *BackendAPIService) DeleteBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIDeleteBackendRequest { return APIDeleteBackendRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, backendName: backendName, } } @@ -611,10 +642,10 @@ func (a *BackendAPIService) DeleteBackend(ctx context.Context, serviceID string, // @return InlineResponse200 func (a *BackendAPIService) DeleteBackendExecute(r APIDeleteBackendRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BackendAPIService.DeleteBackend") @@ -696,7 +727,6 @@ func (a *BackendAPIService) DeleteBackendExecute(r APIDeleteBackendRequest) (*In return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -715,14 +745,13 @@ func (a *BackendAPIService) DeleteBackendExecute(r APIDeleteBackendRequest) (*In // APIGetBackendRequest represents a request for the resource. type APIGetBackendRequest struct { - ctx context.Context - APIService BackendAPI - serviceID string - versionID int32 + ctx context.Context + APIService BackendAPI + serviceID string + versionID int32 backendName string } - // Execute calls the API using the request data configured. func (r APIGetBackendRequest) Execute() (*BackendResponse, *http.Response, error) { return r.APIService.GetBackendExecute(r) @@ -741,10 +770,10 @@ Get the backend for a particular service and version. */ func (a *BackendAPIService) GetBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIGetBackendRequest { return APIGetBackendRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, backendName: backendName, } } @@ -753,10 +782,10 @@ func (a *BackendAPIService) GetBackend(ctx context.Context, serviceID string, ve // @return BackendResponse func (a *BackendAPIService) GetBackendExecute(r APIGetBackendRequest) (*BackendResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *BackendResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *BackendResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BackendAPIService.GetBackend") @@ -838,7 +867,6 @@ func (a *BackendAPIService) GetBackendExecute(r APIGetBackendRequest) (*BackendR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -857,13 +885,12 @@ func (a *BackendAPIService) GetBackendExecute(r APIGetBackendRequest) (*BackendR // APIListBackendsRequest represents a request for the resource. type APIListBackendsRequest struct { - ctx context.Context + ctx context.Context APIService BackendAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListBackendsRequest) Execute() ([]BackendResponse, *http.Response, error) { return r.APIService.ListBackendsExecute(r) @@ -882,9 +909,9 @@ List all backends for a particular service and version. func (a *BackendAPIService) ListBackends(ctx context.Context, serviceID string, versionID int32) APIListBackendsRequest { return APIListBackendsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -892,10 +919,10 @@ func (a *BackendAPIService) ListBackends(ctx context.Context, serviceID string, // @return []BackendResponse func (a *BackendAPIService) ListBackendsExecute(r APIListBackendsRequest) ([]BackendResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []BackendResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []BackendResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BackendAPIService.ListBackends") @@ -976,7 +1003,6 @@ func (a *BackendAPIService) ListBackendsExecute(r APIListBackendsRequest) ([]Bac return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -995,46 +1021,46 @@ func (a *BackendAPIService) ListBackendsExecute(r APIListBackendsRequest) ([]Bac // APIUpdateBackendRequest represents a request for the resource. type APIUpdateBackendRequest struct { - ctx context.Context - APIService BackendAPI - serviceID string - versionID int32 - backendName string - address *string - autoLoadbalance *bool - betweenBytesTimeout *int32 - clientCert *string - comment *string - connectTimeout *int32 - firstByteTimeout *int32 - healthcheck *string - hostname *string - ipv4 *string - ipv6 *string - keepaliveTime *int32 - maxConn *int32 - maxTLSVersion *string - minTLSVersion *string - name *string - overrideHost *string - port *int32 - requestCondition *string - shareKey *string - shield *string - sslCaCert *string - sslCertHostname *string - sslCheckCert *bool - sslCiphers *string - sslClientCert *string - sslClientKey *string - sslHostname *string - sslSniHostname *string - tcpKeepaliveEnable *bool + ctx context.Context + APIService BackendAPI + serviceID string + versionID int32 + backendName string + address *string + autoLoadbalance *bool + betweenBytesTimeout *int32 + clientCert *string + comment *string + connectTimeout *int32 + firstByteTimeout *int32 + healthcheck *string + hostname *string + ipv4 *string + ipv6 *string + keepaliveTime *int32 + maxConn *int32 + maxTLSVersion *string + minTLSVersion *string + name *string + overrideHost *string + port *int32 + requestCondition *string + shareKey *string + shield *string + sslCaCert *string + sslCertHostname *string + sslCheckCert *bool + sslCiphers *string + sslClientCert *string + sslClientKey *string + sslHostname *string + sslSniHostname *string + tcpKeepaliveEnable *bool tcpKeepaliveInterval *int32 - tcpKeepaliveProbes *int32 - tcpKeepaliveTime *int32 - useSsl *bool - weight *int32 + tcpKeepaliveProbes *int32 + tcpKeepaliveTime *int32 + useSsl *bool + weight *int32 } // Address A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend. @@ -1042,171 +1068,205 @@ func (r *APIUpdateBackendRequest) Address(address string) *APIUpdateBackendReque r.address = &address return r } + // AutoLoadbalance Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`. func (r *APIUpdateBackendRequest) AutoLoadbalance(autoLoadbalance bool) *APIUpdateBackendRequest { r.autoLoadbalance = &autoLoadbalance return r } + // BetweenBytesTimeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. func (r *APIUpdateBackendRequest) BetweenBytesTimeout(betweenBytesTimeout int32) *APIUpdateBackendRequest { r.betweenBytesTimeout = &betweenBytesTimeout return r } + // ClientCert Unused. func (r *APIUpdateBackendRequest) ClientCert(clientCert string) *APIUpdateBackendRequest { r.clientCert = &clientCert return r } + // Comment A freeform descriptive note. func (r *APIUpdateBackendRequest) Comment(comment string) *APIUpdateBackendRequest { r.comment = &comment return r } -// ConnectTimeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. + +// ConnectTimeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. func (r *APIUpdateBackendRequest) ConnectTimeout(connectTimeout int32) *APIUpdateBackendRequest { r.connectTimeout = &connectTimeout return r } -// FirstByteTimeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. + +// FirstByteTimeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. func (r *APIUpdateBackendRequest) FirstByteTimeout(firstByteTimeout int32) *APIUpdateBackendRequest { r.firstByteTimeout = &firstByteTimeout return r } + // Healthcheck The name of the healthcheck to use with this backend. func (r *APIUpdateBackendRequest) Healthcheck(healthcheck string) *APIUpdateBackendRequest { r.healthcheck = &healthcheck return r } + // Hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location. func (r *APIUpdateBackendRequest) Hostname(hostname string) *APIUpdateBackendRequest { r.hostname = &hostname return r } + // Ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. func (r *APIUpdateBackendRequest) Ipv4(ipv4 string) *APIUpdateBackendRequest { r.ipv4 = &ipv4 return r } + // Ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. func (r *APIUpdateBackendRequest) Ipv6(ipv6 string) *APIUpdateBackendRequest { r.ipv6 = &ipv6 return r } + // KeepaliveTime How long in seconds to keep a persistent connection to the backend between requests. func (r *APIUpdateBackendRequest) KeepaliveTime(keepaliveTime int32) *APIUpdateBackendRequest { r.keepaliveTime = &keepaliveTime return r } + // MaxConn Maximum number of concurrent connections this backend will accept. func (r *APIUpdateBackendRequest) MaxConn(maxConn int32) *APIUpdateBackendRequest { r.maxConn = &maxConn return r } + // MaxTLSVersion Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APIUpdateBackendRequest) MaxTLSVersion(maxTLSVersion string) *APIUpdateBackendRequest { r.maxTLSVersion = &maxTLSVersion return r } + // MinTLSVersion Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APIUpdateBackendRequest) MinTLSVersion(minTLSVersion string) *APIUpdateBackendRequest { r.minTLSVersion = &minTLSVersion return r } + // Name The name of the backend. func (r *APIUpdateBackendRequest) Name(name string) *APIUpdateBackendRequest { r.name = &name return r } + // OverrideHost If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL. func (r *APIUpdateBackendRequest) OverrideHost(overrideHost string) *APIUpdateBackendRequest { r.overrideHost = &overrideHost return r } + // Port Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request. func (r *APIUpdateBackendRequest) Port(port int32) *APIUpdateBackendRequest { r.port = &port return r } + // RequestCondition Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests. func (r *APIUpdateBackendRequest) RequestCondition(requestCondition string) *APIUpdateBackendRequest { r.requestCondition = &requestCondition return r } + // ShareKey Value that when shared across backends will enable those backends to share the same health check. func (r *APIUpdateBackendRequest) ShareKey(shareKey string) *APIUpdateBackendRequest { r.shareKey = &shareKey return r } + // Shield Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding). func (r *APIUpdateBackendRequest) Shield(shield string) *APIUpdateBackendRequest { r.shield = &shield return r } + // SslCaCert CA certificate attached to origin. func (r *APIUpdateBackendRequest) SslCaCert(sslCaCert string) *APIUpdateBackendRequest { r.sslCaCert = &sslCaCert return r } + // SslCertHostname Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all. func (r *APIUpdateBackendRequest) SslCertHostname(sslCertHostname string) *APIUpdateBackendRequest { r.sslCertHostname = &sslCertHostname return r } + // SslCheckCert Be strict on checking SSL certs. func (r *APIUpdateBackendRequest) SslCheckCert(sslCheckCert bool) *APIUpdateBackendRequest { r.sslCheckCert = &sslCheckCert return r } + // SslCiphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. func (r *APIUpdateBackendRequest) SslCiphers(sslCiphers string) *APIUpdateBackendRequest { r.sslCiphers = &sslCiphers return r } + // SslClientCert Client certificate attached to origin. func (r *APIUpdateBackendRequest) SslClientCert(sslClientCert string) *APIUpdateBackendRequest { r.sslClientCert = &sslClientCert return r } + // SslClientKey Client key attached to origin. func (r *APIUpdateBackendRequest) SslClientKey(sslClientKey string) *APIUpdateBackendRequest { r.sslClientKey = &sslClientKey return r } + // SslHostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation. func (r *APIUpdateBackendRequest) SslHostname(sslHostname string) *APIUpdateBackendRequest { r.sslHostname = &sslHostname return r } + // SslSniHostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all. func (r *APIUpdateBackendRequest) SslSniHostname(sslSniHostname string) *APIUpdateBackendRequest { r.sslSniHostname = &sslSniHostname return r } + // TcpKeepaliveEnable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified. func (r *APIUpdateBackendRequest) TcpKeepaliveEnable(tcpKeepaliveEnable bool) *APIUpdateBackendRequest { r.tcpKeepaliveEnable = &tcpKeepaliveEnable return r } + // TcpKeepaliveInterval Interval in seconds between subsequent keepalive probes. func (r *APIUpdateBackendRequest) TcpKeepaliveInterval(tcpKeepaliveInterval int32) *APIUpdateBackendRequest { r.tcpKeepaliveInterval = &tcpKeepaliveInterval return r } + // TcpKeepaliveProbes Number of unacknowledged probes to send before considering the connection dead. func (r *APIUpdateBackendRequest) TcpKeepaliveProbes(tcpKeepaliveProbes int32) *APIUpdateBackendRequest { r.tcpKeepaliveProbes = &tcpKeepaliveProbes return r } + // TcpKeepaliveTime Interval in seconds between the last data packet sent and the first keepalive probe. func (r *APIUpdateBackendRequest) TcpKeepaliveTime(tcpKeepaliveTime int32) *APIUpdateBackendRequest { r.tcpKeepaliveTime = &tcpKeepaliveTime return r } + // UseSsl Whether or not to require TLS for connections to this backend. func (r *APIUpdateBackendRequest) UseSsl(useSsl bool) *APIUpdateBackendRequest { r.useSsl = &useSsl return r } + // Weight Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. func (r *APIUpdateBackendRequest) Weight(weight int32) *APIUpdateBackendRequest { r.weight = &weight @@ -1231,10 +1291,10 @@ Update the backend for a particular service and version. */ func (a *BackendAPIService) UpdateBackend(ctx context.Context, serviceID string, versionID int32, backendName string) APIUpdateBackendRequest { return APIUpdateBackendRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, backendName: backendName, } } @@ -1243,10 +1303,10 @@ func (a *BackendAPIService) UpdateBackend(ctx context.Context, serviceID string, // @return BackendResponse func (a *BackendAPIService) UpdateBackendExecute(r APIUpdateBackendRequest) (*BackendResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *BackendResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *BackendResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BackendAPIService.UpdateBackend") @@ -1433,7 +1493,6 @@ func (a *BackendAPIService) UpdateBackendExecute(r APIUpdateBackendRequest) (*Ba return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_billing.go b/fastly/api_billing.go index 7b37f11..fe18322 100644 --- a/fastly/api_billing.go +++ b/fastly/api_billing.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type BillingAPI interface { /* - GetInvoice Get an invoice + GetInvoice Get an invoice - Get the invoice for a given year and month. Can be any month from when the Customer was created to the current month. + Get the invoice for a given year and month. Can be any month from when the Customer was created to the current month. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param month 2-digit month. - @param year 4-digit year. - @return APIGetInvoiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param month 2-digit month. + @param year 4-digit year. + @return APIGetInvoiceRequest */ GetInvoice(ctx context.Context, month string, year string) APIGetInvoiceRequest @@ -48,14 +47,14 @@ type BillingAPI interface { GetInvoiceExecute(r APIGetInvoiceRequest) (*BillingResponse, *http.Response, error) /* - GetInvoiceByID Get an invoice + GetInvoiceByID Get an invoice - Get the invoice for the given invoice_id. + Get the invoice for the given invoice_id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @param invoiceID - @return APIGetInvoiceByIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @param invoiceID + @return APIGetInvoiceByIDRequest */ GetInvoiceByID(ctx context.Context, customerID string, invoiceID int32) APIGetInvoiceByIDRequest @@ -64,13 +63,13 @@ type BillingAPI interface { GetInvoiceByIDExecute(r APIGetInvoiceByIDRequest) (*BillingResponse, *http.Response, error) /* - GetInvoiceMtd Get month-to-date billing estimate + GetInvoiceMtd Get month-to-date billing estimate - Get the current month-to-date estimate. This endpoint has two different responses. Under normal circumstances, it generally takes less than 5 seconds to generate but in certain cases can take up to 60 seconds. Once generated the month-to-date estimate is cached for 4 hours, and is available the next request will return the JSON representation of the month-to-date estimate. While a report is being generated in the background, this endpoint will return a `202 Accepted` response. The full format of which can be found in detail in our [billing calculation guide](https://docs.fastly.com/en/guides/how-we-calculate-your-bill). There are certain accounts for which we are unable to generate a month-to-date estimate. For example, accounts who have parent-pay are unable to generate an MTD estimate. The parent accounts are able to generate a month-to-date estimate but that estimate will not include the child accounts amounts at this time. + Get the current month-to-date estimate. This endpoint has two different responses. Under normal circumstances, it generally takes less than 5 seconds to generate but in certain cases can take up to 60 seconds. Once generated the month-to-date estimate is cached for 4 hours, and is available the next request will return the JSON representation of the month-to-date estimate. While a report is being generated in the background, this endpoint will return a `202 Accepted` response. The full format of which can be found in detail in our [billing calculation guide](https://docs.fastly.com/en/guides/how-we-calculate-your-bill). There are certain accounts for which we are unable to generate a month-to-date estimate. For example, accounts who have parent-pay are unable to generate an MTD estimate. The parent accounts are able to generate a month-to-date estimate but that estimate will not include the child accounts amounts at this time. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIGetInvoiceMtdRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIGetInvoiceMtdRequest */ GetInvoiceMtd(ctx context.Context, customerID string) APIGetInvoiceMtdRequest @@ -84,13 +83,12 @@ type BillingAPIService service // APIGetInvoiceRequest represents a request for the resource. type APIGetInvoiceRequest struct { - ctx context.Context + ctx context.Context APIService BillingAPI - month string - year string + month string + year string } - // Execute calls the API using the request data configured. func (r APIGetInvoiceRequest) Execute() (*BillingResponse, *http.Response, error) { return r.APIService.GetInvoiceExecute(r) @@ -109,9 +107,9 @@ Get the invoice for a given year and month. Can be any month from when the Custo func (a *BillingAPIService) GetInvoice(ctx context.Context, month string, year string) APIGetInvoiceRequest { return APIGetInvoiceRequest{ APIService: a, - ctx: ctx, - month: month, - year: year, + ctx: ctx, + month: month, + year: year, } } @@ -119,10 +117,10 @@ func (a *BillingAPIService) GetInvoice(ctx context.Context, month string, year s // @return BillingResponse func (a *BillingAPIService) GetInvoiceExecute(r APIGetInvoiceRequest) (*BillingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAPIService.GetInvoice") @@ -203,7 +201,6 @@ func (a *BillingAPIService) GetInvoiceExecute(r APIGetInvoiceRequest) (*BillingR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -222,13 +219,12 @@ func (a *BillingAPIService) GetInvoiceExecute(r APIGetInvoiceRequest) (*BillingR // APIGetInvoiceByIDRequest represents a request for the resource. type APIGetInvoiceByIDRequest struct { - ctx context.Context + ctx context.Context APIService BillingAPI customerID string - invoiceID int32 + invoiceID int32 } - // Execute calls the API using the request data configured. func (r APIGetInvoiceByIDRequest) Execute() (*BillingResponse, *http.Response, error) { return r.APIService.GetInvoiceByIDExecute(r) @@ -247,9 +243,9 @@ Get the invoice for the given invoice_id. func (a *BillingAPIService) GetInvoiceByID(ctx context.Context, customerID string, invoiceID int32) APIGetInvoiceByIDRequest { return APIGetInvoiceByIDRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, - invoiceID: invoiceID, + invoiceID: invoiceID, } } @@ -257,10 +253,10 @@ func (a *BillingAPIService) GetInvoiceByID(ctx context.Context, customerID strin // @return BillingResponse func (a *BillingAPIService) GetInvoiceByIDExecute(r APIGetInvoiceByIDRequest) (*BillingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAPIService.GetInvoiceByID") @@ -341,7 +337,6 @@ func (a *BillingAPIService) GetInvoiceByIDExecute(r APIGetInvoiceByIDRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -360,11 +355,11 @@ func (a *BillingAPIService) GetInvoiceByIDExecute(r APIGetInvoiceByIDRequest) (* // APIGetInvoiceMtdRequest represents a request for the resource. type APIGetInvoiceMtdRequest struct { - ctx context.Context + ctx context.Context APIService BillingAPI customerID string - month *string - year *string + month *string + year *string } // Month 2-digit month. @@ -372,6 +367,7 @@ func (r *APIGetInvoiceMtdRequest) Month(month string) *APIGetInvoiceMtdRequest { r.month = &month return r } + // Year 4-digit year. func (r *APIGetInvoiceMtdRequest) Year(year string) *APIGetInvoiceMtdRequest { r.year = &year @@ -395,7 +391,7 @@ Get the current month-to-date estimate. This endpoint has two different response func (a *BillingAPIService) GetInvoiceMtd(ctx context.Context, customerID string) APIGetInvoiceMtdRequest { return APIGetInvoiceMtdRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -404,10 +400,10 @@ func (a *BillingAPIService) GetInvoiceMtd(ctx context.Context, customerID string // @return BillingEstimateResponse func (a *BillingAPIService) GetInvoiceMtdExecute(r APIGetInvoiceMtdRequest) (*BillingEstimateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingEstimateResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingEstimateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAPIService.GetInvoiceMtd") @@ -493,7 +489,6 @@ func (a *BillingAPIService) GetInvoiceMtdExecute(r APIGetInvoiceMtdRequest) (*Bi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_billing_address.go b/fastly/api_billing_address.go index 3cf3692..522d2a0 100644 --- a/fastly/api_billing_address.go +++ b/fastly/api_billing_address.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type BillingAddressAPI interface { /* - AddBillingAddr Add a billing address to a customer + AddBillingAddr Add a billing address to a customer - Add a billing address to a customer. + Add a billing address to a customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIAddBillingAddrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIAddBillingAddrRequest */ AddBillingAddr(ctx context.Context, customerID string) APIAddBillingAddrRequest @@ -47,13 +46,13 @@ type BillingAddressAPI interface { AddBillingAddrExecute(r APIAddBillingAddrRequest) (*BillingAddressResponse, *http.Response, error) /* - DeleteBillingAddr Delete a billing address + DeleteBillingAddr Delete a billing address - Delete a customer's billing address. + Delete a customer's billing address. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIDeleteBillingAddrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIDeleteBillingAddrRequest */ DeleteBillingAddr(ctx context.Context, customerID string) APIDeleteBillingAddrRequest @@ -61,13 +60,13 @@ type BillingAddressAPI interface { DeleteBillingAddrExecute(r APIDeleteBillingAddrRequest) (*http.Response, error) /* - GetBillingAddr Get a billing address + GetBillingAddr Get a billing address - Get a customer's billing address. + Get a customer's billing address. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIGetBillingAddrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIGetBillingAddrRequest */ GetBillingAddr(ctx context.Context, customerID string) APIGetBillingAddrRequest @@ -76,13 +75,13 @@ type BillingAddressAPI interface { GetBillingAddrExecute(r APIGetBillingAddrRequest) (*BillingAddressResponse, *http.Response, error) /* - UpdateBillingAddr Update a billing address + UpdateBillingAddr Update a billing address - Update a customer's billing address. You may update only part of the customer's billing address. + Update a customer's billing address. You may update only part of the customer's billing address. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIUpdateBillingAddrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIUpdateBillingAddrRequest */ UpdateBillingAddr(ctx context.Context, customerID string) APIUpdateBillingAddrRequest @@ -96,9 +95,9 @@ type BillingAddressAPIService service // APIAddBillingAddrRequest represents a request for the resource. type APIAddBillingAddrRequest struct { - ctx context.Context - APIService BillingAddressAPI - customerID string + ctx context.Context + APIService BillingAddressAPI + customerID string billingAddressRequest *BillingAddressRequest } @@ -125,7 +124,7 @@ Add a billing address to a customer. func (a *BillingAddressAPIService) AddBillingAddr(ctx context.Context, customerID string) APIAddBillingAddrRequest { return APIAddBillingAddrRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -134,10 +133,10 @@ func (a *BillingAddressAPIService) AddBillingAddr(ctx context.Context, customerI // @return BillingAddressResponse func (a *BillingAddressAPIService) AddBillingAddrExecute(r APIAddBillingAddrRequest) (*BillingAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingAddressResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingAddressResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAddressAPIService.AddBillingAddr") @@ -228,7 +227,6 @@ func (a *BillingAddressAPIService) AddBillingAddrExecute(r APIAddBillingAddrRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -247,12 +245,11 @@ func (a *BillingAddressAPIService) AddBillingAddrExecute(r APIAddBillingAddrRequ // APIDeleteBillingAddrRequest represents a request for the resource. type APIDeleteBillingAddrRequest struct { - ctx context.Context + ctx context.Context APIService BillingAddressAPI customerID string } - // Execute calls the API using the request data configured. func (r APIDeleteBillingAddrRequest) Execute() (*http.Response, error) { return r.APIService.DeleteBillingAddrExecute(r) @@ -270,7 +267,7 @@ Delete a customer's billing address. func (a *BillingAddressAPIService) DeleteBillingAddr(ctx context.Context, customerID string) APIDeleteBillingAddrRequest { return APIDeleteBillingAddrRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -278,9 +275,9 @@ func (a *BillingAddressAPIService) DeleteBillingAddr(ctx context.Context, custom // DeleteBillingAddrExecute executes the request func (a *BillingAddressAPIService) DeleteBillingAddrExecute(r APIDeleteBillingAddrRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAddressAPIService.DeleteBillingAddr") @@ -351,7 +348,6 @@ func (a *BillingAddressAPIService) DeleteBillingAddrExecute(r APIDeleteBillingAd return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -370,12 +366,11 @@ func (a *BillingAddressAPIService) DeleteBillingAddrExecute(r APIDeleteBillingAd // APIGetBillingAddrRequest represents a request for the resource. type APIGetBillingAddrRequest struct { - ctx context.Context + ctx context.Context APIService BillingAddressAPI customerID string } - // Execute calls the API using the request data configured. func (r APIGetBillingAddrRequest) Execute() (*BillingAddressResponse, *http.Response, error) { return r.APIService.GetBillingAddrExecute(r) @@ -393,7 +388,7 @@ Get a customer's billing address. func (a *BillingAddressAPIService) GetBillingAddr(ctx context.Context, customerID string) APIGetBillingAddrRequest { return APIGetBillingAddrRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -402,10 +397,10 @@ func (a *BillingAddressAPIService) GetBillingAddr(ctx context.Context, customerI // @return BillingAddressResponse func (a *BillingAddressAPIService) GetBillingAddrExecute(r APIGetBillingAddrRequest) (*BillingAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingAddressResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingAddressResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAddressAPIService.GetBillingAddr") @@ -485,7 +480,6 @@ func (a *BillingAddressAPIService) GetBillingAddrExecute(r APIGetBillingAddrRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -504,9 +498,9 @@ func (a *BillingAddressAPIService) GetBillingAddrExecute(r APIGetBillingAddrRequ // APIUpdateBillingAddrRequest represents a request for the resource. type APIUpdateBillingAddrRequest struct { - ctx context.Context - APIService BillingAddressAPI - customerID string + ctx context.Context + APIService BillingAddressAPI + customerID string updateBillingAddressRequest *UpdateBillingAddressRequest } @@ -533,7 +527,7 @@ Update a customer's billing address. You may update only part of the customer's func (a *BillingAddressAPIService) UpdateBillingAddr(ctx context.Context, customerID string) APIUpdateBillingAddrRequest { return APIUpdateBillingAddrRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -542,10 +536,10 @@ func (a *BillingAddressAPIService) UpdateBillingAddr(ctx context.Context, custom // @return BillingAddressResponse func (a *BillingAddressAPIService) UpdateBillingAddrExecute(r APIUpdateBillingAddrRequest) (*BillingAddressResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *BillingAddressResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *BillingAddressResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingAddressAPIService.UpdateBillingAddr") @@ -636,7 +630,6 @@ func (a *BillingAddressAPIService) UpdateBillingAddrExecute(r APIUpdateBillingAd return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_billing_invoices.go b/fastly/api_billing_invoices.go index 01790c2..76d704c 100644 --- a/fastly/api_billing_invoices.go +++ b/fastly/api_billing_invoices.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type BillingInvoicesAPI interface { /* - GetInvoiceByInvoiceID Get invoice by ID. + GetInvoiceByInvoiceID Get invoice by ID. - Returns invoice associated with the invoice id. + Returns invoice associated with the invoice id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param invoiceID - @return APIGetInvoiceByInvoiceIDRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param invoiceID + @return APIGetInvoiceByInvoiceIDRequest */ GetInvoiceByInvoiceID(ctx context.Context, invoiceID int32) APIGetInvoiceByInvoiceIDRequest @@ -47,12 +46,12 @@ type BillingInvoicesAPI interface { GetInvoiceByInvoiceIDExecute(r APIGetInvoiceByInvoiceIDRequest) (*EomInvoiceResponse, *http.Response, error) /* - GetMonthToDateInvoice Get month-to-date invoice. + GetMonthToDateInvoice Get month-to-date invoice. - Returns month-to-date invoice for the current month. + Returns month-to-date invoice for the current month. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetMonthToDateInvoiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetMonthToDateInvoiceRequest */ GetMonthToDateInvoice(ctx context.Context) APIGetMonthToDateInvoiceRequest @@ -61,12 +60,12 @@ type BillingInvoicesAPI interface { GetMonthToDateInvoiceExecute(r APIGetMonthToDateInvoiceRequest) (*MtdInvoiceResponse, *http.Response, error) /* - ListInvoices List of invoices. + ListInvoices List of invoices. - Returns the list of invoices, sorted by billing start date (newest to oldest). + Returns the list of invoices, sorted by billing start date (newest to oldest). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListInvoicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListInvoicesRequest */ ListInvoices(ctx context.Context) APIListInvoicesRequest @@ -80,12 +79,11 @@ type BillingInvoicesAPIService service // APIGetInvoiceByInvoiceIDRequest represents a request for the resource. type APIGetInvoiceByInvoiceIDRequest struct { - ctx context.Context + ctx context.Context APIService BillingInvoicesAPI - invoiceID int32 + invoiceID int32 } - // Execute calls the API using the request data configured. func (r APIGetInvoiceByInvoiceIDRequest) Execute() (*EomInvoiceResponse, *http.Response, error) { return r.APIService.GetInvoiceByInvoiceIDExecute(r) @@ -103,8 +101,8 @@ Returns invoice associated with the invoice id. func (a *BillingInvoicesAPIService) GetInvoiceByInvoiceID(ctx context.Context, invoiceID int32) APIGetInvoiceByInvoiceIDRequest { return APIGetInvoiceByInvoiceIDRequest{ APIService: a, - ctx: ctx, - invoiceID: invoiceID, + ctx: ctx, + invoiceID: invoiceID, } } @@ -112,10 +110,10 @@ func (a *BillingInvoicesAPIService) GetInvoiceByInvoiceID(ctx context.Context, i // @return EomInvoiceResponse func (a *BillingInvoicesAPIService) GetInvoiceByInvoiceIDExecute(r APIGetInvoiceByInvoiceIDRequest) (*EomInvoiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *EomInvoiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *EomInvoiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingInvoicesAPIService.GetInvoiceByInvoiceID") @@ -224,7 +222,6 @@ func (a *BillingInvoicesAPIService) GetInvoiceByInvoiceIDExecute(r APIGetInvoice return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -243,11 +240,10 @@ func (a *BillingInvoicesAPIService) GetInvoiceByInvoiceIDExecute(r APIGetInvoice // APIGetMonthToDateInvoiceRequest represents a request for the resource. type APIGetMonthToDateInvoiceRequest struct { - ctx context.Context + ctx context.Context APIService BillingInvoicesAPI } - // Execute calls the API using the request data configured. func (r APIGetMonthToDateInvoiceRequest) Execute() (*MtdInvoiceResponse, *http.Response, error) { return r.APIService.GetMonthToDateInvoiceExecute(r) @@ -264,7 +260,7 @@ Returns month-to-date invoice for the current month. func (a *BillingInvoicesAPIService) GetMonthToDateInvoice(ctx context.Context) APIGetMonthToDateInvoiceRequest { return APIGetMonthToDateInvoiceRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -272,10 +268,10 @@ func (a *BillingInvoicesAPIService) GetMonthToDateInvoice(ctx context.Context) A // @return MtdInvoiceResponse func (a *BillingInvoicesAPIService) GetMonthToDateInvoiceExecute(r APIGetMonthToDateInvoiceRequest) (*MtdInvoiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *MtdInvoiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *MtdInvoiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingInvoicesAPIService.GetMonthToDateInvoice") @@ -393,7 +389,6 @@ func (a *BillingInvoicesAPIService) GetMonthToDateInvoiceExecute(r APIGetMonthTo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -412,12 +407,12 @@ func (a *BillingInvoicesAPIService) GetMonthToDateInvoiceExecute(r APIGetMonthTo // APIListInvoicesRequest represents a request for the resource. type APIListInvoicesRequest struct { - ctx context.Context - APIService BillingInvoicesAPI + ctx context.Context + APIService BillingInvoicesAPI billingStartDate *string - billingEndDate *string - limit *string - cursor *string + billingEndDate *string + limit *string + cursor *string } // BillingStartDate returns a pointer to a request. @@ -425,16 +420,19 @@ func (r *APIListInvoicesRequest) BillingStartDate(billingStartDate string) *APIL r.billingStartDate = &billingStartDate return r } + // BillingEndDate returns a pointer to a request. func (r *APIListInvoicesRequest) BillingEndDate(billingEndDate string) *APIListInvoicesRequest { r.billingEndDate = &billingEndDate return r } + // Limit Number of results per page. The maximum is 200. func (r *APIListInvoicesRequest) Limit(limit string) *APIListInvoicesRequest { r.limit = &limit return r } + // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. func (r *APIListInvoicesRequest) Cursor(cursor string) *APIListInvoicesRequest { r.cursor = &cursor @@ -457,7 +455,7 @@ Returns the list of invoices, sorted by billing start date (newest to oldest). func (a *BillingInvoicesAPIService) ListInvoices(ctx context.Context) APIListInvoicesRequest { return APIListInvoicesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -465,10 +463,10 @@ func (a *BillingInvoicesAPIService) ListInvoices(ctx context.Context) APIListInv // @return ListEomInvoicesResponse func (a *BillingInvoicesAPIService) ListInvoicesExecute(r APIListInvoicesRequest) (*ListEomInvoicesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ListEomInvoicesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ListEomInvoicesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingInvoicesAPIService.ListInvoices") @@ -588,7 +586,6 @@ func (a *BillingInvoicesAPIService) ListInvoicesExecute(r APIListInvoicesRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_billing_usage_metrics.go b/fastly/api_billing_usage_metrics.go index 6362f8c..909729c 100644 --- a/fastly/api_billing_usage_metrics.go +++ b/fastly/api_billing_usage_metrics.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type BillingUsageMetricsAPI interface { /* - GetServiceLevelUsage Retrieve service-level usage metrics for a product. + GetServiceLevelUsage Retrieve service-level usage metrics for a product. - Returns product usage, broken down by service. + Returns product usage, broken down by service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIGetServiceLevelUsageRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIGetServiceLevelUsageRequest */ GetServiceLevelUsage(ctx context.Context, customerID string) APIGetServiceLevelUsageRequest @@ -47,13 +46,13 @@ type BillingUsageMetricsAPI interface { GetServiceLevelUsageExecute(r APIGetServiceLevelUsageRequest) (*Serviceusagemetrics, *http.Response, error) /* - GetServiceLevelUsageTypes Retrieve product usage types for a customer. + GetServiceLevelUsageTypes Retrieve product usage types for a customer. - Returns product usage types reported by the customer's services. + Returns product usage types reported by the customer's services. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIGetServiceLevelUsageTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIGetServiceLevelUsageTypesRequest */ GetServiceLevelUsageTypes(ctx context.Context, customerID string) APIGetServiceLevelUsageTypesRequest @@ -67,18 +66,18 @@ type BillingUsageMetricsAPIService service // APIGetServiceLevelUsageRequest represents a request for the resource. type APIGetServiceLevelUsageRequest struct { - ctx context.Context - APIService BillingUsageMetricsAPI - customerID string - productID *string - usageTypeName *string + ctx context.Context + APIService BillingUsageMetricsAPI + customerID string + productID *string + usageTypeName *string timeGranularity *string - startDate *string - endDate *string - startMonth *string - endMonth *string - limit *string - cursor *string + startDate *string + endDate *string + startMonth *string + endMonth *string + limit *string + cursor *string } // ProductID The product identifier for the metrics returned (e.g., `cdn_usage`). This field is not required for CSV requests. @@ -86,41 +85,49 @@ func (r *APIGetServiceLevelUsageRequest) ProductID(productID string) *APIGetServ r.productID = &productID return r } + // UsageTypeName The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. func (r *APIGetServiceLevelUsageRequest) UsageTypeName(usageTypeName string) *APIGetServiceLevelUsageRequest { r.usageTypeName = &usageTypeName return r } + // TimeGranularity returns a pointer to a request. func (r *APIGetServiceLevelUsageRequest) TimeGranularity(timeGranularity string) *APIGetServiceLevelUsageRequest { r.timeGranularity = &timeGranularity return r } + // StartDate returns a pointer to a request. func (r *APIGetServiceLevelUsageRequest) StartDate(startDate string) *APIGetServiceLevelUsageRequest { r.startDate = &startDate return r } + // EndDate returns a pointer to a request. func (r *APIGetServiceLevelUsageRequest) EndDate(endDate string) *APIGetServiceLevelUsageRequest { r.endDate = &endDate return r } + // StartMonth returns a pointer to a request. func (r *APIGetServiceLevelUsageRequest) StartMonth(startMonth string) *APIGetServiceLevelUsageRequest { r.startMonth = &startMonth return r } + // EndMonth returns a pointer to a request. func (r *APIGetServiceLevelUsageRequest) EndMonth(endMonth string) *APIGetServiceLevelUsageRequest { r.endMonth = &endMonth return r } + // Limit Number of results per page. The maximum is 100. func (r *APIGetServiceLevelUsageRequest) Limit(limit string) *APIGetServiceLevelUsageRequest { r.limit = &limit return r } + // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. func (r *APIGetServiceLevelUsageRequest) Cursor(cursor string) *APIGetServiceLevelUsageRequest { r.cursor = &cursor @@ -144,7 +151,7 @@ Returns product usage, broken down by service. func (a *BillingUsageMetricsAPIService) GetServiceLevelUsage(ctx context.Context, customerID string) APIGetServiceLevelUsageRequest { return APIGetServiceLevelUsageRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -153,10 +160,10 @@ func (a *BillingUsageMetricsAPIService) GetServiceLevelUsage(ctx context.Context // @return Serviceusagemetrics func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageExecute(r APIGetServiceLevelUsageRequest) (*Serviceusagemetrics, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Serviceusagemetrics + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Serviceusagemetrics ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingUsageMetricsAPIService.GetServiceLevelUsage") @@ -295,7 +302,6 @@ func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageExecute(r APIGetServ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -314,12 +320,11 @@ func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageExecute(r APIGetServ // APIGetServiceLevelUsageTypesRequest represents a request for the resource. type APIGetServiceLevelUsageTypesRequest struct { - ctx context.Context + ctx context.Context APIService BillingUsageMetricsAPI customerID string } - // Execute calls the API using the request data configured. func (r APIGetServiceLevelUsageTypesRequest) Execute() (*Serviceusagetypes, *http.Response, error) { return r.APIService.GetServiceLevelUsageTypesExecute(r) @@ -337,7 +342,7 @@ Returns product usage types reported by the customer's services. func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageTypes(ctx context.Context, customerID string) APIGetServiceLevelUsageTypesRequest { return APIGetServiceLevelUsageTypesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -346,10 +351,10 @@ func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageTypes(ctx context.Co // @return Serviceusagetypes func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageTypesExecute(r APIGetServiceLevelUsageTypesRequest) (*Serviceusagetypes, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Serviceusagetypes + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Serviceusagetypes ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingUsageMetricsAPIService.GetServiceLevelUsageTypes") @@ -458,7 +463,6 @@ func (a *BillingUsageMetricsAPIService) GetServiceLevelUsageTypesExecute(r APIGe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_cache_settings.go b/fastly/api_cache_settings.go index 7e53135..321a363 100644 --- a/fastly/api_cache_settings.go +++ b/fastly/api_cache_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type CacheSettingsAPI interface { /* - CreateCacheSettings Create a cache settings object + CreateCacheSettings Create a cache settings object - Create a cache settings object. + Create a cache settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateCacheSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateCacheSettingsRequest */ CreateCacheSettings(ctx context.Context, serviceID string, versionID int32) APICreateCacheSettingsRequest @@ -48,15 +47,15 @@ type CacheSettingsAPI interface { CreateCacheSettingsExecute(r APICreateCacheSettingsRequest) (*CacheSettingResponse, *http.Response, error) /* - DeleteCacheSettings Delete a cache settings object + DeleteCacheSettings Delete a cache settings object - Delete a specific cache settings object. + Delete a specific cache settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param cacheSettingsName Name for the cache settings object. - @return APIDeleteCacheSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param cacheSettingsName Name for the cache settings object. + @return APIDeleteCacheSettingsRequest */ DeleteCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIDeleteCacheSettingsRequest @@ -65,15 +64,15 @@ type CacheSettingsAPI interface { DeleteCacheSettingsExecute(r APIDeleteCacheSettingsRequest) (*InlineResponse200, *http.Response, error) /* - GetCacheSettings Get a cache settings object + GetCacheSettings Get a cache settings object - Get a specific cache settings object. + Get a specific cache settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param cacheSettingsName Name for the cache settings object. - @return APIGetCacheSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param cacheSettingsName Name for the cache settings object. + @return APIGetCacheSettingsRequest */ GetCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIGetCacheSettingsRequest @@ -82,14 +81,14 @@ type CacheSettingsAPI interface { GetCacheSettingsExecute(r APIGetCacheSettingsRequest) (*CacheSettingResponse, *http.Response, error) /* - ListCacheSettings List cache settings objects + ListCacheSettings List cache settings objects - Get a list of all cache settings for a particular service and version. + Get a list of all cache settings for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListCacheSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListCacheSettingsRequest */ ListCacheSettings(ctx context.Context, serviceID string, versionID int32) APIListCacheSettingsRequest @@ -98,15 +97,15 @@ type CacheSettingsAPI interface { ListCacheSettingsExecute(r APIListCacheSettingsRequest) ([]CacheSettingResponse, *http.Response, error) /* - UpdateCacheSettings Update a cache settings object + UpdateCacheSettings Update a cache settings object - Update a specific cache settings object. + Update a specific cache settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param cacheSettingsName Name for the cache settings object. - @return APIUpdateCacheSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param cacheSettingsName Name for the cache settings object. + @return APIUpdateCacheSettingsRequest */ UpdateCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIUpdateCacheSettingsRequest @@ -120,37 +119,41 @@ type CacheSettingsAPIService service // APICreateCacheSettingsRequest represents a request for the resource. type APICreateCacheSettingsRequest struct { - ctx context.Context - APIService CacheSettingsAPI - serviceID string - versionID int32 - action *string + ctx context.Context + APIService CacheSettingsAPI + serviceID string + versionID int32 + action *string cacheCondition *string - name *string - staleTTL *string - ttl *string + name *string + staleTTL *string + ttl *string } -// Action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. +// Action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. func (r *APICreateCacheSettingsRequest) Action(action string) *APICreateCacheSettingsRequest { r.action = &action return r } + // CacheCondition Name of the cache condition controlling when this configuration applies. func (r *APICreateCacheSettingsRequest) CacheCondition(cacheCondition string) *APICreateCacheSettingsRequest { r.cacheCondition = &cacheCondition return r } + // Name Name for the cache settings object. func (r *APICreateCacheSettingsRequest) Name(name string) *APICreateCacheSettingsRequest { r.name = &name return r } + // StaleTTL Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). func (r *APICreateCacheSettingsRequest) StaleTTL(staleTTL string) *APICreateCacheSettingsRequest { r.staleTTL = &staleTTL return r } + // TTL Maximum time to consider the object fresh in the cache (the cache 'time to live'). func (r *APICreateCacheSettingsRequest) TTL(ttl string) *APICreateCacheSettingsRequest { r.ttl = &ttl @@ -175,9 +178,9 @@ Create a cache settings object. func (a *CacheSettingsAPIService) CreateCacheSettings(ctx context.Context, serviceID string, versionID int32) APICreateCacheSettingsRequest { return APICreateCacheSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -185,10 +188,10 @@ func (a *CacheSettingsAPIService) CreateCacheSettings(ctx context.Context, servi // @return CacheSettingResponse func (a *CacheSettingsAPIService) CreateCacheSettingsExecute(r APICreateCacheSettingsRequest) (*CacheSettingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *CacheSettingResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *CacheSettingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CacheSettingsAPIService.CreateCacheSettings") @@ -284,7 +287,6 @@ func (a *CacheSettingsAPIService) CreateCacheSettingsExecute(r APICreateCacheSet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -303,14 +305,13 @@ func (a *CacheSettingsAPIService) CreateCacheSettingsExecute(r APICreateCacheSet // APIDeleteCacheSettingsRequest represents a request for the resource. type APIDeleteCacheSettingsRequest struct { - ctx context.Context - APIService CacheSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService CacheSettingsAPI + serviceID string + versionID int32 cacheSettingsName string } - // Execute calls the API using the request data configured. func (r APIDeleteCacheSettingsRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteCacheSettingsExecute(r) @@ -329,10 +330,10 @@ Delete a specific cache settings object. */ func (a *CacheSettingsAPIService) DeleteCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIDeleteCacheSettingsRequest { return APIDeleteCacheSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, cacheSettingsName: cacheSettingsName, } } @@ -341,10 +342,10 @@ func (a *CacheSettingsAPIService) DeleteCacheSettings(ctx context.Context, servi // @return InlineResponse200 func (a *CacheSettingsAPIService) DeleteCacheSettingsExecute(r APIDeleteCacheSettingsRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CacheSettingsAPIService.DeleteCacheSettings") @@ -426,7 +427,6 @@ func (a *CacheSettingsAPIService) DeleteCacheSettingsExecute(r APIDeleteCacheSet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -445,14 +445,13 @@ func (a *CacheSettingsAPIService) DeleteCacheSettingsExecute(r APIDeleteCacheSet // APIGetCacheSettingsRequest represents a request for the resource. type APIGetCacheSettingsRequest struct { - ctx context.Context - APIService CacheSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService CacheSettingsAPI + serviceID string + versionID int32 cacheSettingsName string } - // Execute calls the API using the request data configured. func (r APIGetCacheSettingsRequest) Execute() (*CacheSettingResponse, *http.Response, error) { return r.APIService.GetCacheSettingsExecute(r) @@ -471,10 +470,10 @@ Get a specific cache settings object. */ func (a *CacheSettingsAPIService) GetCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIGetCacheSettingsRequest { return APIGetCacheSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, cacheSettingsName: cacheSettingsName, } } @@ -483,10 +482,10 @@ func (a *CacheSettingsAPIService) GetCacheSettings(ctx context.Context, serviceI // @return CacheSettingResponse func (a *CacheSettingsAPIService) GetCacheSettingsExecute(r APIGetCacheSettingsRequest) (*CacheSettingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *CacheSettingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *CacheSettingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CacheSettingsAPIService.GetCacheSettings") @@ -568,7 +567,6 @@ func (a *CacheSettingsAPIService) GetCacheSettingsExecute(r APIGetCacheSettingsR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -587,13 +585,12 @@ func (a *CacheSettingsAPIService) GetCacheSettingsExecute(r APIGetCacheSettingsR // APIListCacheSettingsRequest represents a request for the resource. type APIListCacheSettingsRequest struct { - ctx context.Context + ctx context.Context APIService CacheSettingsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListCacheSettingsRequest) Execute() ([]CacheSettingResponse, *http.Response, error) { return r.APIService.ListCacheSettingsExecute(r) @@ -612,9 +609,9 @@ Get a list of all cache settings for a particular service and version. func (a *CacheSettingsAPIService) ListCacheSettings(ctx context.Context, serviceID string, versionID int32) APIListCacheSettingsRequest { return APIListCacheSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -622,10 +619,10 @@ func (a *CacheSettingsAPIService) ListCacheSettings(ctx context.Context, service // @return []CacheSettingResponse func (a *CacheSettingsAPIService) ListCacheSettingsExecute(r APIListCacheSettingsRequest) ([]CacheSettingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []CacheSettingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []CacheSettingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CacheSettingsAPIService.ListCacheSettings") @@ -706,7 +703,6 @@ func (a *CacheSettingsAPIService) ListCacheSettingsExecute(r APIListCacheSetting return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -725,38 +721,42 @@ func (a *CacheSettingsAPIService) ListCacheSettingsExecute(r APIListCacheSetting // APIUpdateCacheSettingsRequest represents a request for the resource. type APIUpdateCacheSettingsRequest struct { - ctx context.Context - APIService CacheSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService CacheSettingsAPI + serviceID string + versionID int32 cacheSettingsName string - action *string - cacheCondition *string - name *string - staleTTL *string - ttl *string + action *string + cacheCondition *string + name *string + staleTTL *string + ttl *string } -// Action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. +// Action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. func (r *APIUpdateCacheSettingsRequest) Action(action string) *APIUpdateCacheSettingsRequest { r.action = &action return r } + // CacheCondition Name of the cache condition controlling when this configuration applies. func (r *APIUpdateCacheSettingsRequest) CacheCondition(cacheCondition string) *APIUpdateCacheSettingsRequest { r.cacheCondition = &cacheCondition return r } + // Name Name for the cache settings object. func (r *APIUpdateCacheSettingsRequest) Name(name string) *APIUpdateCacheSettingsRequest { r.name = &name return r } + // StaleTTL Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). func (r *APIUpdateCacheSettingsRequest) StaleTTL(staleTTL string) *APIUpdateCacheSettingsRequest { r.staleTTL = &staleTTL return r } + // TTL Maximum time to consider the object fresh in the cache (the cache 'time to live'). func (r *APIUpdateCacheSettingsRequest) TTL(ttl string) *APIUpdateCacheSettingsRequest { r.ttl = &ttl @@ -781,10 +781,10 @@ Update a specific cache settings object. */ func (a *CacheSettingsAPIService) UpdateCacheSettings(ctx context.Context, serviceID string, versionID int32, cacheSettingsName string) APIUpdateCacheSettingsRequest { return APIUpdateCacheSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, cacheSettingsName: cacheSettingsName, } } @@ -793,10 +793,10 @@ func (a *CacheSettingsAPIService) UpdateCacheSettings(ctx context.Context, servi // @return CacheSettingResponse func (a *CacheSettingsAPIService) UpdateCacheSettingsExecute(r APIUpdateCacheSettingsRequest) (*CacheSettingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *CacheSettingResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *CacheSettingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CacheSettingsAPIService.UpdateCacheSettings") @@ -893,7 +893,6 @@ func (a *CacheSettingsAPIService) UpdateCacheSettingsExecute(r APIUpdateCacheSet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_condition.go b/fastly/api_condition.go index 9898ad3..9a89c8f 100644 --- a/fastly/api_condition.go +++ b/fastly/api_condition.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ConditionAPI interface { /* - CreateCondition Create a condition + CreateCondition Create a condition - Creates a new condition. + Creates a new condition. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateConditionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateConditionRequest */ CreateCondition(ctx context.Context, serviceID string, versionID int32) APICreateConditionRequest @@ -48,15 +47,15 @@ type ConditionAPI interface { CreateConditionExecute(r APICreateConditionRequest) (*ConditionResponse, *http.Response, error) /* - DeleteCondition Delete a condition + DeleteCondition Delete a condition - Deletes the specified condition. + Deletes the specified condition. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param conditionName Name of the condition. Required. - @return APIDeleteConditionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param conditionName Name of the condition. Required. + @return APIDeleteConditionRequest */ DeleteCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIDeleteConditionRequest @@ -65,15 +64,15 @@ type ConditionAPI interface { DeleteConditionExecute(r APIDeleteConditionRequest) (*InlineResponse200, *http.Response, error) /* - GetCondition Describe a condition + GetCondition Describe a condition - Gets the specified condition. + Gets the specified condition. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param conditionName Name of the condition. Required. - @return APIGetConditionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param conditionName Name of the condition. Required. + @return APIGetConditionRequest */ GetCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIGetConditionRequest @@ -82,14 +81,14 @@ type ConditionAPI interface { GetConditionExecute(r APIGetConditionRequest) (*ConditionResponse, *http.Response, error) /* - ListConditions List conditions + ListConditions List conditions - Gets all conditions for a particular service and version. + Gets all conditions for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListConditionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListConditionsRequest */ ListConditions(ctx context.Context, serviceID string, versionID int32) APIListConditionsRequest @@ -98,15 +97,15 @@ type ConditionAPI interface { ListConditionsExecute(r APIListConditionsRequest) ([]ConditionResponse, *http.Response, error) /* - UpdateCondition Update a condition + UpdateCondition Update a condition - Updates the specified condition. + Updates the specified condition. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param conditionName Name of the condition. Required. - @return APIUpdateConditionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param conditionName Name of the condition. Required. + @return APIUpdateConditionRequest */ UpdateCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIUpdateConditionRequest @@ -120,16 +119,16 @@ type ConditionAPIService service // APICreateConditionRequest represents a request for the resource. type APICreateConditionRequest struct { - ctx context.Context - APIService ConditionAPI - serviceID string - versionID int32 - comment *string - name *string - priority *string - statement *string - serviceID2 *string - version *string + ctx context.Context + APIService ConditionAPI + serviceID string + versionID int32 + comment *string + name *string + priority *string + statement *string + serviceID2 *string + version *string resourceType *string } @@ -138,31 +137,37 @@ func (r *APICreateConditionRequest) Comment(comment string) *APICreateConditionR r.comment = &comment return r } + // Name Name of the condition. Required. func (r *APICreateConditionRequest) Name(name string) *APICreateConditionRequest { r.name = &name return r } + // Priority A numeric string. Priority determines execution order. Lower numbers execute first. func (r *APICreateConditionRequest) Priority(priority string) *APICreateConditionRequest { r.priority = &priority return r } + // Statement A conditional expression in VCL used to determine if the condition is met. func (r *APICreateConditionRequest) Statement(statement string) *APICreateConditionRequest { r.statement = &statement return r } + // ServiceID2 returns a pointer to a request. func (r *APICreateConditionRequest) ServiceID2(serviceID2 string) *APICreateConditionRequest { r.serviceID2 = &serviceID2 return r } + // Version A numeric string that represents the service version. func (r *APICreateConditionRequest) Version(version string) *APICreateConditionRequest { r.version = &version return r } + // ResourceType Type of the condition. Required. func (r *APICreateConditionRequest) ResourceType(resourceType string) *APICreateConditionRequest { r.resourceType = &resourceType @@ -187,9 +192,9 @@ Creates a new condition. func (a *ConditionAPIService) CreateCondition(ctx context.Context, serviceID string, versionID int32) APICreateConditionRequest { return APICreateConditionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *ConditionAPIService) CreateCondition(ctx context.Context, serviceID str // @return ConditionResponse func (a *ConditionAPIService) CreateConditionExecute(r APICreateConditionRequest) (*ConditionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConditionResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConditionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConditionAPIService.CreateCondition") @@ -306,7 +311,6 @@ func (a *ConditionAPIService) CreateConditionExecute(r APICreateConditionRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -325,14 +329,13 @@ func (a *ConditionAPIService) CreateConditionExecute(r APICreateConditionRequest // APIDeleteConditionRequest represents a request for the resource. type APIDeleteConditionRequest struct { - ctx context.Context - APIService ConditionAPI - serviceID string - versionID int32 + ctx context.Context + APIService ConditionAPI + serviceID string + versionID int32 conditionName string } - // Execute calls the API using the request data configured. func (r APIDeleteConditionRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteConditionExecute(r) @@ -351,10 +354,10 @@ Deletes the specified condition. */ func (a *ConditionAPIService) DeleteCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIDeleteConditionRequest { return APIDeleteConditionRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, conditionName: conditionName, } } @@ -363,10 +366,10 @@ func (a *ConditionAPIService) DeleteCondition(ctx context.Context, serviceID str // @return InlineResponse200 func (a *ConditionAPIService) DeleteConditionExecute(r APIDeleteConditionRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConditionAPIService.DeleteCondition") @@ -448,7 +451,6 @@ func (a *ConditionAPIService) DeleteConditionExecute(r APIDeleteConditionRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -467,14 +469,13 @@ func (a *ConditionAPIService) DeleteConditionExecute(r APIDeleteConditionRequest // APIGetConditionRequest represents a request for the resource. type APIGetConditionRequest struct { - ctx context.Context - APIService ConditionAPI - serviceID string - versionID int32 + ctx context.Context + APIService ConditionAPI + serviceID string + versionID int32 conditionName string } - // Execute calls the API using the request data configured. func (r APIGetConditionRequest) Execute() (*ConditionResponse, *http.Response, error) { return r.APIService.GetConditionExecute(r) @@ -493,10 +494,10 @@ Gets the specified condition. */ func (a *ConditionAPIService) GetCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIGetConditionRequest { return APIGetConditionRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, conditionName: conditionName, } } @@ -505,10 +506,10 @@ func (a *ConditionAPIService) GetCondition(ctx context.Context, serviceID string // @return ConditionResponse func (a *ConditionAPIService) GetConditionExecute(r APIGetConditionRequest) (*ConditionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConditionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConditionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConditionAPIService.GetCondition") @@ -590,7 +591,6 @@ func (a *ConditionAPIService) GetConditionExecute(r APIGetConditionRequest) (*Co return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -609,13 +609,12 @@ func (a *ConditionAPIService) GetConditionExecute(r APIGetConditionRequest) (*Co // APIListConditionsRequest represents a request for the resource. type APIListConditionsRequest struct { - ctx context.Context + ctx context.Context APIService ConditionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListConditionsRequest) Execute() ([]ConditionResponse, *http.Response, error) { return r.APIService.ListConditionsExecute(r) @@ -634,9 +633,9 @@ Gets all conditions for a particular service and version. func (a *ConditionAPIService) ListConditions(ctx context.Context, serviceID string, versionID int32) APIListConditionsRequest { return APIListConditionsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -644,10 +643,10 @@ func (a *ConditionAPIService) ListConditions(ctx context.Context, serviceID stri // @return []ConditionResponse func (a *ConditionAPIService) ListConditionsExecute(r APIListConditionsRequest) ([]ConditionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ConditionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ConditionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConditionAPIService.ListConditions") @@ -728,7 +727,6 @@ func (a *ConditionAPIService) ListConditionsExecute(r APIListConditionsRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -747,18 +745,18 @@ func (a *ConditionAPIService) ListConditionsExecute(r APIListConditionsRequest) // APIUpdateConditionRequest represents a request for the resource. type APIUpdateConditionRequest struct { - ctx context.Context - APIService ConditionAPI - serviceID string - versionID int32 + ctx context.Context + APIService ConditionAPI + serviceID string + versionID int32 conditionName string - comment *string - name *string - priority *string - statement *string - serviceID2 *string - version *string - resourceType *string + comment *string + name *string + priority *string + statement *string + serviceID2 *string + version *string + resourceType *string } // Comment A freeform descriptive note. @@ -766,31 +764,37 @@ func (r *APIUpdateConditionRequest) Comment(comment string) *APIUpdateConditionR r.comment = &comment return r } + // Name Name of the condition. Required. func (r *APIUpdateConditionRequest) Name(name string) *APIUpdateConditionRequest { r.name = &name return r } + // Priority A numeric string. Priority determines execution order. Lower numbers execute first. func (r *APIUpdateConditionRequest) Priority(priority string) *APIUpdateConditionRequest { r.priority = &priority return r } + // Statement A conditional expression in VCL used to determine if the condition is met. func (r *APIUpdateConditionRequest) Statement(statement string) *APIUpdateConditionRequest { r.statement = &statement return r } + // ServiceID2 returns a pointer to a request. func (r *APIUpdateConditionRequest) ServiceID2(serviceID2 string) *APIUpdateConditionRequest { r.serviceID2 = &serviceID2 return r } + // Version A numeric string that represents the service version. func (r *APIUpdateConditionRequest) Version(version string) *APIUpdateConditionRequest { r.version = &version return r } + // ResourceType Type of the condition. Required. func (r *APIUpdateConditionRequest) ResourceType(resourceType string) *APIUpdateConditionRequest { r.resourceType = &resourceType @@ -815,10 +819,10 @@ Updates the specified condition. */ func (a *ConditionAPIService) UpdateCondition(ctx context.Context, serviceID string, versionID int32, conditionName string) APIUpdateConditionRequest { return APIUpdateConditionRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, conditionName: conditionName, } } @@ -827,10 +831,10 @@ func (a *ConditionAPIService) UpdateCondition(ctx context.Context, serviceID str // @return ConditionResponse func (a *ConditionAPIService) UpdateConditionExecute(r APIUpdateConditionRequest) (*ConditionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConditionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConditionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConditionAPIService.UpdateCondition") @@ -937,7 +941,6 @@ func (a *ConditionAPIService) UpdateConditionExecute(r APIUpdateConditionRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_config_store.go b/fastly/api_config_store.go index 27205ef..d3a03e0 100644 --- a/fastly/api_config_store.go +++ b/fastly/api_config_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type ConfigStoreAPI interface { /* - CreateConfigStore Create a config store + CreateConfigStore Create a config store - Create a config store. + Create a config store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateConfigStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateConfigStoreRequest */ CreateConfigStore(ctx context.Context) APICreateConfigStoreRequest @@ -46,13 +45,13 @@ type ConfigStoreAPI interface { CreateConfigStoreExecute(r APICreateConfigStoreRequest) (*ConfigStoreResponse, *http.Response, error) /* - DeleteConfigStore Delete a config store + DeleteConfigStore Delete a config store - Delete a config store. + Delete a config store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIDeleteConfigStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIDeleteConfigStoreRequest */ DeleteConfigStore(ctx context.Context, configStoreID string) APIDeleteConfigStoreRequest @@ -61,13 +60,13 @@ type ConfigStoreAPI interface { DeleteConfigStoreExecute(r APIDeleteConfigStoreRequest) (*InlineResponse200, *http.Response, error) /* - GetConfigStore Describe a config store + GetConfigStore Describe a config store - Describe a config store by its identifier. + Describe a config store by its identifier. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIGetConfigStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIGetConfigStoreRequest */ GetConfigStore(ctx context.Context, configStoreID string) APIGetConfigStoreRequest @@ -76,13 +75,13 @@ type ConfigStoreAPI interface { GetConfigStoreExecute(r APIGetConfigStoreRequest) (*ConfigStoreResponse, *http.Response, error) /* - GetConfigStoreInfo Get config store metadata + GetConfigStoreInfo Get config store metadata - Retrieve metadata for a single config store. + Retrieve metadata for a single config store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIGetConfigStoreInfoRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIGetConfigStoreInfoRequest */ GetConfigStoreInfo(ctx context.Context, configStoreID string) APIGetConfigStoreInfoRequest @@ -91,13 +90,13 @@ type ConfigStoreAPI interface { GetConfigStoreInfoExecute(r APIGetConfigStoreInfoRequest) (*ConfigStoreInfoResponse, *http.Response, error) /* - ListConfigStoreServices List linked services + ListConfigStoreServices List linked services - List services linked to a config store + List services linked to a config store - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIListConfigStoreServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIListConfigStoreServicesRequest */ ListConfigStoreServices(ctx context.Context, configStoreID string) APIListConfigStoreServicesRequest @@ -106,12 +105,12 @@ type ConfigStoreAPI interface { ListConfigStoreServicesExecute(r APIListConfigStoreServicesRequest) (map[string]any, *http.Response, error) /* - ListConfigStores List config stores + ListConfigStores List config stores - List config stores. + List config stores. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListConfigStoresRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListConfigStoresRequest */ ListConfigStores(ctx context.Context) APIListConfigStoresRequest @@ -120,13 +119,13 @@ type ConfigStoreAPI interface { ListConfigStoresExecute(r APIListConfigStoresRequest) ([]ConfigStoreResponse, *http.Response, error) /* - UpdateConfigStore Update a config store + UpdateConfigStore Update a config store - Update a config store. + Update a config store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIUpdateConfigStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIUpdateConfigStoreRequest */ UpdateConfigStore(ctx context.Context, configStoreID string) APIUpdateConfigStoreRequest @@ -140,9 +139,9 @@ type ConfigStoreAPIService service // APICreateConfigStoreRequest represents a request for the resource. type APICreateConfigStoreRequest struct { - ctx context.Context + ctx context.Context APIService ConfigStoreAPI - name *string + name *string } // Name The name of the config store. @@ -167,7 +166,7 @@ Create a config store. func (a *ConfigStoreAPIService) CreateConfigStore(ctx context.Context) APICreateConfigStoreRequest { return APICreateConfigStoreRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -175,10 +174,10 @@ func (a *ConfigStoreAPIService) CreateConfigStore(ctx context.Context) APICreate // @return ConfigStoreResponse func (a *ConfigStoreAPIService) CreateConfigStoreExecute(r APICreateConfigStoreRequest) (*ConfigStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.CreateConfigStore") @@ -260,7 +259,6 @@ func (a *ConfigStoreAPIService) CreateConfigStoreExecute(r APICreateConfigStoreR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -279,12 +277,11 @@ func (a *ConfigStoreAPIService) CreateConfigStoreExecute(r APICreateConfigStoreR // APIDeleteConfigStoreRequest represents a request for the resource. type APIDeleteConfigStoreRequest struct { - ctx context.Context - APIService ConfigStoreAPI + ctx context.Context + APIService ConfigStoreAPI configStoreID string } - // Execute calls the API using the request data configured. func (r APIDeleteConfigStoreRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteConfigStoreExecute(r) @@ -301,8 +298,8 @@ Delete a config store. */ func (a *ConfigStoreAPIService) DeleteConfigStore(ctx context.Context, configStoreID string) APIDeleteConfigStoreRequest { return APIDeleteConfigStoreRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -311,10 +308,10 @@ func (a *ConfigStoreAPIService) DeleteConfigStore(ctx context.Context, configSto // @return InlineResponse200 func (a *ConfigStoreAPIService) DeleteConfigStoreExecute(r APIDeleteConfigStoreRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.DeleteConfigStore") @@ -394,7 +391,6 @@ func (a *ConfigStoreAPIService) DeleteConfigStoreExecute(r APIDeleteConfigStoreR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -413,12 +409,11 @@ func (a *ConfigStoreAPIService) DeleteConfigStoreExecute(r APIDeleteConfigStoreR // APIGetConfigStoreRequest represents a request for the resource. type APIGetConfigStoreRequest struct { - ctx context.Context - APIService ConfigStoreAPI + ctx context.Context + APIService ConfigStoreAPI configStoreID string } - // Execute calls the API using the request data configured. func (r APIGetConfigStoreRequest) Execute() (*ConfigStoreResponse, *http.Response, error) { return r.APIService.GetConfigStoreExecute(r) @@ -435,8 +430,8 @@ Describe a config store by its identifier. */ func (a *ConfigStoreAPIService) GetConfigStore(ctx context.Context, configStoreID string) APIGetConfigStoreRequest { return APIGetConfigStoreRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -445,10 +440,10 @@ func (a *ConfigStoreAPIService) GetConfigStore(ctx context.Context, configStoreI // @return ConfigStoreResponse func (a *ConfigStoreAPIService) GetConfigStoreExecute(r APIGetConfigStoreRequest) (*ConfigStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.GetConfigStore") @@ -528,7 +523,6 @@ func (a *ConfigStoreAPIService) GetConfigStoreExecute(r APIGetConfigStoreRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -547,12 +541,11 @@ func (a *ConfigStoreAPIService) GetConfigStoreExecute(r APIGetConfigStoreRequest // APIGetConfigStoreInfoRequest represents a request for the resource. type APIGetConfigStoreInfoRequest struct { - ctx context.Context - APIService ConfigStoreAPI + ctx context.Context + APIService ConfigStoreAPI configStoreID string } - // Execute calls the API using the request data configured. func (r APIGetConfigStoreInfoRequest) Execute() (*ConfigStoreInfoResponse, *http.Response, error) { return r.APIService.GetConfigStoreInfoExecute(r) @@ -569,8 +562,8 @@ Retrieve metadata for a single config store. */ func (a *ConfigStoreAPIService) GetConfigStoreInfo(ctx context.Context, configStoreID string) APIGetConfigStoreInfoRequest { return APIGetConfigStoreInfoRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -579,10 +572,10 @@ func (a *ConfigStoreAPIService) GetConfigStoreInfo(ctx context.Context, configSt // @return ConfigStoreInfoResponse func (a *ConfigStoreAPIService) GetConfigStoreInfoExecute(r APIGetConfigStoreInfoRequest) (*ConfigStoreInfoResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreInfoResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreInfoResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.GetConfigStoreInfo") @@ -662,7 +655,6 @@ func (a *ConfigStoreAPIService) GetConfigStoreInfoExecute(r APIGetConfigStoreInf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -681,12 +673,11 @@ func (a *ConfigStoreAPIService) GetConfigStoreInfoExecute(r APIGetConfigStoreInf // APIListConfigStoreServicesRequest represents a request for the resource. type APIListConfigStoreServicesRequest struct { - ctx context.Context - APIService ConfigStoreAPI + ctx context.Context + APIService ConfigStoreAPI configStoreID string } - // Execute calls the API using the request data configured. func (r APIListConfigStoreServicesRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.ListConfigStoreServicesExecute(r) @@ -703,8 +694,8 @@ List services linked to a config store */ func (a *ConfigStoreAPIService) ListConfigStoreServices(ctx context.Context, configStoreID string) APIListConfigStoreServicesRequest { return APIListConfigStoreServicesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -713,10 +704,10 @@ func (a *ConfigStoreAPIService) ListConfigStoreServices(ctx context.Context, con // @return map[string]any func (a *ConfigStoreAPIService) ListConfigStoreServicesExecute(r APIListConfigStoreServicesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.ListConfigStoreServices") @@ -796,7 +787,6 @@ func (a *ConfigStoreAPIService) ListConfigStoreServicesExecute(r APIListConfigSt return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -815,9 +805,9 @@ func (a *ConfigStoreAPIService) ListConfigStoreServicesExecute(r APIListConfigSt // APIListConfigStoresRequest represents a request for the resource. type APIListConfigStoresRequest struct { - ctx context.Context + ctx context.Context APIService ConfigStoreAPI - name *string + name *string } // Name Returns a one-element array containing the details for the named config store. @@ -842,7 +832,7 @@ List config stores. func (a *ConfigStoreAPIService) ListConfigStores(ctx context.Context) APIListConfigStoresRequest { return APIListConfigStoresRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -850,10 +840,10 @@ func (a *ConfigStoreAPIService) ListConfigStores(ctx context.Context) APIListCon // @return []ConfigStoreResponse func (a *ConfigStoreAPIService) ListConfigStoresExecute(r APIListConfigStoresRequest) ([]ConfigStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ConfigStoreResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ConfigStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.ListConfigStores") @@ -935,7 +925,6 @@ func (a *ConfigStoreAPIService) ListConfigStoresExecute(r APIListConfigStoresReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -954,10 +943,10 @@ func (a *ConfigStoreAPIService) ListConfigStoresExecute(r APIListConfigStoresReq // APIUpdateConfigStoreRequest represents a request for the resource. type APIUpdateConfigStoreRequest struct { - ctx context.Context - APIService ConfigStoreAPI + ctx context.Context + APIService ConfigStoreAPI configStoreID string - name *string + name *string } // Name The name of the config store. @@ -982,8 +971,8 @@ Update a config store. */ func (a *ConfigStoreAPIService) UpdateConfigStore(ctx context.Context, configStoreID string) APIUpdateConfigStoreRequest { return APIUpdateConfigStoreRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -992,10 +981,10 @@ func (a *ConfigStoreAPIService) UpdateConfigStore(ctx context.Context, configSto // @return ConfigStoreResponse func (a *ConfigStoreAPIService) UpdateConfigStoreExecute(r APIUpdateConfigStoreRequest) (*ConfigStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreAPIService.UpdateConfigStore") @@ -1078,7 +1067,6 @@ func (a *ConfigStoreAPIService) UpdateConfigStoreExecute(r APIUpdateConfigStoreR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_config_store_item.go b/fastly/api_config_store_item.go index c28caaa..fcafb98 100644 --- a/fastly/api_config_store_item.go +++ b/fastly/api_config_store_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type ConfigStoreItemAPI interface { /* - BulkUpdateConfigStoreItem Update multiple entries in a config store + BulkUpdateConfigStoreItem Update multiple entries in a config store - Add multiple key-value pairs to an individual config store, specified by ID. + Add multiple key-value pairs to an individual config store, specified by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIBulkUpdateConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIBulkUpdateConfigStoreItemRequest */ BulkUpdateConfigStoreItem(ctx context.Context, configStoreID string) APIBulkUpdateConfigStoreItemRequest @@ -47,13 +46,13 @@ type ConfigStoreItemAPI interface { BulkUpdateConfigStoreItemExecute(r APIBulkUpdateConfigStoreItemRequest) (*InlineResponse200, *http.Response, error) /* - CreateConfigStoreItem Create an entry in a config store + CreateConfigStoreItem Create an entry in a config store - Add a single key-value pair to an individual config store, specified by ID. + Add a single key-value pair to an individual config store, specified by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APICreateConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APICreateConfigStoreItemRequest */ CreateConfigStoreItem(ctx context.Context, configStoreID string) APICreateConfigStoreItemRequest @@ -62,14 +61,14 @@ type ConfigStoreItemAPI interface { CreateConfigStoreItemExecute(r APICreateConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) /* - DeleteConfigStoreItem Delete an item from a config store + DeleteConfigStoreItem Delete an item from a config store - Delete an entry in a config store given a config store ID, and item key. + Delete an entry in a config store given a config store ID, and item key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @param configStoreItemKey Item key, maximum 256 characters. - @return APIDeleteConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @param configStoreItemKey Item key, maximum 256 characters. + @return APIDeleteConfigStoreItemRequest */ DeleteConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIDeleteConfigStoreItemRequest @@ -78,14 +77,14 @@ type ConfigStoreItemAPI interface { DeleteConfigStoreItemExecute(r APIDeleteConfigStoreItemRequest) (*InlineResponse200, *http.Response, error) /* - GetConfigStoreItem Get an item from a config store + GetConfigStoreItem Get an item from a config store - Retrieve a config store entry given a config store ID and item key. + Retrieve a config store entry given a config store ID and item key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @param configStoreItemKey Item key, maximum 256 characters. - @return APIGetConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @param configStoreItemKey Item key, maximum 256 characters. + @return APIGetConfigStoreItemRequest */ GetConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIGetConfigStoreItemRequest @@ -94,13 +93,13 @@ type ConfigStoreItemAPI interface { GetConfigStoreItemExecute(r APIGetConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) /* - ListConfigStoreItems List items in a config store + ListConfigStoreItems List items in a config store - List the key-value pairs associated with a given config store ID. + List the key-value pairs associated with a given config store ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @return APIListConfigStoreItemsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @return APIListConfigStoreItemsRequest */ ListConfigStoreItems(ctx context.Context, configStoreID string) APIListConfigStoreItemsRequest @@ -109,14 +108,14 @@ type ConfigStoreItemAPI interface { ListConfigStoreItemsExecute(r APIListConfigStoreItemsRequest) ([]ConfigStoreItemResponse, *http.Response, error) /* - UpdateConfigStoreItem Update an entry in a config store + UpdateConfigStoreItem Update an entry in a config store - Update an entry in a config store given a config store ID, item key, and item value. + Update an entry in a config store given a config store ID, item key, and item value. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @param configStoreItemKey Item key, maximum 256 characters. - @return APIUpdateConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @param configStoreItemKey Item key, maximum 256 characters. + @return APIUpdateConfigStoreItemRequest */ UpdateConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIUpdateConfigStoreItemRequest @@ -125,14 +124,14 @@ type ConfigStoreItemAPI interface { UpdateConfigStoreItemExecute(r APIUpdateConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) /* - UpsertConfigStoreItem Insert or update an entry in a config store + UpsertConfigStoreItem Insert or update an entry in a config store - Insert or update an entry in a config store given a config store ID, item key, and item value. + Insert or update an entry in a config store given a config store ID, item key, and item value. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configStoreID An alphanumeric string identifying the config store. - @param configStoreItemKey Item key, maximum 256 characters. - @return APIUpsertConfigStoreItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configStoreID An alphanumeric string identifying the config store. + @param configStoreItemKey Item key, maximum 256 characters. + @return APIUpsertConfigStoreItemRequest */ UpsertConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIUpsertConfigStoreItemRequest @@ -146,9 +145,9 @@ type ConfigStoreItemAPIService service // APIBulkUpdateConfigStoreItemRequest represents a request for the resource. type APIBulkUpdateConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI - configStoreID string + ctx context.Context + APIService ConfigStoreItemAPI + configStoreID string bulkUpdateConfigStoreListRequest *BulkUpdateConfigStoreListRequest } @@ -174,8 +173,8 @@ Add multiple key-value pairs to an individual config store, specified by ID. */ func (a *ConfigStoreItemAPIService) BulkUpdateConfigStoreItem(ctx context.Context, configStoreID string) APIBulkUpdateConfigStoreItemRequest { return APIBulkUpdateConfigStoreItemRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -184,10 +183,10 @@ func (a *ConfigStoreItemAPIService) BulkUpdateConfigStoreItem(ctx context.Contex // @return InlineResponse200 func (a *ConfigStoreItemAPIService) BulkUpdateConfigStoreItemExecute(r APIBulkUpdateConfigStoreItemRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.BulkUpdateConfigStoreItem") @@ -269,7 +268,6 @@ func (a *ConfigStoreItemAPIService) BulkUpdateConfigStoreItemExecute(r APIBulkUp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -288,11 +286,11 @@ func (a *ConfigStoreItemAPIService) BulkUpdateConfigStoreItemExecute(r APIBulkUp // APICreateConfigStoreItemRequest represents a request for the resource. type APICreateConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI + ctx context.Context + APIService ConfigStoreItemAPI configStoreID string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -300,6 +298,7 @@ func (r *APICreateConfigStoreItemRequest) ItemKey(itemKey string) *APICreateConf r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APICreateConfigStoreItemRequest) ItemValue(itemValue string) *APICreateConfigStoreItemRequest { r.itemValue = &itemValue @@ -322,8 +321,8 @@ Add a single key-value pair to an individual config store, specified by ID. */ func (a *ConfigStoreItemAPIService) CreateConfigStoreItem(ctx context.Context, configStoreID string) APICreateConfigStoreItemRequest { return APICreateConfigStoreItemRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -332,10 +331,10 @@ func (a *ConfigStoreItemAPIService) CreateConfigStoreItem(ctx context.Context, c // @return ConfigStoreItemResponse func (a *ConfigStoreItemAPIService) CreateConfigStoreItemExecute(r APICreateConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreItemResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.CreateConfigStoreItem") @@ -421,7 +420,6 @@ func (a *ConfigStoreItemAPIService) CreateConfigStoreItemExecute(r APICreateConf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -440,13 +438,12 @@ func (a *ConfigStoreItemAPIService) CreateConfigStoreItemExecute(r APICreateConf // APIDeleteConfigStoreItemRequest represents a request for the resource. type APIDeleteConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI - configStoreID string + ctx context.Context + APIService ConfigStoreItemAPI + configStoreID string configStoreItemKey string } - // Execute calls the API using the request data configured. func (r APIDeleteConfigStoreItemRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteConfigStoreItemExecute(r) @@ -464,9 +461,9 @@ Delete an entry in a config store given a config store ID, and item key. */ func (a *ConfigStoreItemAPIService) DeleteConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIDeleteConfigStoreItemRequest { return APIDeleteConfigStoreItemRequest{ - APIService: a, - ctx: ctx, - configStoreID: configStoreID, + APIService: a, + ctx: ctx, + configStoreID: configStoreID, configStoreItemKey: configStoreItemKey, } } @@ -475,10 +472,10 @@ func (a *ConfigStoreItemAPIService) DeleteConfigStoreItem(ctx context.Context, c // @return InlineResponse200 func (a *ConfigStoreItemAPIService) DeleteConfigStoreItemExecute(r APIDeleteConfigStoreItemRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.DeleteConfigStoreItem") @@ -559,7 +556,6 @@ func (a *ConfigStoreItemAPIService) DeleteConfigStoreItemExecute(r APIDeleteConf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -578,13 +574,12 @@ func (a *ConfigStoreItemAPIService) DeleteConfigStoreItemExecute(r APIDeleteConf // APIGetConfigStoreItemRequest represents a request for the resource. type APIGetConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI - configStoreID string + ctx context.Context + APIService ConfigStoreItemAPI + configStoreID string configStoreItemKey string } - // Execute calls the API using the request data configured. func (r APIGetConfigStoreItemRequest) Execute() (*ConfigStoreItemResponse, *http.Response, error) { return r.APIService.GetConfigStoreItemExecute(r) @@ -602,9 +597,9 @@ Retrieve a config store entry given a config store ID and item key. */ func (a *ConfigStoreItemAPIService) GetConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIGetConfigStoreItemRequest { return APIGetConfigStoreItemRequest{ - APIService: a, - ctx: ctx, - configStoreID: configStoreID, + APIService: a, + ctx: ctx, + configStoreID: configStoreID, configStoreItemKey: configStoreItemKey, } } @@ -613,10 +608,10 @@ func (a *ConfigStoreItemAPIService) GetConfigStoreItem(ctx context.Context, conf // @return ConfigStoreItemResponse func (a *ConfigStoreItemAPIService) GetConfigStoreItemExecute(r APIGetConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreItemResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.GetConfigStoreItem") @@ -697,7 +692,6 @@ func (a *ConfigStoreItemAPIService) GetConfigStoreItemExecute(r APIGetConfigStor return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -716,12 +710,11 @@ func (a *ConfigStoreItemAPIService) GetConfigStoreItemExecute(r APIGetConfigStor // APIListConfigStoreItemsRequest represents a request for the resource. type APIListConfigStoreItemsRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI + ctx context.Context + APIService ConfigStoreItemAPI configStoreID string } - // Execute calls the API using the request data configured. func (r APIListConfigStoreItemsRequest) Execute() ([]ConfigStoreItemResponse, *http.Response, error) { return r.APIService.ListConfigStoreItemsExecute(r) @@ -738,8 +731,8 @@ List the key-value pairs associated with a given config store ID. */ func (a *ConfigStoreItemAPIService) ListConfigStoreItems(ctx context.Context, configStoreID string) APIListConfigStoreItemsRequest { return APIListConfigStoreItemsRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configStoreID: configStoreID, } } @@ -748,10 +741,10 @@ func (a *ConfigStoreItemAPIService) ListConfigStoreItems(ctx context.Context, co // @return []ConfigStoreItemResponse func (a *ConfigStoreItemAPIService) ListConfigStoreItemsExecute(r APIListConfigStoreItemsRequest) ([]ConfigStoreItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ConfigStoreItemResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ConfigStoreItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.ListConfigStoreItems") @@ -831,7 +824,6 @@ func (a *ConfigStoreItemAPIService) ListConfigStoreItemsExecute(r APIListConfigS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -850,12 +842,12 @@ func (a *ConfigStoreItemAPIService) ListConfigStoreItemsExecute(r APIListConfigS // APIUpdateConfigStoreItemRequest represents a request for the resource. type APIUpdateConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI - configStoreID string + ctx context.Context + APIService ConfigStoreItemAPI + configStoreID string configStoreItemKey string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -863,6 +855,7 @@ func (r *APIUpdateConfigStoreItemRequest) ItemKey(itemKey string) *APIUpdateConf r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APIUpdateConfigStoreItemRequest) ItemValue(itemValue string) *APIUpdateConfigStoreItemRequest { r.itemValue = &itemValue @@ -886,9 +879,9 @@ Update an entry in a config store given a config store ID, item key, and item va */ func (a *ConfigStoreItemAPIService) UpdateConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIUpdateConfigStoreItemRequest { return APIUpdateConfigStoreItemRequest{ - APIService: a, - ctx: ctx, - configStoreID: configStoreID, + APIService: a, + ctx: ctx, + configStoreID: configStoreID, configStoreItemKey: configStoreItemKey, } } @@ -897,10 +890,10 @@ func (a *ConfigStoreItemAPIService) UpdateConfigStoreItem(ctx context.Context, c // @return ConfigStoreItemResponse func (a *ConfigStoreItemAPIService) UpdateConfigStoreItemExecute(r APIUpdateConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreItemResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.UpdateConfigStoreItem") @@ -987,7 +980,6 @@ func (a *ConfigStoreItemAPIService) UpdateConfigStoreItemExecute(r APIUpdateConf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1006,12 +998,12 @@ func (a *ConfigStoreItemAPIService) UpdateConfigStoreItemExecute(r APIUpdateConf // APIUpsertConfigStoreItemRequest represents a request for the resource. type APIUpsertConfigStoreItemRequest struct { - ctx context.Context - APIService ConfigStoreItemAPI - configStoreID string + ctx context.Context + APIService ConfigStoreItemAPI + configStoreID string configStoreItemKey string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -1019,6 +1011,7 @@ func (r *APIUpsertConfigStoreItemRequest) ItemKey(itemKey string) *APIUpsertConf r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APIUpsertConfigStoreItemRequest) ItemValue(itemValue string) *APIUpsertConfigStoreItemRequest { r.itemValue = &itemValue @@ -1042,9 +1035,9 @@ Insert or update an entry in a config store given a config store ID, item key, a */ func (a *ConfigStoreItemAPIService) UpsertConfigStoreItem(ctx context.Context, configStoreID string, configStoreItemKey string) APIUpsertConfigStoreItemRequest { return APIUpsertConfigStoreItemRequest{ - APIService: a, - ctx: ctx, - configStoreID: configStoreID, + APIService: a, + ctx: ctx, + configStoreID: configStoreID, configStoreItemKey: configStoreItemKey, } } @@ -1053,10 +1046,10 @@ func (a *ConfigStoreItemAPIService) UpsertConfigStoreItem(ctx context.Context, c // @return ConfigStoreItemResponse func (a *ConfigStoreItemAPIService) UpsertConfigStoreItemExecute(r APIUpsertConfigStoreItemRequest) (*ConfigStoreItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfigStoreItemResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfigStoreItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigStoreItemAPIService.UpsertConfigStoreItem") @@ -1143,7 +1136,6 @@ func (a *ConfigStoreItemAPIService) UpsertConfigStoreItemExecute(r APIUpsertConf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_contact.go b/fastly/api_contact.go index b793a3a..b4c37a5 100644 --- a/fastly/api_contact.go +++ b/fastly/api_contact.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type ContactAPI interface { /* - CreateContacts Add a new customer contact + CreateContacts Add a new customer contact - Create a contact. + Create a contact. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APICreateContactsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APICreateContactsRequest */ CreateContacts(ctx context.Context, customerID string) APICreateContactsRequest @@ -47,14 +46,14 @@ type ContactAPI interface { CreateContactsExecute(r APICreateContactsRequest) (*ContactResponse, *http.Response, error) /* - DeleteContact Delete a contact + DeleteContact Delete a contact - Delete a contact. + Delete a contact. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @param contactID An alphanumeric string identifying the customer contact. - @return APIDeleteContactRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @param contactID An alphanumeric string identifying the customer contact. + @return APIDeleteContactRequest */ DeleteContact(ctx context.Context, customerID string, contactID string) APIDeleteContactRequest @@ -63,13 +62,13 @@ type ContactAPI interface { DeleteContactExecute(r APIDeleteContactRequest) (*InlineResponse200, *http.Response, error) /* - ListContacts List contacts + ListContacts List contacts - List all contacts from a specified customer ID. + List all contacts from a specified customer ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIListContactsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIListContactsRequest */ ListContacts(ctx context.Context, customerID string) APIListContactsRequest @@ -83,14 +82,14 @@ type ContactAPIService service // APICreateContactsRequest represents a request for the resource. type APICreateContactsRequest struct { - ctx context.Context - APIService ContactAPI - customerID string - userID *string + ctx context.Context + APIService ContactAPI + customerID string + userID *string contactType *string - name *string - email *string - phone *string + name *string + email *string + phone *string customerID2 *string } @@ -99,26 +98,31 @@ func (r *APICreateContactsRequest) UserID(userID string) *APICreateContactsReque r.userID = &userID return r } + // ContactType The type of contact. func (r *APICreateContactsRequest) ContactType(contactType string) *APICreateContactsRequest { r.contactType = &contactType return r } + // Name The name of this contact, when user_id is not provided. func (r *APICreateContactsRequest) Name(name string) *APICreateContactsRequest { r.name = &name return r } + // Email The email of this contact, when a user_id is not provided. func (r *APICreateContactsRequest) Email(email string) *APICreateContactsRequest { r.email = &email return r } + // Phone The phone number for this contact. Required for primary, technical, and security contact types. func (r *APICreateContactsRequest) Phone(phone string) *APICreateContactsRequest { r.phone = &phone return r } + // CustomerID2 The alphanumeric string representing the customer for this customer contact. func (r *APICreateContactsRequest) CustomerID2(customerID2 string) *APICreateContactsRequest { r.customerID2 = &customerID2 @@ -142,7 +146,7 @@ Create a contact. func (a *ContactAPIService) CreateContacts(ctx context.Context, customerID string) APICreateContactsRequest { return APICreateContactsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -151,10 +155,10 @@ func (a *ContactAPIService) CreateContacts(ctx context.Context, customerID strin // @return ContactResponse func (a *ContactAPIService) CreateContactsExecute(r APICreateContactsRequest) (*ContactResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ContactResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ContactResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContactAPIService.CreateContacts") @@ -252,7 +256,6 @@ func (a *ContactAPIService) CreateContactsExecute(r APICreateContactsRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -271,13 +274,12 @@ func (a *ContactAPIService) CreateContactsExecute(r APICreateContactsRequest) (* // APIDeleteContactRequest represents a request for the resource. type APIDeleteContactRequest struct { - ctx context.Context + ctx context.Context APIService ContactAPI customerID string - contactID string + contactID string } - // Execute calls the API using the request data configured. func (r APIDeleteContactRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteContactExecute(r) @@ -296,9 +298,9 @@ Delete a contact. func (a *ContactAPIService) DeleteContact(ctx context.Context, customerID string, contactID string) APIDeleteContactRequest { return APIDeleteContactRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, - contactID: contactID, + contactID: contactID, } } @@ -306,10 +308,10 @@ func (a *ContactAPIService) DeleteContact(ctx context.Context, customerID string // @return InlineResponse200 func (a *ContactAPIService) DeleteContactExecute(r APIDeleteContactRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContactAPIService.DeleteContact") @@ -390,7 +392,6 @@ func (a *ContactAPIService) DeleteContactExecute(r APIDeleteContactRequest) (*In return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -409,12 +410,11 @@ func (a *ContactAPIService) DeleteContactExecute(r APIDeleteContactRequest) (*In // APIListContactsRequest represents a request for the resource. type APIListContactsRequest struct { - ctx context.Context + ctx context.Context APIService ContactAPI customerID string } - // Execute calls the API using the request data configured. func (r APIListContactsRequest) Execute() ([]SchemasContactResponse, *http.Response, error) { return r.APIService.ListContactsExecute(r) @@ -432,7 +432,7 @@ List all contacts from a specified customer ID. func (a *ContactAPIService) ListContacts(ctx context.Context, customerID string) APIListContactsRequest { return APIListContactsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -441,10 +441,10 @@ func (a *ContactAPIService) ListContacts(ctx context.Context, customerID string) // @return []SchemasContactResponse func (a *ContactAPIService) ListContactsExecute(r APIListContactsRequest) ([]SchemasContactResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []SchemasContactResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []SchemasContactResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContactAPIService.ListContacts") @@ -524,7 +524,6 @@ func (a *ContactAPIService) ListContactsExecute(r APIListContactsRequest) ([]Sch return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_content.go b/fastly/api_content.go index 9ca9d97..1db9638 100644 --- a/fastly/api_content.go +++ b/fastly/api_content.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type ContentAPI interface { /* - ContentCheck Check status of content in each POP's cache + ContentCheck Check status of content in each POP's cache - Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`. + Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIContentCheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIContentCheckRequest */ ContentCheck(ctx context.Context) APIContentCheckRequest @@ -50,9 +49,9 @@ type ContentAPIService service // APIContentCheckRequest represents a request for the resource. type APIContentCheckRequest struct { - ctx context.Context + ctx context.Context APIService ContentAPI - url *string + url *string } // URL Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed. @@ -77,7 +76,7 @@ Retrieve headers and MD5 hash of the content for a particular URL from each Fast func (a *ContentAPIService) ContentCheck(ctx context.Context) APIContentCheckRequest { return APIContentCheckRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -85,10 +84,10 @@ func (a *ContentAPIService) ContentCheck(ctx context.Context) APIContentCheckReq // @return []Content func (a *ContentAPIService) ContentCheckExecute(r APIContentCheckRequest) ([]Content, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []Content + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []Content ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentAPIService.ContentCheck") @@ -170,7 +169,6 @@ func (a *ContentAPIService) ContentCheckExecute(r APIContentCheckRequest) ([]Con return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_customer.go b/fastly/api_customer.go index 85f036e..f1c4060 100644 --- a/fastly/api_customer.go +++ b/fastly/api_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type CustomerAPI interface { /* - DeleteCustomer Delete a customer + DeleteCustomer Delete a customer - Delete a customer. + Delete a customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIDeleteCustomerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIDeleteCustomerRequest */ DeleteCustomer(ctx context.Context, customerID string) APIDeleteCustomerRequest @@ -47,13 +46,13 @@ type CustomerAPI interface { DeleteCustomerExecute(r APIDeleteCustomerRequest) (*InlineResponse200, *http.Response, error) /* - GetCustomer Get a customer + GetCustomer Get a customer - Get a specific customer. + Get a specific customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIGetCustomerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIGetCustomerRequest */ GetCustomer(ctx context.Context, customerID string) APIGetCustomerRequest @@ -62,12 +61,12 @@ type CustomerAPI interface { GetCustomerExecute(r APIGetCustomerRequest) (*CustomerResponse, *http.Response, error) /* - GetLoggedInCustomer Get the logged in customer + GetLoggedInCustomer Get the logged in customer - Get the logged in customer. + Get the logged in customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetLoggedInCustomerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetLoggedInCustomerRequest */ GetLoggedInCustomer(ctx context.Context) APIGetLoggedInCustomerRequest @@ -76,13 +75,13 @@ type CustomerAPI interface { GetLoggedInCustomerExecute(r APIGetLoggedInCustomerRequest) (*CustomerResponse, *http.Response, error) /* - ListUsers List users + ListUsers List users - List all users from a specified customer id. + List all users from a specified customer id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIListUsersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIListUsersRequest */ ListUsers(ctx context.Context, customerID string) APIListUsersRequest @@ -91,13 +90,13 @@ type CustomerAPI interface { ListUsersExecute(r APIListUsersRequest) ([]SchemasUserResponse, *http.Response, error) /* - UpdateCustomer Update a customer + UpdateCustomer Update a customer - Update a customer. + Update a customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIUpdateCustomerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIUpdateCustomerRequest */ UpdateCustomer(ctx context.Context, customerID string) APIUpdateCustomerRequest @@ -111,12 +110,11 @@ type CustomerAPIService service // APIDeleteCustomerRequest represents a request for the resource. type APIDeleteCustomerRequest struct { - ctx context.Context + ctx context.Context APIService CustomerAPI customerID string } - // Execute calls the API using the request data configured. func (r APIDeleteCustomerRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteCustomerExecute(r) @@ -134,7 +132,7 @@ Delete a customer. func (a *CustomerAPIService) DeleteCustomer(ctx context.Context, customerID string) APIDeleteCustomerRequest { return APIDeleteCustomerRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -143,10 +141,10 @@ func (a *CustomerAPIService) DeleteCustomer(ctx context.Context, customerID stri // @return InlineResponse200 func (a *CustomerAPIService) DeleteCustomerExecute(r APIDeleteCustomerRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAPIService.DeleteCustomer") @@ -226,7 +224,6 @@ func (a *CustomerAPIService) DeleteCustomerExecute(r APIDeleteCustomerRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -245,12 +242,11 @@ func (a *CustomerAPIService) DeleteCustomerExecute(r APIDeleteCustomerRequest) ( // APIGetCustomerRequest represents a request for the resource. type APIGetCustomerRequest struct { - ctx context.Context + ctx context.Context APIService CustomerAPI customerID string } - // Execute calls the API using the request data configured. func (r APIGetCustomerRequest) Execute() (*CustomerResponse, *http.Response, error) { return r.APIService.GetCustomerExecute(r) @@ -268,7 +264,7 @@ Get a specific customer. func (a *CustomerAPIService) GetCustomer(ctx context.Context, customerID string) APIGetCustomerRequest { return APIGetCustomerRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -277,10 +273,10 @@ func (a *CustomerAPIService) GetCustomer(ctx context.Context, customerID string) // @return CustomerResponse func (a *CustomerAPIService) GetCustomerExecute(r APIGetCustomerRequest) (*CustomerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *CustomerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *CustomerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAPIService.GetCustomer") @@ -360,7 +356,6 @@ func (a *CustomerAPIService) GetCustomerExecute(r APIGetCustomerRequest) (*Custo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -379,11 +374,10 @@ func (a *CustomerAPIService) GetCustomerExecute(r APIGetCustomerRequest) (*Custo // APIGetLoggedInCustomerRequest represents a request for the resource. type APIGetLoggedInCustomerRequest struct { - ctx context.Context + ctx context.Context APIService CustomerAPI } - // Execute calls the API using the request data configured. func (r APIGetLoggedInCustomerRequest) Execute() (*CustomerResponse, *http.Response, error) { return r.APIService.GetLoggedInCustomerExecute(r) @@ -400,7 +394,7 @@ Get the logged in customer. func (a *CustomerAPIService) GetLoggedInCustomer(ctx context.Context) APIGetLoggedInCustomerRequest { return APIGetLoggedInCustomerRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -408,10 +402,10 @@ func (a *CustomerAPIService) GetLoggedInCustomer(ctx context.Context) APIGetLogg // @return CustomerResponse func (a *CustomerAPIService) GetLoggedInCustomerExecute(r APIGetLoggedInCustomerRequest) (*CustomerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *CustomerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *CustomerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAPIService.GetLoggedInCustomer") @@ -490,7 +484,6 @@ func (a *CustomerAPIService) GetLoggedInCustomerExecute(r APIGetLoggedInCustomer return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -509,12 +502,11 @@ func (a *CustomerAPIService) GetLoggedInCustomerExecute(r APIGetLoggedInCustomer // APIListUsersRequest represents a request for the resource. type APIListUsersRequest struct { - ctx context.Context + ctx context.Context APIService CustomerAPI customerID string } - // Execute calls the API using the request data configured. func (r APIListUsersRequest) Execute() ([]SchemasUserResponse, *http.Response, error) { return r.APIService.ListUsersExecute(r) @@ -532,7 +524,7 @@ List all users from a specified customer id. func (a *CustomerAPIService) ListUsers(ctx context.Context, customerID string) APIListUsersRequest { return APIListUsersRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -541,10 +533,10 @@ func (a *CustomerAPIService) ListUsers(ctx context.Context, customerID string) A // @return []SchemasUserResponse func (a *CustomerAPIService) ListUsersExecute(r APIListUsersRequest) ([]SchemasUserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []SchemasUserResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []SchemasUserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAPIService.ListUsers") @@ -624,7 +616,6 @@ func (a *CustomerAPIService) ListUsersExecute(r APIListUsersRequest) ([]SchemasU return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -643,33 +634,33 @@ func (a *CustomerAPIService) ListUsersExecute(r APIListUsersRequest) ([]SchemasU // APIUpdateCustomerRequest represents a request for the resource. type APIUpdateCustomerRequest struct { - ctx context.Context - APIService CustomerAPI - customerID string - billingContactID *string - billingNetworkType *string - billingRef *string + ctx context.Context + APIService CustomerAPI + customerID string + billingContactID *string + billingNetworkType *string + billingRef *string canConfigureWordpress *bool - canResetPasswords *bool - canUploadVcl *bool - force2fa *bool - forceSso *bool - hasAccountPanel *bool - hasImprovedEvents *bool - hasImprovedSslConfig *bool - hasOpenstackLogging *bool - hasPci *bool - hasPciPasswords *bool - ipWhitelist *string - legalContactID *string - name *string - ownerID *string - phoneNumber *string - postalAddress *string - pricingPlan *string - pricingPlanID *string - securityContactID *string - technicalContactID *string + canResetPasswords *bool + canUploadVcl *bool + force2fa *bool + forceSso *bool + hasAccountPanel *bool + hasImprovedEvents *bool + hasImprovedSslConfig *bool + hasOpenstackLogging *bool + hasPci *bool + hasPciPasswords *bool + ipWhitelist *string + legalContactID *string + name *string + ownerID *string + phoneNumber *string + postalAddress *string + pricingPlan *string + pricingPlanID *string + securityContactID *string + technicalContactID *string } // BillingContactID The alphanumeric string representing the primary billing contact. @@ -677,116 +668,139 @@ func (r *APIUpdateCustomerRequest) BillingContactID(billingContactID string) *AP r.billingContactID = &billingContactID return r } + // BillingNetworkType Customer's current network revenue type. func (r *APIUpdateCustomerRequest) BillingNetworkType(billingNetworkType string) *APIUpdateCustomerRequest { r.billingNetworkType = &billingNetworkType return r } + // BillingRef Used for adding purchased orders to customer's account. func (r *APIUpdateCustomerRequest) BillingRef(billingRef string) *APIUpdateCustomerRequest { r.billingRef = &billingRef return r } + // CanConfigureWordpress Whether this customer can view or edit wordpress. func (r *APIUpdateCustomerRequest) CanConfigureWordpress(canConfigureWordpress bool) *APIUpdateCustomerRequest { r.canConfigureWordpress = &canConfigureWordpress return r } + // CanResetPasswords Whether this customer can reset passwords. func (r *APIUpdateCustomerRequest) CanResetPasswords(canResetPasswords bool) *APIUpdateCustomerRequest { r.canResetPasswords = &canResetPasswords return r } + // CanUploadVcl Whether this customer can upload VCL. func (r *APIUpdateCustomerRequest) CanUploadVcl(canUploadVcl bool) *APIUpdateCustomerRequest { r.canUploadVcl = &canUploadVcl return r } + // Force2fa Specifies whether 2FA is forced or not forced on the customer account. Logs out non-2FA users once 2FA is force enabled. func (r *APIUpdateCustomerRequest) Force2fa(force2fa bool) *APIUpdateCustomerRequest { r.force2fa = &force2fa return r } + // ForceSso Specifies whether SSO is forced or not forced on the customer account. func (r *APIUpdateCustomerRequest) ForceSso(forceSso bool) *APIUpdateCustomerRequest { r.forceSso = &forceSso return r } + // HasAccountPanel Specifies whether the account has access or does not have access to the account panel. func (r *APIUpdateCustomerRequest) HasAccountPanel(hasAccountPanel bool) *APIUpdateCustomerRequest { r.hasAccountPanel = &hasAccountPanel return r } + // HasImprovedEvents Specifies whether the account has access or does not have access to the improved events. func (r *APIUpdateCustomerRequest) HasImprovedEvents(hasImprovedEvents bool) *APIUpdateCustomerRequest { r.hasImprovedEvents = &hasImprovedEvents return r } + // HasImprovedSslConfig Whether this customer can view or edit the SSL config. func (r *APIUpdateCustomerRequest) HasImprovedSslConfig(hasImprovedSslConfig bool) *APIUpdateCustomerRequest { r.hasImprovedSslConfig = &hasImprovedSslConfig return r } + // HasOpenstackLogging Specifies whether the account has enabled or not enabled openstack logging. func (r *APIUpdateCustomerRequest) HasOpenstackLogging(hasOpenstackLogging bool) *APIUpdateCustomerRequest { r.hasOpenstackLogging = &hasOpenstackLogging return r } + // HasPci Specifies whether the account can edit PCI for a service. func (r *APIUpdateCustomerRequest) HasPci(hasPci bool) *APIUpdateCustomerRequest { r.hasPci = &hasPci return r } + // HasPciPasswords Specifies whether PCI passwords are required for the account. func (r *APIUpdateCustomerRequest) HasPciPasswords(hasPciPasswords bool) *APIUpdateCustomerRequest { r.hasPciPasswords = &hasPciPasswords return r } + // IPWhitelist The range of IP addresses authorized to access the customer account. func (r *APIUpdateCustomerRequest) IPWhitelist(ipWhitelist string) *APIUpdateCustomerRequest { r.ipWhitelist = &ipWhitelist return r } + // LegalContactID The alphanumeric string identifying the account's legal contact. func (r *APIUpdateCustomerRequest) LegalContactID(legalContactID string) *APIUpdateCustomerRequest { r.legalContactID = &legalContactID return r } + // Name The name of the customer, generally the company name. func (r *APIUpdateCustomerRequest) Name(name string) *APIUpdateCustomerRequest { r.name = &name return r } + // OwnerID The alphanumeric string identifying the account owner. func (r *APIUpdateCustomerRequest) OwnerID(ownerID string) *APIUpdateCustomerRequest { r.ownerID = &ownerID return r } + // PhoneNumber The phone number associated with the account. func (r *APIUpdateCustomerRequest) PhoneNumber(phoneNumber string) *APIUpdateCustomerRequest { r.phoneNumber = &phoneNumber return r } + // PostalAddress The postal address associated with the account. func (r *APIUpdateCustomerRequest) PostalAddress(postalAddress string) *APIUpdateCustomerRequest { r.postalAddress = &postalAddress return r } + // PricingPlan The pricing plan this customer is under. func (r *APIUpdateCustomerRequest) PricingPlan(pricingPlan string) *APIUpdateCustomerRequest { r.pricingPlan = &pricingPlan return r } + // PricingPlanID The alphanumeric string identifying the pricing plan. func (r *APIUpdateCustomerRequest) PricingPlanID(pricingPlanID string) *APIUpdateCustomerRequest { r.pricingPlanID = &pricingPlanID return r } + // SecurityContactID The alphanumeric string identifying the account's security contact. func (r *APIUpdateCustomerRequest) SecurityContactID(securityContactID string) *APIUpdateCustomerRequest { r.securityContactID = &securityContactID return r } + // TechnicalContactID The alphanumeric string identifying the account's technical contact. func (r *APIUpdateCustomerRequest) TechnicalContactID(technicalContactID string) *APIUpdateCustomerRequest { r.technicalContactID = &technicalContactID @@ -810,7 +824,7 @@ Update a customer. func (a *CustomerAPIService) UpdateCustomer(ctx context.Context, customerID string) APIUpdateCustomerRequest { return APIUpdateCustomerRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -819,10 +833,10 @@ func (a *CustomerAPIService) UpdateCustomer(ctx context.Context, customerID stri // @return CustomerResponse func (a *CustomerAPIService) UpdateCustomerExecute(r APIUpdateCustomerRequest) (*CustomerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *CustomerResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *CustomerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAPIService.UpdateCustomer") @@ -974,7 +988,6 @@ func (a *CustomerAPIService) UpdateCustomerExecute(r APIUpdateCustomerRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_customer_addresses.go b/fastly/api_customer_addresses.go index 770b1c0..c70859d 100644 --- a/fastly/api_customer_addresses.go +++ b/fastly/api_customer_addresses.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type CustomerAddressesAPI interface { /* - CreateCustomerAddress Creates an address associated with a customer account. + CreateCustomerAddress Creates an address associated with a customer account. - Creates an address associated with a customer account. + Creates an address associated with a customer account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateCustomerAddressRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateCustomerAddressRequest */ CreateCustomerAddress(ctx context.Context) APICreateCustomerAddressRequest @@ -46,12 +45,12 @@ type CustomerAddressesAPI interface { CreateCustomerAddressExecute(r APICreateCustomerAddressRequest) (*InlineResponse201, *http.Response, error) /* - ListCustomerAddresses Return the list of addresses associated with a customer account. + ListCustomerAddresses Return the list of addresses associated with a customer account. - Return the list of addresses associated with a customer account. + Return the list of addresses associated with a customer account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListCustomerAddressesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListCustomerAddressesRequest */ ListCustomerAddresses(ctx context.Context) APIListCustomerAddressesRequest @@ -60,13 +59,13 @@ type CustomerAddressesAPI interface { ListCustomerAddressesExecute(r APIListCustomerAddressesRequest) (*ListCustomerAddressesResponse, *http.Response, error) /* - UpdateCustomerAddress Updates an address associated with a customer account. + UpdateCustomerAddress Updates an address associated with a customer account. - Updates an address associated with a customer account. + Updates an address associated with a customer account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param resourceType Alphanumeric type of the address being modified. - @return APIUpdateCustomerAddressRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceType Alphanumeric type of the address being modified. + @return APIUpdateCustomerAddressRequest */ UpdateCustomerAddress(ctx context.Context, resourceType string) APIUpdateCustomerAddressRequest @@ -79,8 +78,8 @@ type CustomerAddressesAPIService service // APICreateCustomerAddressRequest represents a request for the resource. type APICreateCustomerAddressRequest struct { - ctx context.Context - APIService CustomerAddressesAPI + ctx context.Context + APIService CustomerAddressesAPI customerAddress *CustomerAddress } @@ -106,7 +105,7 @@ Creates an address associated with a customer account. func (a *CustomerAddressesAPIService) CreateCustomerAddress(ctx context.Context) APICreateCustomerAddressRequest { return APICreateCustomerAddressRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -114,10 +113,10 @@ func (a *CustomerAddressesAPIService) CreateCustomerAddress(ctx context.Context) // @return InlineResponse201 func (a *CustomerAddressesAPIService) CreateCustomerAddressExecute(r APICreateCustomerAddressRequest) (*InlineResponse201, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse201 + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse201 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAddressesAPIService.CreateCustomerAddress") @@ -240,7 +239,6 @@ func (a *CustomerAddressesAPIService) CreateCustomerAddressExecute(r APICreateCu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -259,11 +257,10 @@ func (a *CustomerAddressesAPIService) CreateCustomerAddressExecute(r APICreateCu // APIListCustomerAddressesRequest represents a request for the resource. type APIListCustomerAddressesRequest struct { - ctx context.Context + ctx context.Context APIService CustomerAddressesAPI } - // Execute calls the API using the request data configured. func (r APIListCustomerAddressesRequest) Execute() (*ListCustomerAddressesResponse, *http.Response, error) { return r.APIService.ListCustomerAddressesExecute(r) @@ -280,7 +277,7 @@ Return the list of addresses associated with a customer account. func (a *CustomerAddressesAPIService) ListCustomerAddresses(ctx context.Context) APIListCustomerAddressesRequest { return APIListCustomerAddressesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -288,10 +285,10 @@ func (a *CustomerAddressesAPIService) ListCustomerAddresses(ctx context.Context) // @return ListCustomerAddressesResponse func (a *CustomerAddressesAPIService) ListCustomerAddressesExecute(r APIListCustomerAddressesRequest) (*ListCustomerAddressesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ListCustomerAddressesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ListCustomerAddressesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAddressesAPIService.ListCustomerAddresses") @@ -409,7 +406,6 @@ func (a *CustomerAddressesAPIService) ListCustomerAddressesExecute(r APIListCust return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -428,9 +424,9 @@ func (a *CustomerAddressesAPIService) ListCustomerAddressesExecute(r APIListCust // APIUpdateCustomerAddressRequest represents a request for the resource. type APIUpdateCustomerAddressRequest struct { - ctx context.Context - APIService CustomerAddressesAPI - resourceType string + ctx context.Context + APIService CustomerAddressesAPI + resourceType string customerAddress *CustomerAddress } @@ -456,8 +452,8 @@ Updates an address associated with a customer account. */ func (a *CustomerAddressesAPIService) UpdateCustomerAddress(ctx context.Context, resourceType string) APIUpdateCustomerAddressRequest { return APIUpdateCustomerAddressRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, resourceType: resourceType, } } @@ -465,9 +461,9 @@ func (a *CustomerAddressesAPIService) UpdateCustomerAddress(ctx context.Context, // UpdateCustomerAddressExecute executes the request func (a *CustomerAddressesAPIService) UpdateCustomerAddressExecute(r APIUpdateCustomerAddressRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomerAddressesAPIService.UpdateCustomerAddress") @@ -582,7 +578,6 @@ func (a *CustomerAddressesAPIService) UpdateCustomerAddressExecute(r APIUpdateCu return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_dictionary.go b/fastly/api_dictionary.go index cf749da..3f56a6b 100644 --- a/fastly/api_dictionary.go +++ b/fastly/api_dictionary.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type DictionaryAPI interface { /* - CreateDictionary Create an edge dictionary + CreateDictionary Create an edge dictionary - Create named dictionary for a particular service and version. + Create named dictionary for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateDictionaryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateDictionaryRequest */ CreateDictionary(ctx context.Context, serviceID string, versionID int32) APICreateDictionaryRequest @@ -48,15 +47,15 @@ type DictionaryAPI interface { CreateDictionaryExecute(r APICreateDictionaryRequest) (*DictionaryResponse, *http.Response, error) /* - DeleteDictionary Delete an edge dictionary + DeleteDictionary Delete an edge dictionary - Delete named dictionary for a particular service and version. + Delete named dictionary for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). - @return APIDeleteDictionaryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). + @return APIDeleteDictionaryRequest */ DeleteDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIDeleteDictionaryRequest @@ -65,15 +64,15 @@ type DictionaryAPI interface { DeleteDictionaryExecute(r APIDeleteDictionaryRequest) (*InlineResponse200, *http.Response, error) /* - GetDictionary Get an edge dictionary + GetDictionary Get an edge dictionary - Retrieve a single dictionary by name for the version and service. + Retrieve a single dictionary by name for the version and service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). - @return APIGetDictionaryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). + @return APIGetDictionaryRequest */ GetDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIGetDictionaryRequest @@ -82,14 +81,14 @@ type DictionaryAPI interface { GetDictionaryExecute(r APIGetDictionaryRequest) (*DictionaryResponse, *http.Response, error) /* - ListDictionaries List edge dictionaries + ListDictionaries List edge dictionaries - List all dictionaries for the version of the service. + List all dictionaries for the version of the service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListDictionariesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListDictionariesRequest */ ListDictionaries(ctx context.Context, serviceID string, versionID int32) APIListDictionariesRequest @@ -98,15 +97,15 @@ type DictionaryAPI interface { ListDictionariesExecute(r APIListDictionariesRequest) ([]DictionaryResponse, *http.Response, error) /* - UpdateDictionary Update an edge dictionary + UpdateDictionary Update an edge dictionary - Update named dictionary for a particular service and version. + Update named dictionary for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). - @return APIUpdateDictionaryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param dictionaryName Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). + @return APIUpdateDictionaryRequest */ UpdateDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIUpdateDictionaryRequest @@ -120,12 +119,12 @@ type DictionaryAPIService service // APICreateDictionaryRequest represents a request for the resource. type APICreateDictionaryRequest struct { - ctx context.Context + ctx context.Context APIService DictionaryAPI - serviceID string - versionID int32 - name *string - writeOnly *bool + serviceID string + versionID int32 + name *string + writeOnly *bool } // Name Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). @@ -133,6 +132,7 @@ func (r *APICreateDictionaryRequest) Name(name string) *APICreateDictionaryReque r.name = &name return r } + // WriteOnly Determines if items in the dictionary are readable or not. func (r *APICreateDictionaryRequest) WriteOnly(writeOnly bool) *APICreateDictionaryRequest { r.writeOnly = &writeOnly @@ -157,9 +157,9 @@ Create named dictionary for a particular service and version. func (a *DictionaryAPIService) CreateDictionary(ctx context.Context, serviceID string, versionID int32) APICreateDictionaryRequest { return APICreateDictionaryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -167,10 +167,10 @@ func (a *DictionaryAPIService) CreateDictionary(ctx context.Context, serviceID s // @return DictionaryResponse func (a *DictionaryAPIService) CreateDictionaryExecute(r APICreateDictionaryRequest) (*DictionaryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryAPIService.CreateDictionary") @@ -257,7 +257,6 @@ func (a *DictionaryAPIService) CreateDictionaryExecute(r APICreateDictionaryRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -276,14 +275,13 @@ func (a *DictionaryAPIService) CreateDictionaryExecute(r APICreateDictionaryRequ // APIDeleteDictionaryRequest represents a request for the resource. type APIDeleteDictionaryRequest struct { - ctx context.Context - APIService DictionaryAPI - serviceID string - versionID int32 + ctx context.Context + APIService DictionaryAPI + serviceID string + versionID int32 dictionaryName string } - // Execute calls the API using the request data configured. func (r APIDeleteDictionaryRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteDictionaryExecute(r) @@ -302,10 +300,10 @@ Delete named dictionary for a particular service and version. */ func (a *DictionaryAPIService) DeleteDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIDeleteDictionaryRequest { return APIDeleteDictionaryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, dictionaryName: dictionaryName, } } @@ -314,10 +312,10 @@ func (a *DictionaryAPIService) DeleteDictionary(ctx context.Context, serviceID s // @return InlineResponse200 func (a *DictionaryAPIService) DeleteDictionaryExecute(r APIDeleteDictionaryRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryAPIService.DeleteDictionary") @@ -399,7 +397,6 @@ func (a *DictionaryAPIService) DeleteDictionaryExecute(r APIDeleteDictionaryRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -418,14 +415,13 @@ func (a *DictionaryAPIService) DeleteDictionaryExecute(r APIDeleteDictionaryRequ // APIGetDictionaryRequest represents a request for the resource. type APIGetDictionaryRequest struct { - ctx context.Context - APIService DictionaryAPI - serviceID string - versionID int32 + ctx context.Context + APIService DictionaryAPI + serviceID string + versionID int32 dictionaryName string } - // Execute calls the API using the request data configured. func (r APIGetDictionaryRequest) Execute() (*DictionaryResponse, *http.Response, error) { return r.APIService.GetDictionaryExecute(r) @@ -444,10 +440,10 @@ Retrieve a single dictionary by name for the version and service. */ func (a *DictionaryAPIService) GetDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIGetDictionaryRequest { return APIGetDictionaryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, dictionaryName: dictionaryName, } } @@ -456,10 +452,10 @@ func (a *DictionaryAPIService) GetDictionary(ctx context.Context, serviceID stri // @return DictionaryResponse func (a *DictionaryAPIService) GetDictionaryExecute(r APIGetDictionaryRequest) (*DictionaryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryAPIService.GetDictionary") @@ -541,7 +537,6 @@ func (a *DictionaryAPIService) GetDictionaryExecute(r APIGetDictionaryRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -560,13 +555,12 @@ func (a *DictionaryAPIService) GetDictionaryExecute(r APIGetDictionaryRequest) ( // APIListDictionariesRequest represents a request for the resource. type APIListDictionariesRequest struct { - ctx context.Context + ctx context.Context APIService DictionaryAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListDictionariesRequest) Execute() ([]DictionaryResponse, *http.Response, error) { return r.APIService.ListDictionariesExecute(r) @@ -585,9 +579,9 @@ List all dictionaries for the version of the service. func (a *DictionaryAPIService) ListDictionaries(ctx context.Context, serviceID string, versionID int32) APIListDictionariesRequest { return APIListDictionariesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -595,10 +589,10 @@ func (a *DictionaryAPIService) ListDictionaries(ctx context.Context, serviceID s // @return []DictionaryResponse func (a *DictionaryAPIService) ListDictionariesExecute(r APIListDictionariesRequest) ([]DictionaryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []DictionaryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []DictionaryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryAPIService.ListDictionaries") @@ -679,7 +673,6 @@ func (a *DictionaryAPIService) ListDictionariesExecute(r APIListDictionariesRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -698,13 +691,13 @@ func (a *DictionaryAPIService) ListDictionariesExecute(r APIListDictionariesRequ // APIUpdateDictionaryRequest represents a request for the resource. type APIUpdateDictionaryRequest struct { - ctx context.Context - APIService DictionaryAPI - serviceID string - versionID int32 + ctx context.Context + APIService DictionaryAPI + serviceID string + versionID int32 dictionaryName string - name *string - writeOnly *bool + name *string + writeOnly *bool } // Name Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). @@ -712,6 +705,7 @@ func (r *APIUpdateDictionaryRequest) Name(name string) *APIUpdateDictionaryReque r.name = &name return r } + // WriteOnly Determines if items in the dictionary are readable or not. func (r *APIUpdateDictionaryRequest) WriteOnly(writeOnly bool) *APIUpdateDictionaryRequest { r.writeOnly = &writeOnly @@ -736,10 +730,10 @@ Update named dictionary for a particular service and version. */ func (a *DictionaryAPIService) UpdateDictionary(ctx context.Context, serviceID string, versionID int32, dictionaryName string) APIUpdateDictionaryRequest { return APIUpdateDictionaryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, dictionaryName: dictionaryName, } } @@ -748,10 +742,10 @@ func (a *DictionaryAPIService) UpdateDictionary(ctx context.Context, serviceID s // @return DictionaryResponse func (a *DictionaryAPIService) UpdateDictionaryExecute(r APIUpdateDictionaryRequest) (*DictionaryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryAPIService.UpdateDictionary") @@ -839,7 +833,6 @@ func (a *DictionaryAPIService) UpdateDictionaryExecute(r APIUpdateDictionaryRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_dictionary_info.go b/fastly/api_dictionary_info.go index 291c998..c02980e 100644 --- a/fastly/api_dictionary_info.go +++ b/fastly/api_dictionary_info.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type DictionaryInfoAPI interface { /* - GetDictionaryInfo Get edge dictionary metadata + GetDictionaryInfo Get edge dictionary metadata - Retrieve metadata for a single dictionary by ID for a version and service. + Retrieve metadata for a single dictionary by ID for a version and service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @return APIGetDictionaryInfoRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @return APIGetDictionaryInfoRequest */ GetDictionaryInfo(ctx context.Context, serviceID string, versionID int32, dictionaryID string) APIGetDictionaryInfoRequest @@ -54,14 +53,13 @@ type DictionaryInfoAPIService service // APIGetDictionaryInfoRequest represents a request for the resource. type APIGetDictionaryInfoRequest struct { - ctx context.Context - APIService DictionaryInfoAPI - serviceID string - versionID int32 + ctx context.Context + APIService DictionaryInfoAPI + serviceID string + versionID int32 dictionaryID string } - // Execute calls the API using the request data configured. func (r APIGetDictionaryInfoRequest) Execute() (*DictionaryInfoResponse, *http.Response, error) { return r.APIService.GetDictionaryInfoExecute(r) @@ -80,10 +78,10 @@ Retrieve metadata for a single dictionary by ID for a version and service. */ func (a *DictionaryInfoAPIService) GetDictionaryInfo(ctx context.Context, serviceID string, versionID int32, dictionaryID string) APIGetDictionaryInfoRequest { return APIGetDictionaryInfoRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, dictionaryID: dictionaryID, } } @@ -92,10 +90,10 @@ func (a *DictionaryInfoAPIService) GetDictionaryInfo(ctx context.Context, servic // @return DictionaryInfoResponse func (a *DictionaryInfoAPIService) GetDictionaryInfoExecute(r APIGetDictionaryInfoRequest) (*DictionaryInfoResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryInfoResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryInfoResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryInfoAPIService.GetDictionaryInfo") @@ -177,7 +175,6 @@ func (a *DictionaryInfoAPIService) GetDictionaryInfoExecute(r APIGetDictionaryIn return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_dictionary_item.go b/fastly/api_dictionary_item.go index 9734adc..80eabe0 100644 --- a/fastly/api_dictionary_item.go +++ b/fastly/api_dictionary_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type DictionaryItemAPI interface { /* - BulkUpdateDictionaryItem Update multiple entries in an edge dictionary + BulkUpdateDictionaryItem Update multiple entries in an edge dictionary - Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit. + Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @return APIBulkUpdateDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @return APIBulkUpdateDictionaryItemRequest */ BulkUpdateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string) APIBulkUpdateDictionaryItemRequest @@ -48,14 +47,14 @@ type DictionaryItemAPI interface { BulkUpdateDictionaryItemExecute(r APIBulkUpdateDictionaryItemRequest) (*InlineResponse200, *http.Response, error) /* - CreateDictionaryItem Create an entry in an edge dictionary + CreateDictionaryItem Create an entry in an edge dictionary - Create DictionaryItem given service, dictionary ID, item key, and item value. + Create DictionaryItem given service, dictionary ID, item key, and item value. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @return APICreateDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @return APICreateDictionaryItemRequest */ CreateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string) APICreateDictionaryItemRequest @@ -64,15 +63,15 @@ type DictionaryItemAPI interface { CreateDictionaryItemExecute(r APICreateDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) /* - DeleteDictionaryItem Delete an item from an edge dictionary + DeleteDictionaryItem Delete an item from an edge dictionary - Delete DictionaryItem given service, dictionary ID, and item key. + Delete DictionaryItem given service, dictionary ID, and item key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @param dictionaryItemKey Item key, maximum 256 characters. - @return APIDeleteDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @param dictionaryItemKey Item key, maximum 256 characters. + @return APIDeleteDictionaryItemRequest */ DeleteDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIDeleteDictionaryItemRequest @@ -81,15 +80,15 @@ type DictionaryItemAPI interface { DeleteDictionaryItemExecute(r APIDeleteDictionaryItemRequest) (*InlineResponse200, *http.Response, error) /* - GetDictionaryItem Get an item from an edge dictionary + GetDictionaryItem Get an item from an edge dictionary - Retrieve a single DictionaryItem given service, dictionary ID and item key. + Retrieve a single DictionaryItem given service, dictionary ID and item key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @param dictionaryItemKey Item key, maximum 256 characters. - @return APIGetDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @param dictionaryItemKey Item key, maximum 256 characters. + @return APIGetDictionaryItemRequest */ GetDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIGetDictionaryItemRequest @@ -98,14 +97,14 @@ type DictionaryItemAPI interface { GetDictionaryItemExecute(r APIGetDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) /* - ListDictionaryItems List items in an edge dictionary + ListDictionaryItems List items in an edge dictionary - List of DictionaryItems given service and dictionary ID. + List of DictionaryItems given service and dictionary ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @return APIListDictionaryItemsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @return APIListDictionaryItemsRequest */ ListDictionaryItems(ctx context.Context, serviceID string, dictionaryID string) APIListDictionaryItemsRequest @@ -114,15 +113,15 @@ type DictionaryItemAPI interface { ListDictionaryItemsExecute(r APIListDictionaryItemsRequest) ([]DictionaryItemResponse, *http.Response, error) /* - UpdateDictionaryItem Update an entry in an edge dictionary + UpdateDictionaryItem Update an entry in an edge dictionary - Update DictionaryItem given service, dictionary ID, item key, and item value. + Update DictionaryItem given service, dictionary ID, item key, and item value. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @param dictionaryItemKey Item key, maximum 256 characters. - @return APIUpdateDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @param dictionaryItemKey Item key, maximum 256 characters. + @return APIUpdateDictionaryItemRequest */ UpdateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIUpdateDictionaryItemRequest @@ -131,15 +130,15 @@ type DictionaryItemAPI interface { UpdateDictionaryItemExecute(r APIUpdateDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) /* - UpsertDictionaryItem Insert or update an entry in an edge dictionary + UpsertDictionaryItem Insert or update an entry in an edge dictionary - Upsert DictionaryItem given service, dictionary ID, item key, and item value. + Upsert DictionaryItem given service, dictionary ID, item key, and item value. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param dictionaryID Alphanumeric string identifying a Dictionary. - @param dictionaryItemKey Item key, maximum 256 characters. - @return APIUpsertDictionaryItemRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param dictionaryID Alphanumeric string identifying a Dictionary. + @param dictionaryItemKey Item key, maximum 256 characters. + @return APIUpsertDictionaryItemRequest */ UpsertDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIUpsertDictionaryItemRequest @@ -153,10 +152,10 @@ type DictionaryItemAPIService service // APIBulkUpdateDictionaryItemRequest represents a request for the resource. type APIBulkUpdateDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string - dictionaryID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string + dictionaryID string bulkUpdateDictionaryListRequest *BulkUpdateDictionaryListRequest } @@ -183,9 +182,9 @@ Update multiple items in the same dictionary. For faster updates to your service */ func (a *DictionaryItemAPIService) BulkUpdateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string) APIBulkUpdateDictionaryItemRequest { return APIBulkUpdateDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, dictionaryID: dictionaryID, } } @@ -194,10 +193,10 @@ func (a *DictionaryItemAPIService) BulkUpdateDictionaryItem(ctx context.Context, // @return InlineResponse200 func (a *DictionaryItemAPIService) BulkUpdateDictionaryItemExecute(r APIBulkUpdateDictionaryItemRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.BulkUpdateDictionaryItem") @@ -280,7 +279,6 @@ func (a *DictionaryItemAPIService) BulkUpdateDictionaryItemExecute(r APIBulkUpda return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -299,12 +297,12 @@ func (a *DictionaryItemAPIService) BulkUpdateDictionaryItemExecute(r APIBulkUpda // APICreateDictionaryItemRequest represents a request for the resource. type APICreateDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string dictionaryID string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -312,6 +310,7 @@ func (r *APICreateDictionaryItemRequest) ItemKey(itemKey string) *APICreateDicti r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APICreateDictionaryItemRequest) ItemValue(itemValue string) *APICreateDictionaryItemRequest { r.itemValue = &itemValue @@ -335,9 +334,9 @@ Create DictionaryItem given service, dictionary ID, item key, and item value. */ func (a *DictionaryItemAPIService) CreateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string) APICreateDictionaryItemRequest { return APICreateDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, dictionaryID: dictionaryID, } } @@ -346,10 +345,10 @@ func (a *DictionaryItemAPIService) CreateDictionaryItem(ctx context.Context, ser // @return DictionaryItemResponse func (a *DictionaryItemAPIService) CreateDictionaryItemExecute(r APICreateDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryItemResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.CreateDictionaryItem") @@ -436,7 +435,6 @@ func (a *DictionaryItemAPIService) CreateDictionaryItemExecute(r APICreateDictio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -455,14 +453,13 @@ func (a *DictionaryItemAPIService) CreateDictionaryItemExecute(r APICreateDictio // APIDeleteDictionaryItemRequest represents a request for the resource. type APIDeleteDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string - dictionaryID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string + dictionaryID string dictionaryItemKey string } - // Execute calls the API using the request data configured. func (r APIDeleteDictionaryItemRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteDictionaryItemExecute(r) @@ -481,10 +478,10 @@ Delete DictionaryItem given service, dictionary ID, and item key. */ func (a *DictionaryItemAPIService) DeleteDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIDeleteDictionaryItemRequest { return APIDeleteDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - dictionaryID: dictionaryID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + dictionaryID: dictionaryID, dictionaryItemKey: dictionaryItemKey, } } @@ -493,10 +490,10 @@ func (a *DictionaryItemAPIService) DeleteDictionaryItem(ctx context.Context, ser // @return InlineResponse200 func (a *DictionaryItemAPIService) DeleteDictionaryItemExecute(r APIDeleteDictionaryItemRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.DeleteDictionaryItem") @@ -578,7 +575,6 @@ func (a *DictionaryItemAPIService) DeleteDictionaryItemExecute(r APIDeleteDictio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -597,14 +593,13 @@ func (a *DictionaryItemAPIService) DeleteDictionaryItemExecute(r APIDeleteDictio // APIGetDictionaryItemRequest represents a request for the resource. type APIGetDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string - dictionaryID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string + dictionaryID string dictionaryItemKey string } - // Execute calls the API using the request data configured. func (r APIGetDictionaryItemRequest) Execute() (*DictionaryItemResponse, *http.Response, error) { return r.APIService.GetDictionaryItemExecute(r) @@ -623,10 +618,10 @@ Retrieve a single DictionaryItem given service, dictionary ID and item key. */ func (a *DictionaryItemAPIService) GetDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIGetDictionaryItemRequest { return APIGetDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - dictionaryID: dictionaryID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + dictionaryID: dictionaryID, dictionaryItemKey: dictionaryItemKey, } } @@ -635,10 +630,10 @@ func (a *DictionaryItemAPIService) GetDictionaryItem(ctx context.Context, servic // @return DictionaryItemResponse func (a *DictionaryItemAPIService) GetDictionaryItemExecute(r APIGetDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryItemResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.GetDictionaryItem") @@ -720,7 +715,6 @@ func (a *DictionaryItemAPIService) GetDictionaryItemExecute(r APIGetDictionaryIt return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -739,14 +733,14 @@ func (a *DictionaryItemAPIService) GetDictionaryItemExecute(r APIGetDictionaryIt // APIListDictionaryItemsRequest represents a request for the resource. type APIListDictionaryItemsRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string dictionaryID string - page *int32 - perPage *int32 - sort *string - direction *string + page *int32 + perPage *int32 + sort *string + direction *string } // Page Current page. @@ -754,16 +748,19 @@ func (r *APIListDictionaryItemsRequest) Page(page int32) *APIListDictionaryItems r.page = &page return r } + // PerPage Number of records per page. func (r *APIListDictionaryItemsRequest) PerPage(perPage int32) *APIListDictionaryItemsRequest { r.perPage = &perPage return r } + // Sort Field on which to sort. func (r *APIListDictionaryItemsRequest) Sort(sort string) *APIListDictionaryItemsRequest { r.sort = &sort return r } + // Direction Direction in which to sort results. func (r *APIListDictionaryItemsRequest) Direction(direction string) *APIListDictionaryItemsRequest { r.direction = &direction @@ -787,9 +784,9 @@ List of DictionaryItems given service and dictionary ID. */ func (a *DictionaryItemAPIService) ListDictionaryItems(ctx context.Context, serviceID string, dictionaryID string) APIListDictionaryItemsRequest { return APIListDictionaryItemsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, dictionaryID: dictionaryID, } } @@ -798,10 +795,10 @@ func (a *DictionaryItemAPIService) ListDictionaryItems(ctx context.Context, serv // @return []DictionaryItemResponse func (a *DictionaryItemAPIService) ListDictionaryItemsExecute(r APIListDictionaryItemsRequest) ([]DictionaryItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []DictionaryItemResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []DictionaryItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.ListDictionaryItems") @@ -894,7 +891,6 @@ func (a *DictionaryItemAPIService) ListDictionaryItemsExecute(r APIListDictionar return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -913,13 +909,13 @@ func (a *DictionaryItemAPIService) ListDictionaryItemsExecute(r APIListDictionar // APIUpdateDictionaryItemRequest represents a request for the resource. type APIUpdateDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string - dictionaryID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string + dictionaryID string dictionaryItemKey string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -927,6 +923,7 @@ func (r *APIUpdateDictionaryItemRequest) ItemKey(itemKey string) *APIUpdateDicti r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APIUpdateDictionaryItemRequest) ItemValue(itemValue string) *APIUpdateDictionaryItemRequest { r.itemValue = &itemValue @@ -951,10 +948,10 @@ Update DictionaryItem given service, dictionary ID, item key, and item value. */ func (a *DictionaryItemAPIService) UpdateDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIUpdateDictionaryItemRequest { return APIUpdateDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - dictionaryID: dictionaryID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + dictionaryID: dictionaryID, dictionaryItemKey: dictionaryItemKey, } } @@ -963,10 +960,10 @@ func (a *DictionaryItemAPIService) UpdateDictionaryItem(ctx context.Context, ser // @return DictionaryItemResponse func (a *DictionaryItemAPIService) UpdateDictionaryItemExecute(r APIUpdateDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryItemResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.UpdateDictionaryItem") @@ -1054,7 +1051,6 @@ func (a *DictionaryItemAPIService) UpdateDictionaryItemExecute(r APIUpdateDictio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1073,13 +1069,13 @@ func (a *DictionaryItemAPIService) UpdateDictionaryItemExecute(r APIUpdateDictio // APIUpsertDictionaryItemRequest represents a request for the resource. type APIUpsertDictionaryItemRequest struct { - ctx context.Context - APIService DictionaryItemAPI - serviceID string - dictionaryID string + ctx context.Context + APIService DictionaryItemAPI + serviceID string + dictionaryID string dictionaryItemKey string - itemKey *string - itemValue *string + itemKey *string + itemValue *string } // ItemKey Item key, maximum 256 characters. @@ -1087,6 +1083,7 @@ func (r *APIUpsertDictionaryItemRequest) ItemKey(itemKey string) *APIUpsertDicti r.itemKey = &itemKey return r } + // ItemValue Item value, maximum 8000 characters. func (r *APIUpsertDictionaryItemRequest) ItemValue(itemValue string) *APIUpsertDictionaryItemRequest { r.itemValue = &itemValue @@ -1111,10 +1108,10 @@ Upsert DictionaryItem given service, dictionary ID, item key, and item value. */ func (a *DictionaryItemAPIService) UpsertDictionaryItem(ctx context.Context, serviceID string, dictionaryID string, dictionaryItemKey string) APIUpsertDictionaryItemRequest { return APIUpsertDictionaryItemRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - dictionaryID: dictionaryID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + dictionaryID: dictionaryID, dictionaryItemKey: dictionaryItemKey, } } @@ -1123,10 +1120,10 @@ func (a *DictionaryItemAPIService) UpsertDictionaryItem(ctx context.Context, ser // @return DictionaryItemResponse func (a *DictionaryItemAPIService) UpsertDictionaryItemExecute(r APIUpsertDictionaryItemRequest) (*DictionaryItemResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *DictionaryItemResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *DictionaryItemResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DictionaryItemAPIService.UpsertDictionaryItem") @@ -1214,7 +1211,6 @@ func (a *DictionaryItemAPIService) UpsertDictionaryItemExecute(r APIUpsertDictio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_diff.go b/fastly/api_diff.go index 4f938b6..53d318a 100644 --- a/fastly/api_diff.go +++ b/fastly/api_diff.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type DiffAPI interface { /* - DiffServiceVersions Diff two service versions + DiffServiceVersions Diff two service versions - Get diff between two versions. + Get diff between two versions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param fromVersionID The version number of the service to which changes in the generated VCL are being compared. Can either be a positive number from 1 to your maximum version or a negative number from -1 down (-1 is latest version etc). - @param toVersionID The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as `from`. - @return APIDiffServiceVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param fromVersionID The version number of the service to which changes in the generated VCL are being compared. Can either be a positive number from 1 to your maximum version or a negative number from -1 down (-1 is latest version etc). + @param toVersionID The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as `from`. + @return APIDiffServiceVersionsRequest */ DiffServiceVersions(ctx context.Context, serviceID string, fromVersionID int32, toVersionID int32) APIDiffServiceVersionsRequest @@ -54,12 +53,12 @@ type DiffAPIService service // APIDiffServiceVersionsRequest represents a request for the resource. type APIDiffServiceVersionsRequest struct { - ctx context.Context - APIService DiffAPI - serviceID string + ctx context.Context + APIService DiffAPI + serviceID string fromVersionID int32 - toVersionID int32 - format *string + toVersionID int32 + format *string } // Format Optional method to format the diff field. @@ -86,11 +85,11 @@ Get diff between two versions. */ func (a *DiffAPIService) DiffServiceVersions(ctx context.Context, serviceID string, fromVersionID int32, toVersionID int32) APIDiffServiceVersionsRequest { return APIDiffServiceVersionsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, fromVersionID: fromVersionID, - toVersionID: toVersionID, + toVersionID: toVersionID, } } @@ -98,10 +97,10 @@ func (a *DiffAPIService) DiffServiceVersions(ctx context.Context, serviceID stri // @return DiffResponse func (a *DiffAPIService) DiffServiceVersionsExecute(r APIDiffServiceVersionsRequest) (*DiffResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DiffResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DiffResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DiffAPIService.DiffServiceVersions") @@ -186,7 +185,6 @@ func (a *DiffAPIService) DiffServiceVersionsExecute(r APIDiffServiceVersionsRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_director.go b/fastly/api_director.go index b5b6137..300ea7f 100644 --- a/fastly/api_director.go +++ b/fastly/api_director.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type DirectorAPI interface { /* - CreateDirector Create a director + CreateDirector Create a director - Create a director for a particular service and version. + Create a director for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateDirectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateDirectorRequest */ CreateDirector(ctx context.Context, serviceID string, versionID int32) APICreateDirectorRequest @@ -48,15 +47,15 @@ type DirectorAPI interface { CreateDirectorExecute(r APICreateDirectorRequest) (*DirectorResponse, *http.Response, error) /* - DeleteDirector Delete a director + DeleteDirector Delete a director - Delete the director for a particular service and version. + Delete the director for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param directorName Name for the Director. - @return APIDeleteDirectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param directorName Name for the Director. + @return APIDeleteDirectorRequest */ DeleteDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIDeleteDirectorRequest @@ -65,15 +64,15 @@ type DirectorAPI interface { DeleteDirectorExecute(r APIDeleteDirectorRequest) (*InlineResponse200, *http.Response, error) /* - GetDirector Get a director + GetDirector Get a director - Get the director for a particular service and version. + Get the director for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param directorName Name for the Director. - @return APIGetDirectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param directorName Name for the Director. + @return APIGetDirectorRequest */ GetDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIGetDirectorRequest @@ -82,14 +81,14 @@ type DirectorAPI interface { GetDirectorExecute(r APIGetDirectorRequest) (*DirectorResponse, *http.Response, error) /* - ListDirectors List directors + ListDirectors List directors - List the directors for a particular service and version. + List the directors for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListDirectorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListDirectorsRequest */ ListDirectors(ctx context.Context, serviceID string, versionID int32) APIListDirectorsRequest @@ -98,15 +97,15 @@ type DirectorAPI interface { ListDirectorsExecute(r APIListDirectorsRequest) ([]DirectorResponse, *http.Response, error) /* - UpdateDirector Update a director + UpdateDirector Update a director - Update the director for a particular service and version. + Update the director for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param directorName Name for the Director. - @return APIUpdateDirectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param directorName Name for the Director. + @return APIUpdateDirectorRequest */ UpdateDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIUpdateDirectorRequest @@ -120,18 +119,18 @@ type DirectorAPIService service // APICreateDirectorRequest represents a request for the resource. type APICreateDirectorRequest struct { - ctx context.Context - APIService DirectorAPI - serviceID string - versionID int32 - backends *[]Backend - capacity *int32 - comment *string - name *string - quorum *int32 - shield *string + ctx context.Context + APIService DirectorAPI + serviceID string + versionID int32 + backends *[]Backend + capacity *int32 + comment *string + name *string + quorum *int32 + shield *string resourceType *int32 - retries *int32 + retries *int32 } // Backends List of backends associated to a director. @@ -139,36 +138,43 @@ func (r *APICreateDirectorRequest) Backends(backends []Backend) *APICreateDirect r.backends = &backends return r } + // Capacity Unused. func (r *APICreateDirectorRequest) Capacity(capacity int32) *APICreateDirectorRequest { r.capacity = &capacity return r } + // Comment A freeform descriptive note. func (r *APICreateDirectorRequest) Comment(comment string) *APICreateDirectorRequest { r.comment = &comment return r } + // Name Name for the Director. func (r *APICreateDirectorRequest) Name(name string) *APICreateDirectorRequest { r.name = &name return r } + // Quorum The percentage of capacity that needs to be up for a director to be considered up. `0` to `100`. func (r *APICreateDirectorRequest) Quorum(quorum int32) *APICreateDirectorRequest { r.quorum = &quorum return r } + // Shield Selected POP to serve as a shield for the backends. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. func (r *APICreateDirectorRequest) Shield(shield string) *APICreateDirectorRequest { r.shield = &shield return r } + // ResourceType What type of load balance group to use. func (r *APICreateDirectorRequest) ResourceType(resourceType int32) *APICreateDirectorRequest { r.resourceType = &resourceType return r } + // Retries How many backends to search if it fails. func (r *APICreateDirectorRequest) Retries(retries int32) *APICreateDirectorRequest { r.retries = &retries @@ -193,9 +199,9 @@ Create a director for a particular service and version. func (a *DirectorAPIService) CreateDirector(ctx context.Context, serviceID string, versionID int32) APICreateDirectorRequest { return APICreateDirectorRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -203,10 +209,10 @@ func (a *DirectorAPIService) CreateDirector(ctx context.Context, serviceID strin // @return DirectorResponse func (a *DirectorAPIService) CreateDirectorExecute(r APICreateDirectorRequest) (*DirectorResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *DirectorResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.CreateDirector") @@ -311,7 +317,6 @@ func (a *DirectorAPIService) CreateDirectorExecute(r APICreateDirectorRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -330,14 +335,13 @@ func (a *DirectorAPIService) CreateDirectorExecute(r APICreateDirectorRequest) ( // APIDeleteDirectorRequest represents a request for the resource. type APIDeleteDirectorRequest struct { - ctx context.Context - APIService DirectorAPI - serviceID string - versionID int32 + ctx context.Context + APIService DirectorAPI + serviceID string + versionID int32 directorName string } - // Execute calls the API using the request data configured. func (r APIDeleteDirectorRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteDirectorExecute(r) @@ -356,10 +360,10 @@ Delete the director for a particular service and version. */ func (a *DirectorAPIService) DeleteDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIDeleteDirectorRequest { return APIDeleteDirectorRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, directorName: directorName, } } @@ -368,10 +372,10 @@ func (a *DirectorAPIService) DeleteDirector(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *DirectorAPIService) DeleteDirectorExecute(r APIDeleteDirectorRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.DeleteDirector") @@ -453,7 +457,6 @@ func (a *DirectorAPIService) DeleteDirectorExecute(r APIDeleteDirectorRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -472,14 +475,13 @@ func (a *DirectorAPIService) DeleteDirectorExecute(r APIDeleteDirectorRequest) ( // APIGetDirectorRequest represents a request for the resource. type APIGetDirectorRequest struct { - ctx context.Context - APIService DirectorAPI - serviceID string - versionID int32 + ctx context.Context + APIService DirectorAPI + serviceID string + versionID int32 directorName string } - // Execute calls the API using the request data configured. func (r APIGetDirectorRequest) Execute() (*DirectorResponse, *http.Response, error) { return r.APIService.GetDirectorExecute(r) @@ -498,10 +500,10 @@ Get the director for a particular service and version. */ func (a *DirectorAPIService) GetDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIGetDirectorRequest { return APIGetDirectorRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, directorName: directorName, } } @@ -510,10 +512,10 @@ func (a *DirectorAPIService) GetDirector(ctx context.Context, serviceID string, // @return DirectorResponse func (a *DirectorAPIService) GetDirectorExecute(r APIGetDirectorRequest) (*DirectorResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DirectorResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.GetDirector") @@ -595,7 +597,6 @@ func (a *DirectorAPIService) GetDirectorExecute(r APIGetDirectorRequest) (*Direc return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -614,13 +615,12 @@ func (a *DirectorAPIService) GetDirectorExecute(r APIGetDirectorRequest) (*Direc // APIListDirectorsRequest represents a request for the resource. type APIListDirectorsRequest struct { - ctx context.Context + ctx context.Context APIService DirectorAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListDirectorsRequest) Execute() ([]DirectorResponse, *http.Response, error) { return r.APIService.ListDirectorsExecute(r) @@ -639,9 +639,9 @@ List the directors for a particular service and version. func (a *DirectorAPIService) ListDirectors(ctx context.Context, serviceID string, versionID int32) APIListDirectorsRequest { return APIListDirectorsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -649,10 +649,10 @@ func (a *DirectorAPIService) ListDirectors(ctx context.Context, serviceID string // @return []DirectorResponse func (a *DirectorAPIService) ListDirectorsExecute(r APIListDirectorsRequest) ([]DirectorResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []DirectorResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []DirectorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.ListDirectors") @@ -733,7 +733,6 @@ func (a *DirectorAPIService) ListDirectorsExecute(r APIListDirectorsRequest) ([] return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -752,14 +751,13 @@ func (a *DirectorAPIService) ListDirectorsExecute(r APIListDirectorsRequest) ([] // APIUpdateDirectorRequest represents a request for the resource. type APIUpdateDirectorRequest struct { - ctx context.Context - APIService DirectorAPI - serviceID string - versionID int32 + ctx context.Context + APIService DirectorAPI + serviceID string + versionID int32 directorName string } - // Execute calls the API using the request data configured. func (r APIUpdateDirectorRequest) Execute() (*DirectorResponse, *http.Response, error) { return r.APIService.UpdateDirectorExecute(r) @@ -778,10 +776,10 @@ Update the director for a particular service and version. */ func (a *DirectorAPIService) UpdateDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIUpdateDirectorRequest { return APIUpdateDirectorRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, directorName: directorName, } } @@ -790,10 +788,10 @@ func (a *DirectorAPIService) UpdateDirector(ctx context.Context, serviceID strin // @return DirectorResponse func (a *DirectorAPIService) UpdateDirectorExecute(r APIUpdateDirectorRequest) (*DirectorResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *DirectorResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.UpdateDirector") @@ -875,7 +873,6 @@ func (a *DirectorAPIService) UpdateDirectorExecute(r APIUpdateDirectorRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_director_backend.go b/fastly/api_director_backend.go index 94fec43..043cda6 100644 --- a/fastly/api_director_backend.go +++ b/fastly/api_director_backend.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type DirectorBackendAPI interface { /* - CreateDirectorBackend Create a director-backend relationship + CreateDirectorBackend Create a director-backend relationship - Establishes a relationship between a Backend and a Director. The Backend is then considered a member of the Director and can be used to balance traffic onto. + Establishes a relationship between a Backend and a Director. The Backend is then considered a member of the Director and can be used to balance traffic onto. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param directorName Name for the Director. - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APICreateDirectorBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param directorName Name for the Director. + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APICreateDirectorBackendRequest */ CreateDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APICreateDirectorBackendRequest @@ -50,16 +49,16 @@ type DirectorBackendAPI interface { CreateDirectorBackendExecute(r APICreateDirectorBackendRequest) (*DirectorBackend, *http.Response, error) /* - DeleteDirectorBackend Delete a director-backend relationship + DeleteDirectorBackend Delete a director-backend relationship - Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director. + Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param directorName Name for the Director. - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APIDeleteDirectorBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param directorName Name for the Director. + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APIDeleteDirectorBackendRequest */ DeleteDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APIDeleteDirectorBackendRequest @@ -68,16 +67,16 @@ type DirectorBackendAPI interface { DeleteDirectorBackendExecute(r APIDeleteDirectorBackendRequest) (*InlineResponse200, *http.Response, error) /* - GetDirectorBackend Get a director-backend relationship + GetDirectorBackend Get a director-backend relationship - Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404. + Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param directorName Name for the Director. - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param backendName The name of the backend. - @return APIGetDirectorBackendRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param directorName Name for the Director. + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param backendName The name of the backend. + @return APIGetDirectorBackendRequest */ GetDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APIGetDirectorBackendRequest @@ -91,15 +90,14 @@ type DirectorBackendAPIService service // APICreateDirectorBackendRequest represents a request for the resource. type APICreateDirectorBackendRequest struct { - ctx context.Context - APIService DirectorBackendAPI + ctx context.Context + APIService DirectorBackendAPI directorName string - serviceID string - versionID int32 - backendName string + serviceID string + versionID int32 + backendName string } - // Execute calls the API using the request data configured. func (r APICreateDirectorBackendRequest) Execute() (*DirectorBackend, *http.Response, error) { return r.APIService.CreateDirectorBackendExecute(r) @@ -119,12 +117,12 @@ Establishes a relationship between a Backend and a Director. The Backend is then */ func (a *DirectorBackendAPIService) CreateDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APICreateDirectorBackendRequest { return APICreateDirectorBackendRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, directorName: directorName, - serviceID: serviceID, - versionID: versionID, - backendName: backendName, + serviceID: serviceID, + versionID: versionID, + backendName: backendName, } } @@ -132,10 +130,10 @@ func (a *DirectorBackendAPIService) CreateDirectorBackend(ctx context.Context, d // @return DirectorBackend func (a *DirectorBackendAPIService) CreateDirectorBackendExecute(r APICreateDirectorBackendRequest) (*DirectorBackend, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *DirectorBackend + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorBackend ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorBackendAPIService.CreateDirectorBackend") @@ -218,7 +216,6 @@ func (a *DirectorBackendAPIService) CreateDirectorBackendExecute(r APICreateDire return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -237,15 +234,14 @@ func (a *DirectorBackendAPIService) CreateDirectorBackendExecute(r APICreateDire // APIDeleteDirectorBackendRequest represents a request for the resource. type APIDeleteDirectorBackendRequest struct { - ctx context.Context - APIService DirectorBackendAPI + ctx context.Context + APIService DirectorBackendAPI directorName string - serviceID string - versionID int32 - backendName string + serviceID string + versionID int32 + backendName string } - // Execute calls the API using the request data configured. func (r APIDeleteDirectorBackendRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteDirectorBackendExecute(r) @@ -265,12 +261,12 @@ Deletes the relationship between a Backend and a Director. The Backend is no lon */ func (a *DirectorBackendAPIService) DeleteDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APIDeleteDirectorBackendRequest { return APIDeleteDirectorBackendRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, directorName: directorName, - serviceID: serviceID, - versionID: versionID, - backendName: backendName, + serviceID: serviceID, + versionID: versionID, + backendName: backendName, } } @@ -278,10 +274,10 @@ func (a *DirectorBackendAPIService) DeleteDirectorBackend(ctx context.Context, d // @return InlineResponse200 func (a *DirectorBackendAPIService) DeleteDirectorBackendExecute(r APIDeleteDirectorBackendRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorBackendAPIService.DeleteDirectorBackend") @@ -364,7 +360,6 @@ func (a *DirectorBackendAPIService) DeleteDirectorBackendExecute(r APIDeleteDire return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -383,15 +378,14 @@ func (a *DirectorBackendAPIService) DeleteDirectorBackendExecute(r APIDeleteDire // APIGetDirectorBackendRequest represents a request for the resource. type APIGetDirectorBackendRequest struct { - ctx context.Context - APIService DirectorBackendAPI + ctx context.Context + APIService DirectorBackendAPI directorName string - serviceID string - versionID int32 - backendName string + serviceID string + versionID int32 + backendName string } - // Execute calls the API using the request data configured. func (r APIGetDirectorBackendRequest) Execute() (*DirectorBackend, *http.Response, error) { return r.APIService.GetDirectorBackendExecute(r) @@ -411,12 +405,12 @@ Returns the relationship between a Backend and a Director. If the Backend has be */ func (a *DirectorBackendAPIService) GetDirectorBackend(ctx context.Context, directorName string, serviceID string, versionID int32, backendName string) APIGetDirectorBackendRequest { return APIGetDirectorBackendRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, directorName: directorName, - serviceID: serviceID, - versionID: versionID, - backendName: backendName, + serviceID: serviceID, + versionID: versionID, + backendName: backendName, } } @@ -424,10 +418,10 @@ func (a *DirectorBackendAPIService) GetDirectorBackend(ctx context.Context, dire // @return DirectorBackend func (a *DirectorBackendAPIService) GetDirectorBackendExecute(r APIGetDirectorBackendRequest) (*DirectorBackend, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DirectorBackend + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorBackend ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorBackendAPIService.GetDirectorBackend") @@ -510,7 +504,6 @@ func (a *DirectorBackendAPIService) GetDirectorBackendExecute(r APIGetDirectorBa return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_domain.go b/fastly/api_domain.go index fe864db..a60b5cc 100644 --- a/fastly/api_domain.go +++ b/fastly/api_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type DomainAPI interface { /* - CheckDomain Validate DNS configuration for a single domain on a service + CheckDomain Validate DNS configuration for a single domain on a service - Checks the status of a specific domain's DNS record for a Service Version. Returns an array in the same format as domain/check_all. + Checks the status of a specific domain's DNS record for a Service Version. Returns an array in the same format as domain/check_all. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param domainName The name of the domain or domains associated with this service. - @return APICheckDomainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param domainName The name of the domain or domains associated with this service. + @return APICheckDomainRequest */ CheckDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APICheckDomainRequest @@ -49,14 +48,14 @@ type DomainAPI interface { CheckDomainExecute(r APICheckDomainRequest) ([]any, *http.Response, error) /* - CheckDomains Validate DNS configuration for all domains on a service + CheckDomains Validate DNS configuration for all domains on a service - Checks the status of all domains' DNS records for a Service Version. Returns an array of 3 items for each domain; the first is the details for the domain, the second is the current CNAME of the domain, and the third is a boolean indicating whether or not it has been properly setup to use Fastly. + Checks the status of all domains' DNS records for a Service Version. Returns an array of 3 items for each domain; the first is the details for the domain, the second is the current CNAME of the domain, and the third is a boolean indicating whether or not it has been properly setup to use Fastly. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICheckDomainsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICheckDomainsRequest */ CheckDomains(ctx context.Context, serviceID string, versionID int32) APICheckDomainsRequest @@ -65,14 +64,14 @@ type DomainAPI interface { CheckDomainsExecute(r APICheckDomainsRequest) ([][]any, *http.Response, error) /* - CreateDomain Add a domain name to a service + CreateDomain Add a domain name to a service - Create a domain for a particular service and version. + Create a domain for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateDomainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateDomainRequest */ CreateDomain(ctx context.Context, serviceID string, versionID int32) APICreateDomainRequest @@ -81,15 +80,15 @@ type DomainAPI interface { CreateDomainExecute(r APICreateDomainRequest) (*DomainResponse, *http.Response, error) /* - DeleteDomain Remove a domain from a service + DeleteDomain Remove a domain from a service - Delete the domain for a particular service and versions. + Delete the domain for a particular service and versions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param domainName The name of the domain or domains associated with this service. - @return APIDeleteDomainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param domainName The name of the domain or domains associated with this service. + @return APIDeleteDomainRequest */ DeleteDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIDeleteDomainRequest @@ -98,15 +97,15 @@ type DomainAPI interface { DeleteDomainExecute(r APIDeleteDomainRequest) (*InlineResponse200, *http.Response, error) /* - GetDomain Describe a domain + GetDomain Describe a domain - Get the domain for a particular service and version. + Get the domain for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param domainName The name of the domain or domains associated with this service. - @return APIGetDomainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param domainName The name of the domain or domains associated with this service. + @return APIGetDomainRequest */ GetDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIGetDomainRequest @@ -115,14 +114,14 @@ type DomainAPI interface { GetDomainExecute(r APIGetDomainRequest) (*DomainResponse, *http.Response, error) /* - ListDomains List domains + ListDomains List domains - List all the domains for a particular service and version. + List all the domains for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListDomainsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListDomainsRequest */ ListDomains(ctx context.Context, serviceID string, versionID int32) APIListDomainsRequest @@ -131,15 +130,15 @@ type DomainAPI interface { ListDomainsExecute(r APIListDomainsRequest) ([]DomainResponse, *http.Response, error) /* - UpdateDomain Update a domain + UpdateDomain Update a domain - Update the domain for a particular service and version. + Update the domain for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param domainName The name of the domain or domains associated with this service. - @return APIUpdateDomainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param domainName The name of the domain or domains associated with this service. + @return APIUpdateDomainRequest */ UpdateDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIUpdateDomainRequest @@ -153,14 +152,13 @@ type DomainAPIService service // APICheckDomainRequest represents a request for the resource. type APICheckDomainRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 domainName string } - // Execute calls the API using the request data configured. func (r APICheckDomainRequest) Execute() ([]any, *http.Response, error) { return r.APIService.CheckDomainExecute(r) @@ -180,9 +178,9 @@ Checks the status of a specific domain's DNS record for a Service Version. Retur func (a *DomainAPIService) CheckDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APICheckDomainRequest { return APICheckDomainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, domainName: domainName, } } @@ -191,10 +189,10 @@ func (a *DomainAPIService) CheckDomain(ctx context.Context, serviceID string, ve // @return []any func (a *DomainAPIService) CheckDomainExecute(r APICheckDomainRequest) ([]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.CheckDomain") @@ -276,7 +274,6 @@ func (a *DomainAPIService) CheckDomainExecute(r APICheckDomainRequest) ([]any, * return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -295,13 +292,12 @@ func (a *DomainAPIService) CheckDomainExecute(r APICheckDomainRequest) ([]any, * // APICheckDomainsRequest represents a request for the resource. type APICheckDomainsRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APICheckDomainsRequest) Execute() ([][]any, *http.Response, error) { return r.APIService.CheckDomainsExecute(r) @@ -320,9 +316,9 @@ Checks the status of all domains' DNS records for a Service Version. Returns an func (a *DomainAPIService) CheckDomains(ctx context.Context, serviceID string, versionID int32) APICheckDomainsRequest { return APICheckDomainsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -330,10 +326,10 @@ func (a *DomainAPIService) CheckDomains(ctx context.Context, serviceID string, v // @return [][]any func (a *DomainAPIService) CheckDomainsExecute(r APICheckDomainsRequest) ([][]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue [][]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue [][]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.CheckDomains") @@ -414,7 +410,6 @@ func (a *DomainAPIService) CheckDomainsExecute(r APICheckDomainsRequest) ([][]an return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -433,12 +428,12 @@ func (a *DomainAPIService) CheckDomainsExecute(r APICheckDomainsRequest) ([][]an // APICreateDomainRequest represents a request for the resource. type APICreateDomainRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 - comment *string - name *string + serviceID string + versionID int32 + comment *string + name *string } // Comment A freeform descriptive note. @@ -446,6 +441,7 @@ func (r *APICreateDomainRequest) Comment(comment string) *APICreateDomainRequest r.comment = &comment return r } + // Name The name of the domain or domains associated with this service. func (r *APICreateDomainRequest) Name(name string) *APICreateDomainRequest { r.name = &name @@ -470,9 +466,9 @@ Create a domain for a particular service and version. func (a *DomainAPIService) CreateDomain(ctx context.Context, serviceID string, versionID int32) APICreateDomainRequest { return APICreateDomainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -480,10 +476,10 @@ func (a *DomainAPIService) CreateDomain(ctx context.Context, serviceID string, v // @return DomainResponse func (a *DomainAPIService) CreateDomainExecute(r APICreateDomainRequest) (*DomainResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.CreateDomain") @@ -570,7 +566,6 @@ func (a *DomainAPIService) CreateDomainExecute(r APICreateDomainRequest) (*Domai return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -589,14 +584,13 @@ func (a *DomainAPIService) CreateDomainExecute(r APICreateDomainRequest) (*Domai // APIDeleteDomainRequest represents a request for the resource. type APIDeleteDomainRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 domainName string } - // Execute calls the API using the request data configured. func (r APIDeleteDomainRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteDomainExecute(r) @@ -616,9 +610,9 @@ Delete the domain for a particular service and versions. func (a *DomainAPIService) DeleteDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIDeleteDomainRequest { return APIDeleteDomainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, domainName: domainName, } } @@ -627,10 +621,10 @@ func (a *DomainAPIService) DeleteDomain(ctx context.Context, serviceID string, v // @return InlineResponse200 func (a *DomainAPIService) DeleteDomainExecute(r APIDeleteDomainRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.DeleteDomain") @@ -712,7 +706,6 @@ func (a *DomainAPIService) DeleteDomainExecute(r APIDeleteDomainRequest) (*Inlin return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -731,14 +724,13 @@ func (a *DomainAPIService) DeleteDomainExecute(r APIDeleteDomainRequest) (*Inlin // APIGetDomainRequest represents a request for the resource. type APIGetDomainRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 domainName string } - // Execute calls the API using the request data configured. func (r APIGetDomainRequest) Execute() (*DomainResponse, *http.Response, error) { return r.APIService.GetDomainExecute(r) @@ -758,9 +750,9 @@ Get the domain for a particular service and version. func (a *DomainAPIService) GetDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIGetDomainRequest { return APIGetDomainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, domainName: domainName, } } @@ -769,10 +761,10 @@ func (a *DomainAPIService) GetDomain(ctx context.Context, serviceID string, vers // @return DomainResponse func (a *DomainAPIService) GetDomainExecute(r APIGetDomainRequest) (*DomainResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.GetDomain") @@ -854,7 +846,6 @@ func (a *DomainAPIService) GetDomainExecute(r APIGetDomainRequest) (*DomainRespo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -873,13 +864,12 @@ func (a *DomainAPIService) GetDomainExecute(r APIGetDomainRequest) (*DomainRespo // APIListDomainsRequest represents a request for the resource. type APIListDomainsRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListDomainsRequest) Execute() ([]DomainResponse, *http.Response, error) { return r.APIService.ListDomainsExecute(r) @@ -898,9 +888,9 @@ List all the domains for a particular service and version. func (a *DomainAPIService) ListDomains(ctx context.Context, serviceID string, versionID int32) APIListDomainsRequest { return APIListDomainsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -908,10 +898,10 @@ func (a *DomainAPIService) ListDomains(ctx context.Context, serviceID string, ve // @return []DomainResponse func (a *DomainAPIService) ListDomainsExecute(r APIListDomainsRequest) ([]DomainResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []DomainResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []DomainResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.ListDomains") @@ -992,7 +982,6 @@ func (a *DomainAPIService) ListDomainsExecute(r APIListDomainsRequest) ([]Domain return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1011,13 +1000,13 @@ func (a *DomainAPIService) ListDomainsExecute(r APIListDomainsRequest) ([]Domain // APIUpdateDomainRequest represents a request for the resource. type APIUpdateDomainRequest struct { - ctx context.Context + ctx context.Context APIService DomainAPI - serviceID string - versionID int32 + serviceID string + versionID int32 domainName string - comment *string - name *string + comment *string + name *string } // Comment A freeform descriptive note. @@ -1025,6 +1014,7 @@ func (r *APIUpdateDomainRequest) Comment(comment string) *APIUpdateDomainRequest r.comment = &comment return r } + // Name The name of the domain or domains associated with this service. func (r *APIUpdateDomainRequest) Name(name string) *APIUpdateDomainRequest { r.name = &name @@ -1050,9 +1040,9 @@ Update the domain for a particular service and version. func (a *DomainAPIService) UpdateDomain(ctx context.Context, serviceID string, versionID int32, domainName string) APIUpdateDomainRequest { return APIUpdateDomainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, domainName: domainName, } } @@ -1061,10 +1051,10 @@ func (a *DomainAPIService) UpdateDomain(ctx context.Context, serviceID string, v // @return DomainResponse func (a *DomainAPIService) UpdateDomainExecute(r APIUpdateDomainRequest) (*DomainResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainAPIService.UpdateDomain") @@ -1152,7 +1142,6 @@ func (a *DomainAPIService) UpdateDomainExecute(r APIUpdateDomainRequest) (*Domai return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_domain_inspector_historical.go b/fastly/api_domain_inspector_historical.go index 68feebb..9ed3d23 100644 --- a/fastly/api_domain_inspector_historical.go +++ b/fastly/api_domain_inspector_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type DomainInspectorHistoricalAPI interface { /* - GetDomainInspectorHistorical Get historical domain data for a service + GetDomainInspectorHistorical Get historical domain data for a service - Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, region, or POP. + Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, region, or POP. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetDomainInspectorHistoricalRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorHistoricalRequest */ GetDomainInspectorHistorical(ctx context.Context, serviceID string) APIGetDomainInspectorHistoricalRequest @@ -53,19 +52,19 @@ type DomainInspectorHistoricalAPIService service // APIGetDomainInspectorHistoricalRequest represents a request for the resource. type APIGetDomainInspectorHistoricalRequest struct { - ctx context.Context + ctx context.Context APIService DomainInspectorHistoricalAPI - serviceID string - start *string - end *string + serviceID string + start *string + end *string downsample *string - metric *string - groupBy *string - limit *string - cursor *string - region *string + metric *string + groupBy *string + limit *string + cursor *string + region *string datacenter *string - domain *string + domain *string } // Start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. @@ -73,46 +72,55 @@ func (r *APIGetDomainInspectorHistoricalRequest) Start(start string) *APIGetDoma r.start = &start return r } + // End A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. func (r *APIGetDomainInspectorHistoricalRequest) End(end string) *APIGetDomainInspectorHistoricalRequest { r.end = &end return r } + // Downsample Duration of sample windows. func (r *APIGetDomainInspectorHistoricalRequest) Downsample(downsample string) *APIGetDomainInspectorHistoricalRequest { r.downsample = &downsample return r } + // Metric The metrics to retrieve. Multiple values should be comma-separated. func (r *APIGetDomainInspectorHistoricalRequest) Metric(metric string) *APIGetDomainInspectorHistoricalRequest { r.metric = &metric return r } -// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs). + +// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs). func (r *APIGetDomainInspectorHistoricalRequest) GroupBy(groupBy string) *APIGetDomainInspectorHistoricalRequest { r.groupBy = &groupBy return r } + // Limit Number of results per page. The maximum is 200. func (r *APIGetDomainInspectorHistoricalRequest) Limit(limit string) *APIGetDomainInspectorHistoricalRequest { r.limit = &limit return r } + // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. func (r *APIGetDomainInspectorHistoricalRequest) Cursor(cursor string) *APIGetDomainInspectorHistoricalRequest { r.cursor = &cursor return r } -// Region Limit query to one or more specific geographic regions. Values should be comma-separated. + +// Region Limit query to one or more specific geographic regions. Values should be comma-separated. func (r *APIGetDomainInspectorHistoricalRequest) Region(region string) *APIGetDomainInspectorHistoricalRequest { r.region = ®ion return r } + // Datacenter Limit query to one or more specific POPs. Values should be comma-separated. func (r *APIGetDomainInspectorHistoricalRequest) Datacenter(datacenter string) *APIGetDomainInspectorHistoricalRequest { r.datacenter = &datacenter return r } + // Domain Limit query to one or more specific domains. Values should be comma-separated. func (r *APIGetDomainInspectorHistoricalRequest) Domain(domain string) *APIGetDomainInspectorHistoricalRequest { r.domain = &domain @@ -137,8 +145,8 @@ Fetches historical domain metrics for a given Fastly service, optionally filteri func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistorical(ctx context.Context, serviceID string) APIGetDomainInspectorHistoricalRequest { return APIGetDomainInspectorHistoricalRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -146,10 +154,10 @@ func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistorical(ctx c // @return HistoricalDomainsResponse func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistoricalExecute(r APIGetDomainInspectorHistoricalRequest) (*HistoricalDomainsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalDomainsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalDomainsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorHistoricalAPIService.GetDomainInspectorHistorical") @@ -259,7 +267,6 @@ func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistoricalExecut return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_domain_inspector_realtime.go b/fastly/api_domain_inspector_realtime.go index 4fbd899..5f04618 100644 --- a/fastly/api_domain_inspector_realtime.go +++ b/fastly/api_domain_inspector_realtime.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type DomainInspectorRealtimeAPI interface { /* - GetDomainInspectorLast120Seconds Get real-time domain data for the last 120 seconds + GetDomainInspectorLast120Seconds Get real-time domain data for the last 120 seconds - Get data for the 120 seconds preceding the latest timestamp available for a service. + Get data for the 120 seconds preceding the latest timestamp available for a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetDomainInspectorLast120SecondsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorLast120SecondsRequest */ GetDomainInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetDomainInspectorLast120SecondsRequest @@ -47,14 +46,14 @@ type DomainInspectorRealtimeAPI interface { GetDomainInspectorLast120SecondsExecute(r APIGetDomainInspectorLast120SecondsRequest) (*DomainInspector, *http.Response, error) /* - GetDomainInspectorLastMaxEntries Get a limited number of real-time domain data entries + GetDomainInspectorLastMaxEntries Get a limited number of real-time domain data entries - Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param maxEntries Maximum number of results to show. - @return APIGetDomainInspectorLastMaxEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to show. + @return APIGetDomainInspectorLastMaxEntriesRequest */ GetDomainInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetDomainInspectorLastMaxEntriesRequest @@ -63,16 +62,16 @@ type DomainInspectorRealtimeAPI interface { GetDomainInspectorLastMaxEntriesExecute(r APIGetDomainInspectorLastMaxEntriesRequest) (*DomainInspector, *http.Response, error) /* - GetDomainInspectorLastSecond Get real-time domain data from a specified time + GetDomainInspectorLastSecond Get real-time domain data from a specified time - Get real-time domain data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. -Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + Get real-time domain data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. + Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param startTimestamp Timestamp in seconds (Unix epoch time). - @return APIGetDomainInspectorLastSecondRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetDomainInspectorLastSecondRequest */ GetDomainInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetDomainInspectorLastSecondRequest @@ -86,12 +85,11 @@ type DomainInspectorRealtimeAPIService service // APIGetDomainInspectorLast120SecondsRequest represents a request for the resource. type APIGetDomainInspectorLast120SecondsRequest struct { - ctx context.Context + ctx context.Context APIService DomainInspectorRealtimeAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetDomainInspectorLast120SecondsRequest) Execute() (*DomainInspector, *http.Response, error) { return r.APIService.GetDomainInspectorLast120SecondsExecute(r) @@ -109,8 +107,8 @@ Get data for the 120 seconds preceding the latest timestamp available for a serv func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetDomainInspectorLast120SecondsRequest { return APIGetDomainInspectorLast120SecondsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -118,10 +116,10 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120Seconds(ctx // @return DomainInspector func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120SecondsExecute(r APIGetDomainInspectorLast120SecondsRequest) (*DomainInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLast120Seconds") @@ -201,7 +199,6 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120SecondsExec return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -220,13 +217,12 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120SecondsExec // APIGetDomainInspectorLastMaxEntriesRequest represents a request for the resource. type APIGetDomainInspectorLastMaxEntriesRequest struct { - ctx context.Context + ctx context.Context APIService DomainInspectorRealtimeAPI - serviceID string + serviceID string maxEntries int32 } - // Execute calls the API using the request data configured. func (r APIGetDomainInspectorLastMaxEntriesRequest) Execute() (*DomainInspector, *http.Response, error) { return r.APIService.GetDomainInspectorLastMaxEntriesExecute(r) @@ -245,8 +241,8 @@ Get data for the `max_entries` seconds preceding the latest timestamp available func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetDomainInspectorLastMaxEntriesRequest { return APIGetDomainInspectorLastMaxEntriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, maxEntries: maxEntries, } } @@ -255,10 +251,10 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntries(ctx // @return DomainInspector func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntriesExecute(r APIGetDomainInspectorLastMaxEntriesRequest) (*DomainInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastMaxEntries") @@ -339,7 +335,6 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntriesExec return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -358,13 +353,12 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntriesExec // APIGetDomainInspectorLastSecondRequest represents a request for the resource. type APIGetDomainInspectorLastSecondRequest struct { - ctx context.Context - APIService DomainInspectorRealtimeAPI - serviceID string + ctx context.Context + APIService DomainInspectorRealtimeAPI + serviceID string startTimestamp int32 } - // Execute calls the API using the request data configured. func (r APIGetDomainInspectorLastSecondRequest) Execute() (*DomainInspector, *http.Response, error) { return r.APIService.GetDomainInspectorLastSecondExecute(r) @@ -384,9 +378,9 @@ Due to processing latency, the earliest entry in the response dataset may be ear */ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetDomainInspectorLastSecondRequest { return APIGetDomainInspectorLastSecondRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, startTimestamp: startTimestamp, } } @@ -395,10 +389,10 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecond(ctx con // @return DomainInspector func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecondExecute(r APIGetDomainInspectorLastSecondRequest) (*DomainInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DomainInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastSecond") @@ -479,7 +473,6 @@ func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecondExecute( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_domain_ownerships.go b/fastly/api_domain_ownerships.go index b23b81b..88bb67e 100644 --- a/fastly/api_domain_ownerships.go +++ b/fastly/api_domain_ownerships.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type DomainOwnershipsAPI interface { /* - ListDomainOwnerships List domain-ownerships + ListDomainOwnerships List domain-ownerships - List all domain-ownerships. + List all domain-ownerships. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListDomainOwnershipsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListDomainOwnershipsRequest */ ListDomainOwnerships(ctx context.Context) APIListDomainOwnershipsRequest @@ -50,11 +49,10 @@ type DomainOwnershipsAPIService service // APIListDomainOwnershipsRequest represents a request for the resource. type APIListDomainOwnershipsRequest struct { - ctx context.Context + ctx context.Context APIService DomainOwnershipsAPI } - // Execute calls the API using the request data configured. func (r APIListDomainOwnershipsRequest) Execute() (*InlineResponse2002, *http.Response, error) { return r.APIService.ListDomainOwnershipsExecute(r) @@ -71,7 +69,7 @@ List all domain-ownerships. func (a *DomainOwnershipsAPIService) ListDomainOwnerships(ctx context.Context) APIListDomainOwnershipsRequest { return APIListDomainOwnershipsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -79,10 +77,10 @@ func (a *DomainOwnershipsAPIService) ListDomainOwnerships(ctx context.Context) A // @return InlineResponse2002 func (a *DomainOwnershipsAPIService) ListDomainOwnershipsExecute(r APIListDomainOwnershipsRequest) (*InlineResponse2002, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2002 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2002 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainOwnershipsAPIService.ListDomainOwnerships") @@ -161,7 +159,6 @@ func (a *DomainOwnershipsAPIService) ListDomainOwnershipsExecute(r APIListDomain return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_enabled_products.go b/fastly/api_enabled_products.go index 74b1c9e..13dd213 100644 --- a/fastly/api_enabled_products.go +++ b/fastly/api_enabled_products.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type EnabledProductsAPI interface { /* - DisableProduct Disable a product + DisableProduct Disable a product - Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. + Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productID - @param serviceID Alphanumeric string identifying the service. - @return APIDisableProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param productID + @param serviceID Alphanumeric string identifying the service. + @return APIDisableProductRequest */ DisableProduct(ctx context.Context, productID string, serviceID string) APIDisableProductRequest @@ -47,14 +46,14 @@ type EnabledProductsAPI interface { DisableProductExecute(r APIDisableProductRequest) (*http.Response, error) /* - EnableProduct Enable a product + EnableProduct Enable a product - Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. + Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productID - @param serviceID Alphanumeric string identifying the service. - @return APIEnableProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param productID + @param serviceID Alphanumeric string identifying the service. + @return APIEnableProductRequest */ EnableProduct(ctx context.Context, productID string, serviceID string) APIEnableProductRequest @@ -63,14 +62,14 @@ type EnabledProductsAPI interface { EnableProductExecute(r APIEnableProductRequest) (*EnabledProductResponse, *http.Response, error) /* - GetEnabledProduct Get enabled product + GetEnabledProduct Get enabled product - Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. + Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, and `ngwaf`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productID - @param serviceID Alphanumeric string identifying the service. - @return APIGetEnabledProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param productID + @param serviceID Alphanumeric string identifying the service. + @return APIGetEnabledProductRequest */ GetEnabledProduct(ctx context.Context, productID string, serviceID string) APIGetEnabledProductRequest @@ -79,14 +78,14 @@ type EnabledProductsAPI interface { GetEnabledProductExecute(r APIGetEnabledProductRequest) (*EnabledProductResponse, *http.Response, error) /* - GetProductConfiguration Get configuration for a product + GetProductConfiguration Get configuration for a product - Get configuration for an enabled product on a service. Supported product IDs: `ngwaf`. + Get configuration for an enabled product on a service. Supported product IDs: `ngwaf`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productID - @param serviceID Alphanumeric string identifying the service. - @return APIGetProductConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param productID + @param serviceID Alphanumeric string identifying the service. + @return APIGetProductConfigurationRequest */ GetProductConfiguration(ctx context.Context, productID string, serviceID string) APIGetProductConfigurationRequest @@ -95,14 +94,14 @@ type EnabledProductsAPI interface { GetProductConfigurationExecute(r APIGetProductConfigurationRequest) (*ConfiguredProductResponse, *http.Response, error) /* - SetProductConfiguration Update configuration for a product + SetProductConfiguration Update configuration for a product - Update configuration for an enabled product on a service. Supported product IDs: `ngwaf`. + Update configuration for an enabled product on a service. Supported product IDs: `ngwaf`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productID - @param serviceID Alphanumeric string identifying the service. - @return APISetProductConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param productID + @param serviceID Alphanumeric string identifying the service. + @return APISetProductConfigurationRequest */ SetProductConfiguration(ctx context.Context, productID string, serviceID string) APISetProductConfigurationRequest @@ -116,13 +115,12 @@ type EnabledProductsAPIService service // APIDisableProductRequest represents a request for the resource. type APIDisableProductRequest struct { - ctx context.Context + ctx context.Context APIService EnabledProductsAPI - productID string - serviceID string + productID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIDisableProductRequest) Execute() (*http.Response, error) { return r.APIService.DisableProductExecute(r) @@ -141,18 +139,18 @@ Disable a product on a service. Supported product IDs: `brotli_compression`,`dom func (a *EnabledProductsAPIService) DisableProduct(ctx context.Context, productID string, serviceID string) APIDisableProductRequest { return APIDisableProductRequest{ APIService: a, - ctx: ctx, - productID: productID, - serviceID: serviceID, + ctx: ctx, + productID: productID, + serviceID: serviceID, } } // DisableProductExecute executes the request func (a *EnabledProductsAPIService) DisableProductExecute(r APIDisableProductRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnabledProductsAPIService.DisableProduct") @@ -224,7 +222,6 @@ func (a *EnabledProductsAPIService) DisableProductExecute(r APIDisableProductReq return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -243,10 +240,10 @@ func (a *EnabledProductsAPIService) DisableProductExecute(r APIDisableProductReq // APIEnableProductRequest represents a request for the resource. type APIEnableProductRequest struct { - ctx context.Context - APIService EnabledProductsAPI - productID string - serviceID string + ctx context.Context + APIService EnabledProductsAPI + productID string + serviceID string setWorkspaceID *SetWorkspaceID } @@ -274,9 +271,9 @@ Enable a product on a service. Supported product IDs: `brotli_compression`,`doma func (a *EnabledProductsAPIService) EnableProduct(ctx context.Context, productID string, serviceID string) APIEnableProductRequest { return APIEnableProductRequest{ APIService: a, - ctx: ctx, - productID: productID, - serviceID: serviceID, + ctx: ctx, + productID: productID, + serviceID: serviceID, } } @@ -284,10 +281,10 @@ func (a *EnabledProductsAPIService) EnableProduct(ctx context.Context, productID // @return EnabledProductResponse func (a *EnabledProductsAPIService) EnableProductExecute(r APIEnableProductRequest) (*EnabledProductResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *EnabledProductResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *EnabledProductResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnabledProductsAPIService.EnableProduct") @@ -370,7 +367,6 @@ func (a *EnabledProductsAPIService) EnableProductExecute(r APIEnableProductReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -389,13 +385,12 @@ func (a *EnabledProductsAPIService) EnableProductExecute(r APIEnableProductReque // APIGetEnabledProductRequest represents a request for the resource. type APIGetEnabledProductRequest struct { - ctx context.Context + ctx context.Context APIService EnabledProductsAPI - productID string - serviceID string + productID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetEnabledProductRequest) Execute() (*EnabledProductResponse, *http.Response, error) { return r.APIService.GetEnabledProductExecute(r) @@ -414,9 +409,9 @@ Get enabled product on a service. Supported product IDs: `brotli_compression`,`d func (a *EnabledProductsAPIService) GetEnabledProduct(ctx context.Context, productID string, serviceID string) APIGetEnabledProductRequest { return APIGetEnabledProductRequest{ APIService: a, - ctx: ctx, - productID: productID, - serviceID: serviceID, + ctx: ctx, + productID: productID, + serviceID: serviceID, } } @@ -424,10 +419,10 @@ func (a *EnabledProductsAPIService) GetEnabledProduct(ctx context.Context, produ // @return EnabledProductResponse func (a *EnabledProductsAPIService) GetEnabledProductExecute(r APIGetEnabledProductRequest) (*EnabledProductResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *EnabledProductResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *EnabledProductResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnabledProductsAPIService.GetEnabledProduct") @@ -508,7 +503,6 @@ func (a *EnabledProductsAPIService) GetEnabledProductExecute(r APIGetEnabledProd return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -527,13 +521,12 @@ func (a *EnabledProductsAPIService) GetEnabledProductExecute(r APIGetEnabledProd // APIGetProductConfigurationRequest represents a request for the resource. type APIGetProductConfigurationRequest struct { - ctx context.Context + ctx context.Context APIService EnabledProductsAPI - productID string - serviceID string + productID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetProductConfigurationRequest) Execute() (*ConfiguredProductResponse, *http.Response, error) { return r.APIService.GetProductConfigurationExecute(r) @@ -552,9 +545,9 @@ Get configuration for an enabled product on a service. Supported product IDs: `n func (a *EnabledProductsAPIService) GetProductConfiguration(ctx context.Context, productID string, serviceID string) APIGetProductConfigurationRequest { return APIGetProductConfigurationRequest{ APIService: a, - ctx: ctx, - productID: productID, - serviceID: serviceID, + ctx: ctx, + productID: productID, + serviceID: serviceID, } } @@ -562,10 +555,10 @@ func (a *EnabledProductsAPIService) GetProductConfiguration(ctx context.Context, // @return ConfiguredProductResponse func (a *EnabledProductsAPIService) GetProductConfigurationExecute(r APIGetProductConfigurationRequest) (*ConfiguredProductResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfiguredProductResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfiguredProductResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnabledProductsAPIService.GetProductConfiguration") @@ -646,7 +639,6 @@ func (a *EnabledProductsAPIService) GetProductConfigurationExecute(r APIGetProdu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -665,10 +657,10 @@ func (a *EnabledProductsAPIService) GetProductConfigurationExecute(r APIGetProdu // APISetProductConfigurationRequest represents a request for the resource. type APISetProductConfigurationRequest struct { - ctx context.Context - APIService EnabledProductsAPI - productID string - serviceID string + ctx context.Context + APIService EnabledProductsAPI + productID string + serviceID string setConfiguration *SetConfiguration } @@ -696,9 +688,9 @@ Update configuration for an enabled product on a service. Supported product IDs: func (a *EnabledProductsAPIService) SetProductConfiguration(ctx context.Context, productID string, serviceID string) APISetProductConfigurationRequest { return APISetProductConfigurationRequest{ APIService: a, - ctx: ctx, - productID: productID, - serviceID: serviceID, + ctx: ctx, + productID: productID, + serviceID: serviceID, } } @@ -706,10 +698,10 @@ func (a *EnabledProductsAPIService) SetProductConfiguration(ctx context.Context, // @return ConfiguredProductResponse func (a *EnabledProductsAPIService) SetProductConfigurationExecute(r APISetProductConfigurationRequest) (*ConfiguredProductResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *ConfiguredProductResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ConfiguredProductResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnabledProductsAPIService.SetProductConfiguration") @@ -792,7 +784,6 @@ func (a *EnabledProductsAPIService) SetProductConfigurationExecute(r APISetProdu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_events.go b/fastly/api_events.go index 48d1912..f26e0d9 100644 --- a/fastly/api_events.go +++ b/fastly/api_events.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type EventsAPI interface { /* - GetEvent Get an event + GetEvent Get an event - Get a specific event. + Get a specific event. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventID Alphanumeric string identifying an event. - @return APIGetEventRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventID Alphanumeric string identifying an event. + @return APIGetEventRequest */ GetEvent(ctx context.Context, eventID string) APIGetEventRequest @@ -47,12 +46,12 @@ type EventsAPI interface { GetEventExecute(r APIGetEventRequest) (*EventResponse, *http.Response, error) /* - ListEvents List events + ListEvents List events - List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date. + List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListEventsRequest */ ListEvents(ctx context.Context) APIListEventsRequest @@ -66,12 +65,11 @@ type EventsAPIService service // APIGetEventRequest represents a request for the resource. type APIGetEventRequest struct { - ctx context.Context + ctx context.Context APIService EventsAPI - eventID string + eventID string } - // Execute calls the API using the request data configured. func (r APIGetEventRequest) Execute() (*EventResponse, *http.Response, error) { return r.APIService.GetEventExecute(r) @@ -89,8 +87,8 @@ Get a specific event. func (a *EventsAPIService) GetEvent(ctx context.Context, eventID string) APIGetEventRequest { return APIGetEventRequest{ APIService: a, - ctx: ctx, - eventID: eventID, + ctx: ctx, + eventID: eventID, } } @@ -98,10 +96,10 @@ func (a *EventsAPIService) GetEvent(ctx context.Context, eventID string) APIGetE // @return EventResponse func (a *EventsAPIService) GetEventExecute(r APIGetEventRequest) (*EventResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *EventResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *EventResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.GetEvent") @@ -181,7 +179,6 @@ func (a *EventsAPIService) GetEventExecute(r APIGetEventRequest) (*EventResponse return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -200,21 +197,21 @@ func (a *EventsAPIService) GetEventExecute(r APIGetEventRequest) (*EventResponse // APIListEventsRequest represents a request for the resource. type APIListEventsRequest struct { - ctx context.Context - APIService EventsAPI - filterCustomerID *string - filterEventType *string - filterServiceID *string - filterUserID *string - filterTokenID *string - filterCreatedAt *string + ctx context.Context + APIService EventsAPI + filterCustomerID *string + filterEventType *string + filterServiceID *string + filterUserID *string + filterTokenID *string + filterCreatedAt *string filterCreatedAtLte *string - filterCreatedAtLt *string + filterCreatedAtLt *string filterCreatedAtGte *string - filterCreatedAtGt *string - pageNumber *int32 - pageSize *int32 - sort *string + filterCreatedAtGt *string + pageNumber *int32 + pageSize *int32 + sort *string } // FilterCustomerID Limit the results returned to a specific customer. @@ -222,61 +219,73 @@ func (r *APIListEventsRequest) FilterCustomerID(filterCustomerID string) *APILis r.filterCustomerID = &filterCustomerID return r } + // FilterEventType Limit the returned events to a specific `event_type`. func (r *APIListEventsRequest) FilterEventType(filterEventType string) *APIListEventsRequest { r.filterEventType = &filterEventType return r } + // FilterServiceID Limit the results returned to a specific service. func (r *APIListEventsRequest) FilterServiceID(filterServiceID string) *APIListEventsRequest { r.filterServiceID = &filterServiceID return r } + // FilterUserID Limit the results returned to a specific user. func (r *APIListEventsRequest) FilterUserID(filterUserID string) *APIListEventsRequest { r.filterUserID = &filterUserID return r } + // FilterTokenID Limit the returned events to a specific token. func (r *APIListEventsRequest) FilterTokenID(filterTokenID string) *APIListEventsRequest { r.filterTokenID = &filterTokenID return r } -// FilterCreatedAt Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). + +// FilterCreatedAt Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). func (r *APIListEventsRequest) FilterCreatedAt(filterCreatedAt string) *APIListEventsRequest { r.filterCreatedAt = &filterCreatedAt return r } -// FilterCreatedAtLte Return events on and before a date and time in ISO 8601 format. + +// FilterCreatedAtLte Return events on and before a date and time in ISO 8601 format. func (r *APIListEventsRequest) FilterCreatedAtLte(filterCreatedAtLte string) *APIListEventsRequest { r.filterCreatedAtLte = &filterCreatedAtLte return r } -// FilterCreatedAtLt Return events before a date and time in ISO 8601 format. + +// FilterCreatedAtLt Return events before a date and time in ISO 8601 format. func (r *APIListEventsRequest) FilterCreatedAtLt(filterCreatedAtLt string) *APIListEventsRequest { r.filterCreatedAtLt = &filterCreatedAtLt return r } -// FilterCreatedAtGte Return events on and after a date and time in ISO 8601 format. + +// FilterCreatedAtGte Return events on and after a date and time in ISO 8601 format. func (r *APIListEventsRequest) FilterCreatedAtGte(filterCreatedAtGte string) *APIListEventsRequest { r.filterCreatedAtGte = &filterCreatedAtGte return r } -// FilterCreatedAtGt Return events after a date and time in ISO 8601 format. + +// FilterCreatedAtGt Return events after a date and time in ISO 8601 format. func (r *APIListEventsRequest) FilterCreatedAtGt(filterCreatedAtGt string) *APIListEventsRequest { r.filterCreatedAtGt = &filterCreatedAtGt return r } + // PageNumber Current page. func (r *APIListEventsRequest) PageNumber(pageNumber int32) *APIListEventsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListEventsRequest) PageSize(pageSize int32) *APIListEventsRequest { r.pageSize = &pageSize return r } + // Sort The order in which to list the results by creation date. func (r *APIListEventsRequest) Sort(sort string) *APIListEventsRequest { r.sort = &sort @@ -299,7 +308,7 @@ List all events for a particular customer. Events can be filtered by user, custo func (a *EventsAPIService) ListEvents(ctx context.Context) APIListEventsRequest { return APIListEventsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -307,10 +316,10 @@ func (a *EventsAPIService) ListEvents(ctx context.Context) APIListEventsRequest // @return EventsResponse func (a *EventsAPIService) ListEventsExecute(r APIListEventsRequest) (*EventsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *EventsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *EventsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.ListEvents") @@ -428,7 +437,6 @@ func (a *EventsAPIService) ListEventsExecute(r APIListEventsRequest) (*EventsRes return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_gzip.go b/fastly/api_gzip.go index bb90d79..239f711 100644 --- a/fastly/api_gzip.go +++ b/fastly/api_gzip.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type GzipAPI interface { /* - CreateGzipConfig Create a gzip configuration + CreateGzipConfig Create a gzip configuration - Create a named gzip configuration on a particular service and version. + Create a named gzip configuration on a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateGzipConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateGzipConfigRequest */ CreateGzipConfig(ctx context.Context, serviceID string, versionID int32) APICreateGzipConfigRequest @@ -48,15 +47,15 @@ type GzipAPI interface { CreateGzipConfigExecute(r APICreateGzipConfigRequest) (*GzipResponse, *http.Response, error) /* - DeleteGzipConfig Delete a gzip configuration + DeleteGzipConfig Delete a gzip configuration - Delete a named gzip configuration on a particular service and version. + Delete a named gzip configuration on a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param gzipName Name of the gzip configuration. - @return APIDeleteGzipConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param gzipName Name of the gzip configuration. + @return APIDeleteGzipConfigRequest */ DeleteGzipConfig(ctx context.Context, serviceID string, versionID int32, gzipName string) APIDeleteGzipConfigRequest @@ -65,15 +64,15 @@ type GzipAPI interface { DeleteGzipConfigExecute(r APIDeleteGzipConfigRequest) (*InlineResponse200, *http.Response, error) /* - GetGzipConfigs Get a gzip configuration + GetGzipConfigs Get a gzip configuration - Get the gzip configuration for a particular service, version, and name. + Get the gzip configuration for a particular service, version, and name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param gzipName Name of the gzip configuration. - @return APIGetGzipConfigsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param gzipName Name of the gzip configuration. + @return APIGetGzipConfigsRequest */ GetGzipConfigs(ctx context.Context, serviceID string, versionID int32, gzipName string) APIGetGzipConfigsRequest @@ -82,14 +81,14 @@ type GzipAPI interface { GetGzipConfigsExecute(r APIGetGzipConfigsRequest) (*GzipResponse, *http.Response, error) /* - ListGzipConfigs List gzip configurations + ListGzipConfigs List gzip configurations - List all gzip configurations for a particular service and version. + List all gzip configurations for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListGzipConfigsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListGzipConfigsRequest */ ListGzipConfigs(ctx context.Context, serviceID string, versionID int32) APIListGzipConfigsRequest @@ -98,15 +97,15 @@ type GzipAPI interface { ListGzipConfigsExecute(r APIListGzipConfigsRequest) ([]GzipResponse, *http.Response, error) /* - UpdateGzipConfig Update a gzip configuration + UpdateGzipConfig Update a gzip configuration - Update a named gzip configuration on a particular service and version. + Update a named gzip configuration on a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param gzipName Name of the gzip configuration. - @return APIUpdateGzipConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param gzipName Name of the gzip configuration. + @return APIUpdateGzipConfigRequest */ UpdateGzipConfig(ctx context.Context, serviceID string, versionID int32, gzipName string) APIUpdateGzipConfigRequest @@ -120,14 +119,14 @@ type GzipAPIService service // APICreateGzipConfigRequest represents a request for the resource. type APICreateGzipConfigRequest struct { - ctx context.Context - APIService GzipAPI - serviceID string - versionID int32 + ctx context.Context + APIService GzipAPI + serviceID string + versionID int32 cacheCondition *string - contentTypes *string - extensions *string - name *string + contentTypes *string + extensions *string + name *string } // CacheCondition Name of the cache condition controlling when this configuration applies. @@ -135,16 +134,19 @@ func (r *APICreateGzipConfigRequest) CacheCondition(cacheCondition string) *APIC r.cacheCondition = &cacheCondition return r } + // ContentTypes Space-separated list of content types to compress. If you omit this field a default list will be used. func (r *APICreateGzipConfigRequest) ContentTypes(contentTypes string) *APICreateGzipConfigRequest { r.contentTypes = &contentTypes return r } + // Extensions Space-separated list of file extensions to compress. If you omit this field a default list will be used. func (r *APICreateGzipConfigRequest) Extensions(extensions string) *APICreateGzipConfigRequest { r.extensions = &extensions return r } + // Name Name of the gzip configuration. func (r *APICreateGzipConfigRequest) Name(name string) *APICreateGzipConfigRequest { r.name = &name @@ -169,9 +171,9 @@ Create a named gzip configuration on a particular service and version. func (a *GzipAPIService) CreateGzipConfig(ctx context.Context, serviceID string, versionID int32) APICreateGzipConfigRequest { return APICreateGzipConfigRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -179,10 +181,10 @@ func (a *GzipAPIService) CreateGzipConfig(ctx context.Context, serviceID string, // @return GzipResponse func (a *GzipAPIService) CreateGzipConfigExecute(r APICreateGzipConfigRequest) (*GzipResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *GzipResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *GzipResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GzipAPIService.CreateGzipConfig") @@ -275,7 +277,6 @@ func (a *GzipAPIService) CreateGzipConfigExecute(r APICreateGzipConfigRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -294,14 +295,13 @@ func (a *GzipAPIService) CreateGzipConfigExecute(r APICreateGzipConfigRequest) ( // APIDeleteGzipConfigRequest represents a request for the resource. type APIDeleteGzipConfigRequest struct { - ctx context.Context + ctx context.Context APIService GzipAPI - serviceID string - versionID int32 - gzipName string + serviceID string + versionID int32 + gzipName string } - // Execute calls the API using the request data configured. func (r APIDeleteGzipConfigRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteGzipConfigExecute(r) @@ -321,10 +321,10 @@ Delete a named gzip configuration on a particular service and version. func (a *GzipAPIService) DeleteGzipConfig(ctx context.Context, serviceID string, versionID int32, gzipName string) APIDeleteGzipConfigRequest { return APIDeleteGzipConfigRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - gzipName: gzipName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + gzipName: gzipName, } } @@ -332,10 +332,10 @@ func (a *GzipAPIService) DeleteGzipConfig(ctx context.Context, serviceID string, // @return InlineResponse200 func (a *GzipAPIService) DeleteGzipConfigExecute(r APIDeleteGzipConfigRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GzipAPIService.DeleteGzipConfig") @@ -417,7 +417,6 @@ func (a *GzipAPIService) DeleteGzipConfigExecute(r APIDeleteGzipConfigRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -436,14 +435,13 @@ func (a *GzipAPIService) DeleteGzipConfigExecute(r APIDeleteGzipConfigRequest) ( // APIGetGzipConfigsRequest represents a request for the resource. type APIGetGzipConfigsRequest struct { - ctx context.Context + ctx context.Context APIService GzipAPI - serviceID string - versionID int32 - gzipName string + serviceID string + versionID int32 + gzipName string } - // Execute calls the API using the request data configured. func (r APIGetGzipConfigsRequest) Execute() (*GzipResponse, *http.Response, error) { return r.APIService.GetGzipConfigsExecute(r) @@ -463,10 +461,10 @@ Get the gzip configuration for a particular service, version, and name. func (a *GzipAPIService) GetGzipConfigs(ctx context.Context, serviceID string, versionID int32, gzipName string) APIGetGzipConfigsRequest { return APIGetGzipConfigsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - gzipName: gzipName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + gzipName: gzipName, } } @@ -474,10 +472,10 @@ func (a *GzipAPIService) GetGzipConfigs(ctx context.Context, serviceID string, v // @return GzipResponse func (a *GzipAPIService) GetGzipConfigsExecute(r APIGetGzipConfigsRequest) (*GzipResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *GzipResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *GzipResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GzipAPIService.GetGzipConfigs") @@ -559,7 +557,6 @@ func (a *GzipAPIService) GetGzipConfigsExecute(r APIGetGzipConfigsRequest) (*Gzi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -578,13 +575,12 @@ func (a *GzipAPIService) GetGzipConfigsExecute(r APIGetGzipConfigsRequest) (*Gzi // APIListGzipConfigsRequest represents a request for the resource. type APIListGzipConfigsRequest struct { - ctx context.Context + ctx context.Context APIService GzipAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListGzipConfigsRequest) Execute() ([]GzipResponse, *http.Response, error) { return r.APIService.ListGzipConfigsExecute(r) @@ -603,9 +599,9 @@ List all gzip configurations for a particular service and version. func (a *GzipAPIService) ListGzipConfigs(ctx context.Context, serviceID string, versionID int32) APIListGzipConfigsRequest { return APIListGzipConfigsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -613,10 +609,10 @@ func (a *GzipAPIService) ListGzipConfigs(ctx context.Context, serviceID string, // @return []GzipResponse func (a *GzipAPIService) ListGzipConfigsExecute(r APIListGzipConfigsRequest) ([]GzipResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []GzipResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []GzipResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GzipAPIService.ListGzipConfigs") @@ -697,7 +693,6 @@ func (a *GzipAPIService) ListGzipConfigsExecute(r APIListGzipConfigsRequest) ([] return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -716,15 +711,15 @@ func (a *GzipAPIService) ListGzipConfigsExecute(r APIListGzipConfigsRequest) ([] // APIUpdateGzipConfigRequest represents a request for the resource. type APIUpdateGzipConfigRequest struct { - ctx context.Context - APIService GzipAPI - serviceID string - versionID int32 - gzipName string + ctx context.Context + APIService GzipAPI + serviceID string + versionID int32 + gzipName string cacheCondition *string - contentTypes *string - extensions *string - name *string + contentTypes *string + extensions *string + name *string } // CacheCondition Name of the cache condition controlling when this configuration applies. @@ -732,16 +727,19 @@ func (r *APIUpdateGzipConfigRequest) CacheCondition(cacheCondition string) *APIU r.cacheCondition = &cacheCondition return r } + // ContentTypes Space-separated list of content types to compress. If you omit this field a default list will be used. func (r *APIUpdateGzipConfigRequest) ContentTypes(contentTypes string) *APIUpdateGzipConfigRequest { r.contentTypes = &contentTypes return r } + // Extensions Space-separated list of file extensions to compress. If you omit this field a default list will be used. func (r *APIUpdateGzipConfigRequest) Extensions(extensions string) *APIUpdateGzipConfigRequest { r.extensions = &extensions return r } + // Name Name of the gzip configuration. func (r *APIUpdateGzipConfigRequest) Name(name string) *APIUpdateGzipConfigRequest { r.name = &name @@ -767,10 +765,10 @@ Update a named gzip configuration on a particular service and version. func (a *GzipAPIService) UpdateGzipConfig(ctx context.Context, serviceID string, versionID int32, gzipName string) APIUpdateGzipConfigRequest { return APIUpdateGzipConfigRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - gzipName: gzipName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + gzipName: gzipName, } } @@ -778,10 +776,10 @@ func (a *GzipAPIService) UpdateGzipConfig(ctx context.Context, serviceID string, // @return GzipResponse func (a *GzipAPIService) UpdateGzipConfigExecute(r APIUpdateGzipConfigRequest) (*GzipResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *GzipResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *GzipResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GzipAPIService.UpdateGzipConfig") @@ -875,7 +873,6 @@ func (a *GzipAPIService) UpdateGzipConfigExecute(r APIUpdateGzipConfigRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_header.go b/fastly/api_header.go index 182073e..76e69f0 100644 --- a/fastly/api_header.go +++ b/fastly/api_header.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type HeaderAPI interface { /* - CreateHeaderObject Create a Header object + CreateHeaderObject Create a Header object - Creates a new Header object. + Creates a new Header object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateHeaderObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateHeaderObjectRequest */ CreateHeaderObject(ctx context.Context, serviceID string, versionID int32) APICreateHeaderObjectRequest @@ -48,15 +47,15 @@ type HeaderAPI interface { CreateHeaderObjectExecute(r APICreateHeaderObjectRequest) (*HeaderResponse, *http.Response, error) /* - DeleteHeaderObject Delete a Header object + DeleteHeaderObject Delete a Header object - Deletes a Header object by name. + Deletes a Header object by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param headerName A handle to refer to this Header object. - @return APIDeleteHeaderObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param headerName A handle to refer to this Header object. + @return APIDeleteHeaderObjectRequest */ DeleteHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIDeleteHeaderObjectRequest @@ -65,15 +64,15 @@ type HeaderAPI interface { DeleteHeaderObjectExecute(r APIDeleteHeaderObjectRequest) (*InlineResponse200, *http.Response, error) /* - GetHeaderObject Get a Header object + GetHeaderObject Get a Header object - Retrieves a Header object by name. + Retrieves a Header object by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param headerName A handle to refer to this Header object. - @return APIGetHeaderObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param headerName A handle to refer to this Header object. + @return APIGetHeaderObjectRequest */ GetHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIGetHeaderObjectRequest @@ -82,14 +81,14 @@ type HeaderAPI interface { GetHeaderObjectExecute(r APIGetHeaderObjectRequest) (*HeaderResponse, *http.Response, error) /* - ListHeaderObjects List Header objects + ListHeaderObjects List Header objects - Retrieves all Header objects for a particular Version of a Service. + Retrieves all Header objects for a particular Version of a Service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListHeaderObjectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListHeaderObjectsRequest */ ListHeaderObjects(ctx context.Context, serviceID string, versionID int32) APIListHeaderObjectsRequest @@ -98,15 +97,15 @@ type HeaderAPI interface { ListHeaderObjectsExecute(r APIListHeaderObjectsRequest) ([]HeaderResponse, *http.Response, error) /* - UpdateHeaderObject Update a Header object + UpdateHeaderObject Update a Header object - Modifies an existing Header object by name. + Modifies an existing Header object by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param headerName A handle to refer to this Header object. - @return APIUpdateHeaderObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param headerName A handle to refer to this Header object. + @return APIUpdateHeaderObjectRequest */ UpdateHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIUpdateHeaderObjectRequest @@ -120,22 +119,22 @@ type HeaderAPIService service // APICreateHeaderObjectRequest represents a request for the resource. type APICreateHeaderObjectRequest struct { - ctx context.Context - APIService HeaderAPI - serviceID string - versionID int32 - action *string - cacheCondition *string - dst *string - name *string - regex *string - requestCondition *string + ctx context.Context + APIService HeaderAPI + serviceID string + versionID int32 + action *string + cacheCondition *string + dst *string + name *string + regex *string + requestCondition *string responseCondition *string - src *string - substitution *string - resourceType *string - ignoreIfSet *int32 - priority *int32 + src *string + substitution *string + resourceType *string + ignoreIfSet *int32 + priority *int32 } // Action Accepts a string value. @@ -143,56 +142,67 @@ func (r *APICreateHeaderObjectRequest) Action(action string) *APICreateHeaderObj r.action = &action return r } + // CacheCondition Name of the cache condition controlling when this configuration applies. func (r *APICreateHeaderObjectRequest) CacheCondition(cacheCondition string) *APICreateHeaderObjectRequest { r.cacheCondition = &cacheCondition return r } + // Dst Header to set. func (r *APICreateHeaderObjectRequest) Dst(dst string) *APICreateHeaderObjectRequest { r.dst = &dst return r } + // Name A handle to refer to this Header object. func (r *APICreateHeaderObjectRequest) Name(name string) *APICreateHeaderObjectRequest { r.name = &name return r } + // Regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. func (r *APICreateHeaderObjectRequest) Regex(regex string) *APICreateHeaderObjectRequest { r.regex = ®ex return r } + // RequestCondition Condition which, if met, will select this configuration during a request. Optional. func (r *APICreateHeaderObjectRequest) RequestCondition(requestCondition string) *APICreateHeaderObjectRequest { r.requestCondition = &requestCondition return r } + // ResponseCondition Optional name of a response condition to apply. func (r *APICreateHeaderObjectRequest) ResponseCondition(responseCondition string) *APICreateHeaderObjectRequest { r.responseCondition = &responseCondition return r } + // Src Variable to be used as a source for the header content. Does not apply to `delete` action. func (r *APICreateHeaderObjectRequest) Src(src string) *APICreateHeaderObjectRequest { r.src = &src return r } + // Substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. func (r *APICreateHeaderObjectRequest) Substitution(substitution string) *APICreateHeaderObjectRequest { r.substitution = &substitution return r } + // ResourceType Accepts a string value. func (r *APICreateHeaderObjectRequest) ResourceType(resourceType string) *APICreateHeaderObjectRequest { r.resourceType = &resourceType return r } + // IgnoreIfSet Don't add the header if it is added already. Only applies to 'set' action. func (r *APICreateHeaderObjectRequest) IgnoreIfSet(ignoreIfSet int32) *APICreateHeaderObjectRequest { r.ignoreIfSet = &ignoreIfSet return r } + // Priority Priority determines execution order. Lower numbers execute first. func (r *APICreateHeaderObjectRequest) Priority(priority int32) *APICreateHeaderObjectRequest { r.priority = &priority @@ -217,9 +227,9 @@ Creates a new Header object. func (a *HeaderAPIService) CreateHeaderObject(ctx context.Context, serviceID string, versionID int32) APICreateHeaderObjectRequest { return APICreateHeaderObjectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -227,10 +237,10 @@ func (a *HeaderAPIService) CreateHeaderObject(ctx context.Context, serviceID str // @return HeaderResponse func (a *HeaderAPIService) CreateHeaderObjectExecute(r APICreateHeaderObjectRequest) (*HeaderResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *HeaderResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *HeaderResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HeaderAPIService.CreateHeaderObject") @@ -351,7 +361,6 @@ func (a *HeaderAPIService) CreateHeaderObjectExecute(r APICreateHeaderObjectRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -370,14 +379,13 @@ func (a *HeaderAPIService) CreateHeaderObjectExecute(r APICreateHeaderObjectRequ // APIDeleteHeaderObjectRequest represents a request for the resource. type APIDeleteHeaderObjectRequest struct { - ctx context.Context + ctx context.Context APIService HeaderAPI - serviceID string - versionID int32 + serviceID string + versionID int32 headerName string } - // Execute calls the API using the request data configured. func (r APIDeleteHeaderObjectRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteHeaderObjectExecute(r) @@ -397,9 +405,9 @@ Deletes a Header object by name. func (a *HeaderAPIService) DeleteHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIDeleteHeaderObjectRequest { return APIDeleteHeaderObjectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, headerName: headerName, } } @@ -408,10 +416,10 @@ func (a *HeaderAPIService) DeleteHeaderObject(ctx context.Context, serviceID str // @return InlineResponse200 func (a *HeaderAPIService) DeleteHeaderObjectExecute(r APIDeleteHeaderObjectRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HeaderAPIService.DeleteHeaderObject") @@ -493,7 +501,6 @@ func (a *HeaderAPIService) DeleteHeaderObjectExecute(r APIDeleteHeaderObjectRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -512,14 +519,13 @@ func (a *HeaderAPIService) DeleteHeaderObjectExecute(r APIDeleteHeaderObjectRequ // APIGetHeaderObjectRequest represents a request for the resource. type APIGetHeaderObjectRequest struct { - ctx context.Context + ctx context.Context APIService HeaderAPI - serviceID string - versionID int32 + serviceID string + versionID int32 headerName string } - // Execute calls the API using the request data configured. func (r APIGetHeaderObjectRequest) Execute() (*HeaderResponse, *http.Response, error) { return r.APIService.GetHeaderObjectExecute(r) @@ -539,9 +545,9 @@ Retrieves a Header object by name. func (a *HeaderAPIService) GetHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIGetHeaderObjectRequest { return APIGetHeaderObjectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, headerName: headerName, } } @@ -550,10 +556,10 @@ func (a *HeaderAPIService) GetHeaderObject(ctx context.Context, serviceID string // @return HeaderResponse func (a *HeaderAPIService) GetHeaderObjectExecute(r APIGetHeaderObjectRequest) (*HeaderResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HeaderResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HeaderResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HeaderAPIService.GetHeaderObject") @@ -635,7 +641,6 @@ func (a *HeaderAPIService) GetHeaderObjectExecute(r APIGetHeaderObjectRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -654,13 +659,12 @@ func (a *HeaderAPIService) GetHeaderObjectExecute(r APIGetHeaderObjectRequest) ( // APIListHeaderObjectsRequest represents a request for the resource. type APIListHeaderObjectsRequest struct { - ctx context.Context + ctx context.Context APIService HeaderAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListHeaderObjectsRequest) Execute() ([]HeaderResponse, *http.Response, error) { return r.APIService.ListHeaderObjectsExecute(r) @@ -679,9 +683,9 @@ Retrieves all Header objects for a particular Version of a Service. func (a *HeaderAPIService) ListHeaderObjects(ctx context.Context, serviceID string, versionID int32) APIListHeaderObjectsRequest { return APIListHeaderObjectsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -689,10 +693,10 @@ func (a *HeaderAPIService) ListHeaderObjects(ctx context.Context, serviceID stri // @return []HeaderResponse func (a *HeaderAPIService) ListHeaderObjectsExecute(r APIListHeaderObjectsRequest) ([]HeaderResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []HeaderResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []HeaderResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HeaderAPIService.ListHeaderObjects") @@ -773,7 +777,6 @@ func (a *HeaderAPIService) ListHeaderObjectsExecute(r APIListHeaderObjectsReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -792,23 +795,23 @@ func (a *HeaderAPIService) ListHeaderObjectsExecute(r APIListHeaderObjectsReques // APIUpdateHeaderObjectRequest represents a request for the resource. type APIUpdateHeaderObjectRequest struct { - ctx context.Context - APIService HeaderAPI - serviceID string - versionID int32 - headerName string - action *string - cacheCondition *string - dst *string - name *string - regex *string - requestCondition *string + ctx context.Context + APIService HeaderAPI + serviceID string + versionID int32 + headerName string + action *string + cacheCondition *string + dst *string + name *string + regex *string + requestCondition *string responseCondition *string - src *string - substitution *string - resourceType *string - ignoreIfSet *int32 - priority *int32 + src *string + substitution *string + resourceType *string + ignoreIfSet *int32 + priority *int32 } // Action Accepts a string value. @@ -816,56 +819,67 @@ func (r *APIUpdateHeaderObjectRequest) Action(action string) *APIUpdateHeaderObj r.action = &action return r } + // CacheCondition Name of the cache condition controlling when this configuration applies. func (r *APIUpdateHeaderObjectRequest) CacheCondition(cacheCondition string) *APIUpdateHeaderObjectRequest { r.cacheCondition = &cacheCondition return r } + // Dst Header to set. func (r *APIUpdateHeaderObjectRequest) Dst(dst string) *APIUpdateHeaderObjectRequest { r.dst = &dst return r } + // Name A handle to refer to this Header object. func (r *APIUpdateHeaderObjectRequest) Name(name string) *APIUpdateHeaderObjectRequest { r.name = &name return r } + // Regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. func (r *APIUpdateHeaderObjectRequest) Regex(regex string) *APIUpdateHeaderObjectRequest { r.regex = ®ex return r } + // RequestCondition Condition which, if met, will select this configuration during a request. Optional. func (r *APIUpdateHeaderObjectRequest) RequestCondition(requestCondition string) *APIUpdateHeaderObjectRequest { r.requestCondition = &requestCondition return r } + // ResponseCondition Optional name of a response condition to apply. func (r *APIUpdateHeaderObjectRequest) ResponseCondition(responseCondition string) *APIUpdateHeaderObjectRequest { r.responseCondition = &responseCondition return r } + // Src Variable to be used as a source for the header content. Does not apply to `delete` action. func (r *APIUpdateHeaderObjectRequest) Src(src string) *APIUpdateHeaderObjectRequest { r.src = &src return r } + // Substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. func (r *APIUpdateHeaderObjectRequest) Substitution(substitution string) *APIUpdateHeaderObjectRequest { r.substitution = &substitution return r } + // ResourceType Accepts a string value. func (r *APIUpdateHeaderObjectRequest) ResourceType(resourceType string) *APIUpdateHeaderObjectRequest { r.resourceType = &resourceType return r } + // IgnoreIfSet Don't add the header if it is added already. Only applies to 'set' action. func (r *APIUpdateHeaderObjectRequest) IgnoreIfSet(ignoreIfSet int32) *APIUpdateHeaderObjectRequest { r.ignoreIfSet = &ignoreIfSet return r } + // Priority Priority determines execution order. Lower numbers execute first. func (r *APIUpdateHeaderObjectRequest) Priority(priority int32) *APIUpdateHeaderObjectRequest { r.priority = &priority @@ -891,9 +905,9 @@ Modifies an existing Header object by name. func (a *HeaderAPIService) UpdateHeaderObject(ctx context.Context, serviceID string, versionID int32, headerName string) APIUpdateHeaderObjectRequest { return APIUpdateHeaderObjectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, headerName: headerName, } } @@ -902,10 +916,10 @@ func (a *HeaderAPIService) UpdateHeaderObject(ctx context.Context, serviceID str // @return HeaderResponse func (a *HeaderAPIService) UpdateHeaderObjectExecute(r APIUpdateHeaderObjectRequest) (*HeaderResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *HeaderResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *HeaderResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HeaderAPIService.UpdateHeaderObject") @@ -1027,7 +1041,6 @@ func (a *HeaderAPIService) UpdateHeaderObjectExecute(r APIUpdateHeaderObjectRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_healthcheck.go b/fastly/api_healthcheck.go index bf08058..e4578f2 100644 --- a/fastly/api_healthcheck.go +++ b/fastly/api_healthcheck.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type HealthcheckAPI interface { /* - CreateHealthcheck Create a health check + CreateHealthcheck Create a health check - Create a health check for a particular service and version. + Create a health check for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateHealthcheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateHealthcheckRequest */ CreateHealthcheck(ctx context.Context, serviceID string, versionID int32) APICreateHealthcheckRequest @@ -48,15 +47,15 @@ type HealthcheckAPI interface { CreateHealthcheckExecute(r APICreateHealthcheckRequest) (*HealthcheckResponse, *http.Response, error) /* - DeleteHealthcheck Delete a health check + DeleteHealthcheck Delete a health check - Delete the health check for a particular service and version. + Delete the health check for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param healthcheckName The name of the health check. - @return APIDeleteHealthcheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param healthcheckName The name of the health check. + @return APIDeleteHealthcheckRequest */ DeleteHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIDeleteHealthcheckRequest @@ -65,15 +64,15 @@ type HealthcheckAPI interface { DeleteHealthcheckExecute(r APIDeleteHealthcheckRequest) (*InlineResponse200, *http.Response, error) /* - GetHealthcheck Get a health check + GetHealthcheck Get a health check - Get the health check for a particular service and version. + Get the health check for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param healthcheckName The name of the health check. - @return APIGetHealthcheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param healthcheckName The name of the health check. + @return APIGetHealthcheckRequest */ GetHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIGetHealthcheckRequest @@ -82,14 +81,14 @@ type HealthcheckAPI interface { GetHealthcheckExecute(r APIGetHealthcheckRequest) (*HealthcheckResponse, *http.Response, error) /* - ListHealthchecks List health checks + ListHealthchecks List health checks - List all of the health checks for a particular service and version. + List all of the health checks for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListHealthchecksRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListHealthchecksRequest */ ListHealthchecks(ctx context.Context, serviceID string, versionID int32) APIListHealthchecksRequest @@ -98,15 +97,15 @@ type HealthcheckAPI interface { ListHealthchecksExecute(r APIListHealthchecksRequest) ([]HealthcheckResponse, *http.Response, error) /* - UpdateHealthcheck Update a health check + UpdateHealthcheck Update a health check - Update the health check for a particular service and version. + Update the health check for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param healthcheckName The name of the health check. - @return APIUpdateHealthcheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param healthcheckName The name of the health check. + @return APIUpdateHealthcheckRequest */ UpdateHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIUpdateHealthcheckRequest @@ -120,23 +119,23 @@ type HealthcheckAPIService service // APICreateHealthcheckRequest represents a request for the resource. type APICreateHealthcheckRequest struct { - ctx context.Context - APIService HealthcheckAPI - serviceID string - versionID int32 - checkInterval *int32 - comment *string + ctx context.Context + APIService HealthcheckAPI + serviceID string + versionID int32 + checkInterval *int32 + comment *string expectedResponse *int32 - headers *[]string - host *string - httpVersion *string - initial *int32 - method *string - name *string - path *string - threshold *int32 - timeout *int32 - window *int32 + headers *[]string + host *string + httpVersion *string + initial *int32 + method *string + name *string + path *string + threshold *int32 + timeout *int32 + window *int32 } // CheckInterval How often to run the health check in milliseconds. @@ -144,61 +143,73 @@ func (r *APICreateHealthcheckRequest) CheckInterval(checkInterval int32) *APICre r.checkInterval = &checkInterval return r } + // Comment A freeform descriptive note. func (r *APICreateHealthcheckRequest) Comment(comment string) *APICreateHealthcheckRequest { r.comment = &comment return r } + // ExpectedResponse The status code expected from the host. func (r *APICreateHealthcheckRequest) ExpectedResponse(expectedResponse int32) *APICreateHealthcheckRequest { r.expectedResponse = &expectedResponse return r } + // Headers Array of custom headers that will be added to the health check probes. func (r *APICreateHealthcheckRequest) Headers(headers []string) *APICreateHealthcheckRequest { r.headers = &headers return r } + // Host Which host to check. func (r *APICreateHealthcheckRequest) Host(host string) *APICreateHealthcheckRequest { r.host = &host return r } + // HTTPVersion Whether to use version 1.0 or 1.1 HTTP. func (r *APICreateHealthcheckRequest) HTTPVersion(httpVersion string) *APICreateHealthcheckRequest { r.httpVersion = &httpVersion return r } + // Initial When loading a config, the initial number of probes to be seen as OK. func (r *APICreateHealthcheckRequest) Initial(initial int32) *APICreateHealthcheckRequest { r.initial = &initial return r } + // Method Which HTTP method to use. func (r *APICreateHealthcheckRequest) Method(method string) *APICreateHealthcheckRequest { r.method = &method return r } + // Name The name of the health check. func (r *APICreateHealthcheckRequest) Name(name string) *APICreateHealthcheckRequest { r.name = &name return r } + // Path The path to check. func (r *APICreateHealthcheckRequest) Path(path string) *APICreateHealthcheckRequest { r.path = &path return r } + // Threshold How many health checks must succeed to be considered healthy. func (r *APICreateHealthcheckRequest) Threshold(threshold int32) *APICreateHealthcheckRequest { r.threshold = &threshold return r } + // Timeout Timeout in milliseconds. func (r *APICreateHealthcheckRequest) Timeout(timeout int32) *APICreateHealthcheckRequest { r.timeout = &timeout return r } + // Window The number of most recent health check queries to keep for this health check. func (r *APICreateHealthcheckRequest) Window(window int32) *APICreateHealthcheckRequest { r.window = &window @@ -223,9 +234,9 @@ Create a health check for a particular service and version. func (a *HealthcheckAPIService) CreateHealthcheck(ctx context.Context, serviceID string, versionID int32) APICreateHealthcheckRequest { return APICreateHealthcheckRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -233,10 +244,10 @@ func (a *HealthcheckAPIService) CreateHealthcheck(ctx context.Context, serviceID // @return HealthcheckResponse func (a *HealthcheckAPIService) CreateHealthcheckExecute(r APICreateHealthcheckRequest) (*HealthcheckResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *HealthcheckResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *HealthcheckResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthcheckAPIService.CreateHealthcheck") @@ -356,7 +367,6 @@ func (a *HealthcheckAPIService) CreateHealthcheckExecute(r APICreateHealthcheckR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -375,14 +385,13 @@ func (a *HealthcheckAPIService) CreateHealthcheckExecute(r APICreateHealthcheckR // APIDeleteHealthcheckRequest represents a request for the resource. type APIDeleteHealthcheckRequest struct { - ctx context.Context - APIService HealthcheckAPI - serviceID string - versionID int32 + ctx context.Context + APIService HealthcheckAPI + serviceID string + versionID int32 healthcheckName string } - // Execute calls the API using the request data configured. func (r APIDeleteHealthcheckRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteHealthcheckExecute(r) @@ -401,10 +410,10 @@ Delete the health check for a particular service and version. */ func (a *HealthcheckAPIService) DeleteHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIDeleteHealthcheckRequest { return APIDeleteHealthcheckRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, healthcheckName: healthcheckName, } } @@ -413,10 +422,10 @@ func (a *HealthcheckAPIService) DeleteHealthcheck(ctx context.Context, serviceID // @return InlineResponse200 func (a *HealthcheckAPIService) DeleteHealthcheckExecute(r APIDeleteHealthcheckRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthcheckAPIService.DeleteHealthcheck") @@ -498,7 +507,6 @@ func (a *HealthcheckAPIService) DeleteHealthcheckExecute(r APIDeleteHealthcheckR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -517,14 +525,13 @@ func (a *HealthcheckAPIService) DeleteHealthcheckExecute(r APIDeleteHealthcheckR // APIGetHealthcheckRequest represents a request for the resource. type APIGetHealthcheckRequest struct { - ctx context.Context - APIService HealthcheckAPI - serviceID string - versionID int32 + ctx context.Context + APIService HealthcheckAPI + serviceID string + versionID int32 healthcheckName string } - // Execute calls the API using the request data configured. func (r APIGetHealthcheckRequest) Execute() (*HealthcheckResponse, *http.Response, error) { return r.APIService.GetHealthcheckExecute(r) @@ -543,10 +550,10 @@ Get the health check for a particular service and version. */ func (a *HealthcheckAPIService) GetHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIGetHealthcheckRequest { return APIGetHealthcheckRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, healthcheckName: healthcheckName, } } @@ -555,10 +562,10 @@ func (a *HealthcheckAPIService) GetHealthcheck(ctx context.Context, serviceID st // @return HealthcheckResponse func (a *HealthcheckAPIService) GetHealthcheckExecute(r APIGetHealthcheckRequest) (*HealthcheckResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HealthcheckResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HealthcheckResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthcheckAPIService.GetHealthcheck") @@ -640,7 +647,6 @@ func (a *HealthcheckAPIService) GetHealthcheckExecute(r APIGetHealthcheckRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -659,13 +665,12 @@ func (a *HealthcheckAPIService) GetHealthcheckExecute(r APIGetHealthcheckRequest // APIListHealthchecksRequest represents a request for the resource. type APIListHealthchecksRequest struct { - ctx context.Context + ctx context.Context APIService HealthcheckAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListHealthchecksRequest) Execute() ([]HealthcheckResponse, *http.Response, error) { return r.APIService.ListHealthchecksExecute(r) @@ -684,9 +689,9 @@ List all of the health checks for a particular service and version. func (a *HealthcheckAPIService) ListHealthchecks(ctx context.Context, serviceID string, versionID int32) APIListHealthchecksRequest { return APIListHealthchecksRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -694,10 +699,10 @@ func (a *HealthcheckAPIService) ListHealthchecks(ctx context.Context, serviceID // @return []HealthcheckResponse func (a *HealthcheckAPIService) ListHealthchecksExecute(r APIListHealthchecksRequest) ([]HealthcheckResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []HealthcheckResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []HealthcheckResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthcheckAPIService.ListHealthchecks") @@ -778,7 +783,6 @@ func (a *HealthcheckAPIService) ListHealthchecksExecute(r APIListHealthchecksReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -797,24 +801,24 @@ func (a *HealthcheckAPIService) ListHealthchecksExecute(r APIListHealthchecksReq // APIUpdateHealthcheckRequest represents a request for the resource. type APIUpdateHealthcheckRequest struct { - ctx context.Context - APIService HealthcheckAPI - serviceID string - versionID int32 - healthcheckName string - checkInterval *int32 - comment *string + ctx context.Context + APIService HealthcheckAPI + serviceID string + versionID int32 + healthcheckName string + checkInterval *int32 + comment *string expectedResponse *int32 - headers *[]string - host *string - httpVersion *string - initial *int32 - method *string - name *string - path *string - threshold *int32 - timeout *int32 - window *int32 + headers *[]string + host *string + httpVersion *string + initial *int32 + method *string + name *string + path *string + threshold *int32 + timeout *int32 + window *int32 } // CheckInterval How often to run the health check in milliseconds. @@ -822,61 +826,73 @@ func (r *APIUpdateHealthcheckRequest) CheckInterval(checkInterval int32) *APIUpd r.checkInterval = &checkInterval return r } + // Comment A freeform descriptive note. func (r *APIUpdateHealthcheckRequest) Comment(comment string) *APIUpdateHealthcheckRequest { r.comment = &comment return r } + // ExpectedResponse The status code expected from the host. func (r *APIUpdateHealthcheckRequest) ExpectedResponse(expectedResponse int32) *APIUpdateHealthcheckRequest { r.expectedResponse = &expectedResponse return r } + // Headers Array of custom headers that will be added to the health check probes. func (r *APIUpdateHealthcheckRequest) Headers(headers []string) *APIUpdateHealthcheckRequest { r.headers = &headers return r } + // Host Which host to check. func (r *APIUpdateHealthcheckRequest) Host(host string) *APIUpdateHealthcheckRequest { r.host = &host return r } + // HTTPVersion Whether to use version 1.0 or 1.1 HTTP. func (r *APIUpdateHealthcheckRequest) HTTPVersion(httpVersion string) *APIUpdateHealthcheckRequest { r.httpVersion = &httpVersion return r } + // Initial When loading a config, the initial number of probes to be seen as OK. func (r *APIUpdateHealthcheckRequest) Initial(initial int32) *APIUpdateHealthcheckRequest { r.initial = &initial return r } + // Method Which HTTP method to use. func (r *APIUpdateHealthcheckRequest) Method(method string) *APIUpdateHealthcheckRequest { r.method = &method return r } + // Name The name of the health check. func (r *APIUpdateHealthcheckRequest) Name(name string) *APIUpdateHealthcheckRequest { r.name = &name return r } + // Path The path to check. func (r *APIUpdateHealthcheckRequest) Path(path string) *APIUpdateHealthcheckRequest { r.path = &path return r } + // Threshold How many health checks must succeed to be considered healthy. func (r *APIUpdateHealthcheckRequest) Threshold(threshold int32) *APIUpdateHealthcheckRequest { r.threshold = &threshold return r } + // Timeout Timeout in milliseconds. func (r *APIUpdateHealthcheckRequest) Timeout(timeout int32) *APIUpdateHealthcheckRequest { r.timeout = &timeout return r } + // Window The number of most recent health check queries to keep for this health check. func (r *APIUpdateHealthcheckRequest) Window(window int32) *APIUpdateHealthcheckRequest { r.window = &window @@ -901,10 +917,10 @@ Update the health check for a particular service and version. */ func (a *HealthcheckAPIService) UpdateHealthcheck(ctx context.Context, serviceID string, versionID int32, healthcheckName string) APIUpdateHealthcheckRequest { return APIUpdateHealthcheckRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, healthcheckName: healthcheckName, } } @@ -913,10 +929,10 @@ func (a *HealthcheckAPIService) UpdateHealthcheck(ctx context.Context, serviceID // @return HealthcheckResponse func (a *HealthcheckAPIService) UpdateHealthcheckExecute(r APIUpdateHealthcheckRequest) (*HealthcheckResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *HealthcheckResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *HealthcheckResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HealthcheckAPIService.UpdateHealthcheck") @@ -1037,7 +1053,6 @@ func (a *HealthcheckAPIService) UpdateHealthcheckExecute(r APIUpdateHealthcheckR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_historical.go b/fastly/api_historical.go index c09a650..7e25631 100644 --- a/fastly/api_historical.go +++ b/fastly/api_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type HistoricalAPI interface { /* - GetHistStats Get historical stats + GetHistStats Get historical stats - Fetches historical stats for each of your Fastly services and groups the results by service ID. + Fetches historical stats for each of your Fastly services and groups the results by service ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetHistStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetHistStatsRequest */ GetHistStats(ctx context.Context) APIGetHistStatsRequest @@ -46,12 +45,12 @@ type HistoricalAPI interface { GetHistStatsExecute(r APIGetHistStatsRequest) (*HistoricalStatsByServiceResponse, *http.Response, error) /* - GetHistStatsAggregated Get aggregated historical stats + GetHistStatsAggregated Get aggregated historical stats - Fetches historical stats information aggregated across all of your Fastly services. + Fetches historical stats information aggregated across all of your Fastly services. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetHistStatsAggregatedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetHistStatsAggregatedRequest */ GetHistStatsAggregated(ctx context.Context) APIGetHistStatsAggregatedRequest @@ -60,13 +59,13 @@ type HistoricalAPI interface { GetHistStatsAggregatedExecute(r APIGetHistStatsAggregatedRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) /* - GetHistStatsField Get historical stats for a single field + GetHistStatsField Get historical stats for a single field - Fetches the specified field from the historical stats for each of your services and groups the results by service ID. + Fetches the specified field from the historical stats for each of your services and groups the results by service ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param field Name of the stats field. - @return APIGetHistStatsFieldRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param field Name of the stats field. + @return APIGetHistStatsFieldRequest */ GetHistStatsField(ctx context.Context, field string) APIGetHistStatsFieldRequest @@ -75,13 +74,13 @@ type HistoricalAPI interface { GetHistStatsFieldExecute(r APIGetHistStatsFieldRequest) (*HistoricalStatsByServiceResponse, *http.Response, error) /* - GetHistStatsService Get historical stats for a single service + GetHistStatsService Get historical stats for a single service - Fetches historical stats for a given service. + Fetches historical stats for a given service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetHistStatsServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetHistStatsServiceRequest */ GetHistStatsService(ctx context.Context, serviceID string) APIGetHistStatsServiceRequest @@ -90,14 +89,14 @@ type HistoricalAPI interface { GetHistStatsServiceExecute(r APIGetHistStatsServiceRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) /* - GetHistStatsServiceField Get historical stats for a single service/field combination + GetHistStatsServiceField Get historical stats for a single service/field combination - Fetches the specified field from the historical stats for a given service. + Fetches the specified field from the historical stats for a given service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param field Name of the stats field. - @return APIGetHistStatsServiceFieldRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param field Name of the stats field. + @return APIGetHistStatsServiceFieldRequest */ GetHistStatsServiceField(ctx context.Context, serviceID string, field string) APIGetHistStatsServiceFieldRequest @@ -106,12 +105,12 @@ type HistoricalAPI interface { GetHistStatsServiceFieldExecute(r APIGetHistStatsServiceFieldRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) /* - GetRegions Get region codes + GetRegions Get region codes - Fetches the list of codes for regions that are covered by the Fastly CDN service. + Fetches the list of codes for regions that are covered by the Fastly CDN service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetRegionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetRegionsRequest */ GetRegions(ctx context.Context) APIGetRegionsRequest @@ -120,12 +119,12 @@ type HistoricalAPI interface { GetRegionsExecute(r APIGetRegionsRequest) (*HistoricalRegionsResponse, *http.Response, error) /* - GetUsage Get usage statistics + GetUsage Get usage statistics - Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see [`/stats/aggregate`](#get-hist-stats-aggregated). + Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see [`/stats/aggregate`](#get-hist-stats-aggregated). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetUsageRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetUsageRequest */ GetUsage(ctx context.Context) APIGetUsageRequest @@ -134,12 +133,12 @@ type HistoricalAPI interface { GetUsageExecute(r APIGetUsageRequest) (*HistoricalUsageAggregatedResponse, *http.Response, error) /* - GetUsageMonth Get month-to-date usage statistics + GetUsageMonth Get month-to-date usage statistics - Returns month-to-date usage details for a given month and year. Usage details are aggregated by service and across all Fastly services, and then grouped by region. This endpoint does not use the `from` or `to` fields for selecting the date for which data is requested. Instead, it uses `month` and `year` integer fields. Both fields are optional and default to the current month and year respectively. When set, an optional `billable_units` field will convert bandwidth to GB and divide requests by 10,000. + Returns month-to-date usage details for a given month and year. Usage details are aggregated by service and across all Fastly services, and then grouped by region. This endpoint does not use the `from` or `to` fields for selecting the date for which data is requested. Instead, it uses `month` and `year` integer fields. Both fields are optional and default to the current month and year respectively. When set, an optional `billable_units` field will convert bandwidth to GB and divide requests by 10,000. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetUsageMonthRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetUsageMonthRequest */ GetUsageMonth(ctx context.Context) APIGetUsageMonthRequest @@ -148,12 +147,12 @@ type HistoricalAPI interface { GetUsageMonthExecute(r APIGetUsageMonthRequest) (*HistoricalUsageMonthResponse, *http.Response, error) /* - GetUsageService Get usage statistics per service + GetUsageService Get usage statistics per service - Returns usage information aggregated by service and grouped by service and region. For service stats by time period, see [`/stats`](#get-hist-stats) and [`/stats/field/:field`](#get-hist-stats-field). + Returns usage information aggregated by service and grouped by service and region. For service stats by time period, see [`/stats`](#get-hist-stats) and [`/stats/field/:field`](#get-hist-stats-field). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetUsageServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetUsageServiceRequest */ GetUsageService(ctx context.Context) APIGetUsageServiceRequest @@ -167,30 +166,33 @@ type HistoricalAPIService service // APIGetHistStatsRequest represents a request for the resource. type APIGetHistStatsRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - from *string - to *string - by *string - region *string + from *string + to *string + by *string + region *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetHistStatsRequest) From(from string) *APIGetHistStatsRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetHistStatsRequest) To(to string) *APIGetHistStatsRequest { r.to = &to return r } -// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. + +// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. func (r *APIGetHistStatsRequest) By(by string) *APIGetHistStatsRequest { r.by = &by return r } -// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. + +// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. func (r *APIGetHistStatsRequest) Region(region string) *APIGetHistStatsRequest { r.region = ®ion return r @@ -212,7 +214,7 @@ Fetches historical stats for each of your Fastly services and groups the results func (a *HistoricalAPIService) GetHistStats(ctx context.Context) APIGetHistStatsRequest { return APIGetHistStatsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -220,10 +222,10 @@ func (a *HistoricalAPIService) GetHistStats(ctx context.Context) APIGetHistStats // @return HistoricalStatsByServiceResponse func (a *HistoricalAPIService) GetHistStatsExecute(r APIGetHistStatsRequest) (*HistoricalStatsByServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalStatsByServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalStatsByServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetHistStats") @@ -314,7 +316,6 @@ func (a *HistoricalAPIService) GetHistStatsExecute(r APIGetHistStatsRequest) (*H return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -333,30 +334,33 @@ func (a *HistoricalAPIService) GetHistStatsExecute(r APIGetHistStatsRequest) (*H // APIGetHistStatsAggregatedRequest represents a request for the resource. type APIGetHistStatsAggregatedRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - from *string - to *string - by *string - region *string + from *string + to *string + by *string + region *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetHistStatsAggregatedRequest) From(from string) *APIGetHistStatsAggregatedRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetHistStatsAggregatedRequest) To(to string) *APIGetHistStatsAggregatedRequest { r.to = &to return r } -// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. + +// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. func (r *APIGetHistStatsAggregatedRequest) By(by string) *APIGetHistStatsAggregatedRequest { r.by = &by return r } -// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. + +// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. func (r *APIGetHistStatsAggregatedRequest) Region(region string) *APIGetHistStatsAggregatedRequest { r.region = ®ion return r @@ -378,7 +382,7 @@ Fetches historical stats information aggregated across all of your Fastly servic func (a *HistoricalAPIService) GetHistStatsAggregated(ctx context.Context) APIGetHistStatsAggregatedRequest { return APIGetHistStatsAggregatedRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -386,10 +390,10 @@ func (a *HistoricalAPIService) GetHistStatsAggregated(ctx context.Context) APIGe // @return HistoricalStatsAggregatedResponse func (a *HistoricalAPIService) GetHistStatsAggregatedExecute(r APIGetHistStatsAggregatedRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalStatsAggregatedResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalStatsAggregatedResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetHistStatsAggregated") @@ -480,7 +484,6 @@ func (a *HistoricalAPIService) GetHistStatsAggregatedExecute(r APIGetHistStatsAg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -499,31 +502,34 @@ func (a *HistoricalAPIService) GetHistStatsAggregatedExecute(r APIGetHistStatsAg // APIGetHistStatsFieldRequest represents a request for the resource. type APIGetHistStatsFieldRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - field string - from *string - to *string - by *string - region *string + field string + from *string + to *string + by *string + region *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetHistStatsFieldRequest) From(from string) *APIGetHistStatsFieldRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetHistStatsFieldRequest) To(to string) *APIGetHistStatsFieldRequest { r.to = &to return r } -// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. + +// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. func (r *APIGetHistStatsFieldRequest) By(by string) *APIGetHistStatsFieldRequest { r.by = &by return r } -// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. + +// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. func (r *APIGetHistStatsFieldRequest) Region(region string) *APIGetHistStatsFieldRequest { r.region = ®ion return r @@ -546,8 +552,8 @@ Fetches the specified field from the historical stats for each of your services func (a *HistoricalAPIService) GetHistStatsField(ctx context.Context, field string) APIGetHistStatsFieldRequest { return APIGetHistStatsFieldRequest{ APIService: a, - ctx: ctx, - field: field, + ctx: ctx, + field: field, } } @@ -555,10 +561,10 @@ func (a *HistoricalAPIService) GetHistStatsField(ctx context.Context, field stri // @return HistoricalStatsByServiceResponse func (a *HistoricalAPIService) GetHistStatsFieldExecute(r APIGetHistStatsFieldRequest) (*HistoricalStatsByServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalStatsByServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalStatsByServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetHistStatsField") @@ -650,7 +656,6 @@ func (a *HistoricalAPIService) GetHistStatsFieldExecute(r APIGetHistStatsFieldRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -669,31 +674,34 @@ func (a *HistoricalAPIService) GetHistStatsFieldExecute(r APIGetHistStatsFieldRe // APIGetHistStatsServiceRequest represents a request for the resource. type APIGetHistStatsServiceRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - serviceID string - from *string - to *string - by *string - region *string + serviceID string + from *string + to *string + by *string + region *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetHistStatsServiceRequest) From(from string) *APIGetHistStatsServiceRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetHistStatsServiceRequest) To(to string) *APIGetHistStatsServiceRequest { r.to = &to return r } -// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. + +// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. func (r *APIGetHistStatsServiceRequest) By(by string) *APIGetHistStatsServiceRequest { r.by = &by return r } -// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. + +// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. func (r *APIGetHistStatsServiceRequest) Region(region string) *APIGetHistStatsServiceRequest { r.region = ®ion return r @@ -716,8 +724,8 @@ Fetches historical stats for a given service. func (a *HistoricalAPIService) GetHistStatsService(ctx context.Context, serviceID string) APIGetHistStatsServiceRequest { return APIGetHistStatsServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -725,10 +733,10 @@ func (a *HistoricalAPIService) GetHistStatsService(ctx context.Context, serviceI // @return HistoricalStatsAggregatedResponse func (a *HistoricalAPIService) GetHistStatsServiceExecute(r APIGetHistStatsServiceRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalStatsAggregatedResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalStatsAggregatedResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetHistStatsService") @@ -820,7 +828,6 @@ func (a *HistoricalAPIService) GetHistStatsServiceExecute(r APIGetHistStatsServi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -839,32 +846,35 @@ func (a *HistoricalAPIService) GetHistStatsServiceExecute(r APIGetHistStatsServi // APIGetHistStatsServiceFieldRequest represents a request for the resource. type APIGetHistStatsServiceFieldRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - serviceID string - field string - from *string - to *string - by *string - region *string + serviceID string + field string + from *string + to *string + by *string + region *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetHistStatsServiceFieldRequest) From(from string) *APIGetHistStatsServiceFieldRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetHistStatsServiceFieldRequest) To(to string) *APIGetHistStatsServiceFieldRequest { r.to = &to return r } -// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. + +// By Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. func (r *APIGetHistStatsServiceFieldRequest) By(by string) *APIGetHistStatsServiceFieldRequest { r.by = &by return r } -// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. + +// Region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. func (r *APIGetHistStatsServiceFieldRequest) Region(region string) *APIGetHistStatsServiceFieldRequest { r.region = ®ion return r @@ -888,9 +898,9 @@ Fetches the specified field from the historical stats for a given service. func (a *HistoricalAPIService) GetHistStatsServiceField(ctx context.Context, serviceID string, field string) APIGetHistStatsServiceFieldRequest { return APIGetHistStatsServiceFieldRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - field: field, + ctx: ctx, + serviceID: serviceID, + field: field, } } @@ -898,10 +908,10 @@ func (a *HistoricalAPIService) GetHistStatsServiceField(ctx context.Context, ser // @return HistoricalStatsAggregatedResponse func (a *HistoricalAPIService) GetHistStatsServiceFieldExecute(r APIGetHistStatsServiceFieldRequest) (*HistoricalStatsAggregatedResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalStatsAggregatedResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalStatsAggregatedResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetHistStatsServiceField") @@ -994,7 +1004,6 @@ func (a *HistoricalAPIService) GetHistStatsServiceFieldExecute(r APIGetHistStats return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1013,11 +1022,10 @@ func (a *HistoricalAPIService) GetHistStatsServiceFieldExecute(r APIGetHistStats // APIGetRegionsRequest represents a request for the resource. type APIGetRegionsRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI } - // Execute calls the API using the request data configured. func (r APIGetRegionsRequest) Execute() (*HistoricalRegionsResponse, *http.Response, error) { return r.APIService.GetRegionsExecute(r) @@ -1034,7 +1042,7 @@ Fetches the list of codes for regions that are covered by the Fastly CDN service func (a *HistoricalAPIService) GetRegions(ctx context.Context) APIGetRegionsRequest { return APIGetRegionsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1042,10 +1050,10 @@ func (a *HistoricalAPIService) GetRegions(ctx context.Context) APIGetRegionsRequ // @return HistoricalRegionsResponse func (a *HistoricalAPIService) GetRegionsExecute(r APIGetRegionsRequest) (*HistoricalRegionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalRegionsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalRegionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetRegions") @@ -1124,7 +1132,6 @@ func (a *HistoricalAPIService) GetRegionsExecute(r APIGetRegionsRequest) (*Histo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1143,18 +1150,19 @@ func (a *HistoricalAPIService) GetRegionsExecute(r APIGetRegionsRequest) (*Histo // APIGetUsageRequest represents a request for the resource. type APIGetUsageRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - from *string - to *string + from *string + to *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetUsageRequest) From(from string) *APIGetUsageRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetUsageRequest) To(to string) *APIGetUsageRequest { r.to = &to return r @@ -1176,7 +1184,7 @@ Returns usage information aggregated across all Fastly services and grouped by r func (a *HistoricalAPIService) GetUsage(ctx context.Context) APIGetUsageRequest { return APIGetUsageRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1184,10 +1192,10 @@ func (a *HistoricalAPIService) GetUsage(ctx context.Context) APIGetUsageRequest // @return HistoricalUsageAggregatedResponse func (a *HistoricalAPIService) GetUsageExecute(r APIGetUsageRequest) (*HistoricalUsageAggregatedResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalUsageAggregatedResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalUsageAggregatedResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetUsage") @@ -1272,7 +1280,6 @@ func (a *HistoricalAPIService) GetUsageExecute(r APIGetUsageRequest) (*Historica return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1291,10 +1298,10 @@ func (a *HistoricalAPIService) GetUsageExecute(r APIGetUsageRequest) (*Historica // APIGetUsageMonthRequest represents a request for the resource. type APIGetUsageMonthRequest struct { - ctx context.Context - APIService HistoricalAPI - year *string - month *string + ctx context.Context + APIService HistoricalAPI + year *string + month *string billableUnits *bool } @@ -1303,11 +1310,13 @@ func (r *APIGetUsageMonthRequest) Year(year string) *APIGetUsageMonthRequest { r.year = &year return r } + // Month 2-digit month. func (r *APIGetUsageMonthRequest) Month(month string) *APIGetUsageMonthRequest { r.month = &month return r } + // BillableUnits If `true`, return results as billable units. func (r *APIGetUsageMonthRequest) BillableUnits(billableUnits bool) *APIGetUsageMonthRequest { r.billableUnits = &billableUnits @@ -1330,7 +1339,7 @@ Returns month-to-date usage details for a given month and year. Usage details ar func (a *HistoricalAPIService) GetUsageMonth(ctx context.Context) APIGetUsageMonthRequest { return APIGetUsageMonthRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1338,10 +1347,10 @@ func (a *HistoricalAPIService) GetUsageMonth(ctx context.Context) APIGetUsageMon // @return HistoricalUsageMonthResponse func (a *HistoricalAPIService) GetUsageMonthExecute(r APIGetUsageMonthRequest) (*HistoricalUsageMonthResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalUsageMonthResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalUsageMonthResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetUsageMonth") @@ -1429,7 +1438,6 @@ func (a *HistoricalAPIService) GetUsageMonthExecute(r APIGetUsageMonthRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1448,18 +1456,19 @@ func (a *HistoricalAPIService) GetUsageMonthExecute(r APIGetUsageMonthRequest) ( // APIGetUsageServiceRequest represents a request for the resource. type APIGetUsageServiceRequest struct { - ctx context.Context + ctx context.Context APIService HistoricalAPI - from *string - to *string + from *string + to *string } -// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. +// From Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. func (r *APIGetUsageServiceRequest) From(from string) *APIGetUsageServiceRequest { r.from = &from return r } -// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. + +// To Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. func (r *APIGetUsageServiceRequest) To(to string) *APIGetUsageServiceRequest { r.to = &to return r @@ -1481,7 +1490,7 @@ Returns usage information aggregated by service and grouped by service and regio func (a *HistoricalAPIService) GetUsageService(ctx context.Context) APIGetUsageServiceRequest { return APIGetUsageServiceRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1489,10 +1498,10 @@ func (a *HistoricalAPIService) GetUsageService(ctx context.Context) APIGetUsageS // @return HistoricalUsageServiceResponse func (a *HistoricalAPIService) GetUsageServiceExecute(r APIGetUsageServiceRequest) (*HistoricalUsageServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalUsageServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalUsageServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HistoricalAPIService.GetUsageService") @@ -1577,7 +1586,6 @@ func (a *HistoricalAPIService) GetUsageServiceExecute(r APIGetUsageServiceReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_http3.go b/fastly/api_http3.go index dd294e3..6b5106a 100644 --- a/fastly/api_http3.go +++ b/fastly/api_http3.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -33,14 +32,14 @@ var ( type HTTP3API interface { /* - CreateHTTP3 Enable support for HTTP/3 + CreateHTTP3 Enable support for HTTP/3 - Enable HTTP/3 (QUIC) support for a particular service and version. + Enable HTTP/3 (QUIC) support for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateHTTP3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateHTTP3Request */ CreateHTTP3(ctx context.Context, serviceID string, versionID int32) APICreateHTTP3Request @@ -49,14 +48,14 @@ type HTTP3API interface { CreateHTTP3Execute(r APICreateHTTP3Request) (*HTTP3, *http.Response, error) /* - DeleteHTTP3 Disable support for HTTP/3 + DeleteHTTP3 Disable support for HTTP/3 - Disable HTTP/3 (QUIC) support for a particular service and version. + Disable HTTP/3 (QUIC) support for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIDeleteHTTP3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIDeleteHTTP3Request */ DeleteHTTP3(ctx context.Context, serviceID string, versionID int32) APIDeleteHTTP3Request @@ -65,14 +64,14 @@ type HTTP3API interface { DeleteHTTP3Execute(r APIDeleteHTTP3Request) (*InlineResponse200, *http.Response, error) /* - GetHTTP3 Get HTTP/3 status + GetHTTP3 Get HTTP/3 status - Get the status of HTTP/3 (QUIC) support for a particular service and version. + Get the status of HTTP/3 (QUIC) support for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetHTTP3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetHTTP3Request */ GetHTTP3(ctx context.Context, serviceID string, versionID int32) APIGetHTTP3Request @@ -86,15 +85,15 @@ type HTTP3APIService service // APICreateHTTP3Request represents a request for the resource. type APICreateHTTP3Request struct { - ctx context.Context - APIService HTTP3API - serviceID string - versionID int32 - serviceID2 *string - version *int32 - createdAt *time.Time - deletedAt *time.Time - updatedAt *time.Time + ctx context.Context + APIService HTTP3API + serviceID string + versionID int32 + serviceID2 *string + version *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time featureRevision *int32 } @@ -103,26 +102,31 @@ func (r *APICreateHTTP3Request) ServiceID2(serviceID2 string) *APICreateHTTP3Req r.serviceID2 = &serviceID2 return r } + // Version returns a pointer to a request. func (r *APICreateHTTP3Request) Version(version int32) *APICreateHTTP3Request { r.version = &version return r } + // CreatedAt Date and time in ISO 8601 format. func (r *APICreateHTTP3Request) CreatedAt(createdAt time.Time) *APICreateHTTP3Request { r.createdAt = &createdAt return r } + // DeletedAt Date and time in ISO 8601 format. func (r *APICreateHTTP3Request) DeletedAt(deletedAt time.Time) *APICreateHTTP3Request { r.deletedAt = &deletedAt return r } + // UpdatedAt Date and time in ISO 8601 format. func (r *APICreateHTTP3Request) UpdatedAt(updatedAt time.Time) *APICreateHTTP3Request { r.updatedAt = &updatedAt return r } + // FeatureRevision Revision number of the HTTP/3 feature implementation. Defaults to the most recent revision. func (r *APICreateHTTP3Request) FeatureRevision(featureRevision int32) *APICreateHTTP3Request { r.featureRevision = &featureRevision @@ -147,9 +151,9 @@ Enable HTTP/3 (QUIC) support for a particular service and version. func (a *HTTP3APIService) CreateHTTP3(ctx context.Context, serviceID string, versionID int32) APICreateHTTP3Request { return APICreateHTTP3Request{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -157,10 +161,10 @@ func (a *HTTP3APIService) CreateHTTP3(ctx context.Context, serviceID string, ver // @return HTTP3 func (a *HTTP3APIService) CreateHTTP3Execute(r APICreateHTTP3Request) (*HTTP3, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *HTTP3 + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *HTTP3 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HTTP3APIService.CreateHTTP3") @@ -267,7 +271,6 @@ func (a *HTTP3APIService) CreateHTTP3Execute(r APICreateHTTP3Request) (*HTTP3, * return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -286,13 +289,12 @@ func (a *HTTP3APIService) CreateHTTP3Execute(r APICreateHTTP3Request) (*HTTP3, * // APIDeleteHTTP3Request represents a request for the resource. type APIDeleteHTTP3Request struct { - ctx context.Context + ctx context.Context APIService HTTP3API - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIDeleteHTTP3Request) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteHTTP3Execute(r) @@ -311,9 +313,9 @@ Disable HTTP/3 (QUIC) support for a particular service and version. func (a *HTTP3APIService) DeleteHTTP3(ctx context.Context, serviceID string, versionID int32) APIDeleteHTTP3Request { return APIDeleteHTTP3Request{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -321,10 +323,10 @@ func (a *HTTP3APIService) DeleteHTTP3(ctx context.Context, serviceID string, ver // @return InlineResponse200 func (a *HTTP3APIService) DeleteHTTP3Execute(r APIDeleteHTTP3Request) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HTTP3APIService.DeleteHTTP3") @@ -405,7 +407,6 @@ func (a *HTTP3APIService) DeleteHTTP3Execute(r APIDeleteHTTP3Request) (*InlineRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -424,13 +425,12 @@ func (a *HTTP3APIService) DeleteHTTP3Execute(r APIDeleteHTTP3Request) (*InlineRe // APIGetHTTP3Request represents a request for the resource. type APIGetHTTP3Request struct { - ctx context.Context + ctx context.Context APIService HTTP3API - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetHTTP3Request) Execute() (*HTTP3, *http.Response, error) { return r.APIService.GetHTTP3Execute(r) @@ -449,9 +449,9 @@ Get the status of HTTP/3 (QUIC) support for a particular service and version. func (a *HTTP3APIService) GetHTTP3(ctx context.Context, serviceID string, versionID int32) APIGetHTTP3Request { return APIGetHTTP3Request{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -459,10 +459,10 @@ func (a *HTTP3APIService) GetHTTP3(ctx context.Context, serviceID string, versio // @return HTTP3 func (a *HTTP3APIService) GetHTTP3Execute(r APIGetHTTP3Request) (*HTTP3, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HTTP3 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HTTP3 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HTTP3APIService.GetHTTP3") @@ -543,7 +543,6 @@ func (a *HTTP3APIService) GetHTTP3Execute(r APIGetHTTP3Request) (*HTTP3, *http.R return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_permissions.go b/fastly/api_iam_permissions.go index ac06e99..b6d4962 100644 --- a/fastly/api_iam_permissions.go +++ b/fastly/api_iam_permissions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type IamPermissionsAPI interface { /* - ListPermissions List permissions + ListPermissions List permissions - List all permissions. + List all permissions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListPermissionsRequest */ ListPermissions(ctx context.Context) APIListPermissionsRequest @@ -50,11 +49,10 @@ type IamPermissionsAPIService service // APIListPermissionsRequest represents a request for the resource. type APIListPermissionsRequest struct { - ctx context.Context + ctx context.Context APIService IamPermissionsAPI } - // Execute calls the API using the request data configured. func (r APIListPermissionsRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.ListPermissionsExecute(r) @@ -71,7 +69,7 @@ List all permissions. func (a *IamPermissionsAPIService) ListPermissions(ctx context.Context) APIListPermissionsRequest { return APIListPermissionsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -79,10 +77,10 @@ func (a *IamPermissionsAPIService) ListPermissions(ctx context.Context) APIListP // @return map[string]any func (a *IamPermissionsAPIService) ListPermissionsExecute(r APIListPermissionsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamPermissionsAPIService.ListPermissions") @@ -161,7 +159,6 @@ func (a *IamPermissionsAPIService) ListPermissionsExecute(r APIListPermissionsRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_roles.go b/fastly/api_iam_roles.go index 3086597..3bc6de1 100644 --- a/fastly/api_iam_roles.go +++ b/fastly/api_iam_roles.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type IamRolesAPI interface { /* - AddRolePermissions Add permissions to a role + AddRolePermissions Add permissions to a role - Add permissions to a role. + Add permissions to a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIAddRolePermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIAddRolePermissionsRequest */ AddRolePermissions(ctx context.Context, roleID string) APIAddRolePermissionsRequest @@ -47,12 +46,12 @@ type IamRolesAPI interface { AddRolePermissionsExecute(r APIAddRolePermissionsRequest) (map[string]any, *http.Response, error) /* - CreateARole Create a role + CreateARole Create a role - Create a role. + Create a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateARoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateARoleRequest */ CreateARole(ctx context.Context) APICreateARoleRequest @@ -61,13 +60,13 @@ type IamRolesAPI interface { CreateARoleExecute(r APICreateARoleRequest) (map[string]any, *http.Response, error) /* - DeleteARole Delete a role + DeleteARole Delete a role - Delete a role. + Delete a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIDeleteARoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIDeleteARoleRequest */ DeleteARole(ctx context.Context, roleID string) APIDeleteARoleRequest @@ -75,13 +74,13 @@ type IamRolesAPI interface { DeleteARoleExecute(r APIDeleteARoleRequest) (*http.Response, error) /* - GetARole Get a role + GetARole Get a role - Get a role. + Get a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIGetARoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIGetARoleRequest */ GetARole(ctx context.Context, roleID string) APIGetARoleRequest @@ -90,13 +89,13 @@ type IamRolesAPI interface { GetARoleExecute(r APIGetARoleRequest) (map[string]any, *http.Response, error) /* - ListRolePermissions List permissions in a role + ListRolePermissions List permissions in a role - List all permissions in a role. + List all permissions in a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIListRolePermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIListRolePermissionsRequest */ ListRolePermissions(ctx context.Context, roleID string) APIListRolePermissionsRequest @@ -105,12 +104,12 @@ type IamRolesAPI interface { ListRolePermissionsExecute(r APIListRolePermissionsRequest) (map[string]any, *http.Response, error) /* - ListRoles List roles + ListRoles List roles - List all roles. + List all roles. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListRolesRequest */ ListRoles(ctx context.Context) APIListRolesRequest @@ -119,13 +118,13 @@ type IamRolesAPI interface { ListRolesExecute(r APIListRolesRequest) (map[string]any, *http.Response, error) /* - RemoveRolePermissions Remove permissions from a role + RemoveRolePermissions Remove permissions from a role - Remove permissions from a role. + Remove permissions from a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIRemoveRolePermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIRemoveRolePermissionsRequest */ RemoveRolePermissions(ctx context.Context, roleID string) APIRemoveRolePermissionsRequest @@ -133,13 +132,13 @@ type IamRolesAPI interface { RemoveRolePermissionsExecute(r APIRemoveRolePermissionsRequest) (*http.Response, error) /* - UpdateARole Update a role + UpdateARole Update a role - Update a role. + Update a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleID Alphanumeric string identifying the role. - @return APIUpdateARoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIUpdateARoleRequest */ UpdateARole(ctx context.Context, roleID string) APIUpdateARoleRequest @@ -153,9 +152,9 @@ type IamRolesAPIService service // APIAddRolePermissionsRequest represents a request for the resource. type APIAddRolePermissionsRequest struct { - ctx context.Context - APIService IamRolesAPI - roleID string + ctx context.Context + APIService IamRolesAPI + roleID string requestBody *map[string]map[string]any } @@ -182,8 +181,8 @@ Add permissions to a role. func (a *IamRolesAPIService) AddRolePermissions(ctx context.Context, roleID string) APIAddRolePermissionsRequest { return APIAddRolePermissionsRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } @@ -191,10 +190,10 @@ func (a *IamRolesAPIService) AddRolePermissions(ctx context.Context, roleID stri // @return map[string]any func (a *IamRolesAPIService) AddRolePermissionsExecute(r APIAddRolePermissionsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.AddRolePermissions") @@ -276,7 +275,6 @@ func (a *IamRolesAPIService) AddRolePermissionsExecute(r APIAddRolePermissionsRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -295,8 +293,8 @@ func (a *IamRolesAPIService) AddRolePermissionsExecute(r APIAddRolePermissionsRe // APICreateARoleRequest represents a request for the resource. type APICreateARoleRequest struct { - ctx context.Context - APIService IamRolesAPI + ctx context.Context + APIService IamRolesAPI requestBody *map[string]map[string]any } @@ -322,7 +320,7 @@ Create a role. func (a *IamRolesAPIService) CreateARole(ctx context.Context) APICreateARoleRequest { return APICreateARoleRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -330,10 +328,10 @@ func (a *IamRolesAPIService) CreateARole(ctx context.Context) APICreateARoleRequ // @return map[string]any func (a *IamRolesAPIService) CreateARoleExecute(r APICreateARoleRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.CreateARole") @@ -414,7 +412,6 @@ func (a *IamRolesAPIService) CreateARoleExecute(r APICreateARoleRequest) (map[st return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -433,12 +430,11 @@ func (a *IamRolesAPIService) CreateARoleExecute(r APICreateARoleRequest) (map[st // APIDeleteARoleRequest represents a request for the resource. type APIDeleteARoleRequest struct { - ctx context.Context + ctx context.Context APIService IamRolesAPI - roleID string + roleID string } - // Execute calls the API using the request data configured. func (r APIDeleteARoleRequest) Execute() (*http.Response, error) { return r.APIService.DeleteARoleExecute(r) @@ -456,17 +452,17 @@ Delete a role. func (a *IamRolesAPIService) DeleteARole(ctx context.Context, roleID string) APIDeleteARoleRequest { return APIDeleteARoleRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } // DeleteARoleExecute executes the request func (a *IamRolesAPIService) DeleteARoleExecute(r APIDeleteARoleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.DeleteARole") @@ -537,7 +533,6 @@ func (a *IamRolesAPIService) DeleteARoleExecute(r APIDeleteARoleRequest) (*http. return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -556,12 +551,11 @@ func (a *IamRolesAPIService) DeleteARoleExecute(r APIDeleteARoleRequest) (*http. // APIGetARoleRequest represents a request for the resource. type APIGetARoleRequest struct { - ctx context.Context + ctx context.Context APIService IamRolesAPI - roleID string + roleID string } - // Execute calls the API using the request data configured. func (r APIGetARoleRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetARoleExecute(r) @@ -579,8 +573,8 @@ Get a role. func (a *IamRolesAPIService) GetARole(ctx context.Context, roleID string) APIGetARoleRequest { return APIGetARoleRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } @@ -588,10 +582,10 @@ func (a *IamRolesAPIService) GetARole(ctx context.Context, roleID string) APIGet // @return map[string]any func (a *IamRolesAPIService) GetARoleExecute(r APIGetARoleRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.GetARole") @@ -671,7 +665,6 @@ func (a *IamRolesAPIService) GetARoleExecute(r APIGetARoleRequest) (map[string]a return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -690,12 +683,11 @@ func (a *IamRolesAPIService) GetARoleExecute(r APIGetARoleRequest) (map[string]a // APIListRolePermissionsRequest represents a request for the resource. type APIListRolePermissionsRequest struct { - ctx context.Context + ctx context.Context APIService IamRolesAPI - roleID string + roleID string } - // Execute calls the API using the request data configured. func (r APIListRolePermissionsRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.ListRolePermissionsExecute(r) @@ -713,8 +705,8 @@ List all permissions in a role. func (a *IamRolesAPIService) ListRolePermissions(ctx context.Context, roleID string) APIListRolePermissionsRequest { return APIListRolePermissionsRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } @@ -722,10 +714,10 @@ func (a *IamRolesAPIService) ListRolePermissions(ctx context.Context, roleID str // @return map[string]any func (a *IamRolesAPIService) ListRolePermissionsExecute(r APIListRolePermissionsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.ListRolePermissions") @@ -805,7 +797,6 @@ func (a *IamRolesAPIService) ListRolePermissionsExecute(r APIListRolePermissions return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,10 +815,10 @@ func (a *IamRolesAPIService) ListRolePermissionsExecute(r APIListRolePermissions // APIListRolesRequest represents a request for the resource. type APIListRolesRequest struct { - ctx context.Context + ctx context.Context APIService IamRolesAPI - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -835,6 +826,7 @@ func (r *APIListRolesRequest) PerPage(perPage int32) *APIListRolesRequest { r.perPage = &perPage return r } + // Page Current page. func (r *APIListRolesRequest) Page(page int32) *APIListRolesRequest { r.page = &page @@ -857,7 +849,7 @@ List all roles. func (a *IamRolesAPIService) ListRoles(ctx context.Context) APIListRolesRequest { return APIListRolesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -865,10 +857,10 @@ func (a *IamRolesAPIService) ListRoles(ctx context.Context) APIListRolesRequest // @return map[string]any func (a *IamRolesAPIService) ListRolesExecute(r APIListRolesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.ListRoles") @@ -953,7 +945,6 @@ func (a *IamRolesAPIService) ListRolesExecute(r APIListRolesRequest) (map[string return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -972,9 +963,9 @@ func (a *IamRolesAPIService) ListRolesExecute(r APIListRolesRequest) (map[string // APIRemoveRolePermissionsRequest represents a request for the resource. type APIRemoveRolePermissionsRequest struct { - ctx context.Context - APIService IamRolesAPI - roleID string + ctx context.Context + APIService IamRolesAPI + roleID string requestBody *map[string]map[string]any } @@ -1001,17 +992,17 @@ Remove permissions from a role. func (a *IamRolesAPIService) RemoveRolePermissions(ctx context.Context, roleID string) APIRemoveRolePermissionsRequest { return APIRemoveRolePermissionsRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } // RemoveRolePermissionsExecute executes the request func (a *IamRolesAPIService) RemoveRolePermissionsExecute(r APIRemoveRolePermissionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.RemoveRolePermissions") @@ -1084,7 +1075,6 @@ func (a *IamRolesAPIService) RemoveRolePermissionsExecute(r APIRemoveRolePermiss return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1103,9 +1093,9 @@ func (a *IamRolesAPIService) RemoveRolePermissionsExecute(r APIRemoveRolePermiss // APIUpdateARoleRequest represents a request for the resource. type APIUpdateARoleRequest struct { - ctx context.Context - APIService IamRolesAPI - roleID string + ctx context.Context + APIService IamRolesAPI + roleID string requestBody *map[string]map[string]any } @@ -1132,8 +1122,8 @@ Update a role. func (a *IamRolesAPIService) UpdateARole(ctx context.Context, roleID string) APIUpdateARoleRequest { return APIUpdateARoleRequest{ APIService: a, - ctx: ctx, - roleID: roleID, + ctx: ctx, + roleID: roleID, } } @@ -1141,10 +1131,10 @@ func (a *IamRolesAPIService) UpdateARole(ctx context.Context, roleID string) API // @return map[string]any func (a *IamRolesAPIService) UpdateARoleExecute(r APIUpdateARoleRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.UpdateARole") @@ -1226,7 +1216,6 @@ func (a *IamRolesAPIService) UpdateARoleExecute(r APIUpdateARoleRequest) (map[st return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_service_groups.go b/fastly/api_iam_service_groups.go index 2fa0302..6820f6e 100644 --- a/fastly/api_iam_service_groups.go +++ b/fastly/api_iam_service_groups.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type IamServiceGroupsAPI interface { /* - AddServiceGroupServices Add services in a service group + AddServiceGroupServices Add services in a service group - Add services in a service group. + Add services in a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIAddServiceGroupServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIAddServiceGroupServicesRequest */ AddServiceGroupServices(ctx context.Context, serviceGroupID string) APIAddServiceGroupServicesRequest @@ -47,12 +46,12 @@ type IamServiceGroupsAPI interface { AddServiceGroupServicesExecute(r APIAddServiceGroupServicesRequest) (map[string]any, *http.Response, error) /* - CreateAServiceGroup Create a service group + CreateAServiceGroup Create a service group - Create a service group. + Create a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateAServiceGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAServiceGroupRequest */ CreateAServiceGroup(ctx context.Context) APICreateAServiceGroupRequest @@ -61,13 +60,13 @@ type IamServiceGroupsAPI interface { CreateAServiceGroupExecute(r APICreateAServiceGroupRequest) (map[string]any, *http.Response, error) /* - DeleteAServiceGroup Delete a service group + DeleteAServiceGroup Delete a service group - Delete a service group. + Delete a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIDeleteAServiceGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIDeleteAServiceGroupRequest */ DeleteAServiceGroup(ctx context.Context, serviceGroupID string) APIDeleteAServiceGroupRequest @@ -75,13 +74,13 @@ type IamServiceGroupsAPI interface { DeleteAServiceGroupExecute(r APIDeleteAServiceGroupRequest) (*http.Response, error) /* - GetAServiceGroup Get a service group + GetAServiceGroup Get a service group - Get a service group. + Get a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIGetAServiceGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIGetAServiceGroupRequest */ GetAServiceGroup(ctx context.Context, serviceGroupID string) APIGetAServiceGroupRequest @@ -90,13 +89,13 @@ type IamServiceGroupsAPI interface { GetAServiceGroupExecute(r APIGetAServiceGroupRequest) (map[string]any, *http.Response, error) /* - ListServiceGroupServices List services to a service group + ListServiceGroupServices List services to a service group - List services to a service group. + List services to a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIListServiceGroupServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIListServiceGroupServicesRequest */ ListServiceGroupServices(ctx context.Context, serviceGroupID string) APIListServiceGroupServicesRequest @@ -105,12 +104,12 @@ type IamServiceGroupsAPI interface { ListServiceGroupServicesExecute(r APIListServiceGroupServicesRequest) (map[string]any, *http.Response, error) /* - ListServiceGroups List service groups + ListServiceGroups List service groups - List all service groups. + List all service groups. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListServiceGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListServiceGroupsRequest */ ListServiceGroups(ctx context.Context) APIListServiceGroupsRequest @@ -119,13 +118,13 @@ type IamServiceGroupsAPI interface { ListServiceGroupsExecute(r APIListServiceGroupsRequest) (map[string]any, *http.Response, error) /* - RemoveServiceGroupServices Remove services from a service group + RemoveServiceGroupServices Remove services from a service group - Remove services from a service group. + Remove services from a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIRemoveServiceGroupServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIRemoveServiceGroupServicesRequest */ RemoveServiceGroupServices(ctx context.Context, serviceGroupID string) APIRemoveServiceGroupServicesRequest @@ -133,13 +132,13 @@ type IamServiceGroupsAPI interface { RemoveServiceGroupServicesExecute(r APIRemoveServiceGroupServicesRequest) (*http.Response, error) /* - UpdateAServiceGroup Update a service group + UpdateAServiceGroup Update a service group - Update a service group. + Update a service group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceGroupID Alphanumeric string identifying the service group. - @return APIUpdateAServiceGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIUpdateAServiceGroupRequest */ UpdateAServiceGroup(ctx context.Context, serviceGroupID string) APIUpdateAServiceGroupRequest @@ -153,10 +152,10 @@ type IamServiceGroupsAPIService service // APIAddServiceGroupServicesRequest represents a request for the resource. type APIAddServiceGroupServicesRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string - requestBody *map[string]map[string]any + requestBody *map[string]map[string]any } // RequestBody returns a pointer to a request. @@ -181,8 +180,8 @@ Add services in a service group. */ func (a *IamServiceGroupsAPIService) AddServiceGroupServices(ctx context.Context, serviceGroupID string) APIAddServiceGroupServicesRequest { return APIAddServiceGroupServicesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -191,10 +190,10 @@ func (a *IamServiceGroupsAPIService) AddServiceGroupServices(ctx context.Context // @return map[string]any func (a *IamServiceGroupsAPIService) AddServiceGroupServicesExecute(r APIAddServiceGroupServicesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.AddServiceGroupServices") @@ -276,7 +275,6 @@ func (a *IamServiceGroupsAPIService) AddServiceGroupServicesExecute(r APIAddServ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -295,8 +293,8 @@ func (a *IamServiceGroupsAPIService) AddServiceGroupServicesExecute(r APIAddServ // APICreateAServiceGroupRequest represents a request for the resource. type APICreateAServiceGroupRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI requestBody *map[string]map[string]any } @@ -322,7 +320,7 @@ Create a service group. func (a *IamServiceGroupsAPIService) CreateAServiceGroup(ctx context.Context) APICreateAServiceGroupRequest { return APICreateAServiceGroupRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -330,10 +328,10 @@ func (a *IamServiceGroupsAPIService) CreateAServiceGroup(ctx context.Context) AP // @return map[string]any func (a *IamServiceGroupsAPIService) CreateAServiceGroupExecute(r APICreateAServiceGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.CreateAServiceGroup") @@ -414,7 +412,6 @@ func (a *IamServiceGroupsAPIService) CreateAServiceGroupExecute(r APICreateAServ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -433,12 +430,11 @@ func (a *IamServiceGroupsAPIService) CreateAServiceGroupExecute(r APICreateAServ // APIDeleteAServiceGroupRequest represents a request for the resource. type APIDeleteAServiceGroupRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string } - // Execute calls the API using the request data configured. func (r APIDeleteAServiceGroupRequest) Execute() (*http.Response, error) { return r.APIService.DeleteAServiceGroupExecute(r) @@ -455,8 +451,8 @@ Delete a service group. */ func (a *IamServiceGroupsAPIService) DeleteAServiceGroup(ctx context.Context, serviceGroupID string) APIDeleteAServiceGroupRequest { return APIDeleteAServiceGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -464,9 +460,9 @@ func (a *IamServiceGroupsAPIService) DeleteAServiceGroup(ctx context.Context, se // DeleteAServiceGroupExecute executes the request func (a *IamServiceGroupsAPIService) DeleteAServiceGroupExecute(r APIDeleteAServiceGroupRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.DeleteAServiceGroup") @@ -537,7 +533,6 @@ func (a *IamServiceGroupsAPIService) DeleteAServiceGroupExecute(r APIDeleteAServ return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -556,12 +551,11 @@ func (a *IamServiceGroupsAPIService) DeleteAServiceGroupExecute(r APIDeleteAServ // APIGetAServiceGroupRequest represents a request for the resource. type APIGetAServiceGroupRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string } - // Execute calls the API using the request data configured. func (r APIGetAServiceGroupRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetAServiceGroupExecute(r) @@ -578,8 +572,8 @@ Get a service group. */ func (a *IamServiceGroupsAPIService) GetAServiceGroup(ctx context.Context, serviceGroupID string) APIGetAServiceGroupRequest { return APIGetAServiceGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -588,10 +582,10 @@ func (a *IamServiceGroupsAPIService) GetAServiceGroup(ctx context.Context, servi // @return map[string]any func (a *IamServiceGroupsAPIService) GetAServiceGroupExecute(r APIGetAServiceGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.GetAServiceGroup") @@ -671,7 +665,6 @@ func (a *IamServiceGroupsAPIService) GetAServiceGroupExecute(r APIGetAServiceGro return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -690,11 +683,11 @@ func (a *IamServiceGroupsAPIService) GetAServiceGroupExecute(r APIGetAServiceGro // APIListServiceGroupServicesRequest represents a request for the resource. type APIListServiceGroupServicesRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -702,6 +695,7 @@ func (r *APIListServiceGroupServicesRequest) PerPage(perPage int32) *APIListServ r.perPage = &perPage return r } + // Page Current page. func (r *APIListServiceGroupServicesRequest) Page(page int32) *APIListServiceGroupServicesRequest { r.page = &page @@ -724,8 +718,8 @@ List services to a service group. */ func (a *IamServiceGroupsAPIService) ListServiceGroupServices(ctx context.Context, serviceGroupID string) APIListServiceGroupServicesRequest { return APIListServiceGroupServicesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -734,10 +728,10 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupServices(ctx context.Contex // @return map[string]any func (a *IamServiceGroupsAPIService) ListServiceGroupServicesExecute(r APIListServiceGroupServicesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.ListServiceGroupServices") @@ -823,7 +817,6 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupServicesExecute(r APIListSe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -842,10 +835,10 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupServicesExecute(r APIListSe // APIListServiceGroupsRequest represents a request for the resource. type APIListServiceGroupsRequest struct { - ctx context.Context + ctx context.Context APIService IamServiceGroupsAPI - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -853,6 +846,7 @@ func (r *APIListServiceGroupsRequest) PerPage(perPage int32) *APIListServiceGrou r.perPage = &perPage return r } + // Page Current page. func (r *APIListServiceGroupsRequest) Page(page int32) *APIListServiceGroupsRequest { r.page = &page @@ -875,7 +869,7 @@ List all service groups. func (a *IamServiceGroupsAPIService) ListServiceGroups(ctx context.Context) APIListServiceGroupsRequest { return APIListServiceGroupsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -883,10 +877,10 @@ func (a *IamServiceGroupsAPIService) ListServiceGroups(ctx context.Context) APIL // @return map[string]any func (a *IamServiceGroupsAPIService) ListServiceGroupsExecute(r APIListServiceGroupsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.ListServiceGroups") @@ -971,7 +965,6 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupsExecute(r APIListServiceGr return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -990,10 +983,10 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupsExecute(r APIListServiceGr // APIRemoveServiceGroupServicesRequest represents a request for the resource. type APIRemoveServiceGroupServicesRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string - requestBody *map[string]map[string]any + requestBody *map[string]map[string]any } // RequestBody returns a pointer to a request. @@ -1018,8 +1011,8 @@ Remove services from a service group. */ func (a *IamServiceGroupsAPIService) RemoveServiceGroupServices(ctx context.Context, serviceGroupID string) APIRemoveServiceGroupServicesRequest { return APIRemoveServiceGroupServicesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -1027,9 +1020,9 @@ func (a *IamServiceGroupsAPIService) RemoveServiceGroupServices(ctx context.Cont // RemoveServiceGroupServicesExecute executes the request func (a *IamServiceGroupsAPIService) RemoveServiceGroupServicesExecute(r APIRemoveServiceGroupServicesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.RemoveServiceGroupServices") @@ -1102,7 +1095,6 @@ func (a *IamServiceGroupsAPIService) RemoveServiceGroupServicesExecute(r APIRemo return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1121,10 +1113,10 @@ func (a *IamServiceGroupsAPIService) RemoveServiceGroupServicesExecute(r APIRemo // APIUpdateAServiceGroupRequest represents a request for the resource. type APIUpdateAServiceGroupRequest struct { - ctx context.Context - APIService IamServiceGroupsAPI + ctx context.Context + APIService IamServiceGroupsAPI serviceGroupID string - requestBody *map[string]map[string]any + requestBody *map[string]map[string]any } // RequestBody returns a pointer to a request. @@ -1149,8 +1141,8 @@ Update a service group. */ func (a *IamServiceGroupsAPIService) UpdateAServiceGroup(ctx context.Context, serviceGroupID string) APIUpdateAServiceGroupRequest { return APIUpdateAServiceGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceGroupID: serviceGroupID, } } @@ -1159,10 +1151,10 @@ func (a *IamServiceGroupsAPIService) UpdateAServiceGroup(ctx context.Context, se // @return map[string]any func (a *IamServiceGroupsAPIService) UpdateAServiceGroupExecute(r APIUpdateAServiceGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.UpdateAServiceGroup") @@ -1244,7 +1236,6 @@ func (a *IamServiceGroupsAPIService) UpdateAServiceGroupExecute(r APIUpdateAServ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_user_groups.go b/fastly/api_iam_user_groups.go index 78783af..5b2401b 100644 --- a/fastly/api_iam_user_groups.go +++ b/fastly/api_iam_user_groups.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type IamUserGroupsAPI interface { /* - AddUserGroupMembers Add members to a user group + AddUserGroupMembers Add members to a user group - Add members to a user group. + Add members to a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIAddUserGroupMembersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupMembersRequest */ AddUserGroupMembers(ctx context.Context, userGroupID string) APIAddUserGroupMembersRequest @@ -47,13 +46,13 @@ type IamUserGroupsAPI interface { AddUserGroupMembersExecute(r APIAddUserGroupMembersRequest) (map[string]any, *http.Response, error) /* - AddUserGroupRoles Add roles to a user group + AddUserGroupRoles Add roles to a user group - Add roles to a user group. + Add roles to a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIAddUserGroupRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupRolesRequest */ AddUserGroupRoles(ctx context.Context, userGroupID string) APIAddUserGroupRolesRequest @@ -62,13 +61,13 @@ type IamUserGroupsAPI interface { AddUserGroupRolesExecute(r APIAddUserGroupRolesRequest) (map[string]any, *http.Response, error) /* - AddUserGroupServiceGroups Add service groups to a user group + AddUserGroupServiceGroups Add service groups to a user group - Add service groups to a user group. + Add service groups to a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIAddUserGroupServiceGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupServiceGroupsRequest */ AddUserGroupServiceGroups(ctx context.Context, userGroupID string) APIAddUserGroupServiceGroupsRequest @@ -77,12 +76,12 @@ type IamUserGroupsAPI interface { AddUserGroupServiceGroupsExecute(r APIAddUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) /* - CreateAUserGroup Create a user group + CreateAUserGroup Create a user group - Create a user group. + Create a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateAUserGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAUserGroupRequest */ CreateAUserGroup(ctx context.Context) APICreateAUserGroupRequest @@ -91,13 +90,13 @@ type IamUserGroupsAPI interface { CreateAUserGroupExecute(r APICreateAUserGroupRequest) (map[string]any, *http.Response, error) /* - DeleteAUserGroup Delete a user group + DeleteAUserGroup Delete a user group - Delete a user group. + Delete a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIDeleteAUserGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIDeleteAUserGroupRequest */ DeleteAUserGroup(ctx context.Context, userGroupID string) APIDeleteAUserGroupRequest @@ -105,13 +104,13 @@ type IamUserGroupsAPI interface { DeleteAUserGroupExecute(r APIDeleteAUserGroupRequest) (*http.Response, error) /* - GetAUserGroup Get a user group + GetAUserGroup Get a user group - Get a user group. + Get a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIGetAUserGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIGetAUserGroupRequest */ GetAUserGroup(ctx context.Context, userGroupID string) APIGetAUserGroupRequest @@ -120,13 +119,13 @@ type IamUserGroupsAPI interface { GetAUserGroupExecute(r APIGetAUserGroupRequest) (map[string]any, *http.Response, error) /* - ListUserGroupMembers List members of a user group + ListUserGroupMembers List members of a user group - List members of a user group. + List members of a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupMembersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupMembersRequest */ ListUserGroupMembers(ctx context.Context, userGroupID string) APIListUserGroupMembersRequest @@ -135,13 +134,13 @@ type IamUserGroupsAPI interface { ListUserGroupMembersExecute(r APIListUserGroupMembersRequest) (map[string]any, *http.Response, error) /* - ListUserGroupRoles List roles in a user group + ListUserGroupRoles List roles in a user group - List roles in a user group. + List roles in a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupRolesRequest */ ListUserGroupRoles(ctx context.Context, userGroupID string) APIListUserGroupRolesRequest @@ -150,13 +149,13 @@ type IamUserGroupsAPI interface { ListUserGroupRolesExecute(r APIListUserGroupRolesRequest) (map[string]any, *http.Response, error) /* - ListUserGroupServiceGroups List service groups in a user group + ListUserGroupServiceGroups List service groups in a user group - List service groups in a user group. + List service groups in a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupServiceGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupServiceGroupsRequest */ ListUserGroupServiceGroups(ctx context.Context, userGroupID string) APIListUserGroupServiceGroupsRequest @@ -165,12 +164,12 @@ type IamUserGroupsAPI interface { ListUserGroupServiceGroupsExecute(r APIListUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) /* - ListUserGroups List user groups + ListUserGroups List user groups - List all user groups. + List all user groups. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListUserGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListUserGroupsRequest */ ListUserGroups(ctx context.Context) APIListUserGroupsRequest @@ -179,13 +178,13 @@ type IamUserGroupsAPI interface { ListUserGroupsExecute(r APIListUserGroupsRequest) (map[string]any, *http.Response, error) /* - RemoveUserGroupMembers Remove members of a user group + RemoveUserGroupMembers Remove members of a user group - Remove members of a user group + Remove members of a user group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIRemoveUserGroupMembersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupMembersRequest */ RemoveUserGroupMembers(ctx context.Context, userGroupID string) APIRemoveUserGroupMembersRequest @@ -193,13 +192,13 @@ type IamUserGroupsAPI interface { RemoveUserGroupMembersExecute(r APIRemoveUserGroupMembersRequest) (*http.Response, error) /* - RemoveUserGroupRoles Remove roles from a user group + RemoveUserGroupRoles Remove roles from a user group - Remove roles from a user group. + Remove roles from a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIRemoveUserGroupRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupRolesRequest */ RemoveUserGroupRoles(ctx context.Context, userGroupID string) APIRemoveUserGroupRolesRequest @@ -207,13 +206,13 @@ type IamUserGroupsAPI interface { RemoveUserGroupRolesExecute(r APIRemoveUserGroupRolesRequest) (*http.Response, error) /* - RemoveUserGroupServiceGroups Remove service groups from a user group + RemoveUserGroupServiceGroups Remove service groups from a user group - Remove service groups from a user group. + Remove service groups from a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIRemoveUserGroupServiceGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupServiceGroupsRequest */ RemoveUserGroupServiceGroups(ctx context.Context, userGroupID string) APIRemoveUserGroupServiceGroupsRequest @@ -221,13 +220,13 @@ type IamUserGroupsAPI interface { RemoveUserGroupServiceGroupsExecute(r APIRemoveUserGroupServiceGroupsRequest) (*http.Response, error) /* - UpdateAUserGroup Update a user group + UpdateAUserGroup Update a user group - Update a user group. + Update a user group. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIUpdateAUserGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIUpdateAUserGroupRequest */ UpdateAUserGroup(ctx context.Context, userGroupID string) APIUpdateAUserGroupRequest @@ -241,8 +240,8 @@ type IamUserGroupsAPIService service // APIAddUserGroupMembersRequest represents a request for the resource. type APIAddUserGroupMembersRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -269,8 +268,8 @@ Add members to a user group. */ func (a *IamUserGroupsAPIService) AddUserGroupMembers(ctx context.Context, userGroupID string) APIAddUserGroupMembersRequest { return APIAddUserGroupMembersRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -279,10 +278,10 @@ func (a *IamUserGroupsAPIService) AddUserGroupMembers(ctx context.Context, userG // @return map[string]any func (a *IamUserGroupsAPIService) AddUserGroupMembersExecute(r APIAddUserGroupMembersRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupMembers") @@ -364,7 +363,6 @@ func (a *IamUserGroupsAPIService) AddUserGroupMembersExecute(r APIAddUserGroupMe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -383,8 +381,8 @@ func (a *IamUserGroupsAPIService) AddUserGroupMembersExecute(r APIAddUserGroupMe // APIAddUserGroupRolesRequest represents a request for the resource. type APIAddUserGroupRolesRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -411,8 +409,8 @@ Add roles to a user group. */ func (a *IamUserGroupsAPIService) AddUserGroupRoles(ctx context.Context, userGroupID string) APIAddUserGroupRolesRequest { return APIAddUserGroupRolesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -421,10 +419,10 @@ func (a *IamUserGroupsAPIService) AddUserGroupRoles(ctx context.Context, userGro // @return map[string]any func (a *IamUserGroupsAPIService) AddUserGroupRolesExecute(r APIAddUserGroupRolesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupRoles") @@ -506,7 +504,6 @@ func (a *IamUserGroupsAPIService) AddUserGroupRolesExecute(r APIAddUserGroupRole return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -525,8 +522,8 @@ func (a *IamUserGroupsAPIService) AddUserGroupRolesExecute(r APIAddUserGroupRole // APIAddUserGroupServiceGroupsRequest represents a request for the resource. type APIAddUserGroupServiceGroupsRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -553,8 +550,8 @@ Add service groups to a user group. */ func (a *IamUserGroupsAPIService) AddUserGroupServiceGroups(ctx context.Context, userGroupID string) APIAddUserGroupServiceGroupsRequest { return APIAddUserGroupServiceGroupsRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -563,10 +560,10 @@ func (a *IamUserGroupsAPIService) AddUserGroupServiceGroups(ctx context.Context, // @return map[string]any func (a *IamUserGroupsAPIService) AddUserGroupServiceGroupsExecute(r APIAddUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupServiceGroups") @@ -648,7 +645,6 @@ func (a *IamUserGroupsAPIService) AddUserGroupServiceGroupsExecute(r APIAddUserG return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -667,8 +663,8 @@ func (a *IamUserGroupsAPIService) AddUserGroupServiceGroupsExecute(r APIAddUserG // APICreateAUserGroupRequest represents a request for the resource. type APICreateAUserGroupRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI requestBody *map[string]map[string]any } @@ -694,7 +690,7 @@ Create a user group. func (a *IamUserGroupsAPIService) CreateAUserGroup(ctx context.Context) APICreateAUserGroupRequest { return APICreateAUserGroupRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -702,10 +698,10 @@ func (a *IamUserGroupsAPIService) CreateAUserGroup(ctx context.Context) APICreat // @return map[string]any func (a *IamUserGroupsAPIService) CreateAUserGroupExecute(r APICreateAUserGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.CreateAUserGroup") @@ -786,7 +782,6 @@ func (a *IamUserGroupsAPIService) CreateAUserGroupExecute(r APICreateAUserGroupR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -805,12 +800,11 @@ func (a *IamUserGroupsAPIService) CreateAUserGroupExecute(r APICreateAUserGroupR // APIDeleteAUserGroupRequest represents a request for the resource. type APIDeleteAUserGroupRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string } - // Execute calls the API using the request data configured. func (r APIDeleteAUserGroupRequest) Execute() (*http.Response, error) { return r.APIService.DeleteAUserGroupExecute(r) @@ -827,8 +821,8 @@ Delete a user group. */ func (a *IamUserGroupsAPIService) DeleteAUserGroup(ctx context.Context, userGroupID string) APIDeleteAUserGroupRequest { return APIDeleteAUserGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -836,9 +830,9 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroup(ctx context.Context, userGrou // DeleteAUserGroupExecute executes the request func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.DeleteAUserGroup") @@ -909,7 +903,6 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -928,12 +921,11 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR // APIGetAUserGroupRequest represents a request for the resource. type APIGetAUserGroupRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string } - // Execute calls the API using the request data configured. func (r APIGetAUserGroupRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetAUserGroupExecute(r) @@ -950,8 +942,8 @@ Get a user group. */ func (a *IamUserGroupsAPIService) GetAUserGroup(ctx context.Context, userGroupID string) APIGetAUserGroupRequest { return APIGetAUserGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -960,10 +952,10 @@ func (a *IamUserGroupsAPIService) GetAUserGroup(ctx context.Context, userGroupID // @return map[string]any func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.GetAUserGroup") @@ -1043,7 +1035,6 @@ func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1062,11 +1053,11 @@ func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest // APIListUserGroupMembersRequest represents a request for the resource. type APIListUserGroupMembersRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -1074,6 +1065,7 @@ func (r *APIListUserGroupMembersRequest) PerPage(perPage int32) *APIListUserGrou r.perPage = &perPage return r } + // Page Current page. func (r *APIListUserGroupMembersRequest) Page(page int32) *APIListUserGroupMembersRequest { r.page = &page @@ -1096,8 +1088,8 @@ List members of a user group. */ func (a *IamUserGroupsAPIService) ListUserGroupMembers(ctx context.Context, userGroupID string) APIListUserGroupMembersRequest { return APIListUserGroupMembersRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1106,10 +1098,10 @@ func (a *IamUserGroupsAPIService) ListUserGroupMembers(ctx context.Context, user // @return map[string]any func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroupMembersRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupMembers") @@ -1195,7 +1187,6 @@ func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroup return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1214,11 +1205,11 @@ func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroup // APIListUserGroupRolesRequest represents a request for the resource. type APIListUserGroupRolesRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -1226,6 +1217,7 @@ func (r *APIListUserGroupRolesRequest) PerPage(perPage int32) *APIListUserGroupR r.perPage = &perPage return r } + // Page Current page. func (r *APIListUserGroupRolesRequest) Page(page int32) *APIListUserGroupRolesRequest { r.page = &page @@ -1248,8 +1240,8 @@ List roles in a user group. */ func (a *IamUserGroupsAPIService) ListUserGroupRoles(ctx context.Context, userGroupID string) APIListUserGroupRolesRequest { return APIListUserGroupRolesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1258,10 +1250,10 @@ func (a *IamUserGroupsAPIService) ListUserGroupRoles(ctx context.Context, userGr // @return map[string]any func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRolesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupRoles") @@ -1347,7 +1339,6 @@ func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1366,11 +1357,11 @@ func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRo // APIListUserGroupServiceGroupsRequest represents a request for the resource. type APIListUserGroupServiceGroupsRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -1378,6 +1369,7 @@ func (r *APIListUserGroupServiceGroupsRequest) PerPage(perPage int32) *APIListUs r.perPage = &perPage return r } + // Page Current page. func (r *APIListUserGroupServiceGroupsRequest) Page(page int32) *APIListUserGroupServiceGroupsRequest { r.page = &page @@ -1400,8 +1392,8 @@ List service groups in a user group. */ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroups(ctx context.Context, userGroupID string) APIListUserGroupServiceGroupsRequest { return APIListUserGroupServiceGroupsRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1410,10 +1402,10 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroups(ctx context.Context // @return map[string]any func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupServiceGroups") @@ -1499,7 +1491,6 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1518,10 +1509,10 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse // APIListUserGroupsRequest represents a request for the resource. type APIListUserGroupsRequest struct { - ctx context.Context + ctx context.Context APIService IamUserGroupsAPI - perPage *int32 - page *int32 + perPage *int32 + page *int32 } // PerPage Number of records per page. @@ -1529,6 +1520,7 @@ func (r *APIListUserGroupsRequest) PerPage(perPage int32) *APIListUserGroupsRequ r.perPage = &perPage return r } + // Page Current page. func (r *APIListUserGroupsRequest) Page(page int32) *APIListUserGroupsRequest { r.page = &page @@ -1551,7 +1543,7 @@ List all user groups. func (a *IamUserGroupsAPIService) ListUserGroups(ctx context.Context) APIListUserGroupsRequest { return APIListUserGroupsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1559,10 +1551,10 @@ func (a *IamUserGroupsAPIService) ListUserGroups(ctx context.Context) APIListUse // @return map[string]any func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroups") @@ -1647,7 +1639,6 @@ func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1666,8 +1657,8 @@ func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsReque // APIRemoveUserGroupMembersRequest represents a request for the resource. type APIRemoveUserGroupMembersRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -1694,8 +1685,8 @@ Remove members of a user group */ func (a *IamUserGroupsAPIService) RemoveUserGroupMembers(ctx context.Context, userGroupID string) APIRemoveUserGroupMembersRequest { return APIRemoveUserGroupMembersRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1703,9 +1694,9 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupMembers(ctx context.Context, us // RemoveUserGroupMembersExecute executes the request func (a *IamUserGroupsAPIService) RemoveUserGroupMembersExecute(r APIRemoveUserGroupMembersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupMembers") @@ -1778,7 +1769,6 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupMembersExecute(r APIRemoveUserG return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1797,8 +1787,8 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupMembersExecute(r APIRemoveUserG // APIRemoveUserGroupRolesRequest represents a request for the resource. type APIRemoveUserGroupRolesRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -1825,8 +1815,8 @@ Remove roles from a user group. */ func (a *IamUserGroupsAPIService) RemoveUserGroupRoles(ctx context.Context, userGroupID string) APIRemoveUserGroupRolesRequest { return APIRemoveUserGroupRolesRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1834,9 +1824,9 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupRoles(ctx context.Context, user // RemoveUserGroupRolesExecute executes the request func (a *IamUserGroupsAPIService) RemoveUserGroupRolesExecute(r APIRemoveUserGroupRolesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupRoles") @@ -1909,7 +1899,6 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupRolesExecute(r APIRemoveUserGro return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1928,8 +1917,8 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupRolesExecute(r APIRemoveUserGro // APIRemoveUserGroupServiceGroupsRequest represents a request for the resource. type APIRemoveUserGroupServiceGroupsRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -1956,8 +1945,8 @@ Remove service groups from a user group. */ func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroups(ctx context.Context, userGroupID string) APIRemoveUserGroupServiceGroupsRequest { return APIRemoveUserGroupServiceGroupsRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -1965,9 +1954,9 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroups(ctx context.Conte // RemoveUserGroupServiceGroupsExecute executes the request func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroupsExecute(r APIRemoveUserGroupServiceGroupsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupServiceGroups") @@ -2040,7 +2029,6 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroupsExecute(r APIRemov return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -2059,8 +2047,8 @@ func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroupsExecute(r APIRemov // APIUpdateAUserGroupRequest represents a request for the resource. type APIUpdateAUserGroupRequest struct { - ctx context.Context - APIService IamUserGroupsAPI + ctx context.Context + APIService IamUserGroupsAPI userGroupID string requestBody *map[string]map[string]any } @@ -2087,8 +2075,8 @@ Update a user group. */ func (a *IamUserGroupsAPIService) UpdateAUserGroup(ctx context.Context, userGroupID string) APIUpdateAUserGroupRequest { return APIUpdateAUserGroupRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, userGroupID: userGroupID, } } @@ -2097,10 +2085,10 @@ func (a *IamUserGroupsAPIService) UpdateAUserGroup(ctx context.Context, userGrou // @return map[string]any func (a *IamUserGroupsAPIService) UpdateAUserGroupExecute(r APIUpdateAUserGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.UpdateAUserGroup") @@ -2182,7 +2170,6 @@ func (a *IamUserGroupsAPIService) UpdateAUserGroupExecute(r APIUpdateAUserGroupR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_image_optimizer_default_settings.go b/fastly/api_image_optimizer_default_settings.go index ebe3ef8..dd70d73 100644 --- a/fastly/api_image_optimizer_default_settings.go +++ b/fastly/api_image_optimizer_default_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type ImageOptimizerDefaultSettingsAPI interface { /* - GetDefaultSettings Get current Image Optimizer Default Settings + GetDefaultSettings Get current Image Optimizer Default Settings - Retrieve the current Image Optimizer default settings. All properties in the response will be populated. + Retrieve the current Image Optimizer default settings. All properties in the response will be populated. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetDefaultSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetDefaultSettingsRequest */ GetDefaultSettings(ctx context.Context, serviceID string, versionID int32) APIGetDefaultSettingsRequest @@ -49,16 +48,16 @@ type ImageOptimizerDefaultSettingsAPI interface { GetDefaultSettingsExecute(r APIGetDefaultSettingsRequest) (*DefaultSettingsResponse, *http.Response, error) /* - UpdateDefaultSettings Update Image Optimizer Default Settings + UpdateDefaultSettings Update Image Optimizer Default Settings - Update one or more default settings. A minimum of one property is required. The endpoint will respond with the new Image Optimizer default settings, -with all properties populated. + Update one or more default settings. A minimum of one property is required. The endpoint will respond with the new Image Optimizer default settings, + with all properties populated. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIUpdateDefaultSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIUpdateDefaultSettingsRequest */ UpdateDefaultSettings(ctx context.Context, serviceID string, versionID int32) APIUpdateDefaultSettingsRequest @@ -72,13 +71,12 @@ type ImageOptimizerDefaultSettingsAPIService service // APIGetDefaultSettingsRequest represents a request for the resource. type APIGetDefaultSettingsRequest struct { - ctx context.Context + ctx context.Context APIService ImageOptimizerDefaultSettingsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetDefaultSettingsRequest) Execute() (*DefaultSettingsResponse, *http.Response, error) { return r.APIService.GetDefaultSettingsExecute(r) @@ -98,9 +96,9 @@ Retrieve the current Image Optimizer default settings. All properties in the res func (a *ImageOptimizerDefaultSettingsAPIService) GetDefaultSettings(ctx context.Context, serviceID string, versionID int32) APIGetDefaultSettingsRequest { return APIGetDefaultSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -108,10 +106,10 @@ func (a *ImageOptimizerDefaultSettingsAPIService) GetDefaultSettings(ctx context // @return DefaultSettingsResponse func (a *ImageOptimizerDefaultSettingsAPIService) GetDefaultSettingsExecute(r APIGetDefaultSettingsRequest) (*DefaultSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *DefaultSettingsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DefaultSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ImageOptimizerDefaultSettingsAPIService.GetDefaultSettings") @@ -201,7 +199,6 @@ func (a *ImageOptimizerDefaultSettingsAPIService) GetDefaultSettingsExecute(r AP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -220,10 +217,10 @@ func (a *ImageOptimizerDefaultSettingsAPIService) GetDefaultSettingsExecute(r AP // APIUpdateDefaultSettingsRequest represents a request for the resource. type APIUpdateDefaultSettingsRequest struct { - ctx context.Context - APIService ImageOptimizerDefaultSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService ImageOptimizerDefaultSettingsAPI + serviceID string + versionID int32 defaultSettings *DefaultSettings } @@ -253,9 +250,9 @@ with all properties populated. func (a *ImageOptimizerDefaultSettingsAPIService) UpdateDefaultSettings(ctx context.Context, serviceID string, versionID int32) APIUpdateDefaultSettingsRequest { return APIUpdateDefaultSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -263,10 +260,10 @@ func (a *ImageOptimizerDefaultSettingsAPIService) UpdateDefaultSettings(ctx cont // @return DefaultSettingsResponse func (a *ImageOptimizerDefaultSettingsAPIService) UpdateDefaultSettingsExecute(r APIUpdateDefaultSettingsRequest) (*DefaultSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *DefaultSettingsResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *DefaultSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ImageOptimizerDefaultSettingsAPIService.UpdateDefaultSettings") @@ -368,7 +365,6 @@ func (a *ImageOptimizerDefaultSettingsAPIService) UpdateDefaultSettingsExecute(r return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_invitations.go b/fastly/api_invitations.go index d7a1657..26585e1 100644 --- a/fastly/api_invitations.go +++ b/fastly/api_invitations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type InvitationsAPI interface { /* - CreateInvitation Create an invitation + CreateInvitation Create an invitation - Create an invitation. + Create an invitation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateInvitationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateInvitationRequest */ CreateInvitation(ctx context.Context) APICreateInvitationRequest @@ -46,13 +45,13 @@ type InvitationsAPI interface { CreateInvitationExecute(r APICreateInvitationRequest) (*InvitationResponse, *http.Response, error) /* - DeleteInvitation Delete an invitation + DeleteInvitation Delete an invitation - Delete an invitation. + Delete an invitation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param invitationID Alphanumeric string identifying an invitation. - @return APIDeleteInvitationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param invitationID Alphanumeric string identifying an invitation. + @return APIDeleteInvitationRequest */ DeleteInvitation(ctx context.Context, invitationID string) APIDeleteInvitationRequest @@ -60,12 +59,12 @@ type InvitationsAPI interface { DeleteInvitationExecute(r APIDeleteInvitationRequest) (*http.Response, error) /* - ListInvitations List invitations + ListInvitations List invitations - List all invitations. + List all invitations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListInvitationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListInvitationsRequest */ ListInvitations(ctx context.Context) APIListInvitationsRequest @@ -79,7 +78,7 @@ type InvitationsAPIService service // APICreateInvitationRequest represents a request for the resource. type APICreateInvitationRequest struct { - ctx context.Context + ctx context.Context APIService InvitationsAPI invitation *Invitation } @@ -106,7 +105,7 @@ Create an invitation. func (a *InvitationsAPIService) CreateInvitation(ctx context.Context) APICreateInvitationRequest { return APICreateInvitationRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -114,10 +113,10 @@ func (a *InvitationsAPIService) CreateInvitation(ctx context.Context) APICreateI // @return InvitationResponse func (a *InvitationsAPIService) CreateInvitationExecute(r APICreateInvitationRequest) (*InvitationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *InvitationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *InvitationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InvitationsAPIService.CreateInvitation") @@ -198,7 +197,6 @@ func (a *InvitationsAPIService) CreateInvitationExecute(r APICreateInvitationReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -217,12 +215,11 @@ func (a *InvitationsAPIService) CreateInvitationExecute(r APICreateInvitationReq // APIDeleteInvitationRequest represents a request for the resource. type APIDeleteInvitationRequest struct { - ctx context.Context - APIService InvitationsAPI + ctx context.Context + APIService InvitationsAPI invitationID string } - // Execute calls the API using the request data configured. func (r APIDeleteInvitationRequest) Execute() (*http.Response, error) { return r.APIService.DeleteInvitationExecute(r) @@ -239,8 +236,8 @@ Delete an invitation. */ func (a *InvitationsAPIService) DeleteInvitation(ctx context.Context, invitationID string) APIDeleteInvitationRequest { return APIDeleteInvitationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, invitationID: invitationID, } } @@ -248,9 +245,9 @@ func (a *InvitationsAPIService) DeleteInvitation(ctx context.Context, invitation // DeleteInvitationExecute executes the request func (a *InvitationsAPIService) DeleteInvitationExecute(r APIDeleteInvitationRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InvitationsAPIService.DeleteInvitation") @@ -321,7 +318,6 @@ func (a *InvitationsAPIService) DeleteInvitationExecute(r APIDeleteInvitationReq return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -340,10 +336,10 @@ func (a *InvitationsAPIService) DeleteInvitationExecute(r APIDeleteInvitationReq // APIListInvitationsRequest represents a request for the resource. type APIListInvitationsRequest struct { - ctx context.Context + ctx context.Context APIService InvitationsAPI pageNumber *int32 - pageSize *int32 + pageSize *int32 } // PageNumber Current page. @@ -351,6 +347,7 @@ func (r *APIListInvitationsRequest) PageNumber(pageNumber int32) *APIListInvitat r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListInvitationsRequest) PageSize(pageSize int32) *APIListInvitationsRequest { r.pageSize = &pageSize @@ -373,7 +370,7 @@ List all invitations. func (a *InvitationsAPIService) ListInvitations(ctx context.Context) APIListInvitationsRequest { return APIListInvitationsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -381,10 +378,10 @@ func (a *InvitationsAPIService) ListInvitations(ctx context.Context) APIListInvi // @return InvitationsResponse func (a *InvitationsAPIService) ListInvitationsExecute(r APIListInvitationsRequest) (*InvitationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InvitationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InvitationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InvitationsAPIService.ListInvitations") @@ -469,7 +466,6 @@ func (a *InvitationsAPIService) ListInvitationsExecute(r APIListInvitationsReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_kv_store.go b/fastly/api_kv_store.go index 841971c..f4e2e6e 100644 --- a/fastly/api_kv_store.go +++ b/fastly/api_kv_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type KvStoreAPI interface { /* - CreateStore Create a KV store. + CreateStore Create a KV store. - Create a new KV store. + Create a new KV store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateStoreRequest */ CreateStore(ctx context.Context) APICreateStoreRequest @@ -46,13 +45,13 @@ type KvStoreAPI interface { CreateStoreExecute(r APICreateStoreRequest) (*StoreResponse, *http.Response, error) /* - DeleteStore Delete a KV store. + DeleteStore Delete a KV store. - A KV store must be empty before it can be deleted. Deleting a KV store that still contains keys will result in a `409` (Conflict). + A KV store must be empty before it can be deleted. Deleting a KV store that still contains keys will result in a `409` (Conflict). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIDeleteStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIDeleteStoreRequest */ DeleteStore(ctx context.Context, storeID string) APIDeleteStoreRequest @@ -60,13 +59,13 @@ type KvStoreAPI interface { DeleteStoreExecute(r APIDeleteStoreRequest) (*http.Response, error) /* - GetStore Describe a KV store. + GetStore Describe a KV store. - Get a KV store by ID. + Get a KV store by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIGetStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetStoreRequest */ GetStore(ctx context.Context, storeID string) APIGetStoreRequest @@ -75,12 +74,12 @@ type KvStoreAPI interface { GetStoreExecute(r APIGetStoreRequest) (*StoreResponse, *http.Response, error) /* - GetStores List KV stores. + GetStores List KV stores. - Get all stores for a given customer. + Get all stores for a given customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetStoresRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetStoresRequest */ GetStores(ctx context.Context) APIGetStoresRequest @@ -94,10 +93,10 @@ type KvStoreAPIService service // APICreateStoreRequest represents a request for the resource. type APICreateStoreRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreAPI - location *string - store *Store + location *string + store *Store } // Location returns a pointer to a request. @@ -105,6 +104,7 @@ func (r *APICreateStoreRequest) Location(location string) *APICreateStoreRequest r.location = &location return r } + // Store returns a pointer to a request. func (r *APICreateStoreRequest) Store(store Store) *APICreateStoreRequest { r.store = &store @@ -127,7 +127,7 @@ Create a new KV store. func (a *KvStoreAPIService) CreateStore(ctx context.Context) APICreateStoreRequest { return APICreateStoreRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -135,10 +135,10 @@ func (a *KvStoreAPIService) CreateStore(ctx context.Context) APICreateStoreReque // @return StoreResponse func (a *KvStoreAPIService) CreateStoreExecute(r APICreateStoreRequest) (*StoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *StoreResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *StoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreAPIService.CreateStore") @@ -222,7 +222,6 @@ func (a *KvStoreAPIService) CreateStoreExecute(r APICreateStoreRequest) (*StoreR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -241,12 +240,11 @@ func (a *KvStoreAPIService) CreateStoreExecute(r APICreateStoreRequest) (*StoreR // APIDeleteStoreRequest represents a request for the resource. type APIDeleteStoreRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreAPI - storeID string + storeID string } - // Execute calls the API using the request data configured. func (r APIDeleteStoreRequest) Execute() (*http.Response, error) { return r.APIService.DeleteStoreExecute(r) @@ -264,17 +262,17 @@ A KV store must be empty before it can be deleted. Deleting a KV store that sti func (a *KvStoreAPIService) DeleteStore(ctx context.Context, storeID string) APIDeleteStoreRequest { return APIDeleteStoreRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } // DeleteStoreExecute executes the request func (a *KvStoreAPIService) DeleteStoreExecute(r APIDeleteStoreRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreAPIService.DeleteStore") @@ -345,7 +343,6 @@ func (a *KvStoreAPIService) DeleteStoreExecute(r APIDeleteStoreRequest) (*http.R return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -364,12 +361,11 @@ func (a *KvStoreAPIService) DeleteStoreExecute(r APIDeleteStoreRequest) (*http.R // APIGetStoreRequest represents a request for the resource. type APIGetStoreRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreAPI - storeID string + storeID string } - // Execute calls the API using the request data configured. func (r APIGetStoreRequest) Execute() (*StoreResponse, *http.Response, error) { return r.APIService.GetStoreExecute(r) @@ -387,8 +383,8 @@ Get a KV store by ID. func (a *KvStoreAPIService) GetStore(ctx context.Context, storeID string) APIGetStoreRequest { return APIGetStoreRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -396,10 +392,10 @@ func (a *KvStoreAPIService) GetStore(ctx context.Context, storeID string) APIGet // @return StoreResponse func (a *KvStoreAPIService) GetStoreExecute(r APIGetStoreRequest) (*StoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *StoreResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *StoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreAPIService.GetStore") @@ -479,7 +475,6 @@ func (a *KvStoreAPIService) GetStoreExecute(r APIGetStoreRequest) (*StoreRespons return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -498,10 +493,10 @@ func (a *KvStoreAPIService) GetStoreExecute(r APIGetStoreRequest) (*StoreRespons // APIGetStoresRequest represents a request for the resource. type APIGetStoresRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreAPI - cursor *string - limit *int32 + cursor *string + limit *int32 } // Cursor returns a pointer to a request. @@ -509,6 +504,7 @@ func (r *APIGetStoresRequest) Cursor(cursor string) *APIGetStoresRequest { r.cursor = &cursor return r } + // Limit returns a pointer to a request. func (r *APIGetStoresRequest) Limit(limit int32) *APIGetStoresRequest { r.limit = &limit @@ -531,7 +527,7 @@ Get all stores for a given customer. func (a *KvStoreAPIService) GetStores(ctx context.Context) APIGetStoresRequest { return APIGetStoresRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -539,10 +535,10 @@ func (a *KvStoreAPIService) GetStores(ctx context.Context) APIGetStoresRequest { // @return InlineResponse2003 func (a *KvStoreAPIService) GetStoresExecute(r APIGetStoresRequest) (*InlineResponse2003, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2003 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2003 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreAPIService.GetStores") @@ -627,7 +623,6 @@ func (a *KvStoreAPIService) GetStoresExecute(r APIGetStoresRequest) (*InlineResp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_kv_store_item.go b/fastly/api_kv_store_item.go index ff6d96f..670c233 100644 --- a/fastly/api_kv_store_item.go +++ b/fastly/api_kv_store_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type KvStoreItemAPI interface { /* - DeleteKeyFromStore Delete kv store item. + DeleteKeyFromStore Delete kv store item. - Delete an item from an kv store + Delete an item from an kv store - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @param keyName - @return APIDeleteKeyFromStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param keyName + @return APIDeleteKeyFromStoreRequest */ DeleteKeyFromStore(ctx context.Context, storeID string, keyName string) APIDeleteKeyFromStoreRequest @@ -47,13 +46,13 @@ type KvStoreItemAPI interface { DeleteKeyFromStoreExecute(r APIDeleteKeyFromStoreRequest) (*http.Response, error) /* - GetKeys List kv store keys. + GetKeys List kv store keys. - List the keys of all items within an kv store. + List the keys of all items within an kv store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIGetKeysRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetKeysRequest */ GetKeys(ctx context.Context, storeID string) APIGetKeysRequest @@ -62,14 +61,14 @@ type KvStoreItemAPI interface { GetKeysExecute(r APIGetKeysRequest) (*InlineResponse2004, *http.Response, error) /* - GetValueForKey Get the value of an kv store item + GetValueForKey Get the value of an kv store item - Get the value associated with a key. + Get the value associated with a key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @param keyName - @return APIGetValueForKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param keyName + @return APIGetValueForKeyRequest */ GetValueForKey(ctx context.Context, storeID string, keyName string) APIGetValueForKeyRequest @@ -78,14 +77,14 @@ type KvStoreItemAPI interface { GetValueForKeyExecute(r APIGetValueForKeyRequest) (string, *http.Response, error) /* - SetValueForKey Insert an item into an kv store + SetValueForKey Insert an item into an kv store - Set a new value for a new or existing key in an kv store. + Set a new value for a new or existing key in an kv store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @param keyName - @return APISetValueForKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param keyName + @return APISetValueForKeyRequest */ SetValueForKey(ctx context.Context, storeID string, keyName string) APISetValueForKeyRequest @@ -99,13 +98,12 @@ type KvStoreItemAPIService service // APIDeleteKeyFromStoreRequest represents a request for the resource. type APIDeleteKeyFromStoreRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreItemAPI - storeID string - keyName string + storeID string + keyName string } - // Execute calls the API using the request data configured. func (r APIDeleteKeyFromStoreRequest) Execute() (*http.Response, error) { return r.APIService.DeleteKeyFromStoreExecute(r) @@ -124,18 +122,18 @@ Delete an item from an kv store func (a *KvStoreItemAPIService) DeleteKeyFromStore(ctx context.Context, storeID string, keyName string) APIDeleteKeyFromStoreRequest { return APIDeleteKeyFromStoreRequest{ APIService: a, - ctx: ctx, - storeID: storeID, - keyName: keyName, + ctx: ctx, + storeID: storeID, + keyName: keyName, } } // DeleteKeyFromStoreExecute executes the request func (a *KvStoreItemAPIService) DeleteKeyFromStoreExecute(r APIDeleteKeyFromStoreRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreItemAPIService.DeleteKeyFromStore") @@ -207,7 +205,6 @@ func (a *KvStoreItemAPIService) DeleteKeyFromStoreExecute(r APIDeleteKeyFromStor return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -226,12 +223,12 @@ func (a *KvStoreItemAPIService) DeleteKeyFromStoreExecute(r APIDeleteKeyFromStor // APIGetKeysRequest represents a request for the resource. type APIGetKeysRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreItemAPI - storeID string - cursor *string - limit *int32 - prefix *string + storeID string + cursor *string + limit *int32 + prefix *string } // Cursor returns a pointer to a request. @@ -239,11 +236,13 @@ func (r *APIGetKeysRequest) Cursor(cursor string) *APIGetKeysRequest { r.cursor = &cursor return r } + // Limit returns a pointer to a request. func (r *APIGetKeysRequest) Limit(limit int32) *APIGetKeysRequest { r.limit = &limit return r } + // Prefix returns a pointer to a request. func (r *APIGetKeysRequest) Prefix(prefix string) *APIGetKeysRequest { r.prefix = &prefix @@ -267,8 +266,8 @@ List the keys of all items within an kv store. func (a *KvStoreItemAPIService) GetKeys(ctx context.Context, storeID string) APIGetKeysRequest { return APIGetKeysRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -276,10 +275,10 @@ func (a *KvStoreItemAPIService) GetKeys(ctx context.Context, storeID string) API // @return InlineResponse2004 func (a *KvStoreItemAPIService) GetKeysExecute(r APIGetKeysRequest) (*InlineResponse2004, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2004 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2004 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreItemAPIService.GetKeys") @@ -368,7 +367,6 @@ func (a *KvStoreItemAPIService) GetKeysExecute(r APIGetKeysRequest) (*InlineResp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -387,13 +385,12 @@ func (a *KvStoreItemAPIService) GetKeysExecute(r APIGetKeysRequest) (*InlineResp // APIGetValueForKeyRequest represents a request for the resource. type APIGetValueForKeyRequest struct { - ctx context.Context + ctx context.Context APIService KvStoreItemAPI - storeID string - keyName string + storeID string + keyName string } - // Execute calls the API using the request data configured. func (r APIGetValueForKeyRequest) Execute() (string, *http.Response, error) { return r.APIService.GetValueForKeyExecute(r) @@ -412,9 +409,9 @@ Get the value associated with a key. func (a *KvStoreItemAPIService) GetValueForKey(ctx context.Context, storeID string, keyName string) APIGetValueForKeyRequest { return APIGetValueForKeyRequest{ APIService: a, - ctx: ctx, - storeID: storeID, - keyName: keyName, + ctx: ctx, + storeID: storeID, + keyName: keyName, } } @@ -422,10 +419,10 @@ func (a *KvStoreItemAPIService) GetValueForKey(ctx context.Context, storeID stri // @return string func (a *KvStoreItemAPIService) GetValueForKeyExecute(r APIGetValueForKeyRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreItemAPIService.GetValueForKey") @@ -506,7 +503,6 @@ func (a *KvStoreItemAPIService) GetValueForKeyExecute(r APIGetValueForKeyRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -525,18 +521,18 @@ func (a *KvStoreItemAPIService) GetValueForKeyExecute(r APIGetValueForKeyRequest // APISetValueForKeyRequest represents a request for the resource. type APISetValueForKeyRequest struct { - ctx context.Context - APIService KvStoreItemAPI - storeID string - keyName string + ctx context.Context + APIService KvStoreItemAPI + storeID string + keyName string ifGenerationMatch *int32 - timeToLiveSec *int32 - metadata *string - add *bool - append *bool - prepend *bool - backgroundFetch *bool - body *string + timeToLiveSec *int32 + metadata *string + add *bool + append *bool + prepend *bool + backgroundFetch *bool + body *string } // IfGenerationMatch returns a pointer to a request. @@ -544,36 +540,43 @@ func (r *APISetValueForKeyRequest) IfGenerationMatch(ifGenerationMatch int32) *A r.ifGenerationMatch = &ifGenerationMatch return r } + // TimeToLiveSec returns a pointer to a request. func (r *APISetValueForKeyRequest) TimeToLiveSec(timeToLiveSec int32) *APISetValueForKeyRequest { r.timeToLiveSec = &timeToLiveSec return r } + // Metadata returns a pointer to a request. func (r *APISetValueForKeyRequest) Metadata(metadata string) *APISetValueForKeyRequest { r.metadata = &metadata return r } + // Add returns a pointer to a request. func (r *APISetValueForKeyRequest) Add(add bool) *APISetValueForKeyRequest { r.add = &add return r } + // Append returns a pointer to a request. func (r *APISetValueForKeyRequest) Append(append bool) *APISetValueForKeyRequest { r.append = &append return r } + // Prepend returns a pointer to a request. func (r *APISetValueForKeyRequest) Prepend(prepend bool) *APISetValueForKeyRequest { r.prepend = &prepend return r } + // BackgroundFetch returns a pointer to a request. func (r *APISetValueForKeyRequest) BackgroundFetch(backgroundFetch bool) *APISetValueForKeyRequest { r.backgroundFetch = &backgroundFetch return r } + // Body returns a pointer to a request. func (r *APISetValueForKeyRequest) Body(body string) *APISetValueForKeyRequest { r.body = &body @@ -598,9 +601,9 @@ Set a new value for a new or existing key in an kv store. func (a *KvStoreItemAPIService) SetValueForKey(ctx context.Context, storeID string, keyName string) APISetValueForKeyRequest { return APISetValueForKeyRequest{ APIService: a, - ctx: ctx, - storeID: storeID, - keyName: keyName, + ctx: ctx, + storeID: storeID, + keyName: keyName, } } @@ -608,10 +611,10 @@ func (a *KvStoreItemAPIService) SetValueForKey(ctx context.Context, storeID stri // @return string func (a *KvStoreItemAPIService) SetValueForKeyExecute(r APISetValueForKeyRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KvStoreItemAPIService.SetValueForKey") @@ -715,7 +718,6 @@ func (a *KvStoreItemAPIService) SetValueForKeyExecute(r APISetValueForKeyRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_configuration_sets.go b/fastly/api_legacy_waf_configuration_sets.go index bd09fba..581e31e 100644 --- a/fastly/api_legacy_waf_configuration_sets.go +++ b/fastly/api_legacy_waf_configuration_sets.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LegacyWafConfigurationSetsAPI interface { /* - ListWafConfigSets List configuration sets + ListWafConfigSets List configuration sets - List all Configuration sets. + List all Configuration sets. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListWafConfigSetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafConfigSetsRequest - Deprecated + Deprecated */ ListWafConfigSets(ctx context.Context) APIListWafConfigSetsRequest @@ -49,15 +48,15 @@ type LegacyWafConfigurationSetsAPI interface { ListWafConfigSetsExecute(r APIListWafConfigSetsRequest) (map[string]any, *http.Response, error) /* - ListWafsConfigSet List WAFs currently using a configuration set + ListWafsConfigSet List WAFs currently using a configuration set - List the WAF objects currently using the specified configuration set. + List the WAF objects currently using the specified configuration set. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configurationSetID Alphanumeric string identifying a WAF configuration set. - @return APIListWafsConfigSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIListWafsConfigSetRequest - Deprecated + Deprecated */ ListWafsConfigSet(ctx context.Context, configurationSetID string) APIListWafsConfigSetRequest @@ -67,15 +66,15 @@ type LegacyWafConfigurationSetsAPI interface { ListWafsConfigSetExecute(r APIListWafsConfigSetRequest) (map[string]any, *http.Response, error) /* - UseWafConfigSet Apply a configuration set to a WAF + UseWafConfigSet Apply a configuration set to a WAF - Update one or more WAF objects to use the specified configuration set. + Update one or more WAF objects to use the specified configuration set. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configurationSetID Alphanumeric string identifying a WAF configuration set. - @return APIUseWafConfigSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIUseWafConfigSetRequest - Deprecated + Deprecated */ UseWafConfigSet(ctx context.Context, configurationSetID string) APIUseWafConfigSetRequest @@ -90,11 +89,10 @@ type LegacyWafConfigurationSetsAPIService service // APIListWafConfigSetsRequest represents a request for the resource. type APIListWafConfigSetsRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafConfigurationSetsAPI } - // Execute calls the API using the request data configured. func (r APIListWafConfigSetsRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.ListWafConfigSetsExecute(r) @@ -113,7 +111,7 @@ Deprecated func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSets(ctx context.Context) APIListWafConfigSetsRequest { return APIListWafConfigSetsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -122,10 +120,10 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSets(ctx context.Con // Deprecated func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSetsExecute(r APIListWafConfigSetsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.ListWafConfigSets") @@ -204,7 +202,6 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSetsExecute(r APILis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -223,12 +220,11 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSetsExecute(r APILis // APIListWafsConfigSetRequest represents a request for the resource. type APIListWafsConfigSetRequest struct { - ctx context.Context - APIService LegacyWafConfigurationSetsAPI + ctx context.Context + APIService LegacyWafConfigurationSetsAPI configurationSetID string } - // Execute calls the API using the request data configured. func (r APIListWafsConfigSetRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.ListWafsConfigSetExecute(r) @@ -247,8 +243,8 @@ Deprecated */ func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSet(ctx context.Context, configurationSetID string) APIListWafsConfigSetRequest { return APIListWafsConfigSetRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configurationSetID: configurationSetID, } } @@ -258,10 +254,10 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSet(ctx context.Con // Deprecated func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSetExecute(r APIListWafsConfigSetRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.ListWafsConfigSet") @@ -341,7 +337,6 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSetExecute(r APILis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -360,10 +355,10 @@ func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSetExecute(r APILis // APIUseWafConfigSetRequest represents a request for the resource. type APIUseWafConfigSetRequest struct { - ctx context.Context - APIService LegacyWafConfigurationSetsAPI + ctx context.Context + APIService LegacyWafConfigurationSetsAPI configurationSetID string - requestBody *map[string]map[string]any + requestBody *map[string]map[string]any } // RequestBody returns a pointer to a request. @@ -390,8 +385,8 @@ Deprecated */ func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSet(ctx context.Context, configurationSetID string) APIUseWafConfigSetRequest { return APIUseWafConfigSetRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, configurationSetID: configurationSetID, } } @@ -401,10 +396,10 @@ func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSet(ctx context.Conte // Deprecated func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSetExecute(r APIUseWafConfigSetRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.UseWafConfigSet") @@ -486,7 +481,6 @@ func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSetExecute(r APIUseWa return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_firewall.go b/fastly/api_legacy_waf_firewall.go index b12c038..610808e 100644 --- a/fastly/api_legacy_waf_firewall.go +++ b/fastly/api_legacy_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type LegacyWafFirewallAPI interface { /* - CreateLegacyWafFirewallService Create a firewall + CreateLegacyWafFirewallService Create a firewall - Create a firewall object for a particular service and version. + Create a firewall object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLegacyWafFirewallServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLegacyWafFirewallServiceRequest - Deprecated + Deprecated */ CreateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32) APICreateLegacyWafFirewallServiceRequest @@ -51,15 +50,15 @@ type LegacyWafFirewallAPI interface { CreateLegacyWafFirewallServiceExecute(r APICreateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) /* - DisableLegacyWafFirewall Disable a firewall + DisableLegacyWafFirewall Disable a firewall - Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a Firewall. - @return APIDisableLegacyWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIDisableLegacyWafFirewallRequest - Deprecated + Deprecated */ DisableLegacyWafFirewall(ctx context.Context, firewallID string) APIDisableLegacyWafFirewallRequest @@ -69,15 +68,15 @@ type LegacyWafFirewallAPI interface { DisableLegacyWafFirewallExecute(r APIDisableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) /* - EnableLegacyWafFirewall Enable a firewall + EnableLegacyWafFirewall Enable a firewall - Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a Firewall. - @return APIEnableLegacyWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIEnableLegacyWafFirewallRequest - Deprecated + Deprecated */ EnableLegacyWafFirewall(ctx context.Context, firewallID string) APIEnableLegacyWafFirewallRequest @@ -87,15 +86,15 @@ type LegacyWafFirewallAPI interface { EnableLegacyWafFirewallExecute(r APIEnableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) /* - GetLegacyWafFirewall Get a firewall object + GetLegacyWafFirewall Get a firewall object - Get a specific firewall object. + Get a specific firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a Firewall. - @return APIGetLegacyWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallRequest - Deprecated + Deprecated */ GetLegacyWafFirewall(ctx context.Context, firewallID string) APIGetLegacyWafFirewallRequest @@ -105,17 +104,17 @@ type LegacyWafFirewallAPI interface { GetLegacyWafFirewallExecute(r APIGetLegacyWafFirewallRequest) (map[string]any, *http.Response, error) /* - GetLegacyWafFirewallService Get a firewall + GetLegacyWafFirewallService Get a firewall - Get a specific firewall object. + Get a specific firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIGetLegacyWafFirewallServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallServiceRequest - Deprecated + Deprecated */ GetLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIGetLegacyWafFirewallServiceRequest @@ -125,14 +124,14 @@ type LegacyWafFirewallAPI interface { GetLegacyWafFirewallServiceExecute(r APIGetLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) /* - ListLegacyWafFirewalls List active firewalls + ListLegacyWafFirewalls List active firewalls - List all active firewall objects. + List all active firewall objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListLegacyWafFirewallsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafFirewallsRequest - Deprecated + Deprecated */ ListLegacyWafFirewalls(ctx context.Context) APIListLegacyWafFirewallsRequest @@ -142,16 +141,16 @@ type LegacyWafFirewallAPI interface { ListLegacyWafFirewallsExecute(r APIListLegacyWafFirewallsRequest) (map[string]any, *http.Response, error) /* - ListLegacyWafFirewallsService List firewalls + ListLegacyWafFirewallsService List firewalls - List all firewall objects for a particular service and version. + List all firewall objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLegacyWafFirewallsServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLegacyWafFirewallsServiceRequest - Deprecated + Deprecated */ ListLegacyWafFirewallsService(ctx context.Context, serviceID string, versionID int32) APIListLegacyWafFirewallsServiceRequest @@ -161,18 +160,18 @@ type LegacyWafFirewallAPI interface { ListLegacyWafFirewallsServiceExecute(r APIListLegacyWafFirewallsServiceRequest) (map[string]any, *http.Response, error) /* - UpdateLegacyWafFirewallService Update a firewall + UpdateLegacyWafFirewallService Update a firewall - Update a firewall object for a particular service and version. + Update a firewall object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIUpdateLegacyWafFirewallServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateLegacyWafFirewallServiceRequest - Deprecated + Deprecated */ UpdateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIUpdateLegacyWafFirewallServiceRequest @@ -187,10 +186,10 @@ type LegacyWafFirewallAPIService service // APICreateLegacyWafFirewallServiceRequest represents a request for the resource. type APICreateLegacyWafFirewallServiceRequest struct { - ctx context.Context - APIService LegacyWafFirewallAPI - serviceID string - versionID int32 + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 requestBody *map[string]map[string]any } @@ -220,9 +219,9 @@ Deprecated func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32) APICreateLegacyWafFirewallServiceRequest { return APICreateLegacyWafFirewallServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -231,10 +230,10 @@ func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallService(ctx context // Deprecated func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallServiceExecute(r APICreateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.CreateLegacyWafFirewallService") @@ -317,7 +316,6 @@ func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallServiceExecute(r AP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -336,9 +334,9 @@ func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallServiceExecute(r AP // APIDisableLegacyWafFirewallRequest represents a request for the resource. type APIDisableLegacyWafFirewallRequest struct { - ctx context.Context - APIService LegacyWafFirewallAPI - firewallID string + ctx context.Context + APIService LegacyWafFirewallAPI + firewallID string requestBody *map[string]map[string]any } @@ -367,7 +365,7 @@ Deprecated func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewall(ctx context.Context, firewallID string) APIDisableLegacyWafFirewallRequest { return APIDisableLegacyWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -377,10 +375,10 @@ func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewall(ctx context.Conte // Deprecated func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewallExecute(r APIDisableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.DisableLegacyWafFirewall") @@ -462,7 +460,6 @@ func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewallExecute(r APIDisab return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -481,9 +478,9 @@ func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewallExecute(r APIDisab // APIEnableLegacyWafFirewallRequest represents a request for the resource. type APIEnableLegacyWafFirewallRequest struct { - ctx context.Context - APIService LegacyWafFirewallAPI - firewallID string + ctx context.Context + APIService LegacyWafFirewallAPI + firewallID string requestBody *map[string]map[string]any } @@ -512,7 +509,7 @@ Deprecated func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewall(ctx context.Context, firewallID string) APIEnableLegacyWafFirewallRequest { return APIEnableLegacyWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -522,10 +519,10 @@ func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewall(ctx context.Contex // Deprecated func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewallExecute(r APIEnableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.EnableLegacyWafFirewall") @@ -607,7 +604,6 @@ func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewallExecute(r APIEnable return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -626,13 +622,13 @@ func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewallExecute(r APIEnable // APIGetLegacyWafFirewallRequest represents a request for the resource. type APIGetLegacyWafFirewallRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafFirewallAPI firewallID string - include *string + include *string } -// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. func (r *APIGetLegacyWafFirewallRequest) Include(include string) *APIGetLegacyWafFirewallRequest { r.include = &include return r @@ -657,7 +653,7 @@ Deprecated func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewall(ctx context.Context, firewallID string) APIGetLegacyWafFirewallRequest { return APIGetLegacyWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -667,10 +663,10 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewall(ctx context.Context, // Deprecated func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallExecute(r APIGetLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.GetLegacyWafFirewall") @@ -753,7 +749,6 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallExecute(r APIGetLegacy return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -772,14 +767,13 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallExecute(r APIGetLegacy // APIGetLegacyWafFirewallServiceRequest represents a request for the resource. type APIGetLegacyWafFirewallServiceRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafFirewallAPI - serviceID string - versionID int32 + serviceID string + versionID int32 firewallID string } - // Execute calls the API using the request data configured. func (r APIGetLegacyWafFirewallServiceRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetLegacyWafFirewallServiceExecute(r) @@ -801,9 +795,9 @@ Deprecated func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIGetLegacyWafFirewallServiceRequest { return APIGetLegacyWafFirewallServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, firewallID: firewallID, } } @@ -813,10 +807,10 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallService(ctx context.Co // Deprecated func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallServiceExecute(r APIGetLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.GetLegacyWafFirewallService") @@ -898,7 +892,6 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallServiceExecute(r APIGe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -917,12 +910,12 @@ func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallServiceExecute(r APIGe // APIListLegacyWafFirewallsRequest represents a request for the resource. type APIListLegacyWafFirewallsRequest struct { - ctx context.Context - APIService LegacyWafFirewallAPI + ctx context.Context + APIService LegacyWafFirewallAPI filterRulesRuleID *string - pageNumber *int32 - pageSize *int32 - include *string + pageNumber *int32 + pageSize *int32 + include *string } // FilterRulesRuleID Limit the returned firewalls to a specific rule ID. @@ -930,17 +923,20 @@ func (r *APIListLegacyWafFirewallsRequest) FilterRulesRuleID(filterRulesRuleID s r.filterRulesRuleID = &filterRulesRuleID return r } + // PageNumber Current page. func (r *APIListLegacyWafFirewallsRequest) PageNumber(pageNumber int32) *APIListLegacyWafFirewallsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListLegacyWafFirewallsRequest) PageSize(pageSize int32) *APIListLegacyWafFirewallsRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. + +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. func (r *APIListLegacyWafFirewallsRequest) Include(include string) *APIListLegacyWafFirewallsRequest { r.include = &include return r @@ -964,7 +960,7 @@ Deprecated func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewalls(ctx context.Context) APIListLegacyWafFirewallsRequest { return APIListLegacyWafFirewallsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -973,10 +969,10 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewalls(ctx context.Context // Deprecated func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsExecute(r APIListLegacyWafFirewallsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.ListLegacyWafFirewalls") @@ -1067,7 +1063,6 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsExecute(r APIListLeg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1086,13 +1081,13 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsExecute(r APIListLeg // APIListLegacyWafFirewallsServiceRequest represents a request for the resource. type APIListLegacyWafFirewallsServiceRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafFirewallAPI - serviceID string - versionID int32 + serviceID string + versionID int32 pageNumber *int32 - pageSize *int32 - include *string + pageSize *int32 + include *string } // PageNumber Current page. @@ -1100,12 +1095,14 @@ func (r *APIListLegacyWafFirewallsServiceRequest) PageNumber(pageNumber int32) * r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListLegacyWafFirewallsServiceRequest) PageSize(pageSize int32) *APIListLegacyWafFirewallsServiceRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. + +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. func (r *APIListLegacyWafFirewallsServiceRequest) Include(include string) *APIListLegacyWafFirewallsServiceRequest { r.include = &include return r @@ -1131,9 +1128,9 @@ Deprecated func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsService(ctx context.Context, serviceID string, versionID int32) APIListLegacyWafFirewallsServiceRequest { return APIListLegacyWafFirewallsServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1142,10 +1139,10 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsService(ctx context. // Deprecated func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsServiceExecute(r APIListLegacyWafFirewallsServiceRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.ListLegacyWafFirewallsService") @@ -1235,7 +1232,6 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsServiceExecute(r API return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1254,11 +1250,11 @@ func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsServiceExecute(r API // APIUpdateLegacyWafFirewallServiceRequest represents a request for the resource. type APIUpdateLegacyWafFirewallServiceRequest struct { - ctx context.Context - APIService LegacyWafFirewallAPI - serviceID string - versionID int32 - firewallID string + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 + firewallID string requestBody *map[string]map[string]any } @@ -1290,9 +1286,9 @@ Deprecated func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIUpdateLegacyWafFirewallServiceRequest { return APIUpdateLegacyWafFirewallServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, firewallID: firewallID, } } @@ -1302,10 +1298,10 @@ func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallService(ctx context // Deprecated func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallServiceExecute(r APIUpdateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.UpdateLegacyWafFirewallService") @@ -1389,7 +1385,6 @@ func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallServiceExecute(r AP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_owasp.go b/fastly/api_legacy_waf_owasp.go index 72c0d80..5faa7f9 100644 --- a/fastly/api_legacy_waf_owasp.go +++ b/fastly/api_legacy_waf_owasp.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type LegacyWafOwaspAPI interface { /* - CreateOwaspSettings Create an OWASP settings object + CreateOwaspSettings Create an OWASP settings object - Create an OWASP settings object for a particular service and firewall. + Create an OWASP settings object for a particular service and firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APICreateOwaspSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APICreateOwaspSettingsRequest - Deprecated + Deprecated */ CreateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APICreateOwaspSettingsRequest @@ -51,16 +50,16 @@ type LegacyWafOwaspAPI interface { CreateOwaspSettingsExecute(r APICreateOwaspSettingsRequest) (map[string]any, *http.Response, error) /* - GetOwaspSettings Get the OWASP settings object + GetOwaspSettings Get the OWASP settings object - Get the OWASP settings object for a particular service and firewall. + Get the OWASP settings object for a particular service and firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIGetOwaspSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetOwaspSettingsRequest - Deprecated + Deprecated */ GetOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIGetOwaspSettingsRequest @@ -70,16 +69,16 @@ type LegacyWafOwaspAPI interface { GetOwaspSettingsExecute(r APIGetOwaspSettingsRequest) (map[string]any, *http.Response, error) /* - UpdateOwaspSettings Update the OWASP settings object + UpdateOwaspSettings Update the OWASP settings object - Update the OWASP settings object for a particular service and firewall. + Update the OWASP settings object for a particular service and firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIUpdateOwaspSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateOwaspSettingsRequest - Deprecated + Deprecated */ UpdateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIUpdateOwaspSettingsRequest @@ -94,10 +93,10 @@ type LegacyWafOwaspAPIService service // APICreateOwaspSettingsRequest represents a request for the resource. type APICreateOwaspSettingsRequest struct { - ctx context.Context - APIService LegacyWafOwaspAPI - serviceID string - firewallID string + ctx context.Context + APIService LegacyWafOwaspAPI + serviceID string + firewallID string requestBody *map[string]map[string]any } @@ -127,8 +126,8 @@ Deprecated func (a *LegacyWafOwaspAPIService) CreateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APICreateOwaspSettingsRequest { return APICreateOwaspSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -138,10 +137,10 @@ func (a *LegacyWafOwaspAPIService) CreateOwaspSettings(ctx context.Context, serv // Deprecated func (a *LegacyWafOwaspAPIService) CreateOwaspSettingsExecute(r APICreateOwaspSettingsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.CreateOwaspSettings") @@ -224,7 +223,6 @@ func (a *LegacyWafOwaspAPIService) CreateOwaspSettingsExecute(r APICreateOwaspSe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -243,13 +241,12 @@ func (a *LegacyWafOwaspAPIService) CreateOwaspSettingsExecute(r APICreateOwaspSe // APIGetOwaspSettingsRequest represents a request for the resource. type APIGetOwaspSettingsRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafOwaspAPI - serviceID string + serviceID string firewallID string } - // Execute calls the API using the request data configured. func (r APIGetOwaspSettingsRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetOwaspSettingsExecute(r) @@ -270,8 +267,8 @@ Deprecated func (a *LegacyWafOwaspAPIService) GetOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIGetOwaspSettingsRequest { return APIGetOwaspSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -281,10 +278,10 @@ func (a *LegacyWafOwaspAPIService) GetOwaspSettings(ctx context.Context, service // Deprecated func (a *LegacyWafOwaspAPIService) GetOwaspSettingsExecute(r APIGetOwaspSettingsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.GetOwaspSettings") @@ -365,7 +362,6 @@ func (a *LegacyWafOwaspAPIService) GetOwaspSettingsExecute(r APIGetOwaspSettings return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -384,10 +380,10 @@ func (a *LegacyWafOwaspAPIService) GetOwaspSettingsExecute(r APIGetOwaspSettings // APIUpdateOwaspSettingsRequest represents a request for the resource. type APIUpdateOwaspSettingsRequest struct { - ctx context.Context - APIService LegacyWafOwaspAPI - serviceID string - firewallID string + ctx context.Context + APIService LegacyWafOwaspAPI + serviceID string + firewallID string requestBody *map[string]map[string]any } @@ -417,8 +413,8 @@ Deprecated func (a *LegacyWafOwaspAPIService) UpdateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIUpdateOwaspSettingsRequest { return APIUpdateOwaspSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -428,10 +424,10 @@ func (a *LegacyWafOwaspAPIService) UpdateOwaspSettings(ctx context.Context, serv // Deprecated func (a *LegacyWafOwaspAPIService) UpdateOwaspSettingsExecute(r APIUpdateOwaspSettingsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.UpdateOwaspSettings") @@ -514,7 +510,6 @@ func (a *LegacyWafOwaspAPIService) UpdateOwaspSettingsExecute(r APIUpdateOwaspSe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_rule.go b/fastly/api_legacy_waf_rule.go index fb83bf4..abbf319 100644 --- a/fastly/api_legacy_waf_rule.go +++ b/fastly/api_legacy_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type LegacyWafRuleAPI interface { /* - GetLegacyWafFirewallRuleVcl Get VCL for a rule associated with a firewall + GetLegacyWafFirewallRuleVcl Get VCL for a rule associated with a firewall - Get associated VCL for a specific rule associated with a specific firewall. + Get associated VCL for a specific rule associated with a specific firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a Firewall. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetLegacyWafFirewallRuleVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafFirewallRuleVclRequest - Deprecated + Deprecated */ GetLegacyWafFirewallRuleVcl(ctx context.Context, firewallID string, wafRuleID string) APIGetLegacyWafFirewallRuleVclRequest @@ -51,15 +50,15 @@ type LegacyWafRuleAPI interface { GetLegacyWafFirewallRuleVclExecute(r APIGetLegacyWafFirewallRuleVclRequest) (map[string]any, *http.Response, error) /* - GetLegacyWafRule Get a rule + GetLegacyWafRule Get a rule - Get a specific rule. + Get a specific rule. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetLegacyWafRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleRequest - Deprecated + Deprecated */ GetLegacyWafRule(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleRequest @@ -69,15 +68,15 @@ type LegacyWafRuleAPI interface { GetLegacyWafRuleExecute(r APIGetLegacyWafRuleRequest) (map[string]any, *http.Response, error) /* - GetLegacyWafRuleVcl Get VCL for a rule + GetLegacyWafRuleVcl Get VCL for a rule - Get associated VCL for a specific rule. + Get associated VCL for a specific rule. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetLegacyWafRuleVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleVclRequest - Deprecated + Deprecated */ GetLegacyWafRuleVcl(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleVclRequest @@ -87,14 +86,14 @@ type LegacyWafRuleAPI interface { GetLegacyWafRuleVclExecute(r APIGetLegacyWafRuleVclRequest) (map[string]any, *http.Response, error) /* - ListLegacyWafRules List rules in the latest configuration set + ListLegacyWafRules List rules in the latest configuration set - List all rules in the latest configuration set. + List all rules in the latest configuration set. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListLegacyWafRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafRulesRequest - Deprecated + Deprecated */ ListLegacyWafRules(ctx context.Context) APIListLegacyWafRulesRequest @@ -109,13 +108,12 @@ type LegacyWafRuleAPIService service // APIGetLegacyWafFirewallRuleVclRequest represents a request for the resource. type APIGetLegacyWafFirewallRuleVclRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafRuleAPI firewallID string - wafRuleID string + wafRuleID string } - // Execute calls the API using the request data configured. func (r APIGetLegacyWafFirewallRuleVclRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetLegacyWafFirewallRuleVclExecute(r) @@ -136,9 +134,9 @@ Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVcl(ctx context.Context, firewallID string, wafRuleID string) APIGetLegacyWafFirewallRuleVclRequest { return APIGetLegacyWafFirewallRuleVclRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - wafRuleID: wafRuleID, + wafRuleID: wafRuleID, } } @@ -147,10 +145,10 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVcl(ctx context.Contex // Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVclExecute(r APIGetLegacyWafFirewallRuleVclRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafFirewallRuleVcl") @@ -231,7 +229,6 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVclExecute(r APIGetLeg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -250,11 +247,11 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVclExecute(r APIGetLeg // APIGetLegacyWafRuleRequest represents a request for the resource. type APIGetLegacyWafRuleRequest struct { - ctx context.Context - APIService LegacyWafRuleAPI - wafRuleID string + ctx context.Context + APIService LegacyWafRuleAPI + wafRuleID string filterConfigurationSetID *string - include *string + include *string } // FilterConfigurationSetID Optional. Limit rule to a specific configuration set or pass \"all\" to search all configuration sets, including stale ones. @@ -262,7 +259,8 @@ func (r *APIGetLegacyWafRuleRequest) FilterConfigurationSetID(filterConfiguratio r.filterConfigurationSetID = &filterConfigurationSetID return r } -// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, `source`, and `vcl`. + +// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, `source`, and `vcl`. func (r *APIGetLegacyWafRuleRequest) Include(include string) *APIGetLegacyWafRuleRequest { r.include = &include return r @@ -287,8 +285,8 @@ Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafRule(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleRequest { return APIGetLegacyWafRuleRequest{ APIService: a, - ctx: ctx, - wafRuleID: wafRuleID, + ctx: ctx, + wafRuleID: wafRuleID, } } @@ -297,10 +295,10 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRule(ctx context.Context, wafRuleI // Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafRuleExecute(r APIGetLegacyWafRuleRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafRule") @@ -386,7 +384,6 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRuleExecute(r APIGetLegacyWafRuleR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -405,12 +402,11 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRuleExecute(r APIGetLegacyWafRuleR // APIGetLegacyWafRuleVclRequest represents a request for the resource. type APIGetLegacyWafRuleVclRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafRuleAPI - wafRuleID string + wafRuleID string } - // Execute calls the API using the request data configured. func (r APIGetLegacyWafRuleVclRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetLegacyWafRuleVclExecute(r) @@ -430,8 +426,8 @@ Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVcl(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleVclRequest { return APIGetLegacyWafRuleVclRequest{ APIService: a, - ctx: ctx, - wafRuleID: wafRuleID, + ctx: ctx, + wafRuleID: wafRuleID, } } @@ -440,10 +436,10 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVcl(ctx context.Context, wafRu // Deprecated func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVclExecute(r APIGetLegacyWafRuleVclRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafRuleVcl") @@ -523,7 +519,6 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVclExecute(r APIGetLegacyWafRu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -542,15 +537,15 @@ func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVclExecute(r APIGetLegacyWafRu // APIListLegacyWafRulesRequest represents a request for the resource. type APIListLegacyWafRulesRequest struct { - ctx context.Context - APIService LegacyWafRuleAPI - filterRuleID *string - filterSeverity *string - filterTagsName *string + ctx context.Context + APIService LegacyWafRuleAPI + filterRuleID *string + filterSeverity *string + filterTagsName *string filterConfigurationSetID *string - pageNumber *int32 - pageSize *int32 - include *string + pageNumber *int32 + pageSize *int32 + include *string } // FilterRuleID Limit the returned rules to a specific rule ID. @@ -558,32 +553,38 @@ func (r *APIListLegacyWafRulesRequest) FilterRuleID(filterRuleID string) *APILis r.filterRuleID = &filterRuleID return r } + // FilterSeverity Limit the returned rules to a specific severity. func (r *APIListLegacyWafRulesRequest) FilterSeverity(filterSeverity string) *APIListLegacyWafRulesRequest { r.filterSeverity = &filterSeverity return r } + // FilterTagsName Limit the returned rules to a set linked to a tag by name. func (r *APIListLegacyWafRulesRequest) FilterTagsName(filterTagsName string) *APIListLegacyWafRulesRequest { r.filterTagsName = &filterTagsName return r } + // FilterConfigurationSetID Optional. Limit rules to specific configuration set or pass \"all\" to search all configuration sets, including stale ones. func (r *APIListLegacyWafRulesRequest) FilterConfigurationSetID(filterConfigurationSetID string) *APIListLegacyWafRulesRequest { r.filterConfigurationSetID = &filterConfigurationSetID return r } + // PageNumber Current page. func (r *APIListLegacyWafRulesRequest) PageNumber(pageNumber int32) *APIListLegacyWafRulesRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListLegacyWafRulesRequest) PageSize(pageSize int32) *APIListLegacyWafRulesRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, and `source`. + +// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, and `source`. func (r *APIListLegacyWafRulesRequest) Include(include string) *APIListLegacyWafRulesRequest { r.include = &include return r @@ -607,7 +608,7 @@ Deprecated func (a *LegacyWafRuleAPIService) ListLegacyWafRules(ctx context.Context) APIListLegacyWafRulesRequest { return APIListLegacyWafRulesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -616,10 +617,10 @@ func (a *LegacyWafRuleAPIService) ListLegacyWafRules(ctx context.Context) APILis // Deprecated func (a *LegacyWafRuleAPIService) ListLegacyWafRulesExecute(r APIListLegacyWafRulesRequest) ([]map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.ListLegacyWafRules") @@ -719,7 +720,6 @@ func (a *LegacyWafRuleAPIService) ListLegacyWafRulesExecute(r APIListLegacyWafRu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_rule_status.go b/fastly/api_legacy_waf_rule_status.go index d1515f8..29a45d5 100644 --- a/fastly/api_legacy_waf_rule_status.go +++ b/fastly/api_legacy_waf_rule_status.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,17 +31,17 @@ var ( type LegacyWafRuleStatusAPI interface { /* - GetWafFirewallRuleStatus Get the status of a rule on a firewall + GetWafFirewallRuleStatus Get the status of a rule on a firewall - Get a specific rule status object for a particular service, firewall, and rule. + Get a specific rule status object for a particular service, firewall, and rule. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetWafFirewallRuleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetWafFirewallRuleStatusRequest - Deprecated + Deprecated */ GetWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIGetWafFirewallRuleStatusRequest @@ -52,16 +51,16 @@ type LegacyWafRuleStatusAPI interface { GetWafFirewallRuleStatusExecute(r APIGetWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) /* - ListWafFirewallRuleStatuses List rule statuses + ListWafFirewallRuleStatuses List rule statuses - List all rule statuses for a particular service and firewall. + List all rule statuses for a particular service and firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIListWafFirewallRuleStatusesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafFirewallRuleStatusesRequest - Deprecated + Deprecated */ ListWafFirewallRuleStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafFirewallRuleStatusesRequest @@ -71,17 +70,17 @@ type LegacyWafRuleStatusAPI interface { ListWafFirewallRuleStatusesExecute(r APIListWafFirewallRuleStatusesRequest) (map[string]any, *http.Response, error) /* - UpdateWafFirewallRuleStatus Update the status of a rule + UpdateWafFirewallRuleStatus Update the status of a rule - Update a rule status for a particular service, firewall, and rule. + Update a rule status for a particular service, firewall, and rule. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIUpdateWafFirewallRuleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIUpdateWafFirewallRuleStatusRequest - Deprecated + Deprecated */ UpdateWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIUpdateWafFirewallRuleStatusRequest @@ -91,16 +90,16 @@ type LegacyWafRuleStatusAPI interface { UpdateWafFirewallRuleStatusExecute(r APIUpdateWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) /* - UpdateWafFirewallRuleStatusesTag Create or update status of a tagged group of rules + UpdateWafFirewallRuleStatusesTag Create or update status of a tagged group of rules - Create or update all rule statuses for a particular service and firewall, based on tag name. By default, only rule status for enabled rules (with status log or block) will be updated. To update rule statuses for disabled rules under the specified tag, use the force attribute. + Create or update all rule statuses for a particular service and firewall, based on tag name. By default, only rule status for enabled rules (with status log or block) will be updated. To update rule statuses for disabled rules under the specified tag, use the force attribute. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIUpdateWafFirewallRuleStatusesTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafFirewallRuleStatusesTagRequest - Deprecated + Deprecated */ UpdateWafFirewallRuleStatusesTag(ctx context.Context, serviceID string, firewallID string) APIUpdateWafFirewallRuleStatusesTagRequest @@ -115,14 +114,13 @@ type LegacyWafRuleStatusAPIService service // APIGetWafFirewallRuleStatusRequest represents a request for the resource. type APIGetWafFirewallRuleStatusRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafRuleStatusAPI - serviceID string + serviceID string firewallID string - wafRuleID string + wafRuleID string } - // Execute calls the API using the request data configured. func (r APIGetWafFirewallRuleStatusRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetWafFirewallRuleStatusExecute(r) @@ -144,10 +142,10 @@ Deprecated func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIGetWafFirewallRuleStatusRequest { return APIGetWafFirewallRuleStatusRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, - wafRuleID: wafRuleID, + wafRuleID: wafRuleID, } } @@ -156,10 +154,10 @@ func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatus(ctx context.Con // Deprecated func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatusExecute(r APIGetWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.GetWafFirewallRuleStatus") @@ -241,7 +239,6 @@ func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatusExecute(r APIGet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -260,18 +257,18 @@ func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatusExecute(r APIGet // APIListWafFirewallRuleStatusesRequest represents a request for the resource. type APIListWafFirewallRuleStatusesRequest struct { - ctx context.Context - APIService LegacyWafRuleStatusAPI - serviceID string - firewallID string - filterStatus *string - filterRuleMessage *string - filterRuleRuleID *string - filterRuleTags *string + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + filterStatus *string + filterRuleMessage *string + filterRuleRuleID *string + filterRuleTags *string filterRuleTagsName *string - include *string - pageNumber *int32 - pageSize *int32 + include *string + pageNumber *int32 + pageSize *int32 } // FilterStatus Limit results to rule statuses with the specified status. @@ -279,36 +276,43 @@ func (r *APIListWafFirewallRuleStatusesRequest) FilterStatus(filterStatus string r.filterStatus = &filterStatus return r } + // FilterRuleMessage Limit results to rule statuses whose rules have the specified message. func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleMessage(filterRuleMessage string) *APIListWafFirewallRuleStatusesRequest { r.filterRuleMessage = &filterRuleMessage return r } + // FilterRuleRuleID Limit results to rule statuses whose rules represent the specified ModSecurity rule_id. func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleRuleID(filterRuleRuleID string) *APIListWafFirewallRuleStatusesRequest { r.filterRuleRuleID = &filterRuleRuleID return r } + // FilterRuleTags Limit results to rule statuses whose rules relate to the specified tag IDs. func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleTags(filterRuleTags string) *APIListWafFirewallRuleStatusesRequest { r.filterRuleTags = &filterRuleTags return r } + // FilterRuleTagsName Limit results to rule statuses whose rules related to the named tags. func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleTagsName(filterRuleTagsName string) *APIListWafFirewallRuleStatusesRequest { r.filterRuleTagsName = &filterRuleTagsName return r } -// Include Include relationships. Optional, comma separated values. Permitted values: `tags`. + +// Include Include relationships. Optional, comma separated values. Permitted values: `tags`. func (r *APIListWafFirewallRuleStatusesRequest) Include(include string) *APIListWafFirewallRuleStatusesRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListWafFirewallRuleStatusesRequest) PageNumber(pageNumber int32) *APIListWafFirewallRuleStatusesRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafFirewallRuleStatusesRequest) PageSize(pageSize int32) *APIListWafFirewallRuleStatusesRequest { r.pageSize = &pageSize @@ -335,8 +339,8 @@ Deprecated func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafFirewallRuleStatusesRequest { return APIListWafFirewallRuleStatusesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -346,10 +350,10 @@ func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatuses(ctx context. // Deprecated func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatusesExecute(r APIListWafFirewallRuleStatusesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.ListWafFirewallRuleStatuses") @@ -454,7 +458,6 @@ func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatusesExecute(r API return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -473,11 +476,11 @@ func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatusesExecute(r API // APIUpdateWafFirewallRuleStatusRequest represents a request for the resource. type APIUpdateWafFirewallRuleStatusRequest struct { - ctx context.Context - APIService LegacyWafRuleStatusAPI - serviceID string - firewallID string - wafRuleID string + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + wafRuleID string requestBody *map[string]map[string]any } @@ -508,10 +511,10 @@ Deprecated func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIUpdateWafFirewallRuleStatusRequest { return APIUpdateWafFirewallRuleStatusRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, - wafRuleID: wafRuleID, + wafRuleID: wafRuleID, } } @@ -520,10 +523,10 @@ func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatus(ctx context. // Deprecated func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusExecute(r APIUpdateWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatus") @@ -607,7 +610,6 @@ func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusExecute(r API return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -626,12 +628,12 @@ func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusExecute(r API // APIUpdateWafFirewallRuleStatusesTagRequest represents a request for the resource. type APIUpdateWafFirewallRuleStatusesTagRequest struct { - ctx context.Context - APIService LegacyWafRuleStatusAPI - serviceID string - firewallID string - name *string - force *string + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + name *string + force *string requestBody *map[string]map[string]any } @@ -640,11 +642,13 @@ func (r *APIUpdateWafFirewallRuleStatusesTagRequest) Name(name string) *APIUpdat r.name = &name return r } + // Force Whether or not to update rule statuses for disabled rules. Optional. func (r *APIUpdateWafFirewallRuleStatusesTagRequest) Force(force string) *APIUpdateWafFirewallRuleStatusesTagRequest { r.force = &force return r } + // RequestBody returns a pointer to a request. func (r *APIUpdateWafFirewallRuleStatusesTagRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateWafFirewallRuleStatusesTagRequest { r.requestBody = &requestBody @@ -671,8 +675,8 @@ Deprecated func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTag(ctx context.Context, serviceID string, firewallID string) APIUpdateWafFirewallRuleStatusesTagRequest { return APIUpdateWafFirewallRuleStatusesTagRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -682,10 +686,10 @@ func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTag(ctx con // Deprecated func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTagExecute(r APIUpdateWafFirewallRuleStatusesTagRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatusesTag") @@ -774,7 +778,6 @@ func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTagExecute( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_ruleset.go b/fastly/api_legacy_waf_ruleset.go index 5a6c1b3..e4b6c8f 100644 --- a/fastly/api_legacy_waf_ruleset.go +++ b/fastly/api_legacy_waf_ruleset.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type LegacyWafRulesetAPI interface { /* - GetWafRuleset Get a WAF ruleset + GetWafRuleset Get a WAF ruleset - Get a WAF ruleset for a particular service and firewall object. + Get a WAF ruleset for a particular service and firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIGetWafRulesetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetRequest - Deprecated + Deprecated */ GetWafRuleset(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetRequest @@ -51,16 +50,16 @@ type LegacyWafRulesetAPI interface { GetWafRulesetExecute(r APIGetWafRulesetRequest) (map[string]any, *http.Response, error) /* - GetWafRulesetVcl Generate WAF ruleset VCL + GetWafRulesetVcl Generate WAF ruleset VCL - Get a preview of the WAF ruleset VCL for a particular service and firewall object based on changes to WAF configuration before deploying the ruleset. The response will include a link to status of the background VCL generation job. Once the background job is completed, the preview WAF ruleset VCL can be retrieved from the status response. + Get a preview of the WAF ruleset VCL for a particular service and firewall object based on changes to WAF configuration before deploying the ruleset. The response will include a link to status of the background VCL generation job. Once the background job is completed, the preview WAF ruleset VCL can be retrieved from the status response. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIGetWafRulesetVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetVclRequest - Deprecated + Deprecated */ GetWafRulesetVcl(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetVclRequest @@ -70,16 +69,16 @@ type LegacyWafRulesetAPI interface { GetWafRulesetVclExecute(r APIGetWafRulesetVclRequest) (map[string]any, *http.Response, error) /* - UpdateWafRuleset Update a WAF ruleset + UpdateWafRuleset Update a WAF ruleset - Update the WAF ruleset for a particular service and firewall object. Use the URL in the response to view the WAF ruleset deploy status. + Update the WAF ruleset for a particular service and firewall object. Use the URL in the response to view the WAF ruleset deploy status. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIUpdateWafRulesetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafRulesetRequest - Deprecated + Deprecated */ UpdateWafRuleset(ctx context.Context, serviceID string, firewallID string) APIUpdateWafRulesetRequest @@ -94,13 +93,12 @@ type LegacyWafRulesetAPIService service // APIGetWafRulesetRequest represents a request for the resource. type APIGetWafRulesetRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafRulesetAPI - serviceID string + serviceID string firewallID string } - // Execute calls the API using the request data configured. func (r APIGetWafRulesetRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetWafRulesetExecute(r) @@ -121,8 +119,8 @@ Deprecated func (a *LegacyWafRulesetAPIService) GetWafRuleset(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetRequest { return APIGetWafRulesetRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -132,10 +130,10 @@ func (a *LegacyWafRulesetAPIService) GetWafRuleset(ctx context.Context, serviceI // Deprecated func (a *LegacyWafRulesetAPIService) GetWafRulesetExecute(r APIGetWafRulesetRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.GetWafRuleset") @@ -216,7 +214,6 @@ func (a *LegacyWafRulesetAPIService) GetWafRulesetExecute(r APIGetWafRulesetRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -235,13 +232,12 @@ func (a *LegacyWafRulesetAPIService) GetWafRulesetExecute(r APIGetWafRulesetRequ // APIGetWafRulesetVclRequest represents a request for the resource. type APIGetWafRulesetVclRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafRulesetAPI - serviceID string + serviceID string firewallID string } - // Execute calls the API using the request data configured. func (r APIGetWafRulesetVclRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetWafRulesetVclExecute(r) @@ -262,8 +258,8 @@ Deprecated func (a *LegacyWafRulesetAPIService) GetWafRulesetVcl(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetVclRequest { return APIGetWafRulesetVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -273,10 +269,10 @@ func (a *LegacyWafRulesetAPIService) GetWafRulesetVcl(ctx context.Context, servi // Deprecated func (a *LegacyWafRulesetAPIService) GetWafRulesetVclExecute(r APIGetWafRulesetVclRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.GetWafRulesetVcl") @@ -357,7 +353,6 @@ func (a *LegacyWafRulesetAPIService) GetWafRulesetVclExecute(r APIGetWafRulesetV return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -376,10 +371,10 @@ func (a *LegacyWafRulesetAPIService) GetWafRulesetVclExecute(r APIGetWafRulesetV // APIUpdateWafRulesetRequest represents a request for the resource. type APIUpdateWafRulesetRequest struct { - ctx context.Context - APIService LegacyWafRulesetAPI - serviceID string - firewallID string + ctx context.Context + APIService LegacyWafRulesetAPI + serviceID string + firewallID string requestBody *map[string]map[string]any } @@ -409,8 +404,8 @@ Deprecated func (a *LegacyWafRulesetAPIService) UpdateWafRuleset(ctx context.Context, serviceID string, firewallID string) APIUpdateWafRulesetRequest { return APIUpdateWafRulesetRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -420,10 +415,10 @@ func (a *LegacyWafRulesetAPIService) UpdateWafRuleset(ctx context.Context, servi // Deprecated func (a *LegacyWafRulesetAPIService) UpdateWafRulesetExecute(r APIUpdateWafRulesetRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.UpdateWafRuleset") @@ -506,7 +501,6 @@ func (a *LegacyWafRulesetAPIService) UpdateWafRulesetExecute(r APIUpdateWafRules return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_tag.go b/fastly/api_legacy_waf_tag.go index 96f2caf..020b182 100644 --- a/fastly/api_legacy_waf_tag.go +++ b/fastly/api_legacy_waf_tag.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,14 +30,14 @@ var ( type LegacyWafTagAPI interface { /* - ListLegacyWafTags List WAF tags + ListLegacyWafTags List WAF tags - List all tags. + List all tags. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListLegacyWafTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafTagsRequest - Deprecated + Deprecated */ ListLegacyWafTags(ctx context.Context) APIListLegacyWafTagsRequest @@ -53,12 +52,12 @@ type LegacyWafTagAPIService service // APIListLegacyWafTagsRequest represents a request for the resource. type APIListLegacyWafTagsRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafTagAPI filterName *string pageNumber *int32 - pageSize *int32 - include *string + pageSize *int32 + include *string } // FilterName Limit the returned tags to a specific name. @@ -66,17 +65,20 @@ func (r *APIListLegacyWafTagsRequest) FilterName(filterName string) *APIListLega r.filterName = &filterName return r } + // PageNumber Current page. func (r *APIListLegacyWafTagsRequest) PageNumber(pageNumber int32) *APIListLegacyWafTagsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListLegacyWafTagsRequest) PageSize(pageSize int32) *APIListLegacyWafTagsRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma separated values. Permitted values: `rules`. + +// Include Include relationships. Optional, comma separated values. Permitted values: `rules`. func (r *APIListLegacyWafTagsRequest) Include(include string) *APIListLegacyWafTagsRequest { r.include = &include return r @@ -100,7 +102,7 @@ Deprecated func (a *LegacyWafTagAPIService) ListLegacyWafTags(ctx context.Context) APIListLegacyWafTagsRequest { return APIListLegacyWafTagsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -109,10 +111,10 @@ func (a *LegacyWafTagAPIService) ListLegacyWafTags(ctx context.Context) APIListL // Deprecated func (a *LegacyWafTagAPIService) ListLegacyWafTagsExecute(r APIListLegacyWafTagsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafTagAPIService.ListLegacyWafTags") @@ -203,7 +205,6 @@ func (a *LegacyWafTagAPIService) ListLegacyWafTagsExecute(r APIListLegacyWafTags return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_update_status.go b/fastly/api_legacy_waf_update_status.go index f1eaa37..f7cc7c3 100644 --- a/fastly/api_legacy_waf_update_status.go +++ b/fastly/api_legacy_waf_update_status.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,17 +31,17 @@ var ( type LegacyWafUpdateStatusAPI interface { /* - GetWafUpdateStatus Get the status of a WAF update + GetWafUpdateStatus Get the status of a WAF update - Get a specific update status object for a particular service and firewall object. + Get a specific update status object for a particular service and firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @param updateStatusID Alphanumeric string identifying a WAF update status. - @return APIGetWafUpdateStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param updateStatusID Alphanumeric string identifying a WAF update status. + @return APIGetWafUpdateStatusRequest - Deprecated + Deprecated */ GetWafUpdateStatus(ctx context.Context, serviceID string, firewallID string, updateStatusID string) APIGetWafUpdateStatusRequest @@ -52,16 +51,16 @@ type LegacyWafUpdateStatusAPI interface { GetWafUpdateStatusExecute(r APIGetWafUpdateStatusRequest) (map[string]any, *http.Response, error) /* - ListWafUpdateStatuses List update statuses + ListWafUpdateStatuses List update statuses - List all update statuses for a particular service and firewall object. + List all update statuses for a particular service and firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param firewallID Alphanumeric string identifying a Firewall. - @return APIListWafUpdateStatusesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafUpdateStatusesRequest - Deprecated + Deprecated */ ListWafUpdateStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafUpdateStatusesRequest @@ -76,14 +75,13 @@ type LegacyWafUpdateStatusAPIService service // APIGetWafUpdateStatusRequest represents a request for the resource. type APIGetWafUpdateStatusRequest struct { - ctx context.Context - APIService LegacyWafUpdateStatusAPI - serviceID string - firewallID string + ctx context.Context + APIService LegacyWafUpdateStatusAPI + serviceID string + firewallID string updateStatusID string } - // Execute calls the API using the request data configured. func (r APIGetWafUpdateStatusRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.GetWafUpdateStatusExecute(r) @@ -104,10 +102,10 @@ Deprecated */ func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatus(ctx context.Context, serviceID string, firewallID string, updateStatusID string) APIGetWafUpdateStatusRequest { return APIGetWafUpdateStatusRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - firewallID: firewallID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, updateStatusID: updateStatusID, } } @@ -117,10 +115,10 @@ func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatus(ctx context.Context // Deprecated func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatusExecute(r APIGetWafUpdateStatusRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafUpdateStatusAPIService.GetWafUpdateStatus") @@ -202,7 +200,6 @@ func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatusExecute(r APIGetWafU return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -221,13 +218,13 @@ func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatusExecute(r APIGetWafU // APIListWafUpdateStatusesRequest represents a request for the resource. type APIListWafUpdateStatusesRequest struct { - ctx context.Context + ctx context.Context APIService LegacyWafUpdateStatusAPI - serviceID string + serviceID string firewallID string pageNumber *int32 - pageSize *int32 - include *string + pageSize *int32 + include *string } // PageNumber Current page. @@ -235,12 +232,14 @@ func (r *APIListWafUpdateStatusesRequest) PageNumber(pageNumber int32) *APIListW r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafUpdateStatusesRequest) PageSize(pageSize int32) *APIListWafUpdateStatusesRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma separated values. Permitted values: `waf`. + +// Include Include relationships. Optional, comma separated values. Permitted values: `waf`. func (r *APIListWafUpdateStatusesRequest) Include(include string) *APIListWafUpdateStatusesRequest { r.include = &include return r @@ -266,8 +265,8 @@ Deprecated func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafUpdateStatusesRequest { return APIListWafUpdateStatusesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, firewallID: firewallID, } } @@ -277,10 +276,10 @@ func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatuses(ctx context.Cont // Deprecated func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatusesExecute(r APIListWafUpdateStatusesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafUpdateStatusAPIService.ListWafUpdateStatuses") @@ -370,7 +369,6 @@ func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatusesExecute(r APIList return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_azureblob.go b/fastly/api_logging_azureblob.go index 16ff6fd..5ddfd6c 100644 --- a/fastly/api_logging_azureblob.go +++ b/fastly/api_logging_azureblob.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingAzureblobAPI interface { /* - CreateLogAzure Create an Azure Blob Storage log endpoint + CreateLogAzure Create an Azure Blob Storage log endpoint - Create an Azure Blob Storage logging endpoint for a particular service and version. + Create an Azure Blob Storage logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogAzureRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogAzureRequest */ CreateLogAzure(ctx context.Context, serviceID string, versionID int32) APICreateLogAzureRequest @@ -48,15 +47,15 @@ type LoggingAzureblobAPI interface { CreateLogAzureExecute(r APICreateLogAzureRequest) (*LoggingAzureblobResponse, *http.Response, error) /* - DeleteLogAzure Delete the Azure Blob Storage log endpoint + DeleteLogAzure Delete the Azure Blob Storage log endpoint - Delete the Azure Blob Storage logging endpoint for a particular service and version. + Delete the Azure Blob Storage logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingAzureblobName The name for the real-time logging configuration. - @return APIDeleteLogAzureRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingAzureblobName The name for the real-time logging configuration. + @return APIDeleteLogAzureRequest */ DeleteLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIDeleteLogAzureRequest @@ -65,15 +64,15 @@ type LoggingAzureblobAPI interface { DeleteLogAzureExecute(r APIDeleteLogAzureRequest) (*InlineResponse200, *http.Response, error) /* - GetLogAzure Get an Azure Blob Storage log endpoint + GetLogAzure Get an Azure Blob Storage log endpoint - Get the Azure Blob Storage logging endpoint for a particular service and version. + Get the Azure Blob Storage logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingAzureblobName The name for the real-time logging configuration. - @return APIGetLogAzureRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingAzureblobName The name for the real-time logging configuration. + @return APIGetLogAzureRequest */ GetLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIGetLogAzureRequest @@ -82,14 +81,14 @@ type LoggingAzureblobAPI interface { GetLogAzureExecute(r APIGetLogAzureRequest) (*LoggingAzureblobResponse, *http.Response, error) /* - ListLogAzure List Azure Blob Storage log endpoints + ListLogAzure List Azure Blob Storage log endpoints - List all of the Azure Blob Storage logging endpoints for a particular service and version. + List all of the Azure Blob Storage logging endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogAzureRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogAzureRequest */ ListLogAzure(ctx context.Context, serviceID string, versionID int32) APIListLogAzureRequest @@ -98,15 +97,15 @@ type LoggingAzureblobAPI interface { ListLogAzureExecute(r APIListLogAzureRequest) ([]LoggingAzureblobResponse, *http.Response, error) /* - UpdateLogAzure Update an Azure Blob Storage log endpoint + UpdateLogAzure Update an Azure Blob Storage log endpoint - Update the Azure Blob Storage logging endpoint for a particular service and version. + Update the Azure Blob Storage logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingAzureblobName The name for the real-time logging configuration. - @return APIUpdateLogAzureRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingAzureblobName The name for the real-time logging configuration. + @return APIUpdateLogAzureRequest */ UpdateLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIUpdateLogAzureRequest @@ -120,26 +119,26 @@ type LoggingAzureblobAPIService service // APICreateLogAzureRequest represents a request for the resource. type APICreateLogAzureRequest struct { - ctx context.Context - APIService LoggingAzureblobAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingAzureblobAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - path *string - accountName *string - container *string - sasToken *string - publicKey *string - fileMaxBytes *int32 + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + path *string + accountName *string + container *string + sasToken *string + publicKey *string + fileMaxBytes *int32 } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogAzureRequest) Name(name string) *APICreateLogAzureRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogAzureRequest) Placement(placement string) *APICreateLogAzureRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogAzureRequest) ResponseCondition(responseCondition string) *APICreateLogAzureRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogAzureRequest) Format(format string) *APICreateLogAzureRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogAzureRequest) FormatVersion(formatVersion int32) *APICreateLogAzureRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogAzureRequest) MessageType(messageType string) *APICreateLogAzureRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogAzureRequest) TimestampFormat(timestampFormat string) *APICreateLogAzureRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogAzureRequest) CompressionCodec(compressionCodec string) *APICreateLogAzureRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogAzureRequest) Period(period int32) *APICreateLogAzureRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogAzureRequest) GzipLevel(gzipLevel int32) *APICreateLogAzureRequest { r.gzipLevel = &gzipLevel return r } + // Path The path to upload logs to. func (r *APICreateLogAzureRequest) Path(path string) *APICreateLogAzureRequest { r.path = &path return r } + // AccountName The unique Azure Blob Storage namespace in which your data objects are stored. Required. func (r *APICreateLogAzureRequest) AccountName(accountName string) *APICreateLogAzureRequest { r.accountName = &accountName return r } + // Container The name of the Azure Blob Storage container in which to store logs. Required. func (r *APICreateLogAzureRequest) Container(container string) *APICreateLogAzureRequest { r.container = &container return r } + // SasToken The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. func (r *APICreateLogAzureRequest) SasToken(sasToken string) *APICreateLogAzureRequest { r.sasToken = &sasToken return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogAzureRequest) PublicKey(publicKey string) *APICreateLogAzureRequest { r.publicKey = &publicKey return r } + // FileMaxBytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) func (r *APICreateLogAzureRequest) FileMaxBytes(fileMaxBytes int32) *APICreateLogAzureRequest { r.fileMaxBytes = &fileMaxBytes @@ -241,9 +255,9 @@ Create an Azure Blob Storage logging endpoint for a particular service and versi func (a *LoggingAzureblobAPIService) CreateLogAzure(ctx context.Context, serviceID string, versionID int32) APICreateLogAzureRequest { return APICreateLogAzureRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingAzureblobAPIService) CreateLogAzure(ctx context.Context, service // @return LoggingAzureblobResponse func (a *LoggingAzureblobAPIService) CreateLogAzureExecute(r APICreateLogAzureRequest) (*LoggingAzureblobResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingAzureblobResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingAzureblobResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingAzureblobAPIService.CreateLogAzure") @@ -383,7 +397,6 @@ func (a *LoggingAzureblobAPIService) CreateLogAzureExecute(r APICreateLogAzureRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingAzureblobAPIService) CreateLogAzureExecute(r APICreateLogAzureRe // APIDeleteLogAzureRequest represents a request for the resource. type APIDeleteLogAzureRequest struct { - ctx context.Context - APIService LoggingAzureblobAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingAzureblobAPI + serviceID string + versionID int32 loggingAzureblobName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogAzureRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogAzureExecute(r) @@ -428,10 +440,10 @@ Delete the Azure Blob Storage logging endpoint for a particular service and vers */ func (a *LoggingAzureblobAPIService) DeleteLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIDeleteLogAzureRequest { return APIDeleteLogAzureRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingAzureblobName: loggingAzureblobName, } } @@ -440,10 +452,10 @@ func (a *LoggingAzureblobAPIService) DeleteLogAzure(ctx context.Context, service // @return InlineResponse200 func (a *LoggingAzureblobAPIService) DeleteLogAzureExecute(r APIDeleteLogAzureRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingAzureblobAPIService.DeleteLogAzure") @@ -525,7 +537,6 @@ func (a *LoggingAzureblobAPIService) DeleteLogAzureExecute(r APIDeleteLogAzureRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingAzureblobAPIService) DeleteLogAzureExecute(r APIDeleteLogAzureRe // APIGetLogAzureRequest represents a request for the resource. type APIGetLogAzureRequest struct { - ctx context.Context - APIService LoggingAzureblobAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingAzureblobAPI + serviceID string + versionID int32 loggingAzureblobName string } - // Execute calls the API using the request data configured. func (r APIGetLogAzureRequest) Execute() (*LoggingAzureblobResponse, *http.Response, error) { return r.APIService.GetLogAzureExecute(r) @@ -570,10 +580,10 @@ Get the Azure Blob Storage logging endpoint for a particular service and version */ func (a *LoggingAzureblobAPIService) GetLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIGetLogAzureRequest { return APIGetLogAzureRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingAzureblobName: loggingAzureblobName, } } @@ -582,10 +592,10 @@ func (a *LoggingAzureblobAPIService) GetLogAzure(ctx context.Context, serviceID // @return LoggingAzureblobResponse func (a *LoggingAzureblobAPIService) GetLogAzureExecute(r APIGetLogAzureRequest) (*LoggingAzureblobResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingAzureblobResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingAzureblobResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingAzureblobAPIService.GetLogAzure") @@ -667,7 +677,6 @@ func (a *LoggingAzureblobAPIService) GetLogAzureExecute(r APIGetLogAzureRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingAzureblobAPIService) GetLogAzureExecute(r APIGetLogAzureRequest) // APIListLogAzureRequest represents a request for the resource. type APIListLogAzureRequest struct { - ctx context.Context + ctx context.Context APIService LoggingAzureblobAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogAzureRequest) Execute() ([]LoggingAzureblobResponse, *http.Response, error) { return r.APIService.ListLogAzureExecute(r) @@ -711,9 +719,9 @@ List all of the Azure Blob Storage logging endpoints for a particular service an func (a *LoggingAzureblobAPIService) ListLogAzure(ctx context.Context, serviceID string, versionID int32) APIListLogAzureRequest { return APIListLogAzureRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingAzureblobAPIService) ListLogAzure(ctx context.Context, serviceID // @return []LoggingAzureblobResponse func (a *LoggingAzureblobAPIService) ListLogAzureExecute(r APIListLogAzureRequest) ([]LoggingAzureblobResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingAzureblobResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingAzureblobResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingAzureblobAPIService.ListLogAzure") @@ -805,7 +813,6 @@ func (a *LoggingAzureblobAPIService) ListLogAzureExecute(r APIListLogAzureReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingAzureblobAPIService) ListLogAzureExecute(r APIListLogAzureReques // APIUpdateLogAzureRequest represents a request for the resource. type APIUpdateLogAzureRequest struct { - ctx context.Context - APIService LoggingAzureblobAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingAzureblobAPI + serviceID string + versionID int32 loggingAzureblobName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - path *string - accountName *string - container *string - sasToken *string - publicKey *string - fileMaxBytes *int32 + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + path *string + accountName *string + container *string + sasToken *string + publicKey *string + fileMaxBytes *int32 } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogAzureRequest) Name(name string) *APIUpdateLogAzureRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogAzureRequest) Placement(placement string) *APIUpdateLogAzureRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogAzureRequest) ResponseCondition(responseCondition string) *APIUpdateLogAzureRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogAzureRequest) Format(format string) *APIUpdateLogAzureRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogAzureRequest) FormatVersion(formatVersion int32) *APIUpdateLogAzureRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogAzureRequest) MessageType(messageType string) *APIUpdateLogAzureRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogAzureRequest) TimestampFormat(timestampFormat string) *APIUpdateLogAzureRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogAzureRequest) CompressionCodec(compressionCodec string) *APIUpdateLogAzureRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogAzureRequest) Period(period int32) *APIUpdateLogAzureRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogAzureRequest) GzipLevel(gzipLevel int32) *APIUpdateLogAzureRequest { r.gzipLevel = &gzipLevel return r } + // Path The path to upload logs to. func (r *APIUpdateLogAzureRequest) Path(path string) *APIUpdateLogAzureRequest { r.path = &path return r } + // AccountName The unique Azure Blob Storage namespace in which your data objects are stored. Required. func (r *APIUpdateLogAzureRequest) AccountName(accountName string) *APIUpdateLogAzureRequest { r.accountName = &accountName return r } + // Container The name of the Azure Blob Storage container in which to store logs. Required. func (r *APIUpdateLogAzureRequest) Container(container string) *APIUpdateLogAzureRequest { r.container = &container return r } + // SasToken The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. func (r *APIUpdateLogAzureRequest) SasToken(sasToken string) *APIUpdateLogAzureRequest { r.sasToken = &sasToken return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogAzureRequest) PublicKey(publicKey string) *APIUpdateLogAzureRequest { r.publicKey = &publicKey return r } + // FileMaxBytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) func (r *APIUpdateLogAzureRequest) FileMaxBytes(fileMaxBytes int32) *APIUpdateLogAzureRequest { r.fileMaxBytes = &fileMaxBytes @@ -946,10 +968,10 @@ Update the Azure Blob Storage logging endpoint for a particular service and vers */ func (a *LoggingAzureblobAPIService) UpdateLogAzure(ctx context.Context, serviceID string, versionID int32, loggingAzureblobName string) APIUpdateLogAzureRequest { return APIUpdateLogAzureRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingAzureblobName: loggingAzureblobName, } } @@ -958,10 +980,10 @@ func (a *LoggingAzureblobAPIService) UpdateLogAzure(ctx context.Context, service // @return LoggingAzureblobResponse func (a *LoggingAzureblobAPIService) UpdateLogAzureExecute(r APIUpdateLogAzureRequest) (*LoggingAzureblobResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingAzureblobResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingAzureblobResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingAzureblobAPIService.UpdateLogAzure") @@ -1091,7 +1113,6 @@ func (a *LoggingAzureblobAPIService) UpdateLogAzureExecute(r APIUpdateLogAzureRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_bigquery.go b/fastly/api_logging_bigquery.go index 54aafcf..8bc0f1a 100644 --- a/fastly/api_logging_bigquery.go +++ b/fastly/api_logging_bigquery.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingBigqueryAPI interface { /* - CreateLogBigquery Create a BigQuery log endpoint + CreateLogBigquery Create a BigQuery log endpoint - Create a BigQuery logging object for a particular service and version. + Create a BigQuery logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogBigqueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogBigqueryRequest */ CreateLogBigquery(ctx context.Context, serviceID string, versionID int32) APICreateLogBigqueryRequest @@ -48,15 +47,15 @@ type LoggingBigqueryAPI interface { CreateLogBigqueryExecute(r APICreateLogBigqueryRequest) (*LoggingBigqueryResponse, *http.Response, error) /* - DeleteLogBigquery Delete a BigQuery log endpoint + DeleteLogBigquery Delete a BigQuery log endpoint - Delete a BigQuery logging object for a particular service and version. + Delete a BigQuery logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingBigqueryName The name for the real-time logging configuration. - @return APIDeleteLogBigqueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingBigqueryName The name for the real-time logging configuration. + @return APIDeleteLogBigqueryRequest */ DeleteLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIDeleteLogBigqueryRequest @@ -65,15 +64,15 @@ type LoggingBigqueryAPI interface { DeleteLogBigqueryExecute(r APIDeleteLogBigqueryRequest) (*InlineResponse200, *http.Response, error) /* - GetLogBigquery Get a BigQuery log endpoint + GetLogBigquery Get a BigQuery log endpoint - Get the details for a BigQuery logging object for a particular service and version. + Get the details for a BigQuery logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingBigqueryName The name for the real-time logging configuration. - @return APIGetLogBigqueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingBigqueryName The name for the real-time logging configuration. + @return APIGetLogBigqueryRequest */ GetLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIGetLogBigqueryRequest @@ -82,14 +81,14 @@ type LoggingBigqueryAPI interface { GetLogBigqueryExecute(r APIGetLogBigqueryRequest) (*LoggingBigqueryResponse, *http.Response, error) /* - ListLogBigquery List BigQuery log endpoints + ListLogBigquery List BigQuery log endpoints - List all of the BigQuery logging objects for a particular service and version. + List all of the BigQuery logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogBigqueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogBigqueryRequest */ ListLogBigquery(ctx context.Context, serviceID string, versionID int32) APIListLogBigqueryRequest @@ -98,15 +97,15 @@ type LoggingBigqueryAPI interface { ListLogBigqueryExecute(r APIListLogBigqueryRequest) ([]LoggingBigqueryResponse, *http.Response, error) /* - UpdateLogBigquery Update a BigQuery log endpoint + UpdateLogBigquery Update a BigQuery log endpoint - Update a BigQuery logging object for a particular service and version. + Update a BigQuery logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingBigqueryName The name for the real-time logging configuration. - @return APIUpdateLogBigqueryRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingBigqueryName The name for the real-time logging configuration. + @return APIUpdateLogBigqueryRequest */ UpdateLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIUpdateLogBigqueryRequest @@ -120,22 +119,22 @@ type LoggingBigqueryAPIService service // APICreateLogBigqueryRequest represents a request for the resource. type APICreateLogBigqueryRequest struct { - ctx context.Context - APIService LoggingBigqueryAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingBigqueryAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - user *string - secretKey *string - accountName *string - dataset *string - table *string - templateSuffix *string - projectID *string + format *string + formatVersion *int32 + user *string + secretKey *string + accountName *string + dataset *string + table *string + templateSuffix *string + projectID *string } // Name The name of the BigQuery logging object. Used as a primary key for API access. @@ -143,56 +142,67 @@ func (r *APICreateLogBigqueryRequest) Name(name string) *APICreateLogBigqueryReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogBigqueryRequest) Placement(placement string) *APICreateLogBigqueryRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogBigqueryRequest) ResponseCondition(responseCondition string) *APICreateLogBigqueryRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. func (r *APICreateLogBigqueryRequest) Format(format string) *APICreateLogBigqueryRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogBigqueryRequest) FormatVersion(formatVersion int32) *APICreateLogBigqueryRequest { r.formatVersion = &formatVersion return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogBigqueryRequest) User(user string) *APICreateLogBigqueryRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogBigqueryRequest) SecretKey(secretKey string) *APICreateLogBigqueryRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APICreateLogBigqueryRequest) AccountName(accountName string) *APICreateLogBigqueryRequest { r.accountName = &accountName return r } + // Dataset Your BigQuery dataset. func (r *APICreateLogBigqueryRequest) Dataset(dataset string) *APICreateLogBigqueryRequest { r.dataset = &dataset return r } + // Table Your BigQuery table. func (r *APICreateLogBigqueryRequest) Table(table string) *APICreateLogBigqueryRequest { r.table = &table return r } + // TemplateSuffix BigQuery table name suffix template. Optional. func (r *APICreateLogBigqueryRequest) TemplateSuffix(templateSuffix string) *APICreateLogBigqueryRequest { r.templateSuffix = &templateSuffix return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APICreateLogBigqueryRequest) ProjectID(projectID string) *APICreateLogBigqueryRequest { r.projectID = &projectID @@ -217,9 +227,9 @@ Create a BigQuery logging object for a particular service and version. func (a *LoggingBigqueryAPIService) CreateLogBigquery(ctx context.Context, serviceID string, versionID int32) APICreateLogBigqueryRequest { return APICreateLogBigqueryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -227,10 +237,10 @@ func (a *LoggingBigqueryAPIService) CreateLogBigquery(ctx context.Context, servi // @return LoggingBigqueryResponse func (a *LoggingBigqueryAPIService) CreateLogBigqueryExecute(r APICreateLogBigqueryRequest) (*LoggingBigqueryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingBigqueryResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingBigqueryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingBigqueryAPIService.CreateLogBigquery") @@ -347,7 +357,6 @@ func (a *LoggingBigqueryAPIService) CreateLogBigqueryExecute(r APICreateLogBigqu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -366,14 +375,13 @@ func (a *LoggingBigqueryAPIService) CreateLogBigqueryExecute(r APICreateLogBigqu // APIDeleteLogBigqueryRequest represents a request for the resource. type APIDeleteLogBigqueryRequest struct { - ctx context.Context - APIService LoggingBigqueryAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingBigqueryAPI + serviceID string + versionID int32 loggingBigqueryName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogBigqueryRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogBigqueryExecute(r) @@ -392,10 +400,10 @@ Delete a BigQuery logging object for a particular service and version. */ func (a *LoggingBigqueryAPIService) DeleteLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIDeleteLogBigqueryRequest { return APIDeleteLogBigqueryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingBigqueryName: loggingBigqueryName, } } @@ -404,10 +412,10 @@ func (a *LoggingBigqueryAPIService) DeleteLogBigquery(ctx context.Context, servi // @return InlineResponse200 func (a *LoggingBigqueryAPIService) DeleteLogBigqueryExecute(r APIDeleteLogBigqueryRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingBigqueryAPIService.DeleteLogBigquery") @@ -489,7 +497,6 @@ func (a *LoggingBigqueryAPIService) DeleteLogBigqueryExecute(r APIDeleteLogBigqu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -508,14 +515,13 @@ func (a *LoggingBigqueryAPIService) DeleteLogBigqueryExecute(r APIDeleteLogBigqu // APIGetLogBigqueryRequest represents a request for the resource. type APIGetLogBigqueryRequest struct { - ctx context.Context - APIService LoggingBigqueryAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingBigqueryAPI + serviceID string + versionID int32 loggingBigqueryName string } - // Execute calls the API using the request data configured. func (r APIGetLogBigqueryRequest) Execute() (*LoggingBigqueryResponse, *http.Response, error) { return r.APIService.GetLogBigqueryExecute(r) @@ -534,10 +540,10 @@ Get the details for a BigQuery logging object for a particular service and versi */ func (a *LoggingBigqueryAPIService) GetLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIGetLogBigqueryRequest { return APIGetLogBigqueryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingBigqueryName: loggingBigqueryName, } } @@ -546,10 +552,10 @@ func (a *LoggingBigqueryAPIService) GetLogBigquery(ctx context.Context, serviceI // @return LoggingBigqueryResponse func (a *LoggingBigqueryAPIService) GetLogBigqueryExecute(r APIGetLogBigqueryRequest) (*LoggingBigqueryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingBigqueryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingBigqueryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingBigqueryAPIService.GetLogBigquery") @@ -631,7 +637,6 @@ func (a *LoggingBigqueryAPIService) GetLogBigqueryExecute(r APIGetLogBigqueryReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -650,13 +655,12 @@ func (a *LoggingBigqueryAPIService) GetLogBigqueryExecute(r APIGetLogBigqueryReq // APIListLogBigqueryRequest represents a request for the resource. type APIListLogBigqueryRequest struct { - ctx context.Context + ctx context.Context APIService LoggingBigqueryAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogBigqueryRequest) Execute() ([]LoggingBigqueryResponse, *http.Response, error) { return r.APIService.ListLogBigqueryExecute(r) @@ -675,9 +679,9 @@ List all of the BigQuery logging objects for a particular service and version. func (a *LoggingBigqueryAPIService) ListLogBigquery(ctx context.Context, serviceID string, versionID int32) APIListLogBigqueryRequest { return APIListLogBigqueryRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -685,10 +689,10 @@ func (a *LoggingBigqueryAPIService) ListLogBigquery(ctx context.Context, service // @return []LoggingBigqueryResponse func (a *LoggingBigqueryAPIService) ListLogBigqueryExecute(r APIListLogBigqueryRequest) ([]LoggingBigqueryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingBigqueryResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingBigqueryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingBigqueryAPIService.ListLogBigquery") @@ -769,7 +773,6 @@ func (a *LoggingBigqueryAPIService) ListLogBigqueryExecute(r APIListLogBigqueryR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -788,23 +791,23 @@ func (a *LoggingBigqueryAPIService) ListLogBigqueryExecute(r APIListLogBigqueryR // APIUpdateLogBigqueryRequest represents a request for the resource. type APIUpdateLogBigqueryRequest struct { - ctx context.Context - APIService LoggingBigqueryAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingBigqueryAPI + serviceID string + versionID int32 loggingBigqueryName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - user *string - secretKey *string - accountName *string - dataset *string - table *string - templateSuffix *string - projectID *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + user *string + secretKey *string + accountName *string + dataset *string + table *string + templateSuffix *string + projectID *string } // Name The name of the BigQuery logging object. Used as a primary key for API access. @@ -812,56 +815,67 @@ func (r *APIUpdateLogBigqueryRequest) Name(name string) *APIUpdateLogBigqueryReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogBigqueryRequest) Placement(placement string) *APIUpdateLogBigqueryRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogBigqueryRequest) ResponseCondition(responseCondition string) *APIUpdateLogBigqueryRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. func (r *APIUpdateLogBigqueryRequest) Format(format string) *APIUpdateLogBigqueryRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogBigqueryRequest) FormatVersion(formatVersion int32) *APIUpdateLogBigqueryRequest { r.formatVersion = &formatVersion return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogBigqueryRequest) User(user string) *APIUpdateLogBigqueryRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogBigqueryRequest) SecretKey(secretKey string) *APIUpdateLogBigqueryRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APIUpdateLogBigqueryRequest) AccountName(accountName string) *APIUpdateLogBigqueryRequest { r.accountName = &accountName return r } + // Dataset Your BigQuery dataset. func (r *APIUpdateLogBigqueryRequest) Dataset(dataset string) *APIUpdateLogBigqueryRequest { r.dataset = &dataset return r } + // Table Your BigQuery table. func (r *APIUpdateLogBigqueryRequest) Table(table string) *APIUpdateLogBigqueryRequest { r.table = &table return r } + // TemplateSuffix BigQuery table name suffix template. Optional. func (r *APIUpdateLogBigqueryRequest) TemplateSuffix(templateSuffix string) *APIUpdateLogBigqueryRequest { r.templateSuffix = &templateSuffix return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APIUpdateLogBigqueryRequest) ProjectID(projectID string) *APIUpdateLogBigqueryRequest { r.projectID = &projectID @@ -886,10 +900,10 @@ Update a BigQuery logging object for a particular service and version. */ func (a *LoggingBigqueryAPIService) UpdateLogBigquery(ctx context.Context, serviceID string, versionID int32, loggingBigqueryName string) APIUpdateLogBigqueryRequest { return APIUpdateLogBigqueryRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingBigqueryName: loggingBigqueryName, } } @@ -898,10 +912,10 @@ func (a *LoggingBigqueryAPIService) UpdateLogBigquery(ctx context.Context, servi // @return LoggingBigqueryResponse func (a *LoggingBigqueryAPIService) UpdateLogBigqueryExecute(r APIUpdateLogBigqueryRequest) (*LoggingBigqueryResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingBigqueryResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingBigqueryResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingBigqueryAPIService.UpdateLogBigquery") @@ -1019,7 +1033,6 @@ func (a *LoggingBigqueryAPIService) UpdateLogBigqueryExecute(r APIUpdateLogBigqu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_cloudfiles.go b/fastly/api_logging_cloudfiles.go index 195405f..5aaf004 100644 --- a/fastly/api_logging_cloudfiles.go +++ b/fastly/api_logging_cloudfiles.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingCloudfilesAPI interface { /* - CreateLogCloudfiles Create a Cloud Files log endpoint + CreateLogCloudfiles Create a Cloud Files log endpoint - Create a Cloud Files log endpoint for a particular service and version. + Create a Cloud Files log endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogCloudfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogCloudfilesRequest */ CreateLogCloudfiles(ctx context.Context, serviceID string, versionID int32) APICreateLogCloudfilesRequest @@ -48,15 +47,15 @@ type LoggingCloudfilesAPI interface { CreateLogCloudfilesExecute(r APICreateLogCloudfilesRequest) (*LoggingCloudfilesResponse, *http.Response, error) /* - DeleteLogCloudfiles Delete the Cloud Files log endpoint + DeleteLogCloudfiles Delete the Cloud Files log endpoint - Delete the Cloud Files log endpoint for a particular service and version. + Delete the Cloud Files log endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingCloudfilesName The name for the real-time logging configuration. - @return APIDeleteLogCloudfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingCloudfilesName The name for the real-time logging configuration. + @return APIDeleteLogCloudfilesRequest */ DeleteLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIDeleteLogCloudfilesRequest @@ -65,15 +64,15 @@ type LoggingCloudfilesAPI interface { DeleteLogCloudfilesExecute(r APIDeleteLogCloudfilesRequest) (*InlineResponse200, *http.Response, error) /* - GetLogCloudfiles Get a Cloud Files log endpoint + GetLogCloudfiles Get a Cloud Files log endpoint - Get the Cloud Files log endpoint for a particular service and version. + Get the Cloud Files log endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingCloudfilesName The name for the real-time logging configuration. - @return APIGetLogCloudfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingCloudfilesName The name for the real-time logging configuration. + @return APIGetLogCloudfilesRequest */ GetLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIGetLogCloudfilesRequest @@ -82,14 +81,14 @@ type LoggingCloudfilesAPI interface { GetLogCloudfilesExecute(r APIGetLogCloudfilesRequest) (*LoggingCloudfilesResponse, *http.Response, error) /* - ListLogCloudfiles List Cloud Files log endpoints + ListLogCloudfiles List Cloud Files log endpoints - List all of the Cloud Files log endpoints for a particular service and version. + List all of the Cloud Files log endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogCloudfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogCloudfilesRequest */ ListLogCloudfiles(ctx context.Context, serviceID string, versionID int32) APIListLogCloudfilesRequest @@ -98,15 +97,15 @@ type LoggingCloudfilesAPI interface { ListLogCloudfilesExecute(r APIListLogCloudfilesRequest) ([]LoggingCloudfilesResponse, *http.Response, error) /* - UpdateLogCloudfiles Update the Cloud Files log endpoint + UpdateLogCloudfiles Update the Cloud Files log endpoint - Update the Cloud Files log endpoint for a particular service and version. + Update the Cloud Files log endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingCloudfilesName The name for the real-time logging configuration. - @return APIUpdateLogCloudfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingCloudfilesName The name for the real-time logging configuration. + @return APIUpdateLogCloudfilesRequest */ UpdateLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIUpdateLogCloudfilesRequest @@ -120,26 +119,26 @@ type LoggingCloudfilesAPIService service // APICreateLogCloudfilesRequest represents a request for the resource. type APICreateLogCloudfilesRequest struct { - ctx context.Context - APIService LoggingCloudfilesAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingCloudfilesAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - bucketName *string - path *string - region *string - publicKey *string - user *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + bucketName *string + path *string + region *string + publicKey *string + user *string } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogCloudfilesRequest) Name(name string) *APICreateLogCloudfile r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogCloudfilesRequest) Placement(placement string) *APICreateLogCloudfilesRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogCloudfilesRequest) ResponseCondition(responseCondition string) *APICreateLogCloudfilesRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogCloudfilesRequest) Format(format string) *APICreateLogCloudfilesRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogCloudfilesRequest) FormatVersion(formatVersion int32) *APICreateLogCloudfilesRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogCloudfilesRequest) MessageType(messageType string) *APICreateLogCloudfilesRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogCloudfilesRequest) TimestampFormat(timestampFormat string) *APICreateLogCloudfilesRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogCloudfilesRequest) CompressionCodec(compressionCodec string) *APICreateLogCloudfilesRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogCloudfilesRequest) Period(period int32) *APICreateLogCloudfilesRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogCloudfilesRequest) GzipLevel(gzipLevel int32) *APICreateLogCloudfilesRequest { r.gzipLevel = &gzipLevel return r } + // AccessKey Your Cloud Files account access key. func (r *APICreateLogCloudfilesRequest) AccessKey(accessKey string) *APICreateLogCloudfilesRequest { r.accessKey = &accessKey return r } + // BucketName The name of your Cloud Files container. func (r *APICreateLogCloudfilesRequest) BucketName(bucketName string) *APICreateLogCloudfilesRequest { r.bucketName = &bucketName return r } + // Path The path to upload logs to. func (r *APICreateLogCloudfilesRequest) Path(path string) *APICreateLogCloudfilesRequest { r.path = &path return r } + // Region The region to stream logs to. func (r *APICreateLogCloudfilesRequest) Region(region string) *APICreateLogCloudfilesRequest { r.region = ®ion return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogCloudfilesRequest) PublicKey(publicKey string) *APICreateLogCloudfilesRequest { r.publicKey = &publicKey return r } + // User The username for your Cloud Files account. func (r *APICreateLogCloudfilesRequest) User(user string) *APICreateLogCloudfilesRequest { r.user = &user @@ -241,9 +255,9 @@ Create a Cloud Files log endpoint for a particular service and version. func (a *LoggingCloudfilesAPIService) CreateLogCloudfiles(ctx context.Context, serviceID string, versionID int32) APICreateLogCloudfilesRequest { return APICreateLogCloudfilesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingCloudfilesAPIService) CreateLogCloudfiles(ctx context.Context, s // @return LoggingCloudfilesResponse func (a *LoggingCloudfilesAPIService) CreateLogCloudfilesExecute(r APICreateLogCloudfilesRequest) (*LoggingCloudfilesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingCloudfilesResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingCloudfilesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingCloudfilesAPIService.CreateLogCloudfiles") @@ -383,7 +397,6 @@ func (a *LoggingCloudfilesAPIService) CreateLogCloudfilesExecute(r APICreateLogC return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingCloudfilesAPIService) CreateLogCloudfilesExecute(r APICreateLogC // APIDeleteLogCloudfilesRequest represents a request for the resource. type APIDeleteLogCloudfilesRequest struct { - ctx context.Context - APIService LoggingCloudfilesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingCloudfilesAPI + serviceID string + versionID int32 loggingCloudfilesName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogCloudfilesRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogCloudfilesExecute(r) @@ -428,10 +440,10 @@ Delete the Cloud Files log endpoint for a particular service and version. */ func (a *LoggingCloudfilesAPIService) DeleteLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIDeleteLogCloudfilesRequest { return APIDeleteLogCloudfilesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingCloudfilesName: loggingCloudfilesName, } } @@ -440,10 +452,10 @@ func (a *LoggingCloudfilesAPIService) DeleteLogCloudfiles(ctx context.Context, s // @return InlineResponse200 func (a *LoggingCloudfilesAPIService) DeleteLogCloudfilesExecute(r APIDeleteLogCloudfilesRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingCloudfilesAPIService.DeleteLogCloudfiles") @@ -525,7 +537,6 @@ func (a *LoggingCloudfilesAPIService) DeleteLogCloudfilesExecute(r APIDeleteLogC return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingCloudfilesAPIService) DeleteLogCloudfilesExecute(r APIDeleteLogC // APIGetLogCloudfilesRequest represents a request for the resource. type APIGetLogCloudfilesRequest struct { - ctx context.Context - APIService LoggingCloudfilesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingCloudfilesAPI + serviceID string + versionID int32 loggingCloudfilesName string } - // Execute calls the API using the request data configured. func (r APIGetLogCloudfilesRequest) Execute() (*LoggingCloudfilesResponse, *http.Response, error) { return r.APIService.GetLogCloudfilesExecute(r) @@ -570,10 +580,10 @@ Get the Cloud Files log endpoint for a particular service and version. */ func (a *LoggingCloudfilesAPIService) GetLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIGetLogCloudfilesRequest { return APIGetLogCloudfilesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingCloudfilesName: loggingCloudfilesName, } } @@ -582,10 +592,10 @@ func (a *LoggingCloudfilesAPIService) GetLogCloudfiles(ctx context.Context, serv // @return LoggingCloudfilesResponse func (a *LoggingCloudfilesAPIService) GetLogCloudfilesExecute(r APIGetLogCloudfilesRequest) (*LoggingCloudfilesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingCloudfilesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingCloudfilesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingCloudfilesAPIService.GetLogCloudfiles") @@ -667,7 +677,6 @@ func (a *LoggingCloudfilesAPIService) GetLogCloudfilesExecute(r APIGetLogCloudfi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingCloudfilesAPIService) GetLogCloudfilesExecute(r APIGetLogCloudfi // APIListLogCloudfilesRequest represents a request for the resource. type APIListLogCloudfilesRequest struct { - ctx context.Context + ctx context.Context APIService LoggingCloudfilesAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogCloudfilesRequest) Execute() ([]LoggingCloudfilesResponse, *http.Response, error) { return r.APIService.ListLogCloudfilesExecute(r) @@ -711,9 +719,9 @@ List all of the Cloud Files log endpoints for a particular service and version. func (a *LoggingCloudfilesAPIService) ListLogCloudfiles(ctx context.Context, serviceID string, versionID int32) APIListLogCloudfilesRequest { return APIListLogCloudfilesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingCloudfilesAPIService) ListLogCloudfiles(ctx context.Context, ser // @return []LoggingCloudfilesResponse func (a *LoggingCloudfilesAPIService) ListLogCloudfilesExecute(r APIListLogCloudfilesRequest) ([]LoggingCloudfilesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingCloudfilesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingCloudfilesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingCloudfilesAPIService.ListLogCloudfiles") @@ -805,7 +813,6 @@ func (a *LoggingCloudfilesAPIService) ListLogCloudfilesExecute(r APIListLogCloud return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingCloudfilesAPIService) ListLogCloudfilesExecute(r APIListLogCloud // APIUpdateLogCloudfilesRequest represents a request for the resource. type APIUpdateLogCloudfilesRequest struct { - ctx context.Context - APIService LoggingCloudfilesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingCloudfilesAPI + serviceID string + versionID int32 loggingCloudfilesName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - bucketName *string - path *string - region *string - publicKey *string - user *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + bucketName *string + path *string + region *string + publicKey *string + user *string } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogCloudfilesRequest) Name(name string) *APIUpdateLogCloudfile r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogCloudfilesRequest) Placement(placement string) *APIUpdateLogCloudfilesRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogCloudfilesRequest) ResponseCondition(responseCondition string) *APIUpdateLogCloudfilesRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogCloudfilesRequest) Format(format string) *APIUpdateLogCloudfilesRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogCloudfilesRequest) FormatVersion(formatVersion int32) *APIUpdateLogCloudfilesRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogCloudfilesRequest) MessageType(messageType string) *APIUpdateLogCloudfilesRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogCloudfilesRequest) TimestampFormat(timestampFormat string) *APIUpdateLogCloudfilesRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogCloudfilesRequest) CompressionCodec(compressionCodec string) *APIUpdateLogCloudfilesRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogCloudfilesRequest) Period(period int32) *APIUpdateLogCloudfilesRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogCloudfilesRequest) GzipLevel(gzipLevel int32) *APIUpdateLogCloudfilesRequest { r.gzipLevel = &gzipLevel return r } + // AccessKey Your Cloud Files account access key. func (r *APIUpdateLogCloudfilesRequest) AccessKey(accessKey string) *APIUpdateLogCloudfilesRequest { r.accessKey = &accessKey return r } + // BucketName The name of your Cloud Files container. func (r *APIUpdateLogCloudfilesRequest) BucketName(bucketName string) *APIUpdateLogCloudfilesRequest { r.bucketName = &bucketName return r } + // Path The path to upload logs to. func (r *APIUpdateLogCloudfilesRequest) Path(path string) *APIUpdateLogCloudfilesRequest { r.path = &path return r } + // Region The region to stream logs to. func (r *APIUpdateLogCloudfilesRequest) Region(region string) *APIUpdateLogCloudfilesRequest { r.region = ®ion return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogCloudfilesRequest) PublicKey(publicKey string) *APIUpdateLogCloudfilesRequest { r.publicKey = &publicKey return r } + // User The username for your Cloud Files account. func (r *APIUpdateLogCloudfilesRequest) User(user string) *APIUpdateLogCloudfilesRequest { r.user = &user @@ -946,10 +968,10 @@ Update the Cloud Files log endpoint for a particular service and version. */ func (a *LoggingCloudfilesAPIService) UpdateLogCloudfiles(ctx context.Context, serviceID string, versionID int32, loggingCloudfilesName string) APIUpdateLogCloudfilesRequest { return APIUpdateLogCloudfilesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingCloudfilesName: loggingCloudfilesName, } } @@ -958,10 +980,10 @@ func (a *LoggingCloudfilesAPIService) UpdateLogCloudfiles(ctx context.Context, s // @return LoggingCloudfilesResponse func (a *LoggingCloudfilesAPIService) UpdateLogCloudfilesExecute(r APIUpdateLogCloudfilesRequest) (*LoggingCloudfilesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingCloudfilesResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingCloudfilesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingCloudfilesAPIService.UpdateLogCloudfiles") @@ -1091,7 +1113,6 @@ func (a *LoggingCloudfilesAPIService) UpdateLogCloudfilesExecute(r APIUpdateLogC return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_datadog.go b/fastly/api_logging_datadog.go index bc9404c..c4af7d5 100644 --- a/fastly/api_logging_datadog.go +++ b/fastly/api_logging_datadog.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingDatadogAPI interface { /* - CreateLogDatadog Create a Datadog log endpoint + CreateLogDatadog Create a Datadog log endpoint - Create a Datadog logging object for a particular service and version. + Create a Datadog logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogDatadogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogDatadogRequest */ CreateLogDatadog(ctx context.Context, serviceID string, versionID int32) APICreateLogDatadogRequest @@ -48,15 +47,15 @@ type LoggingDatadogAPI interface { CreateLogDatadogExecute(r APICreateLogDatadogRequest) (*LoggingDatadogResponse, *http.Response, error) /* - DeleteLogDatadog Delete a Datadog log endpoint + DeleteLogDatadog Delete a Datadog log endpoint - Delete the Datadog logging object for a particular service and version. + Delete the Datadog logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDatadogName The name for the real-time logging configuration. - @return APIDeleteLogDatadogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDatadogName The name for the real-time logging configuration. + @return APIDeleteLogDatadogRequest */ DeleteLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIDeleteLogDatadogRequest @@ -65,15 +64,15 @@ type LoggingDatadogAPI interface { DeleteLogDatadogExecute(r APIDeleteLogDatadogRequest) (*InlineResponse200, *http.Response, error) /* - GetLogDatadog Get a Datadog log endpoint + GetLogDatadog Get a Datadog log endpoint - Get the details for a Datadog logging object for a particular service and version. + Get the details for a Datadog logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDatadogName The name for the real-time logging configuration. - @return APIGetLogDatadogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDatadogName The name for the real-time logging configuration. + @return APIGetLogDatadogRequest */ GetLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIGetLogDatadogRequest @@ -82,14 +81,14 @@ type LoggingDatadogAPI interface { GetLogDatadogExecute(r APIGetLogDatadogRequest) (*LoggingDatadogResponse, *http.Response, error) /* - ListLogDatadog List Datadog log endpoints + ListLogDatadog List Datadog log endpoints - List all of the Datadog logging objects for a particular service and version. + List all of the Datadog logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogDatadogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogDatadogRequest */ ListLogDatadog(ctx context.Context, serviceID string, versionID int32) APIListLogDatadogRequest @@ -98,15 +97,15 @@ type LoggingDatadogAPI interface { ListLogDatadogExecute(r APIListLogDatadogRequest) ([]LoggingDatadogResponse, *http.Response, error) /* - UpdateLogDatadog Update a Datadog log endpoint + UpdateLogDatadog Update a Datadog log endpoint - Update the Datadog logging object for a particular service and version. + Update the Datadog logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDatadogName The name for the real-time logging configuration. - @return APIUpdateLogDatadogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDatadogName The name for the real-time logging configuration. + @return APIUpdateLogDatadogRequest */ UpdateLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIUpdateLogDatadogRequest @@ -120,17 +119,17 @@ type LoggingDatadogAPIService service // APICreateLogDatadogRequest represents a request for the resource. type APICreateLogDatadogRequest struct { - ctx context.Context - APIService LoggingDatadogAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingDatadogAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - region *string - token *string + format *string + formatVersion *int32 + region *string + token *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogDatadogRequest) Name(name string) *APICreateLogDatadogReque r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogDatadogRequest) Placement(placement string) *APICreateLogDatadogRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogDatadogRequest) ResponseCondition(responseCondition string) *APICreateLogDatadogRequest { r.responseCondition = &responseCondition return r } -// Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. + +// Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. func (r *APICreateLogDatadogRequest) Format(format string) *APICreateLogDatadogRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogDatadogRequest) FormatVersion(formatVersion int32) *APICreateLogDatadogRequest { r.formatVersion = &formatVersion return r } + // Region The region that log data will be sent to. func (r *APICreateLogDatadogRequest) Region(region string) *APICreateLogDatadogRequest { r.region = ®ion return r } + // Token The API key from your Datadog account. Required. func (r *APICreateLogDatadogRequest) Token(token string) *APICreateLogDatadogRequest { r.token = &token @@ -187,9 +192,9 @@ Create a Datadog logging object for a particular service and version. func (a *LoggingDatadogAPIService) CreateLogDatadog(ctx context.Context, serviceID string, versionID int32) APICreateLogDatadogRequest { return APICreateLogDatadogRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingDatadogAPIService) CreateLogDatadog(ctx context.Context, service // @return LoggingDatadogResponse func (a *LoggingDatadogAPIService) CreateLogDatadogExecute(r APICreateLogDatadogRequest) (*LoggingDatadogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDatadogResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDatadogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDatadogAPIService.CreateLogDatadog") @@ -302,7 +307,6 @@ func (a *LoggingDatadogAPIService) CreateLogDatadogExecute(r APICreateLogDatadog return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingDatadogAPIService) CreateLogDatadogExecute(r APICreateLogDatadog // APIDeleteLogDatadogRequest represents a request for the resource. type APIDeleteLogDatadogRequest struct { - ctx context.Context - APIService LoggingDatadogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDatadogAPI + serviceID string + versionID int32 loggingDatadogName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogDatadogRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogDatadogExecute(r) @@ -347,10 +350,10 @@ Delete the Datadog logging object for a particular service and version. */ func (a *LoggingDatadogAPIService) DeleteLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIDeleteLogDatadogRequest { return APIDeleteLogDatadogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDatadogName: loggingDatadogName, } } @@ -359,10 +362,10 @@ func (a *LoggingDatadogAPIService) DeleteLogDatadog(ctx context.Context, service // @return InlineResponse200 func (a *LoggingDatadogAPIService) DeleteLogDatadogExecute(r APIDeleteLogDatadogRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDatadogAPIService.DeleteLogDatadog") @@ -444,7 +447,6 @@ func (a *LoggingDatadogAPIService) DeleteLogDatadogExecute(r APIDeleteLogDatadog return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingDatadogAPIService) DeleteLogDatadogExecute(r APIDeleteLogDatadog // APIGetLogDatadogRequest represents a request for the resource. type APIGetLogDatadogRequest struct { - ctx context.Context - APIService LoggingDatadogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDatadogAPI + serviceID string + versionID int32 loggingDatadogName string } - // Execute calls the API using the request data configured. func (r APIGetLogDatadogRequest) Execute() (*LoggingDatadogResponse, *http.Response, error) { return r.APIService.GetLogDatadogExecute(r) @@ -489,10 +490,10 @@ Get the details for a Datadog logging object for a particular service and versio */ func (a *LoggingDatadogAPIService) GetLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIGetLogDatadogRequest { return APIGetLogDatadogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDatadogName: loggingDatadogName, } } @@ -501,10 +502,10 @@ func (a *LoggingDatadogAPIService) GetLogDatadog(ctx context.Context, serviceID // @return LoggingDatadogResponse func (a *LoggingDatadogAPIService) GetLogDatadogExecute(r APIGetLogDatadogRequest) (*LoggingDatadogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDatadogResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDatadogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDatadogAPIService.GetLogDatadog") @@ -586,7 +587,6 @@ func (a *LoggingDatadogAPIService) GetLogDatadogExecute(r APIGetLogDatadogReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingDatadogAPIService) GetLogDatadogExecute(r APIGetLogDatadogReques // APIListLogDatadogRequest represents a request for the resource. type APIListLogDatadogRequest struct { - ctx context.Context + ctx context.Context APIService LoggingDatadogAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogDatadogRequest) Execute() ([]LoggingDatadogResponse, *http.Response, error) { return r.APIService.ListLogDatadogExecute(r) @@ -630,9 +629,9 @@ List all of the Datadog logging objects for a particular service and version. func (a *LoggingDatadogAPIService) ListLogDatadog(ctx context.Context, serviceID string, versionID int32) APIListLogDatadogRequest { return APIListLogDatadogRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingDatadogAPIService) ListLogDatadog(ctx context.Context, serviceID // @return []LoggingDatadogResponse func (a *LoggingDatadogAPIService) ListLogDatadogExecute(r APIListLogDatadogRequest) ([]LoggingDatadogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingDatadogResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingDatadogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDatadogAPIService.ListLogDatadog") @@ -724,7 +723,6 @@ func (a *LoggingDatadogAPIService) ListLogDatadogExecute(r APIListLogDatadogRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingDatadogAPIService) ListLogDatadogExecute(r APIListLogDatadogRequ // APIUpdateLogDatadogRequest represents a request for the resource. type APIUpdateLogDatadogRequest struct { - ctx context.Context - APIService LoggingDatadogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDatadogAPI + serviceID string + versionID int32 loggingDatadogName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - region *string - token *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + region *string + token *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogDatadogRequest) Name(name string) *APIUpdateLogDatadogReque r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogDatadogRequest) Placement(placement string) *APIUpdateLogDatadogRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogDatadogRequest) ResponseCondition(responseCondition string) *APIUpdateLogDatadogRequest { r.responseCondition = &responseCondition return r } -// Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. + +// Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. func (r *APIUpdateLogDatadogRequest) Format(format string) *APIUpdateLogDatadogRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogDatadogRequest) FormatVersion(formatVersion int32) *APIUpdateLogDatadogRequest { r.formatVersion = &formatVersion return r } + // Region The region that log data will be sent to. func (r *APIUpdateLogDatadogRequest) Region(region string) *APIUpdateLogDatadogRequest { r.region = ®ion return r } + // Token The API key from your Datadog account. Required. func (r *APIUpdateLogDatadogRequest) Token(token string) *APIUpdateLogDatadogRequest { r.token = &token @@ -811,10 +815,10 @@ Update the Datadog logging object for a particular service and version. */ func (a *LoggingDatadogAPIService) UpdateLogDatadog(ctx context.Context, serviceID string, versionID int32, loggingDatadogName string) APIUpdateLogDatadogRequest { return APIUpdateLogDatadogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDatadogName: loggingDatadogName, } } @@ -823,10 +827,10 @@ func (a *LoggingDatadogAPIService) UpdateLogDatadog(ctx context.Context, service // @return LoggingDatadogResponse func (a *LoggingDatadogAPIService) UpdateLogDatadogExecute(r APIUpdateLogDatadogRequest) (*LoggingDatadogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDatadogResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDatadogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDatadogAPIService.UpdateLogDatadog") @@ -929,7 +933,6 @@ func (a *LoggingDatadogAPIService) UpdateLogDatadogExecute(r APIUpdateLogDatadog return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_digitalocean.go b/fastly/api_logging_digitalocean.go index 2ae197a..22a3fa2 100644 --- a/fastly/api_logging_digitalocean.go +++ b/fastly/api_logging_digitalocean.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingDigitaloceanAPI interface { /* - CreateLogDigocean Create a DigitalOcean Spaces log endpoint + CreateLogDigocean Create a DigitalOcean Spaces log endpoint - Create a DigitalOcean Space for a particular service and version. + Create a DigitalOcean Space for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogDigoceanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogDigoceanRequest */ CreateLogDigocean(ctx context.Context, serviceID string, versionID int32) APICreateLogDigoceanRequest @@ -48,15 +47,15 @@ type LoggingDigitaloceanAPI interface { CreateLogDigoceanExecute(r APICreateLogDigoceanRequest) (*LoggingDigitaloceanResponse, *http.Response, error) /* - DeleteLogDigocean Delete a DigitalOcean Spaces log endpoint + DeleteLogDigocean Delete a DigitalOcean Spaces log endpoint - Delete the DigitalOcean Space for a particular service and version. + Delete the DigitalOcean Space for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDigitaloceanName The name for the real-time logging configuration. - @return APIDeleteLogDigoceanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDigitaloceanName The name for the real-time logging configuration. + @return APIDeleteLogDigoceanRequest */ DeleteLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIDeleteLogDigoceanRequest @@ -65,15 +64,15 @@ type LoggingDigitaloceanAPI interface { DeleteLogDigoceanExecute(r APIDeleteLogDigoceanRequest) (*InlineResponse200, *http.Response, error) /* - GetLogDigocean Get a DigitalOcean Spaces log endpoint + GetLogDigocean Get a DigitalOcean Spaces log endpoint - Get the DigitalOcean Space for a particular service and version. + Get the DigitalOcean Space for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDigitaloceanName The name for the real-time logging configuration. - @return APIGetLogDigoceanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDigitaloceanName The name for the real-time logging configuration. + @return APIGetLogDigoceanRequest */ GetLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIGetLogDigoceanRequest @@ -82,14 +81,14 @@ type LoggingDigitaloceanAPI interface { GetLogDigoceanExecute(r APIGetLogDigoceanRequest) (*LoggingDigitaloceanResponse, *http.Response, error) /* - ListLogDigocean List DigitalOcean Spaces log endpoints + ListLogDigocean List DigitalOcean Spaces log endpoints - List all of the DigitalOcean Spaces for a particular service and version. + List all of the DigitalOcean Spaces for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogDigoceanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogDigoceanRequest */ ListLogDigocean(ctx context.Context, serviceID string, versionID int32) APIListLogDigoceanRequest @@ -98,15 +97,15 @@ type LoggingDigitaloceanAPI interface { ListLogDigoceanExecute(r APIListLogDigoceanRequest) ([]LoggingDigitaloceanResponse, *http.Response, error) /* - UpdateLogDigocean Update a DigitalOcean Spaces log endpoint + UpdateLogDigocean Update a DigitalOcean Spaces log endpoint - Update the DigitalOcean Space for a particular service and version. + Update the DigitalOcean Space for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingDigitaloceanName The name for the real-time logging configuration. - @return APIUpdateLogDigoceanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingDigitaloceanName The name for the real-time logging configuration. + @return APIUpdateLogDigoceanRequest */ UpdateLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIUpdateLogDigoceanRequest @@ -120,26 +119,26 @@ type LoggingDigitaloceanAPIService service // APICreateLogDigoceanRequest represents a request for the resource. type APICreateLogDigoceanRequest struct { - ctx context.Context - APIService LoggingDigitaloceanAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingDigitaloceanAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - bucketName *string - accessKey *string - secretKey *string - domain *string - path *string - publicKey *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + bucketName *string + accessKey *string + secretKey *string + domain *string + path *string + publicKey *string } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogDigoceanRequest) Name(name string) *APICreateLogDigoceanReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogDigoceanRequest) Placement(placement string) *APICreateLogDigoceanRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogDigoceanRequest) ResponseCondition(responseCondition string) *APICreateLogDigoceanRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogDigoceanRequest) Format(format string) *APICreateLogDigoceanRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogDigoceanRequest) FormatVersion(formatVersion int32) *APICreateLogDigoceanRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogDigoceanRequest) MessageType(messageType string) *APICreateLogDigoceanRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogDigoceanRequest) TimestampFormat(timestampFormat string) *APICreateLogDigoceanRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogDigoceanRequest) CompressionCodec(compressionCodec string) *APICreateLogDigoceanRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogDigoceanRequest) Period(period int32) *APICreateLogDigoceanRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogDigoceanRequest) GzipLevel(gzipLevel int32) *APICreateLogDigoceanRequest { r.gzipLevel = &gzipLevel return r } + // BucketName The name of the DigitalOcean Space. func (r *APICreateLogDigoceanRequest) BucketName(bucketName string) *APICreateLogDigoceanRequest { r.bucketName = &bucketName return r } + // AccessKey Your DigitalOcean Spaces account access key. func (r *APICreateLogDigoceanRequest) AccessKey(accessKey string) *APICreateLogDigoceanRequest { r.accessKey = &accessKey return r } + // SecretKey Your DigitalOcean Spaces account secret key. func (r *APICreateLogDigoceanRequest) SecretKey(secretKey string) *APICreateLogDigoceanRequest { r.secretKey = &secretKey return r } + // Domain The domain of the DigitalOcean Spaces endpoint. func (r *APICreateLogDigoceanRequest) Domain(domain string) *APICreateLogDigoceanRequest { r.domain = &domain return r } + // Path The path to upload logs to. func (r *APICreateLogDigoceanRequest) Path(path string) *APICreateLogDigoceanRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogDigoceanRequest) PublicKey(publicKey string) *APICreateLogDigoceanRequest { r.publicKey = &publicKey @@ -241,9 +255,9 @@ Create a DigitalOcean Space for a particular service and version. func (a *LoggingDigitaloceanAPIService) CreateLogDigocean(ctx context.Context, serviceID string, versionID int32) APICreateLogDigoceanRequest { return APICreateLogDigoceanRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingDigitaloceanAPIService) CreateLogDigocean(ctx context.Context, s // @return LoggingDigitaloceanResponse func (a *LoggingDigitaloceanAPIService) CreateLogDigoceanExecute(r APICreateLogDigoceanRequest) (*LoggingDigitaloceanResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDigitaloceanResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDigitaloceanResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDigitaloceanAPIService.CreateLogDigocean") @@ -383,7 +397,6 @@ func (a *LoggingDigitaloceanAPIService) CreateLogDigoceanExecute(r APICreateLogD return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingDigitaloceanAPIService) CreateLogDigoceanExecute(r APICreateLogD // APIDeleteLogDigoceanRequest represents a request for the resource. type APIDeleteLogDigoceanRequest struct { - ctx context.Context - APIService LoggingDigitaloceanAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDigitaloceanAPI + serviceID string + versionID int32 loggingDigitaloceanName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogDigoceanRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogDigoceanExecute(r) @@ -428,10 +440,10 @@ Delete the DigitalOcean Space for a particular service and version. */ func (a *LoggingDigitaloceanAPIService) DeleteLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIDeleteLogDigoceanRequest { return APIDeleteLogDigoceanRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDigitaloceanName: loggingDigitaloceanName, } } @@ -440,10 +452,10 @@ func (a *LoggingDigitaloceanAPIService) DeleteLogDigocean(ctx context.Context, s // @return InlineResponse200 func (a *LoggingDigitaloceanAPIService) DeleteLogDigoceanExecute(r APIDeleteLogDigoceanRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDigitaloceanAPIService.DeleteLogDigocean") @@ -525,7 +537,6 @@ func (a *LoggingDigitaloceanAPIService) DeleteLogDigoceanExecute(r APIDeleteLogD return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingDigitaloceanAPIService) DeleteLogDigoceanExecute(r APIDeleteLogD // APIGetLogDigoceanRequest represents a request for the resource. type APIGetLogDigoceanRequest struct { - ctx context.Context - APIService LoggingDigitaloceanAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDigitaloceanAPI + serviceID string + versionID int32 loggingDigitaloceanName string } - // Execute calls the API using the request data configured. func (r APIGetLogDigoceanRequest) Execute() (*LoggingDigitaloceanResponse, *http.Response, error) { return r.APIService.GetLogDigoceanExecute(r) @@ -570,10 +580,10 @@ Get the DigitalOcean Space for a particular service and version. */ func (a *LoggingDigitaloceanAPIService) GetLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIGetLogDigoceanRequest { return APIGetLogDigoceanRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDigitaloceanName: loggingDigitaloceanName, } } @@ -582,10 +592,10 @@ func (a *LoggingDigitaloceanAPIService) GetLogDigocean(ctx context.Context, serv // @return LoggingDigitaloceanResponse func (a *LoggingDigitaloceanAPIService) GetLogDigoceanExecute(r APIGetLogDigoceanRequest) (*LoggingDigitaloceanResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDigitaloceanResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDigitaloceanResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDigitaloceanAPIService.GetLogDigocean") @@ -667,7 +677,6 @@ func (a *LoggingDigitaloceanAPIService) GetLogDigoceanExecute(r APIGetLogDigocea return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingDigitaloceanAPIService) GetLogDigoceanExecute(r APIGetLogDigocea // APIListLogDigoceanRequest represents a request for the resource. type APIListLogDigoceanRequest struct { - ctx context.Context + ctx context.Context APIService LoggingDigitaloceanAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogDigoceanRequest) Execute() ([]LoggingDigitaloceanResponse, *http.Response, error) { return r.APIService.ListLogDigoceanExecute(r) @@ -711,9 +719,9 @@ List all of the DigitalOcean Spaces for a particular service and version. func (a *LoggingDigitaloceanAPIService) ListLogDigocean(ctx context.Context, serviceID string, versionID int32) APIListLogDigoceanRequest { return APIListLogDigoceanRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingDigitaloceanAPIService) ListLogDigocean(ctx context.Context, ser // @return []LoggingDigitaloceanResponse func (a *LoggingDigitaloceanAPIService) ListLogDigoceanExecute(r APIListLogDigoceanRequest) ([]LoggingDigitaloceanResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingDigitaloceanResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingDigitaloceanResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDigitaloceanAPIService.ListLogDigocean") @@ -805,7 +813,6 @@ func (a *LoggingDigitaloceanAPIService) ListLogDigoceanExecute(r APIListLogDigoc return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingDigitaloceanAPIService) ListLogDigoceanExecute(r APIListLogDigoc // APIUpdateLogDigoceanRequest represents a request for the resource. type APIUpdateLogDigoceanRequest struct { - ctx context.Context - APIService LoggingDigitaloceanAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingDigitaloceanAPI + serviceID string + versionID int32 loggingDigitaloceanName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - bucketName *string - accessKey *string - secretKey *string - domain *string - path *string - publicKey *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + bucketName *string + accessKey *string + secretKey *string + domain *string + path *string + publicKey *string } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogDigoceanRequest) Name(name string) *APIUpdateLogDigoceanReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogDigoceanRequest) Placement(placement string) *APIUpdateLogDigoceanRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogDigoceanRequest) ResponseCondition(responseCondition string) *APIUpdateLogDigoceanRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogDigoceanRequest) Format(format string) *APIUpdateLogDigoceanRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogDigoceanRequest) FormatVersion(formatVersion int32) *APIUpdateLogDigoceanRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogDigoceanRequest) MessageType(messageType string) *APIUpdateLogDigoceanRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogDigoceanRequest) TimestampFormat(timestampFormat string) *APIUpdateLogDigoceanRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogDigoceanRequest) CompressionCodec(compressionCodec string) *APIUpdateLogDigoceanRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogDigoceanRequest) Period(period int32) *APIUpdateLogDigoceanRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogDigoceanRequest) GzipLevel(gzipLevel int32) *APIUpdateLogDigoceanRequest { r.gzipLevel = &gzipLevel return r } + // BucketName The name of the DigitalOcean Space. func (r *APIUpdateLogDigoceanRequest) BucketName(bucketName string) *APIUpdateLogDigoceanRequest { r.bucketName = &bucketName return r } + // AccessKey Your DigitalOcean Spaces account access key. func (r *APIUpdateLogDigoceanRequest) AccessKey(accessKey string) *APIUpdateLogDigoceanRequest { r.accessKey = &accessKey return r } + // SecretKey Your DigitalOcean Spaces account secret key. func (r *APIUpdateLogDigoceanRequest) SecretKey(secretKey string) *APIUpdateLogDigoceanRequest { r.secretKey = &secretKey return r } + // Domain The domain of the DigitalOcean Spaces endpoint. func (r *APIUpdateLogDigoceanRequest) Domain(domain string) *APIUpdateLogDigoceanRequest { r.domain = &domain return r } + // Path The path to upload logs to. func (r *APIUpdateLogDigoceanRequest) Path(path string) *APIUpdateLogDigoceanRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogDigoceanRequest) PublicKey(publicKey string) *APIUpdateLogDigoceanRequest { r.publicKey = &publicKey @@ -946,10 +968,10 @@ Update the DigitalOcean Space for a particular service and version. */ func (a *LoggingDigitaloceanAPIService) UpdateLogDigocean(ctx context.Context, serviceID string, versionID int32, loggingDigitaloceanName string) APIUpdateLogDigoceanRequest { return APIUpdateLogDigoceanRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingDigitaloceanName: loggingDigitaloceanName, } } @@ -958,10 +980,10 @@ func (a *LoggingDigitaloceanAPIService) UpdateLogDigocean(ctx context.Context, s // @return LoggingDigitaloceanResponse func (a *LoggingDigitaloceanAPIService) UpdateLogDigoceanExecute(r APIUpdateLogDigoceanRequest) (*LoggingDigitaloceanResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingDigitaloceanResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingDigitaloceanResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingDigitaloceanAPIService.UpdateLogDigocean") @@ -1091,7 +1113,6 @@ func (a *LoggingDigitaloceanAPIService) UpdateLogDigoceanExecute(r APIUpdateLogD return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_elasticsearch.go b/fastly/api_logging_elasticsearch.go index f081c12..f2d09db 100644 --- a/fastly/api_logging_elasticsearch.go +++ b/fastly/api_logging_elasticsearch.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingElasticsearchAPI interface { /* - CreateLogElasticsearch Create an Elasticsearch log endpoint + CreateLogElasticsearch Create an Elasticsearch log endpoint - Create a Elasticsearch logging endpoint for a particular service and version. + Create a Elasticsearch logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogElasticsearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogElasticsearchRequest */ CreateLogElasticsearch(ctx context.Context, serviceID string, versionID int32) APICreateLogElasticsearchRequest @@ -48,15 +47,15 @@ type LoggingElasticsearchAPI interface { CreateLogElasticsearchExecute(r APICreateLogElasticsearchRequest) (*LoggingElasticsearchResponse, *http.Response, error) /* - DeleteLogElasticsearch Delete an Elasticsearch log endpoint + DeleteLogElasticsearch Delete an Elasticsearch log endpoint - Delete the Elasticsearch logging endpoint for a particular service and version. + Delete the Elasticsearch logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingElasticsearchName The name for the real-time logging configuration. - @return APIDeleteLogElasticsearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingElasticsearchName The name for the real-time logging configuration. + @return APIDeleteLogElasticsearchRequest */ DeleteLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIDeleteLogElasticsearchRequest @@ -65,15 +64,15 @@ type LoggingElasticsearchAPI interface { DeleteLogElasticsearchExecute(r APIDeleteLogElasticsearchRequest) (*InlineResponse200, *http.Response, error) /* - GetLogElasticsearch Get an Elasticsearch log endpoint + GetLogElasticsearch Get an Elasticsearch log endpoint - Get the Elasticsearch logging endpoint for a particular service and version. + Get the Elasticsearch logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingElasticsearchName The name for the real-time logging configuration. - @return APIGetLogElasticsearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingElasticsearchName The name for the real-time logging configuration. + @return APIGetLogElasticsearchRequest */ GetLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIGetLogElasticsearchRequest @@ -82,14 +81,14 @@ type LoggingElasticsearchAPI interface { GetLogElasticsearchExecute(r APIGetLogElasticsearchRequest) (*LoggingElasticsearchResponse, *http.Response, error) /* - ListLogElasticsearch List Elasticsearch log endpoints + ListLogElasticsearch List Elasticsearch log endpoints - List all of the Elasticsearch logging endpoints for a particular service and version. + List all of the Elasticsearch logging endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogElasticsearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogElasticsearchRequest */ ListLogElasticsearch(ctx context.Context, serviceID string, versionID int32) APIListLogElasticsearchRequest @@ -98,15 +97,15 @@ type LoggingElasticsearchAPI interface { ListLogElasticsearchExecute(r APIListLogElasticsearchRequest) ([]LoggingElasticsearchResponse, *http.Response, error) /* - UpdateLogElasticsearch Update an Elasticsearch log endpoint + UpdateLogElasticsearch Update an Elasticsearch log endpoint - Update the Elasticsearch logging endpoint for a particular service and version. + Update the Elasticsearch logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingElasticsearchName The name for the real-time logging configuration. - @return APIUpdateLogElasticsearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingElasticsearchName The name for the real-time logging configuration. + @return APIUpdateLogElasticsearchRequest */ UpdateLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIUpdateLogElasticsearchRequest @@ -120,26 +119,26 @@ type LoggingElasticsearchAPIService service // APICreateLogElasticsearchRequest represents a request for the resource. type APICreateLogElasticsearchRequest struct { - ctx context.Context - APIService LoggingElasticsearchAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingElasticsearchAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string requestMaxEntries *int32 - requestMaxBytes *int32 - index *string - url *string - pipeline *string - user *string - password *string + requestMaxBytes *int32 + index *string + url *string + pipeline *string + user *string + password *string } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogElasticsearchRequest) Name(name string) *APICreateLogElasti r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogElasticsearchRequest) Placement(placement string) *APICreateLogElasticsearchRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogElasticsearchRequest) ResponseCondition(responseCondition string) *APICreateLogElasticsearchRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. func (r *APICreateLogElasticsearchRequest) Format(format string) *APICreateLogElasticsearchRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogElasticsearchRequest) FormatVersion(formatVersion int32) *APICreateLogElasticsearchRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APICreateLogElasticsearchRequest) TLSCaCert(tlsCaCert string) *APICreateLogElasticsearchRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateLogElasticsearchRequest) TLSClientCert(tlsClientCert string) *APICreateLogElasticsearchRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateLogElasticsearchRequest) TLSClientKey(tlsClientKey string) *APICreateLogElasticsearchRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APICreateLogElasticsearchRequest) TLSHostname(tlsHostname string) *APICreateLogElasticsearchRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` for unbounded. func (r *APICreateLogElasticsearchRequest) RequestMaxEntries(requestMaxEntries int32) *APICreateLogElasticsearchRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. func (r *APICreateLogElasticsearchRequest) RequestMaxBytes(requestMaxBytes int32) *APICreateLogElasticsearchRequest { r.requestMaxBytes = &requestMaxBytes return r } + // Index The name of the Elasticsearch index to send documents (logs) to. The index must follow the Elasticsearch [index format rules](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html). We support [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) interpolated variables inside braces prefixed with a pound symbol. For example, `#{%F}` will interpolate as `YYYY-MM-DD` with today's date. func (r *APICreateLogElasticsearchRequest) Index(index string) *APICreateLogElasticsearchRequest { r.index = &index return r } + // URL The URL to stream logs to. Must use HTTPS. func (r *APICreateLogElasticsearchRequest) URL(url string) *APICreateLogElasticsearchRequest { r.url = &url return r } + // Pipeline The ID of the Elasticsearch ingest pipeline to apply pre-process transformations to before indexing. Learn more about creating a pipeline in the [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html). func (r *APICreateLogElasticsearchRequest) Pipeline(pipeline string) *APICreateLogElasticsearchRequest { r.pipeline = &pipeline return r } + // User Basic Auth username. func (r *APICreateLogElasticsearchRequest) User(user string) *APICreateLogElasticsearchRequest { r.user = &user return r } + // Password Basic Auth password. func (r *APICreateLogElasticsearchRequest) Password(password string) *APICreateLogElasticsearchRequest { r.password = &password @@ -241,9 +255,9 @@ Create a Elasticsearch logging endpoint for a particular service and version. func (a *LoggingElasticsearchAPIService) CreateLogElasticsearch(ctx context.Context, serviceID string, versionID int32) APICreateLogElasticsearchRequest { return APICreateLogElasticsearchRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingElasticsearchAPIService) CreateLogElasticsearch(ctx context.Cont // @return LoggingElasticsearchResponse func (a *LoggingElasticsearchAPIService) CreateLogElasticsearchExecute(r APICreateLogElasticsearchRequest) (*LoggingElasticsearchResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingElasticsearchResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingElasticsearchResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingElasticsearchAPIService.CreateLogElasticsearch") @@ -383,7 +397,6 @@ func (a *LoggingElasticsearchAPIService) CreateLogElasticsearchExecute(r APICrea return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingElasticsearchAPIService) CreateLogElasticsearchExecute(r APICrea // APIDeleteLogElasticsearchRequest represents a request for the resource. type APIDeleteLogElasticsearchRequest struct { - ctx context.Context - APIService LoggingElasticsearchAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingElasticsearchAPI + serviceID string + versionID int32 loggingElasticsearchName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogElasticsearchRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogElasticsearchExecute(r) @@ -428,10 +440,10 @@ Delete the Elasticsearch logging endpoint for a particular service and version. */ func (a *LoggingElasticsearchAPIService) DeleteLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIDeleteLogElasticsearchRequest { return APIDeleteLogElasticsearchRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingElasticsearchName: loggingElasticsearchName, } } @@ -440,10 +452,10 @@ func (a *LoggingElasticsearchAPIService) DeleteLogElasticsearch(ctx context.Cont // @return InlineResponse200 func (a *LoggingElasticsearchAPIService) DeleteLogElasticsearchExecute(r APIDeleteLogElasticsearchRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingElasticsearchAPIService.DeleteLogElasticsearch") @@ -525,7 +537,6 @@ func (a *LoggingElasticsearchAPIService) DeleteLogElasticsearchExecute(r APIDele return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingElasticsearchAPIService) DeleteLogElasticsearchExecute(r APIDele // APIGetLogElasticsearchRequest represents a request for the resource. type APIGetLogElasticsearchRequest struct { - ctx context.Context - APIService LoggingElasticsearchAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingElasticsearchAPI + serviceID string + versionID int32 loggingElasticsearchName string } - // Execute calls the API using the request data configured. func (r APIGetLogElasticsearchRequest) Execute() (*LoggingElasticsearchResponse, *http.Response, error) { return r.APIService.GetLogElasticsearchExecute(r) @@ -570,10 +580,10 @@ Get the Elasticsearch logging endpoint for a particular service and version. */ func (a *LoggingElasticsearchAPIService) GetLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIGetLogElasticsearchRequest { return APIGetLogElasticsearchRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingElasticsearchName: loggingElasticsearchName, } } @@ -582,10 +592,10 @@ func (a *LoggingElasticsearchAPIService) GetLogElasticsearch(ctx context.Context // @return LoggingElasticsearchResponse func (a *LoggingElasticsearchAPIService) GetLogElasticsearchExecute(r APIGetLogElasticsearchRequest) (*LoggingElasticsearchResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingElasticsearchResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingElasticsearchResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingElasticsearchAPIService.GetLogElasticsearch") @@ -667,7 +677,6 @@ func (a *LoggingElasticsearchAPIService) GetLogElasticsearchExecute(r APIGetLogE return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingElasticsearchAPIService) GetLogElasticsearchExecute(r APIGetLogE // APIListLogElasticsearchRequest represents a request for the resource. type APIListLogElasticsearchRequest struct { - ctx context.Context + ctx context.Context APIService LoggingElasticsearchAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogElasticsearchRequest) Execute() ([]LoggingElasticsearchResponse, *http.Response, error) { return r.APIService.ListLogElasticsearchExecute(r) @@ -711,9 +719,9 @@ List all of the Elasticsearch logging endpoints for a particular service and ver func (a *LoggingElasticsearchAPIService) ListLogElasticsearch(ctx context.Context, serviceID string, versionID int32) APIListLogElasticsearchRequest { return APIListLogElasticsearchRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingElasticsearchAPIService) ListLogElasticsearch(ctx context.Contex // @return []LoggingElasticsearchResponse func (a *LoggingElasticsearchAPIService) ListLogElasticsearchExecute(r APIListLogElasticsearchRequest) ([]LoggingElasticsearchResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingElasticsearchResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingElasticsearchResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingElasticsearchAPIService.ListLogElasticsearch") @@ -805,7 +813,6 @@ func (a *LoggingElasticsearchAPIService) ListLogElasticsearchExecute(r APIListLo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingElasticsearchAPIService) ListLogElasticsearchExecute(r APIListLo // APIUpdateLogElasticsearchRequest represents a request for the resource. type APIUpdateLogElasticsearchRequest struct { - ctx context.Context - APIService LoggingElasticsearchAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingElasticsearchAPI + serviceID string + versionID int32 loggingElasticsearchName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string - requestMaxEntries *int32 - requestMaxBytes *int32 - index *string - url *string - pipeline *string - user *string - password *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string + requestMaxEntries *int32 + requestMaxBytes *int32 + index *string + url *string + pipeline *string + user *string + password *string } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogElasticsearchRequest) Name(name string) *APIUpdateLogElasti r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogElasticsearchRequest) Placement(placement string) *APIUpdateLogElasticsearchRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogElasticsearchRequest) ResponseCondition(responseCondition string) *APIUpdateLogElasticsearchRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. func (r *APIUpdateLogElasticsearchRequest) Format(format string) *APIUpdateLogElasticsearchRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogElasticsearchRequest) FormatVersion(formatVersion int32) *APIUpdateLogElasticsearchRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APIUpdateLogElasticsearchRequest) TLSCaCert(tlsCaCert string) *APIUpdateLogElasticsearchRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogElasticsearchRequest) TLSClientCert(tlsClientCert string) *APIUpdateLogElasticsearchRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogElasticsearchRequest) TLSClientKey(tlsClientKey string) *APIUpdateLogElasticsearchRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APIUpdateLogElasticsearchRequest) TLSHostname(tlsHostname string) *APIUpdateLogElasticsearchRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` for unbounded. func (r *APIUpdateLogElasticsearchRequest) RequestMaxEntries(requestMaxEntries int32) *APIUpdateLogElasticsearchRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. func (r *APIUpdateLogElasticsearchRequest) RequestMaxBytes(requestMaxBytes int32) *APIUpdateLogElasticsearchRequest { r.requestMaxBytes = &requestMaxBytes return r } + // Index The name of the Elasticsearch index to send documents (logs) to. The index must follow the Elasticsearch [index format rules](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html). We support [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) interpolated variables inside braces prefixed with a pound symbol. For example, `#{%F}` will interpolate as `YYYY-MM-DD` with today's date. func (r *APIUpdateLogElasticsearchRequest) Index(index string) *APIUpdateLogElasticsearchRequest { r.index = &index return r } + // URL The URL to stream logs to. Must use HTTPS. func (r *APIUpdateLogElasticsearchRequest) URL(url string) *APIUpdateLogElasticsearchRequest { r.url = &url return r } + // Pipeline The ID of the Elasticsearch ingest pipeline to apply pre-process transformations to before indexing. Learn more about creating a pipeline in the [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html). func (r *APIUpdateLogElasticsearchRequest) Pipeline(pipeline string) *APIUpdateLogElasticsearchRequest { r.pipeline = &pipeline return r } + // User Basic Auth username. func (r *APIUpdateLogElasticsearchRequest) User(user string) *APIUpdateLogElasticsearchRequest { r.user = &user return r } + // Password Basic Auth password. func (r *APIUpdateLogElasticsearchRequest) Password(password string) *APIUpdateLogElasticsearchRequest { r.password = &password @@ -946,10 +968,10 @@ Update the Elasticsearch logging endpoint for a particular service and version. */ func (a *LoggingElasticsearchAPIService) UpdateLogElasticsearch(ctx context.Context, serviceID string, versionID int32, loggingElasticsearchName string) APIUpdateLogElasticsearchRequest { return APIUpdateLogElasticsearchRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingElasticsearchName: loggingElasticsearchName, } } @@ -958,10 +980,10 @@ func (a *LoggingElasticsearchAPIService) UpdateLogElasticsearch(ctx context.Cont // @return LoggingElasticsearchResponse func (a *LoggingElasticsearchAPIService) UpdateLogElasticsearchExecute(r APIUpdateLogElasticsearchRequest) (*LoggingElasticsearchResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingElasticsearchResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingElasticsearchResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingElasticsearchAPIService.UpdateLogElasticsearch") @@ -1091,7 +1113,6 @@ func (a *LoggingElasticsearchAPIService) UpdateLogElasticsearchExecute(r APIUpda return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_ftp.go b/fastly/api_logging_ftp.go index 5147a21..2a5452d 100644 --- a/fastly/api_logging_ftp.go +++ b/fastly/api_logging_ftp.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingFtpAPI interface { /* - CreateLogFtp Create an FTP log endpoint + CreateLogFtp Create an FTP log endpoint - Create a FTP for a particular service and version. + Create a FTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogFtpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogFtpRequest */ CreateLogFtp(ctx context.Context, serviceID string, versionID int32) APICreateLogFtpRequest @@ -48,15 +47,15 @@ type LoggingFtpAPI interface { CreateLogFtpExecute(r APICreateLogFtpRequest) (*LoggingFtpResponse, *http.Response, error) /* - DeleteLogFtp Delete an FTP log endpoint + DeleteLogFtp Delete an FTP log endpoint - Delete the FTP for a particular service and version. + Delete the FTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingFtpName The name for the real-time logging configuration. - @return APIDeleteLogFtpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingFtpName The name for the real-time logging configuration. + @return APIDeleteLogFtpRequest */ DeleteLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIDeleteLogFtpRequest @@ -65,15 +64,15 @@ type LoggingFtpAPI interface { DeleteLogFtpExecute(r APIDeleteLogFtpRequest) (*InlineResponse200, *http.Response, error) /* - GetLogFtp Get an FTP log endpoint + GetLogFtp Get an FTP log endpoint - Get the FTP for a particular service and version. + Get the FTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingFtpName The name for the real-time logging configuration. - @return APIGetLogFtpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingFtpName The name for the real-time logging configuration. + @return APIGetLogFtpRequest */ GetLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIGetLogFtpRequest @@ -82,14 +81,14 @@ type LoggingFtpAPI interface { GetLogFtpExecute(r APIGetLogFtpRequest) (*LoggingFtpResponse, *http.Response, error) /* - ListLogFtp List FTP log endpoints + ListLogFtp List FTP log endpoints - List all of the FTPs for a particular service and version. + List all of the FTPs for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogFtpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogFtpRequest */ ListLogFtp(ctx context.Context, serviceID string, versionID int32) APIListLogFtpRequest @@ -98,15 +97,15 @@ type LoggingFtpAPI interface { ListLogFtpExecute(r APIListLogFtpRequest) ([]LoggingFtpResponse, *http.Response, error) /* - UpdateLogFtp Update an FTP log endpoint + UpdateLogFtp Update an FTP log endpoint - Update the FTP for a particular service and version. + Update the FTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingFtpName The name for the real-time logging configuration. - @return APIUpdateLogFtpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingFtpName The name for the real-time logging configuration. + @return APIUpdateLogFtpRequest */ UpdateLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIUpdateLogFtpRequest @@ -120,28 +119,28 @@ type LoggingFtpAPIService service // APICreateLogFtpRequest represents a request for the resource. type APICreateLogFtpRequest struct { - ctx context.Context - APIService LoggingFtpAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingFtpAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - address *string - hostname *string - ipv4 *string - password *string - path *string - publicKey *string - user *string - port *int32 + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + address *string + hostname *string + ipv4 *string + password *string + path *string + publicKey *string + user *string + port *int32 } // Name The name for the real-time logging configuration. @@ -149,86 +148,103 @@ func (r *APICreateLogFtpRequest) Name(name string) *APICreateLogFtpRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogFtpRequest) Placement(placement string) *APICreateLogFtpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogFtpRequest) ResponseCondition(responseCondition string) *APICreateLogFtpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogFtpRequest) Format(format string) *APICreateLogFtpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogFtpRequest) FormatVersion(formatVersion int32) *APICreateLogFtpRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogFtpRequest) MessageType(messageType string) *APICreateLogFtpRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogFtpRequest) TimestampFormat(timestampFormat string) *APICreateLogFtpRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogFtpRequest) CompressionCodec(compressionCodec string) *APICreateLogFtpRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogFtpRequest) Period(period int32) *APICreateLogFtpRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogFtpRequest) GzipLevel(gzipLevel int32) *APICreateLogFtpRequest { r.gzipLevel = &gzipLevel return r } + // Address An hostname or IPv4 address. func (r *APICreateLogFtpRequest) Address(address string) *APICreateLogFtpRequest { r.address = &address return r } + // Hostname Hostname used. func (r *APICreateLogFtpRequest) Hostname(hostname string) *APICreateLogFtpRequest { r.hostname = &hostname return r } + // Ipv4 IPv4 address of the host. func (r *APICreateLogFtpRequest) Ipv4(ipv4 string) *APICreateLogFtpRequest { r.ipv4 = &ipv4 return r } + // Password The password for the server. For anonymous use an email address. func (r *APICreateLogFtpRequest) Password(password string) *APICreateLogFtpRequest { r.password = &password return r } + // Path The path to upload log files to. If the path ends in `/` then it is treated as a directory. func (r *APICreateLogFtpRequest) Path(path string) *APICreateLogFtpRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogFtpRequest) PublicKey(publicKey string) *APICreateLogFtpRequest { r.publicKey = &publicKey return r } + // User The username for the server. Can be anonymous. func (r *APICreateLogFtpRequest) User(user string) *APICreateLogFtpRequest { r.user = &user return r } + // Port The port number. func (r *APICreateLogFtpRequest) Port(port int32) *APICreateLogFtpRequest { r.port = &port @@ -253,9 +269,9 @@ Create a FTP for a particular service and version. func (a *LoggingFtpAPIService) CreateLogFtp(ctx context.Context, serviceID string, versionID int32) APICreateLogFtpRequest { return APICreateLogFtpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -263,10 +279,10 @@ func (a *LoggingFtpAPIService) CreateLogFtp(ctx context.Context, serviceID strin // @return LoggingFtpResponse func (a *LoggingFtpAPIService) CreateLogFtpExecute(r APICreateLogFtpRequest) (*LoggingFtpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingFtpResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingFtpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingFtpAPIService.CreateLogFtp") @@ -401,7 +417,6 @@ func (a *LoggingFtpAPIService) CreateLogFtpExecute(r APICreateLogFtpRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -420,14 +435,13 @@ func (a *LoggingFtpAPIService) CreateLogFtpExecute(r APICreateLogFtpRequest) (*L // APIDeleteLogFtpRequest represents a request for the resource. type APIDeleteLogFtpRequest struct { - ctx context.Context - APIService LoggingFtpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingFtpAPI + serviceID string + versionID int32 loggingFtpName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogFtpRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogFtpExecute(r) @@ -446,10 +460,10 @@ Delete the FTP for a particular service and version. */ func (a *LoggingFtpAPIService) DeleteLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIDeleteLogFtpRequest { return APIDeleteLogFtpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingFtpName: loggingFtpName, } } @@ -458,10 +472,10 @@ func (a *LoggingFtpAPIService) DeleteLogFtp(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *LoggingFtpAPIService) DeleteLogFtpExecute(r APIDeleteLogFtpRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingFtpAPIService.DeleteLogFtp") @@ -543,7 +557,6 @@ func (a *LoggingFtpAPIService) DeleteLogFtpExecute(r APIDeleteLogFtpRequest) (*I return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -562,14 +575,13 @@ func (a *LoggingFtpAPIService) DeleteLogFtpExecute(r APIDeleteLogFtpRequest) (*I // APIGetLogFtpRequest represents a request for the resource. type APIGetLogFtpRequest struct { - ctx context.Context - APIService LoggingFtpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingFtpAPI + serviceID string + versionID int32 loggingFtpName string } - // Execute calls the API using the request data configured. func (r APIGetLogFtpRequest) Execute() (*LoggingFtpResponse, *http.Response, error) { return r.APIService.GetLogFtpExecute(r) @@ -588,10 +600,10 @@ Get the FTP for a particular service and version. */ func (a *LoggingFtpAPIService) GetLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIGetLogFtpRequest { return APIGetLogFtpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingFtpName: loggingFtpName, } } @@ -600,10 +612,10 @@ func (a *LoggingFtpAPIService) GetLogFtp(ctx context.Context, serviceID string, // @return LoggingFtpResponse func (a *LoggingFtpAPIService) GetLogFtpExecute(r APIGetLogFtpRequest) (*LoggingFtpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingFtpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingFtpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingFtpAPIService.GetLogFtp") @@ -685,7 +697,6 @@ func (a *LoggingFtpAPIService) GetLogFtpExecute(r APIGetLogFtpRequest) (*Logging return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -704,13 +715,12 @@ func (a *LoggingFtpAPIService) GetLogFtpExecute(r APIGetLogFtpRequest) (*Logging // APIListLogFtpRequest represents a request for the resource. type APIListLogFtpRequest struct { - ctx context.Context + ctx context.Context APIService LoggingFtpAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogFtpRequest) Execute() ([]LoggingFtpResponse, *http.Response, error) { return r.APIService.ListLogFtpExecute(r) @@ -729,9 +739,9 @@ List all of the FTPs for a particular service and version. func (a *LoggingFtpAPIService) ListLogFtp(ctx context.Context, serviceID string, versionID int32) APIListLogFtpRequest { return APIListLogFtpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -739,10 +749,10 @@ func (a *LoggingFtpAPIService) ListLogFtp(ctx context.Context, serviceID string, // @return []LoggingFtpResponse func (a *LoggingFtpAPIService) ListLogFtpExecute(r APIListLogFtpRequest) ([]LoggingFtpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingFtpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingFtpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingFtpAPIService.ListLogFtp") @@ -823,7 +833,6 @@ func (a *LoggingFtpAPIService) ListLogFtpExecute(r APIListLogFtpRequest) ([]Logg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -842,29 +851,29 @@ func (a *LoggingFtpAPIService) ListLogFtpExecute(r APIListLogFtpRequest) ([]Logg // APIUpdateLogFtpRequest represents a request for the resource. type APIUpdateLogFtpRequest struct { - ctx context.Context - APIService LoggingFtpAPI - serviceID string - versionID int32 - loggingFtpName string - name *string - placement *string + ctx context.Context + APIService LoggingFtpAPI + serviceID string + versionID int32 + loggingFtpName string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - address *string - hostname *string - ipv4 *string - password *string - path *string - publicKey *string - user *string - port *int32 + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + address *string + hostname *string + ipv4 *string + password *string + path *string + publicKey *string + user *string + port *int32 } // Name The name for the real-time logging configuration. @@ -872,86 +881,103 @@ func (r *APIUpdateLogFtpRequest) Name(name string) *APIUpdateLogFtpRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogFtpRequest) Placement(placement string) *APIUpdateLogFtpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogFtpRequest) ResponseCondition(responseCondition string) *APIUpdateLogFtpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogFtpRequest) Format(format string) *APIUpdateLogFtpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogFtpRequest) FormatVersion(formatVersion int32) *APIUpdateLogFtpRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogFtpRequest) MessageType(messageType string) *APIUpdateLogFtpRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogFtpRequest) TimestampFormat(timestampFormat string) *APIUpdateLogFtpRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogFtpRequest) CompressionCodec(compressionCodec string) *APIUpdateLogFtpRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogFtpRequest) Period(period int32) *APIUpdateLogFtpRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogFtpRequest) GzipLevel(gzipLevel int32) *APIUpdateLogFtpRequest { r.gzipLevel = &gzipLevel return r } + // Address An hostname or IPv4 address. func (r *APIUpdateLogFtpRequest) Address(address string) *APIUpdateLogFtpRequest { r.address = &address return r } + // Hostname Hostname used. func (r *APIUpdateLogFtpRequest) Hostname(hostname string) *APIUpdateLogFtpRequest { r.hostname = &hostname return r } + // Ipv4 IPv4 address of the host. func (r *APIUpdateLogFtpRequest) Ipv4(ipv4 string) *APIUpdateLogFtpRequest { r.ipv4 = &ipv4 return r } + // Password The password for the server. For anonymous use an email address. func (r *APIUpdateLogFtpRequest) Password(password string) *APIUpdateLogFtpRequest { r.password = &password return r } + // Path The path to upload log files to. If the path ends in `/` then it is treated as a directory. func (r *APIUpdateLogFtpRequest) Path(path string) *APIUpdateLogFtpRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogFtpRequest) PublicKey(publicKey string) *APIUpdateLogFtpRequest { r.publicKey = &publicKey return r } + // User The username for the server. Can be anonymous. func (r *APIUpdateLogFtpRequest) User(user string) *APIUpdateLogFtpRequest { r.user = &user return r } + // Port The port number. func (r *APIUpdateLogFtpRequest) Port(port int32) *APIUpdateLogFtpRequest { r.port = &port @@ -976,10 +1002,10 @@ Update the FTP for a particular service and version. */ func (a *LoggingFtpAPIService) UpdateLogFtp(ctx context.Context, serviceID string, versionID int32, loggingFtpName string) APIUpdateLogFtpRequest { return APIUpdateLogFtpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingFtpName: loggingFtpName, } } @@ -988,10 +1014,10 @@ func (a *LoggingFtpAPIService) UpdateLogFtp(ctx context.Context, serviceID strin // @return LoggingFtpResponse func (a *LoggingFtpAPIService) UpdateLogFtpExecute(r APIUpdateLogFtpRequest) (*LoggingFtpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingFtpResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingFtpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingFtpAPIService.UpdateLogFtp") @@ -1127,7 +1153,6 @@ func (a *LoggingFtpAPIService) UpdateLogFtpExecute(r APIUpdateLogFtpRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_gcs.go b/fastly/api_logging_gcs.go index f49a10f..7b144aa 100644 --- a/fastly/api_logging_gcs.go +++ b/fastly/api_logging_gcs.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingGcsAPI interface { /* - CreateLogGcs Create a GCS log endpoint + CreateLogGcs Create a GCS log endpoint - Create GCS logging for a particular service and version. + Create GCS logging for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogGcsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogGcsRequest */ CreateLogGcs(ctx context.Context, serviceID string, versionID int32) APICreateLogGcsRequest @@ -48,15 +47,15 @@ type LoggingGcsAPI interface { CreateLogGcsExecute(r APICreateLogGcsRequest) (*LoggingGcsResponse, *http.Response, error) /* - DeleteLogGcs Delete a GCS log endpoint + DeleteLogGcs Delete a GCS log endpoint - Delete the GCS Logging for a particular service and version. + Delete the GCS Logging for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGcsName The name for the real-time logging configuration. - @return APIDeleteLogGcsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGcsName The name for the real-time logging configuration. + @return APIDeleteLogGcsRequest */ DeleteLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIDeleteLogGcsRequest @@ -65,15 +64,15 @@ type LoggingGcsAPI interface { DeleteLogGcsExecute(r APIDeleteLogGcsRequest) (*InlineResponse200, *http.Response, error) /* - GetLogGcs Get a GCS log endpoint + GetLogGcs Get a GCS log endpoint - Get the GCS Logging for a particular service and version. + Get the GCS Logging for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGcsName The name for the real-time logging configuration. - @return APIGetLogGcsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGcsName The name for the real-time logging configuration. + @return APIGetLogGcsRequest */ GetLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIGetLogGcsRequest @@ -82,14 +81,14 @@ type LoggingGcsAPI interface { GetLogGcsExecute(r APIGetLogGcsRequest) (*LoggingGcsResponse, *http.Response, error) /* - ListLogGcs List GCS log endpoints + ListLogGcs List GCS log endpoints - List all of the GCS log endpoints for a particular service and version. + List all of the GCS log endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogGcsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogGcsRequest */ ListLogGcs(ctx context.Context, serviceID string, versionID int32) APIListLogGcsRequest @@ -98,15 +97,15 @@ type LoggingGcsAPI interface { ListLogGcsExecute(r APIListLogGcsRequest) ([]LoggingGcsResponse, *http.Response, error) /* - UpdateLogGcs Update a GCS log endpoint + UpdateLogGcs Update a GCS log endpoint - Update the GCS for a particular service and version. + Update the GCS for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGcsName The name for the real-time logging configuration. - @return APIUpdateLogGcsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGcsName The name for the real-time logging configuration. + @return APIUpdateLogGcsRequest */ UpdateLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIUpdateLogGcsRequest @@ -120,27 +119,27 @@ type LoggingGcsAPIService service // APICreateLogGcsRequest represents a request for the resource. type APICreateLogGcsRequest struct { - ctx context.Context - APIService LoggingGcsAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingGcsAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - user *string - secretKey *string - accountName *string - bucketName *string - path *string - publicKey *string - projectID *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + user *string + secretKey *string + accountName *string + bucketName *string + path *string + publicKey *string + projectID *string } // Name The name for the real-time logging configuration. @@ -148,81 +147,97 @@ func (r *APICreateLogGcsRequest) Name(name string) *APICreateLogGcsRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogGcsRequest) Placement(placement string) *APICreateLogGcsRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogGcsRequest) ResponseCondition(responseCondition string) *APICreateLogGcsRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogGcsRequest) Format(format string) *APICreateLogGcsRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogGcsRequest) FormatVersion(formatVersion int32) *APICreateLogGcsRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogGcsRequest) MessageType(messageType string) *APICreateLogGcsRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogGcsRequest) TimestampFormat(timestampFormat string) *APICreateLogGcsRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogGcsRequest) CompressionCodec(compressionCodec string) *APICreateLogGcsRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogGcsRequest) Period(period int32) *APICreateLogGcsRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogGcsRequest) GzipLevel(gzipLevel int32) *APICreateLogGcsRequest { r.gzipLevel = &gzipLevel return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogGcsRequest) User(user string) *APICreateLogGcsRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogGcsRequest) SecretKey(secretKey string) *APICreateLogGcsRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APICreateLogGcsRequest) AccountName(accountName string) *APICreateLogGcsRequest { r.accountName = &accountName return r } + // BucketName The name of the GCS bucket. func (r *APICreateLogGcsRequest) BucketName(bucketName string) *APICreateLogGcsRequest { r.bucketName = &bucketName return r } + // Path returns a pointer to a request. func (r *APICreateLogGcsRequest) Path(path string) *APICreateLogGcsRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogGcsRequest) PublicKey(publicKey string) *APICreateLogGcsRequest { r.publicKey = &publicKey return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APICreateLogGcsRequest) ProjectID(projectID string) *APICreateLogGcsRequest { r.projectID = &projectID @@ -247,9 +262,9 @@ Create GCS logging for a particular service and version. func (a *LoggingGcsAPIService) CreateLogGcs(ctx context.Context, serviceID string, versionID int32) APICreateLogGcsRequest { return APICreateLogGcsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -257,10 +272,10 @@ func (a *LoggingGcsAPIService) CreateLogGcs(ctx context.Context, serviceID strin // @return LoggingGcsResponse func (a *LoggingGcsAPIService) CreateLogGcsExecute(r APICreateLogGcsRequest) (*LoggingGcsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGcsResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGcsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingGcsAPIService.CreateLogGcs") @@ -396,7 +411,6 @@ func (a *LoggingGcsAPIService) CreateLogGcsExecute(r APICreateLogGcsRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -415,14 +429,13 @@ func (a *LoggingGcsAPIService) CreateLogGcsExecute(r APICreateLogGcsRequest) (*L // APIDeleteLogGcsRequest represents a request for the resource. type APIDeleteLogGcsRequest struct { - ctx context.Context - APIService LoggingGcsAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingGcsAPI + serviceID string + versionID int32 loggingGcsName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogGcsRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogGcsExecute(r) @@ -441,10 +454,10 @@ Delete the GCS Logging for a particular service and version. */ func (a *LoggingGcsAPIService) DeleteLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIDeleteLogGcsRequest { return APIDeleteLogGcsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGcsName: loggingGcsName, } } @@ -453,10 +466,10 @@ func (a *LoggingGcsAPIService) DeleteLogGcs(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *LoggingGcsAPIService) DeleteLogGcsExecute(r APIDeleteLogGcsRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingGcsAPIService.DeleteLogGcs") @@ -538,7 +551,6 @@ func (a *LoggingGcsAPIService) DeleteLogGcsExecute(r APIDeleteLogGcsRequest) (*I return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -557,14 +569,13 @@ func (a *LoggingGcsAPIService) DeleteLogGcsExecute(r APIDeleteLogGcsRequest) (*I // APIGetLogGcsRequest represents a request for the resource. type APIGetLogGcsRequest struct { - ctx context.Context - APIService LoggingGcsAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingGcsAPI + serviceID string + versionID int32 loggingGcsName string } - // Execute calls the API using the request data configured. func (r APIGetLogGcsRequest) Execute() (*LoggingGcsResponse, *http.Response, error) { return r.APIService.GetLogGcsExecute(r) @@ -583,10 +594,10 @@ Get the GCS Logging for a particular service and version. */ func (a *LoggingGcsAPIService) GetLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIGetLogGcsRequest { return APIGetLogGcsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGcsName: loggingGcsName, } } @@ -595,10 +606,10 @@ func (a *LoggingGcsAPIService) GetLogGcs(ctx context.Context, serviceID string, // @return LoggingGcsResponse func (a *LoggingGcsAPIService) GetLogGcsExecute(r APIGetLogGcsRequest) (*LoggingGcsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGcsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGcsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingGcsAPIService.GetLogGcs") @@ -680,7 +691,6 @@ func (a *LoggingGcsAPIService) GetLogGcsExecute(r APIGetLogGcsRequest) (*Logging return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -699,13 +709,12 @@ func (a *LoggingGcsAPIService) GetLogGcsExecute(r APIGetLogGcsRequest) (*Logging // APIListLogGcsRequest represents a request for the resource. type APIListLogGcsRequest struct { - ctx context.Context + ctx context.Context APIService LoggingGcsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogGcsRequest) Execute() ([]LoggingGcsResponse, *http.Response, error) { return r.APIService.ListLogGcsExecute(r) @@ -724,9 +733,9 @@ List all of the GCS log endpoints for a particular service and version. func (a *LoggingGcsAPIService) ListLogGcs(ctx context.Context, serviceID string, versionID int32) APIListLogGcsRequest { return APIListLogGcsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -734,10 +743,10 @@ func (a *LoggingGcsAPIService) ListLogGcs(ctx context.Context, serviceID string, // @return []LoggingGcsResponse func (a *LoggingGcsAPIService) ListLogGcsExecute(r APIListLogGcsRequest) ([]LoggingGcsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingGcsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingGcsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingGcsAPIService.ListLogGcs") @@ -818,7 +827,6 @@ func (a *LoggingGcsAPIService) ListLogGcsExecute(r APIListLogGcsRequest) ([]Logg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -837,28 +845,28 @@ func (a *LoggingGcsAPIService) ListLogGcsExecute(r APIListLogGcsRequest) ([]Logg // APIUpdateLogGcsRequest represents a request for the resource. type APIUpdateLogGcsRequest struct { - ctx context.Context - APIService LoggingGcsAPI - serviceID string - versionID int32 - loggingGcsName string - name *string - placement *string + ctx context.Context + APIService LoggingGcsAPI + serviceID string + versionID int32 + loggingGcsName string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - user *string - secretKey *string - accountName *string - bucketName *string - path *string - publicKey *string - projectID *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + user *string + secretKey *string + accountName *string + bucketName *string + path *string + publicKey *string + projectID *string } // Name The name for the real-time logging configuration. @@ -866,81 +874,97 @@ func (r *APIUpdateLogGcsRequest) Name(name string) *APIUpdateLogGcsRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogGcsRequest) Placement(placement string) *APIUpdateLogGcsRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogGcsRequest) ResponseCondition(responseCondition string) *APIUpdateLogGcsRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogGcsRequest) Format(format string) *APIUpdateLogGcsRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogGcsRequest) FormatVersion(formatVersion int32) *APIUpdateLogGcsRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogGcsRequest) MessageType(messageType string) *APIUpdateLogGcsRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogGcsRequest) TimestampFormat(timestampFormat string) *APIUpdateLogGcsRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogGcsRequest) CompressionCodec(compressionCodec string) *APIUpdateLogGcsRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogGcsRequest) Period(period int32) *APIUpdateLogGcsRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogGcsRequest) GzipLevel(gzipLevel int32) *APIUpdateLogGcsRequest { r.gzipLevel = &gzipLevel return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogGcsRequest) User(user string) *APIUpdateLogGcsRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogGcsRequest) SecretKey(secretKey string) *APIUpdateLogGcsRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APIUpdateLogGcsRequest) AccountName(accountName string) *APIUpdateLogGcsRequest { r.accountName = &accountName return r } + // BucketName The name of the GCS bucket. func (r *APIUpdateLogGcsRequest) BucketName(bucketName string) *APIUpdateLogGcsRequest { r.bucketName = &bucketName return r } + // Path returns a pointer to a request. func (r *APIUpdateLogGcsRequest) Path(path string) *APIUpdateLogGcsRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogGcsRequest) PublicKey(publicKey string) *APIUpdateLogGcsRequest { r.publicKey = &publicKey return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APIUpdateLogGcsRequest) ProjectID(projectID string) *APIUpdateLogGcsRequest { r.projectID = &projectID @@ -965,10 +989,10 @@ Update the GCS for a particular service and version. */ func (a *LoggingGcsAPIService) UpdateLogGcs(ctx context.Context, serviceID string, versionID int32, loggingGcsName string) APIUpdateLogGcsRequest { return APIUpdateLogGcsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGcsName: loggingGcsName, } } @@ -977,10 +1001,10 @@ func (a *LoggingGcsAPIService) UpdateLogGcs(ctx context.Context, serviceID strin // @return LoggingGcsResponse func (a *LoggingGcsAPIService) UpdateLogGcsExecute(r APIUpdateLogGcsRequest) (*LoggingGcsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGcsResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGcsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingGcsAPIService.UpdateLogGcs") @@ -1117,7 +1141,6 @@ func (a *LoggingGcsAPIService) UpdateLogGcsExecute(r APIUpdateLogGcsRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_heroku.go b/fastly/api_logging_heroku.go index 38fc19a..7691188 100644 --- a/fastly/api_logging_heroku.go +++ b/fastly/api_logging_heroku.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingHerokuAPI interface { /* - CreateLogHeroku Create a Heroku log endpoint + CreateLogHeroku Create a Heroku log endpoint - Create a Heroku for a particular service and version. + Create a Heroku for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogHerokuRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogHerokuRequest */ CreateLogHeroku(ctx context.Context, serviceID string, versionID int32) APICreateLogHerokuRequest @@ -48,15 +47,15 @@ type LoggingHerokuAPI interface { CreateLogHerokuExecute(r APICreateLogHerokuRequest) (*LoggingHerokuResponse, *http.Response, error) /* - DeleteLogHeroku Delete the Heroku log endpoint + DeleteLogHeroku Delete the Heroku log endpoint - Delete the Heroku for a particular service and version. + Delete the Heroku for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHerokuName The name for the real-time logging configuration. - @return APIDeleteLogHerokuRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHerokuName The name for the real-time logging configuration. + @return APIDeleteLogHerokuRequest */ DeleteLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIDeleteLogHerokuRequest @@ -65,15 +64,15 @@ type LoggingHerokuAPI interface { DeleteLogHerokuExecute(r APIDeleteLogHerokuRequest) (*InlineResponse200, *http.Response, error) /* - GetLogHeroku Get a Heroku log endpoint + GetLogHeroku Get a Heroku log endpoint - Get the Heroku for a particular service and version. + Get the Heroku for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHerokuName The name for the real-time logging configuration. - @return APIGetLogHerokuRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHerokuName The name for the real-time logging configuration. + @return APIGetLogHerokuRequest */ GetLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIGetLogHerokuRequest @@ -82,14 +81,14 @@ type LoggingHerokuAPI interface { GetLogHerokuExecute(r APIGetLogHerokuRequest) (*LoggingHerokuResponse, *http.Response, error) /* - ListLogHeroku List Heroku log endpoints + ListLogHeroku List Heroku log endpoints - List all of the Herokus for a particular service and version. + List all of the Herokus for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogHerokuRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogHerokuRequest */ ListLogHeroku(ctx context.Context, serviceID string, versionID int32) APIListLogHerokuRequest @@ -98,15 +97,15 @@ type LoggingHerokuAPI interface { ListLogHerokuExecute(r APIListLogHerokuRequest) ([]LoggingHerokuResponse, *http.Response, error) /* - UpdateLogHeroku Update the Heroku log endpoint + UpdateLogHeroku Update the Heroku log endpoint - Update the Heroku for a particular service and version. + Update the Heroku for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHerokuName The name for the real-time logging configuration. - @return APIUpdateLogHerokuRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHerokuName The name for the real-time logging configuration. + @return APIUpdateLogHerokuRequest */ UpdateLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIUpdateLogHerokuRequest @@ -120,17 +119,17 @@ type LoggingHerokuAPIService service // APICreateLogHerokuRequest represents a request for the resource. type APICreateLogHerokuRequest struct { - ctx context.Context - APIService LoggingHerokuAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingHerokuAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string - url *string + format *string + formatVersion *int32 + token *string + url *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogHerokuRequest) Name(name string) *APICreateLogHerokuRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogHerokuRequest) Placement(placement string) *APICreateLogHerokuRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogHerokuRequest) ResponseCondition(responseCondition string) *APICreateLogHerokuRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogHerokuRequest) Format(format string) *APICreateLogHerokuRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogHerokuRequest) FormatVersion(formatVersion int32) *APICreateLogHerokuRequest { r.formatVersion = &formatVersion return r } + // Token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). func (r *APICreateLogHerokuRequest) Token(token string) *APICreateLogHerokuRequest { r.token = &token return r } + // URL The URL to stream logs to. func (r *APICreateLogHerokuRequest) URL(url string) *APICreateLogHerokuRequest { r.url = &url @@ -187,9 +192,9 @@ Create a Heroku for a particular service and version. func (a *LoggingHerokuAPIService) CreateLogHeroku(ctx context.Context, serviceID string, versionID int32) APICreateLogHerokuRequest { return APICreateLogHerokuRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingHerokuAPIService) CreateLogHeroku(ctx context.Context, serviceID // @return LoggingHerokuResponse func (a *LoggingHerokuAPIService) CreateLogHerokuExecute(r APICreateLogHerokuRequest) (*LoggingHerokuResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHerokuResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHerokuResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHerokuAPIService.CreateLogHeroku") @@ -302,7 +307,6 @@ func (a *LoggingHerokuAPIService) CreateLogHerokuExecute(r APICreateLogHerokuReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingHerokuAPIService) CreateLogHerokuExecute(r APICreateLogHerokuReq // APIDeleteLogHerokuRequest represents a request for the resource. type APIDeleteLogHerokuRequest struct { - ctx context.Context - APIService LoggingHerokuAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHerokuAPI + serviceID string + versionID int32 loggingHerokuName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogHerokuRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogHerokuExecute(r) @@ -347,10 +350,10 @@ Delete the Heroku for a particular service and version. */ func (a *LoggingHerokuAPIService) DeleteLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIDeleteLogHerokuRequest { return APIDeleteLogHerokuRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHerokuName: loggingHerokuName, } } @@ -359,10 +362,10 @@ func (a *LoggingHerokuAPIService) DeleteLogHeroku(ctx context.Context, serviceID // @return InlineResponse200 func (a *LoggingHerokuAPIService) DeleteLogHerokuExecute(r APIDeleteLogHerokuRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHerokuAPIService.DeleteLogHeroku") @@ -444,7 +447,6 @@ func (a *LoggingHerokuAPIService) DeleteLogHerokuExecute(r APIDeleteLogHerokuReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingHerokuAPIService) DeleteLogHerokuExecute(r APIDeleteLogHerokuReq // APIGetLogHerokuRequest represents a request for the resource. type APIGetLogHerokuRequest struct { - ctx context.Context - APIService LoggingHerokuAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHerokuAPI + serviceID string + versionID int32 loggingHerokuName string } - // Execute calls the API using the request data configured. func (r APIGetLogHerokuRequest) Execute() (*LoggingHerokuResponse, *http.Response, error) { return r.APIService.GetLogHerokuExecute(r) @@ -489,10 +490,10 @@ Get the Heroku for a particular service and version. */ func (a *LoggingHerokuAPIService) GetLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIGetLogHerokuRequest { return APIGetLogHerokuRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHerokuName: loggingHerokuName, } } @@ -501,10 +502,10 @@ func (a *LoggingHerokuAPIService) GetLogHeroku(ctx context.Context, serviceID st // @return LoggingHerokuResponse func (a *LoggingHerokuAPIService) GetLogHerokuExecute(r APIGetLogHerokuRequest) (*LoggingHerokuResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHerokuResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHerokuResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHerokuAPIService.GetLogHeroku") @@ -586,7 +587,6 @@ func (a *LoggingHerokuAPIService) GetLogHerokuExecute(r APIGetLogHerokuRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingHerokuAPIService) GetLogHerokuExecute(r APIGetLogHerokuRequest) // APIListLogHerokuRequest represents a request for the resource. type APIListLogHerokuRequest struct { - ctx context.Context + ctx context.Context APIService LoggingHerokuAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogHerokuRequest) Execute() ([]LoggingHerokuResponse, *http.Response, error) { return r.APIService.ListLogHerokuExecute(r) @@ -630,9 +629,9 @@ List all of the Herokus for a particular service and version. func (a *LoggingHerokuAPIService) ListLogHeroku(ctx context.Context, serviceID string, versionID int32) APIListLogHerokuRequest { return APIListLogHerokuRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingHerokuAPIService) ListLogHeroku(ctx context.Context, serviceID s // @return []LoggingHerokuResponse func (a *LoggingHerokuAPIService) ListLogHerokuExecute(r APIListLogHerokuRequest) ([]LoggingHerokuResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingHerokuResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingHerokuResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHerokuAPIService.ListLogHeroku") @@ -724,7 +723,6 @@ func (a *LoggingHerokuAPIService) ListLogHerokuExecute(r APIListLogHerokuRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingHerokuAPIService) ListLogHerokuExecute(r APIListLogHerokuRequest // APIUpdateLogHerokuRequest represents a request for the resource. type APIUpdateLogHerokuRequest struct { - ctx context.Context - APIService LoggingHerokuAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHerokuAPI + serviceID string + versionID int32 loggingHerokuName string - name *string - placement *string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string - url *string + format *string + formatVersion *int32 + token *string + url *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogHerokuRequest) Name(name string) *APIUpdateLogHerokuRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogHerokuRequest) Placement(placement string) *APIUpdateLogHerokuRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogHerokuRequest) ResponseCondition(responseCondition string) *APIUpdateLogHerokuRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogHerokuRequest) Format(format string) *APIUpdateLogHerokuRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogHerokuRequest) FormatVersion(formatVersion int32) *APIUpdateLogHerokuRequest { r.formatVersion = &formatVersion return r } + // Token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). func (r *APIUpdateLogHerokuRequest) Token(token string) *APIUpdateLogHerokuRequest { r.token = &token return r } + // URL The URL to stream logs to. func (r *APIUpdateLogHerokuRequest) URL(url string) *APIUpdateLogHerokuRequest { r.url = &url @@ -811,10 +815,10 @@ Update the Heroku for a particular service and version. */ func (a *LoggingHerokuAPIService) UpdateLogHeroku(ctx context.Context, serviceID string, versionID int32, loggingHerokuName string) APIUpdateLogHerokuRequest { return APIUpdateLogHerokuRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHerokuName: loggingHerokuName, } } @@ -823,10 +827,10 @@ func (a *LoggingHerokuAPIService) UpdateLogHeroku(ctx context.Context, serviceID // @return LoggingHerokuResponse func (a *LoggingHerokuAPIService) UpdateLogHerokuExecute(r APIUpdateLogHerokuRequest) (*LoggingHerokuResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHerokuResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHerokuResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHerokuAPIService.UpdateLogHeroku") @@ -929,7 +933,6 @@ func (a *LoggingHerokuAPIService) UpdateLogHerokuExecute(r APIUpdateLogHerokuReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_honeycomb.go b/fastly/api_logging_honeycomb.go index e539897..6605621 100644 --- a/fastly/api_logging_honeycomb.go +++ b/fastly/api_logging_honeycomb.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingHoneycombAPI interface { /* - CreateLogHoneycomb Create a Honeycomb log endpoint + CreateLogHoneycomb Create a Honeycomb log endpoint - Create a Honeycomb logging object for a particular service and version. + Create a Honeycomb logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogHoneycombRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogHoneycombRequest */ CreateLogHoneycomb(ctx context.Context, serviceID string, versionID int32) APICreateLogHoneycombRequest @@ -48,15 +47,15 @@ type LoggingHoneycombAPI interface { CreateLogHoneycombExecute(r APICreateLogHoneycombRequest) (*LoggingHoneycombResponse, *http.Response, error) /* - DeleteLogHoneycomb Delete the Honeycomb log endpoint + DeleteLogHoneycomb Delete the Honeycomb log endpoint - Delete the Honeycomb logging object for a particular service and version. + Delete the Honeycomb logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHoneycombName The name for the real-time logging configuration. - @return APIDeleteLogHoneycombRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHoneycombName The name for the real-time logging configuration. + @return APIDeleteLogHoneycombRequest */ DeleteLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIDeleteLogHoneycombRequest @@ -65,15 +64,15 @@ type LoggingHoneycombAPI interface { DeleteLogHoneycombExecute(r APIDeleteLogHoneycombRequest) (*InlineResponse200, *http.Response, error) /* - GetLogHoneycomb Get a Honeycomb log endpoint + GetLogHoneycomb Get a Honeycomb log endpoint - Get the details of a Honeycomb logging object for a particular service and version. + Get the details of a Honeycomb logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHoneycombName The name for the real-time logging configuration. - @return APIGetLogHoneycombRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHoneycombName The name for the real-time logging configuration. + @return APIGetLogHoneycombRequest */ GetLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIGetLogHoneycombRequest @@ -82,14 +81,14 @@ type LoggingHoneycombAPI interface { GetLogHoneycombExecute(r APIGetLogHoneycombRequest) (*LoggingHoneycombResponse, *http.Response, error) /* - ListLogHoneycomb List Honeycomb log endpoints + ListLogHoneycomb List Honeycomb log endpoints - List all of the Honeycomb logging objects for a particular service and version. + List all of the Honeycomb logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogHoneycombRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogHoneycombRequest */ ListLogHoneycomb(ctx context.Context, serviceID string, versionID int32) APIListLogHoneycombRequest @@ -98,15 +97,15 @@ type LoggingHoneycombAPI interface { ListLogHoneycombExecute(r APIListLogHoneycombRequest) ([]LoggingHoneycombResponse, *http.Response, error) /* - UpdateLogHoneycomb Update a Honeycomb log endpoint + UpdateLogHoneycomb Update a Honeycomb log endpoint - Update a Honeycomb logging object for a particular service and version. + Update a Honeycomb logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHoneycombName The name for the real-time logging configuration. - @return APIUpdateLogHoneycombRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHoneycombName The name for the real-time logging configuration. + @return APIUpdateLogHoneycombRequest */ UpdateLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIUpdateLogHoneycombRequest @@ -120,17 +119,17 @@ type LoggingHoneycombAPIService service // APICreateLogHoneycombRequest represents a request for the resource. type APICreateLogHoneycombRequest struct { - ctx context.Context - APIService LoggingHoneycombAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingHoneycombAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - dataset *string - token *string + format *string + formatVersion *int32 + dataset *string + token *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogHoneycombRequest) Name(name string) *APICreateLogHoneycombR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogHoneycombRequest) Placement(placement string) *APICreateLogHoneycombRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogHoneycombRequest) ResponseCondition(responseCondition string) *APICreateLogHoneycombRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. func (r *APICreateLogHoneycombRequest) Format(format string) *APICreateLogHoneycombRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogHoneycombRequest) FormatVersion(formatVersion int32) *APICreateLogHoneycombRequest { r.formatVersion = &formatVersion return r } + // Dataset The Honeycomb Dataset you want to log to. func (r *APICreateLogHoneycombRequest) Dataset(dataset string) *APICreateLogHoneycombRequest { r.dataset = &dataset return r } + // Token The Write Key from the Account page of your Honeycomb account. func (r *APICreateLogHoneycombRequest) Token(token string) *APICreateLogHoneycombRequest { r.token = &token @@ -187,9 +192,9 @@ Create a Honeycomb logging object for a particular service and version. func (a *LoggingHoneycombAPIService) CreateLogHoneycomb(ctx context.Context, serviceID string, versionID int32) APICreateLogHoneycombRequest { return APICreateLogHoneycombRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingHoneycombAPIService) CreateLogHoneycomb(ctx context.Context, ser // @return LoggingHoneycombResponse func (a *LoggingHoneycombAPIService) CreateLogHoneycombExecute(r APICreateLogHoneycombRequest) (*LoggingHoneycombResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHoneycombResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHoneycombResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHoneycombAPIService.CreateLogHoneycomb") @@ -302,7 +307,6 @@ func (a *LoggingHoneycombAPIService) CreateLogHoneycombExecute(r APICreateLogHon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingHoneycombAPIService) CreateLogHoneycombExecute(r APICreateLogHon // APIDeleteLogHoneycombRequest represents a request for the resource. type APIDeleteLogHoneycombRequest struct { - ctx context.Context - APIService LoggingHoneycombAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHoneycombAPI + serviceID string + versionID int32 loggingHoneycombName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogHoneycombRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogHoneycombExecute(r) @@ -347,10 +350,10 @@ Delete the Honeycomb logging object for a particular service and version. */ func (a *LoggingHoneycombAPIService) DeleteLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIDeleteLogHoneycombRequest { return APIDeleteLogHoneycombRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHoneycombName: loggingHoneycombName, } } @@ -359,10 +362,10 @@ func (a *LoggingHoneycombAPIService) DeleteLogHoneycomb(ctx context.Context, ser // @return InlineResponse200 func (a *LoggingHoneycombAPIService) DeleteLogHoneycombExecute(r APIDeleteLogHoneycombRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHoneycombAPIService.DeleteLogHoneycomb") @@ -444,7 +447,6 @@ func (a *LoggingHoneycombAPIService) DeleteLogHoneycombExecute(r APIDeleteLogHon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingHoneycombAPIService) DeleteLogHoneycombExecute(r APIDeleteLogHon // APIGetLogHoneycombRequest represents a request for the resource. type APIGetLogHoneycombRequest struct { - ctx context.Context - APIService LoggingHoneycombAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHoneycombAPI + serviceID string + versionID int32 loggingHoneycombName string } - // Execute calls the API using the request data configured. func (r APIGetLogHoneycombRequest) Execute() (*LoggingHoneycombResponse, *http.Response, error) { return r.APIService.GetLogHoneycombExecute(r) @@ -489,10 +490,10 @@ Get the details of a Honeycomb logging object for a particular service and versi */ func (a *LoggingHoneycombAPIService) GetLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIGetLogHoneycombRequest { return APIGetLogHoneycombRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHoneycombName: loggingHoneycombName, } } @@ -501,10 +502,10 @@ func (a *LoggingHoneycombAPIService) GetLogHoneycomb(ctx context.Context, servic // @return LoggingHoneycombResponse func (a *LoggingHoneycombAPIService) GetLogHoneycombExecute(r APIGetLogHoneycombRequest) (*LoggingHoneycombResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHoneycombResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHoneycombResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHoneycombAPIService.GetLogHoneycomb") @@ -586,7 +587,6 @@ func (a *LoggingHoneycombAPIService) GetLogHoneycombExecute(r APIGetLogHoneycomb return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingHoneycombAPIService) GetLogHoneycombExecute(r APIGetLogHoneycomb // APIListLogHoneycombRequest represents a request for the resource. type APIListLogHoneycombRequest struct { - ctx context.Context + ctx context.Context APIService LoggingHoneycombAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogHoneycombRequest) Execute() ([]LoggingHoneycombResponse, *http.Response, error) { return r.APIService.ListLogHoneycombExecute(r) @@ -630,9 +629,9 @@ List all of the Honeycomb logging objects for a particular service and version. func (a *LoggingHoneycombAPIService) ListLogHoneycomb(ctx context.Context, serviceID string, versionID int32) APIListLogHoneycombRequest { return APIListLogHoneycombRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingHoneycombAPIService) ListLogHoneycomb(ctx context.Context, servi // @return []LoggingHoneycombResponse func (a *LoggingHoneycombAPIService) ListLogHoneycombExecute(r APIListLogHoneycombRequest) ([]LoggingHoneycombResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingHoneycombResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingHoneycombResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHoneycombAPIService.ListLogHoneycomb") @@ -724,7 +723,6 @@ func (a *LoggingHoneycombAPIService) ListLogHoneycombExecute(r APIListLogHoneyco return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingHoneycombAPIService) ListLogHoneycombExecute(r APIListLogHoneyco // APIUpdateLogHoneycombRequest represents a request for the resource. type APIUpdateLogHoneycombRequest struct { - ctx context.Context - APIService LoggingHoneycombAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHoneycombAPI + serviceID string + versionID int32 loggingHoneycombName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - dataset *string - token *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + dataset *string + token *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogHoneycombRequest) Name(name string) *APIUpdateLogHoneycombR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogHoneycombRequest) Placement(placement string) *APIUpdateLogHoneycombRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogHoneycombRequest) ResponseCondition(responseCondition string) *APIUpdateLogHoneycombRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. func (r *APIUpdateLogHoneycombRequest) Format(format string) *APIUpdateLogHoneycombRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogHoneycombRequest) FormatVersion(formatVersion int32) *APIUpdateLogHoneycombRequest { r.formatVersion = &formatVersion return r } + // Dataset The Honeycomb Dataset you want to log to. func (r *APIUpdateLogHoneycombRequest) Dataset(dataset string) *APIUpdateLogHoneycombRequest { r.dataset = &dataset return r } + // Token The Write Key from the Account page of your Honeycomb account. func (r *APIUpdateLogHoneycombRequest) Token(token string) *APIUpdateLogHoneycombRequest { r.token = &token @@ -811,10 +815,10 @@ Update a Honeycomb logging object for a particular service and version. */ func (a *LoggingHoneycombAPIService) UpdateLogHoneycomb(ctx context.Context, serviceID string, versionID int32, loggingHoneycombName string) APIUpdateLogHoneycombRequest { return APIUpdateLogHoneycombRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHoneycombName: loggingHoneycombName, } } @@ -823,10 +827,10 @@ func (a *LoggingHoneycombAPIService) UpdateLogHoneycomb(ctx context.Context, ser // @return LoggingHoneycombResponse func (a *LoggingHoneycombAPIService) UpdateLogHoneycombExecute(r APIUpdateLogHoneycombRequest) (*LoggingHoneycombResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHoneycombResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHoneycombResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHoneycombAPIService.UpdateLogHoneycomb") @@ -929,7 +933,6 @@ func (a *LoggingHoneycombAPIService) UpdateLogHoneycombExecute(r APIUpdateLogHon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_https.go b/fastly/api_logging_https.go index c0c0feb..a3afc6b 100644 --- a/fastly/api_logging_https.go +++ b/fastly/api_logging_https.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingHTTPSAPI interface { /* - CreateLogHTTPS Create an HTTPS log endpoint + CreateLogHTTPS Create an HTTPS log endpoint - Create an HTTPS object for a particular service and version. + Create an HTTPS object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogHTTPSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogHTTPSRequest */ CreateLogHTTPS(ctx context.Context, serviceID string, versionID int32) APICreateLogHTTPSRequest @@ -48,15 +47,15 @@ type LoggingHTTPSAPI interface { CreateLogHTTPSExecute(r APICreateLogHTTPSRequest) (*LoggingHTTPSResponse, *http.Response, error) /* - DeleteLogHTTPS Delete an HTTPS log endpoint + DeleteLogHTTPS Delete an HTTPS log endpoint - Delete the HTTPS object for a particular service and version. + Delete the HTTPS object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHTTPSName The name for the real-time logging configuration. - @return APIDeleteLogHTTPSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHTTPSName The name for the real-time logging configuration. + @return APIDeleteLogHTTPSRequest */ DeleteLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIDeleteLogHTTPSRequest @@ -65,15 +64,15 @@ type LoggingHTTPSAPI interface { DeleteLogHTTPSExecute(r APIDeleteLogHTTPSRequest) (*InlineResponse200, *http.Response, error) /* - GetLogHTTPS Get an HTTPS log endpoint + GetLogHTTPS Get an HTTPS log endpoint - Get the HTTPS object for a particular service and version. + Get the HTTPS object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHTTPSName The name for the real-time logging configuration. - @return APIGetLogHTTPSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHTTPSName The name for the real-time logging configuration. + @return APIGetLogHTTPSRequest */ GetLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIGetLogHTTPSRequest @@ -82,14 +81,14 @@ type LoggingHTTPSAPI interface { GetLogHTTPSExecute(r APIGetLogHTTPSRequest) (*LoggingHTTPSResponse, *http.Response, error) /* - ListLogHTTPS List HTTPS log endpoints + ListLogHTTPS List HTTPS log endpoints - List all of the HTTPS objects for a particular service and version. + List all of the HTTPS objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogHTTPSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogHTTPSRequest */ ListLogHTTPS(ctx context.Context, serviceID string, versionID int32) APIListLogHTTPSRequest @@ -98,15 +97,15 @@ type LoggingHTTPSAPI interface { ListLogHTTPSExecute(r APIListLogHTTPSRequest) ([]LoggingHTTPSResponse, *http.Response, error) /* - UpdateLogHTTPS Update an HTTPS log endpoint + UpdateLogHTTPS Update an HTTPS log endpoint - Update the HTTPS object for a particular service and version. + Update the HTTPS object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingHTTPSName The name for the real-time logging configuration. - @return APIUpdateLogHTTPSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingHTTPSName The name for the real-time logging configuration. + @return APIUpdateLogHTTPSRequest */ UpdateLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIUpdateLogHTTPSRequest @@ -120,28 +119,28 @@ type LoggingHTTPSAPIService service // APICreateLogHTTPSRequest represents a request for the resource. type APICreateLogHTTPSRequest struct { - ctx context.Context - APIService LoggingHTTPSAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingHTTPSAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string requestMaxEntries *int32 - requestMaxBytes *int32 - url *string - contentType *string - headerName *string - messageType *LoggingMessageType - headerValue *string - method *string - jsonFormat *string + requestMaxBytes *int32 + url *string + contentType *string + headerName *string + messageType *LoggingMessageType + headerValue *string + method *string + jsonFormat *string } // Name The name for the real-time logging configuration. @@ -149,86 +148,103 @@ func (r *APICreateLogHTTPSRequest) Name(name string) *APICreateLogHTTPSRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogHTTPSRequest) Placement(placement string) *APICreateLogHTTPSRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogHTTPSRequest) ResponseCondition(responseCondition string) *APICreateLogHTTPSRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogHTTPSRequest) Format(format string) *APICreateLogHTTPSRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogHTTPSRequest) FormatVersion(formatVersion int32) *APICreateLogHTTPSRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APICreateLogHTTPSRequest) TLSCaCert(tlsCaCert string) *APICreateLogHTTPSRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateLogHTTPSRequest) TLSClientCert(tlsClientCert string) *APICreateLogHTTPSRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateLogHTTPSRequest) TLSClientKey(tlsClientKey string) *APICreateLogHTTPSRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APICreateLogHTTPSRequest) TLSHostname(tlsHostname string) *APICreateLogHTTPSRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` (10k). func (r *APICreateLogHTTPSRequest) RequestMaxEntries(requestMaxEntries int32) *APICreateLogHTTPSRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` (100MB). func (r *APICreateLogHTTPSRequest) RequestMaxBytes(requestMaxBytes int32) *APICreateLogHTTPSRequest { r.requestMaxBytes = &requestMaxBytes return r } + // URL The URL to send logs to. Must use HTTPS. Required. func (r *APICreateLogHTTPSRequest) URL(url string) *APICreateLogHTTPSRequest { r.url = &url return r } + // ContentType Content type of the header sent with the request. func (r *APICreateLogHTTPSRequest) ContentType(contentType string) *APICreateLogHTTPSRequest { r.contentType = &contentType return r } + // HeaderName Name of the custom header sent with the request. func (r *APICreateLogHTTPSRequest) HeaderName(headerName string) *APICreateLogHTTPSRequest { r.headerName = &headerName return r } + // MessageType returns a pointer to a request. func (r *APICreateLogHTTPSRequest) MessageType(messageType LoggingMessageType) *APICreateLogHTTPSRequest { r.messageType = &messageType return r } + // HeaderValue Value of the custom header sent with the request. func (r *APICreateLogHTTPSRequest) HeaderValue(headerValue string) *APICreateLogHTTPSRequest { r.headerValue = &headerValue return r } + // Method HTTP method used for request. func (r *APICreateLogHTTPSRequest) Method(method string) *APICreateLogHTTPSRequest { r.method = &method return r } + // JSONFormat Enforces valid JSON formatting for log entries. func (r *APICreateLogHTTPSRequest) JSONFormat(jsonFormat string) *APICreateLogHTTPSRequest { r.jsonFormat = &jsonFormat @@ -253,9 +269,9 @@ Create an HTTPS object for a particular service and version. func (a *LoggingHTTPSAPIService) CreateLogHTTPS(ctx context.Context, serviceID string, versionID int32) APICreateLogHTTPSRequest { return APICreateLogHTTPSRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -263,10 +279,10 @@ func (a *LoggingHTTPSAPIService) CreateLogHTTPS(ctx context.Context, serviceID s // @return LoggingHTTPSResponse func (a *LoggingHTTPSAPIService) CreateLogHTTPSExecute(r APICreateLogHTTPSRequest) (*LoggingHTTPSResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHTTPSResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHTTPSResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHTTPSAPIService.CreateLogHTTPS") @@ -401,7 +417,6 @@ func (a *LoggingHTTPSAPIService) CreateLogHTTPSExecute(r APICreateLogHTTPSReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -420,14 +435,13 @@ func (a *LoggingHTTPSAPIService) CreateLogHTTPSExecute(r APICreateLogHTTPSReques // APIDeleteLogHTTPSRequest represents a request for the resource. type APIDeleteLogHTTPSRequest struct { - ctx context.Context - APIService LoggingHTTPSAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHTTPSAPI + serviceID string + versionID int32 loggingHTTPSName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogHTTPSRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogHTTPSExecute(r) @@ -446,10 +460,10 @@ Delete the HTTPS object for a particular service and version. */ func (a *LoggingHTTPSAPIService) DeleteLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIDeleteLogHTTPSRequest { return APIDeleteLogHTTPSRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHTTPSName: loggingHTTPSName, } } @@ -458,10 +472,10 @@ func (a *LoggingHTTPSAPIService) DeleteLogHTTPS(ctx context.Context, serviceID s // @return InlineResponse200 func (a *LoggingHTTPSAPIService) DeleteLogHTTPSExecute(r APIDeleteLogHTTPSRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHTTPSAPIService.DeleteLogHTTPS") @@ -543,7 +557,6 @@ func (a *LoggingHTTPSAPIService) DeleteLogHTTPSExecute(r APIDeleteLogHTTPSReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -562,14 +575,13 @@ func (a *LoggingHTTPSAPIService) DeleteLogHTTPSExecute(r APIDeleteLogHTTPSReques // APIGetLogHTTPSRequest represents a request for the resource. type APIGetLogHTTPSRequest struct { - ctx context.Context - APIService LoggingHTTPSAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingHTTPSAPI + serviceID string + versionID int32 loggingHTTPSName string } - // Execute calls the API using the request data configured. func (r APIGetLogHTTPSRequest) Execute() (*LoggingHTTPSResponse, *http.Response, error) { return r.APIService.GetLogHTTPSExecute(r) @@ -588,10 +600,10 @@ Get the HTTPS object for a particular service and version. */ func (a *LoggingHTTPSAPIService) GetLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIGetLogHTTPSRequest { return APIGetLogHTTPSRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHTTPSName: loggingHTTPSName, } } @@ -600,10 +612,10 @@ func (a *LoggingHTTPSAPIService) GetLogHTTPS(ctx context.Context, serviceID stri // @return LoggingHTTPSResponse func (a *LoggingHTTPSAPIService) GetLogHTTPSExecute(r APIGetLogHTTPSRequest) (*LoggingHTTPSResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHTTPSResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHTTPSResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHTTPSAPIService.GetLogHTTPS") @@ -685,7 +697,6 @@ func (a *LoggingHTTPSAPIService) GetLogHTTPSExecute(r APIGetLogHTTPSRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -704,13 +715,12 @@ func (a *LoggingHTTPSAPIService) GetLogHTTPSExecute(r APIGetLogHTTPSRequest) (*L // APIListLogHTTPSRequest represents a request for the resource. type APIListLogHTTPSRequest struct { - ctx context.Context + ctx context.Context APIService LoggingHTTPSAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogHTTPSRequest) Execute() ([]LoggingHTTPSResponse, *http.Response, error) { return r.APIService.ListLogHTTPSExecute(r) @@ -729,9 +739,9 @@ List all of the HTTPS objects for a particular service and version. func (a *LoggingHTTPSAPIService) ListLogHTTPS(ctx context.Context, serviceID string, versionID int32) APIListLogHTTPSRequest { return APIListLogHTTPSRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -739,10 +749,10 @@ func (a *LoggingHTTPSAPIService) ListLogHTTPS(ctx context.Context, serviceID str // @return []LoggingHTTPSResponse func (a *LoggingHTTPSAPIService) ListLogHTTPSExecute(r APIListLogHTTPSRequest) ([]LoggingHTTPSResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingHTTPSResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingHTTPSResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHTTPSAPIService.ListLogHTTPS") @@ -823,7 +833,6 @@ func (a *LoggingHTTPSAPIService) ListLogHTTPSExecute(r APIListLogHTTPSRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -842,29 +851,29 @@ func (a *LoggingHTTPSAPIService) ListLogHTTPSExecute(r APIListLogHTTPSRequest) ( // APIUpdateLogHTTPSRequest represents a request for the resource. type APIUpdateLogHTTPSRequest struct { - ctx context.Context - APIService LoggingHTTPSAPI - serviceID string - versionID int32 - loggingHTTPSName string - name *string - placement *string + ctx context.Context + APIService LoggingHTTPSAPI + serviceID string + versionID int32 + loggingHTTPSName string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string requestMaxEntries *int32 - requestMaxBytes *int32 - url *string - contentType *string - headerName *string - messageType *LoggingMessageType - headerValue *string - method *string - jsonFormat *string + requestMaxBytes *int32 + url *string + contentType *string + headerName *string + messageType *LoggingMessageType + headerValue *string + method *string + jsonFormat *string } // Name The name for the real-time logging configuration. @@ -872,86 +881,103 @@ func (r *APIUpdateLogHTTPSRequest) Name(name string) *APIUpdateLogHTTPSRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogHTTPSRequest) Placement(placement string) *APIUpdateLogHTTPSRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogHTTPSRequest) ResponseCondition(responseCondition string) *APIUpdateLogHTTPSRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogHTTPSRequest) Format(format string) *APIUpdateLogHTTPSRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogHTTPSRequest) FormatVersion(formatVersion int32) *APIUpdateLogHTTPSRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APIUpdateLogHTTPSRequest) TLSCaCert(tlsCaCert string) *APIUpdateLogHTTPSRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogHTTPSRequest) TLSClientCert(tlsClientCert string) *APIUpdateLogHTTPSRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogHTTPSRequest) TLSClientKey(tlsClientKey string) *APIUpdateLogHTTPSRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APIUpdateLogHTTPSRequest) TLSHostname(tlsHostname string) *APIUpdateLogHTTPSRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` (10k). func (r *APIUpdateLogHTTPSRequest) RequestMaxEntries(requestMaxEntries int32) *APIUpdateLogHTTPSRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` (100MB). func (r *APIUpdateLogHTTPSRequest) RequestMaxBytes(requestMaxBytes int32) *APIUpdateLogHTTPSRequest { r.requestMaxBytes = &requestMaxBytes return r } + // URL The URL to send logs to. Must use HTTPS. Required. func (r *APIUpdateLogHTTPSRequest) URL(url string) *APIUpdateLogHTTPSRequest { r.url = &url return r } + // ContentType Content type of the header sent with the request. func (r *APIUpdateLogHTTPSRequest) ContentType(contentType string) *APIUpdateLogHTTPSRequest { r.contentType = &contentType return r } + // HeaderName Name of the custom header sent with the request. func (r *APIUpdateLogHTTPSRequest) HeaderName(headerName string) *APIUpdateLogHTTPSRequest { r.headerName = &headerName return r } + // MessageType returns a pointer to a request. func (r *APIUpdateLogHTTPSRequest) MessageType(messageType LoggingMessageType) *APIUpdateLogHTTPSRequest { r.messageType = &messageType return r } + // HeaderValue Value of the custom header sent with the request. func (r *APIUpdateLogHTTPSRequest) HeaderValue(headerValue string) *APIUpdateLogHTTPSRequest { r.headerValue = &headerValue return r } + // Method HTTP method used for request. func (r *APIUpdateLogHTTPSRequest) Method(method string) *APIUpdateLogHTTPSRequest { r.method = &method return r } + // JSONFormat Enforces valid JSON formatting for log entries. func (r *APIUpdateLogHTTPSRequest) JSONFormat(jsonFormat string) *APIUpdateLogHTTPSRequest { r.jsonFormat = &jsonFormat @@ -976,10 +1002,10 @@ Update the HTTPS object for a particular service and version. */ func (a *LoggingHTTPSAPIService) UpdateLogHTTPS(ctx context.Context, serviceID string, versionID int32, loggingHTTPSName string) APIUpdateLogHTTPSRequest { return APIUpdateLogHTTPSRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingHTTPSName: loggingHTTPSName, } } @@ -988,10 +1014,10 @@ func (a *LoggingHTTPSAPIService) UpdateLogHTTPS(ctx context.Context, serviceID s // @return LoggingHTTPSResponse func (a *LoggingHTTPSAPIService) UpdateLogHTTPSExecute(r APIUpdateLogHTTPSRequest) (*LoggingHTTPSResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingHTTPSResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingHTTPSResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingHTTPSAPIService.UpdateLogHTTPS") @@ -1127,7 +1153,6 @@ func (a *LoggingHTTPSAPIService) UpdateLogHTTPSExecute(r APIUpdateLogHTTPSReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_kafka.go b/fastly/api_logging_kafka.go index d10e486..716e1a9 100644 --- a/fastly/api_logging_kafka.go +++ b/fastly/api_logging_kafka.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingKafkaAPI interface { /* - CreateLogKafka Create a Kafka log endpoint + CreateLogKafka Create a Kafka log endpoint - Create a Kafka logging endpoint for a particular service and version. + Create a Kafka logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogKafkaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogKafkaRequest */ CreateLogKafka(ctx context.Context, serviceID string, versionID int32) APICreateLogKafkaRequest @@ -48,15 +47,15 @@ type LoggingKafkaAPI interface { CreateLogKafkaExecute(r APICreateLogKafkaRequest) (*LoggingKafkaResponsePost, *http.Response, error) /* - DeleteLogKafka Delete the Kafka log endpoint + DeleteLogKafka Delete the Kafka log endpoint - Delete the Kafka logging endpoint for a particular service and version. + Delete the Kafka logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKafkaName The name for the real-time logging configuration. - @return APIDeleteLogKafkaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKafkaName The name for the real-time logging configuration. + @return APIDeleteLogKafkaRequest */ DeleteLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIDeleteLogKafkaRequest @@ -65,15 +64,15 @@ type LoggingKafkaAPI interface { DeleteLogKafkaExecute(r APIDeleteLogKafkaRequest) (*InlineResponse200, *http.Response, error) /* - GetLogKafka Get a Kafka log endpoint + GetLogKafka Get a Kafka log endpoint - Get the Kafka logging endpoint for a particular service and version. + Get the Kafka logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKafkaName The name for the real-time logging configuration. - @return APIGetLogKafkaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKafkaName The name for the real-time logging configuration. + @return APIGetLogKafkaRequest */ GetLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIGetLogKafkaRequest @@ -82,14 +81,14 @@ type LoggingKafkaAPI interface { GetLogKafkaExecute(r APIGetLogKafkaRequest) (*LoggingKafkaResponse, *http.Response, error) /* - ListLogKafka List Kafka log endpoints + ListLogKafka List Kafka log endpoints - List all of the Kafka logging endpoints for a particular service and version. + List all of the Kafka logging endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogKafkaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogKafkaRequest */ ListLogKafka(ctx context.Context, serviceID string, versionID int32) APIListLogKafkaRequest @@ -98,15 +97,15 @@ type LoggingKafkaAPI interface { ListLogKafkaExecute(r APIListLogKafkaRequest) ([]LoggingKafkaResponse, *http.Response, error) /* - UpdateLogKafka Update the Kafka log endpoint + UpdateLogKafka Update the Kafka log endpoint - Update the Kafka logging endpoint for a particular service and version. + Update the Kafka logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKafkaName The name for the real-time logging configuration. - @return APIUpdateLogKafkaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKafkaName The name for the real-time logging configuration. + @return APIUpdateLogKafkaRequest */ UpdateLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIUpdateLogKafkaRequest @@ -120,29 +119,29 @@ type LoggingKafkaAPIService service // APICreateLogKafkaRequest represents a request for the resource. type APICreateLogKafkaRequest struct { - ctx context.Context - APIService LoggingKafkaAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingKafkaAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string - topic *string - brokers *string - compressionCodec *string - requiredAcks *int32 - requestMaxBytes *int32 - parseLogKeyvals *bool - authMethod *string - user *string - password *string - useTLS *LoggingUseTLSString + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string + topic *string + brokers *string + compressionCodec *string + requiredAcks *int32 + requestMaxBytes *int32 + parseLogKeyvals *bool + authMethod *string + user *string + password *string + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -150,91 +149,109 @@ func (r *APICreateLogKafkaRequest) Name(name string) *APICreateLogKafkaRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogKafkaRequest) Placement(placement string) *APICreateLogKafkaRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogKafkaRequest) ResponseCondition(responseCondition string) *APICreateLogKafkaRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogKafkaRequest) Format(format string) *APICreateLogKafkaRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogKafkaRequest) FormatVersion(formatVersion int32) *APICreateLogKafkaRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APICreateLogKafkaRequest) TLSCaCert(tlsCaCert string) *APICreateLogKafkaRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateLogKafkaRequest) TLSClientCert(tlsClientCert string) *APICreateLogKafkaRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateLogKafkaRequest) TLSClientKey(tlsClientKey string) *APICreateLogKafkaRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APICreateLogKafkaRequest) TLSHostname(tlsHostname string) *APICreateLogKafkaRequest { r.tlsHostname = &tlsHostname return r } + // Topic The Kafka topic to send logs to. Required. func (r *APICreateLogKafkaRequest) Topic(topic string) *APICreateLogKafkaRequest { r.topic = &topic return r } + // Brokers A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. func (r *APICreateLogKafkaRequest) Brokers(brokers string) *APICreateLogKafkaRequest { r.brokers = &brokers return r } + // CompressionCodec The codec used for compression of your logs. func (r *APICreateLogKafkaRequest) CompressionCodec(compressionCodec string) *APICreateLogKafkaRequest { r.compressionCodec = &compressionCodec return r } + // RequiredAcks The number of acknowledgements a leader must receive before a write is considered successful. func (r *APICreateLogKafkaRequest) RequiredAcks(requiredAcks int32) *APICreateLogKafkaRequest { r.requiredAcks = &requiredAcks return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` (no limit). func (r *APICreateLogKafkaRequest) RequestMaxBytes(requestMaxBytes int32) *APICreateLogKafkaRequest { r.requestMaxBytes = &requestMaxBytes return r } + // ParseLogKeyvals Enables parsing of key=value tuples from the beginning of a logline, turning them into [record headers](https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers). func (r *APICreateLogKafkaRequest) ParseLogKeyvals(parseLogKeyvals bool) *APICreateLogKafkaRequest { r.parseLogKeyvals = &parseLogKeyvals return r } + // AuthMethod SASL authentication method. func (r *APICreateLogKafkaRequest) AuthMethod(authMethod string) *APICreateLogKafkaRequest { r.authMethod = &authMethod return r } + // User SASL user. func (r *APICreateLogKafkaRequest) User(user string) *APICreateLogKafkaRequest { r.user = &user return r } + // Password SASL password. func (r *APICreateLogKafkaRequest) Password(password string) *APICreateLogKafkaRequest { r.password = &password return r } + // UseTLS returns a pointer to a request. func (r *APICreateLogKafkaRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogKafkaRequest { r.useTLS = &useTLS @@ -259,9 +276,9 @@ Create a Kafka logging endpoint for a particular service and version. func (a *LoggingKafkaAPIService) CreateLogKafka(ctx context.Context, serviceID string, versionID int32) APICreateLogKafkaRequest { return APICreateLogKafkaRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -269,10 +286,10 @@ func (a *LoggingKafkaAPIService) CreateLogKafka(ctx context.Context, serviceID s // @return LoggingKafkaResponsePost func (a *LoggingKafkaAPIService) CreateLogKafkaExecute(r APICreateLogKafkaRequest) (*LoggingKafkaResponsePost, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKafkaResponsePost + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKafkaResponsePost ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.CreateLogKafka") @@ -410,7 +427,6 @@ func (a *LoggingKafkaAPIService) CreateLogKafkaExecute(r APICreateLogKafkaReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -429,14 +445,13 @@ func (a *LoggingKafkaAPIService) CreateLogKafkaExecute(r APICreateLogKafkaReques // APIDeleteLogKafkaRequest represents a request for the resource. type APIDeleteLogKafkaRequest struct { - ctx context.Context - APIService LoggingKafkaAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKafkaAPI + serviceID string + versionID int32 loggingKafkaName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogKafkaRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogKafkaExecute(r) @@ -455,10 +470,10 @@ Delete the Kafka logging endpoint for a particular service and version. */ func (a *LoggingKafkaAPIService) DeleteLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIDeleteLogKafkaRequest { return APIDeleteLogKafkaRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKafkaName: loggingKafkaName, } } @@ -467,10 +482,10 @@ func (a *LoggingKafkaAPIService) DeleteLogKafka(ctx context.Context, serviceID s // @return InlineResponse200 func (a *LoggingKafkaAPIService) DeleteLogKafkaExecute(r APIDeleteLogKafkaRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.DeleteLogKafka") @@ -552,7 +567,6 @@ func (a *LoggingKafkaAPIService) DeleteLogKafkaExecute(r APIDeleteLogKafkaReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -571,14 +585,13 @@ func (a *LoggingKafkaAPIService) DeleteLogKafkaExecute(r APIDeleteLogKafkaReques // APIGetLogKafkaRequest represents a request for the resource. type APIGetLogKafkaRequest struct { - ctx context.Context - APIService LoggingKafkaAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKafkaAPI + serviceID string + versionID int32 loggingKafkaName string } - // Execute calls the API using the request data configured. func (r APIGetLogKafkaRequest) Execute() (*LoggingKafkaResponse, *http.Response, error) { return r.APIService.GetLogKafkaExecute(r) @@ -597,10 +610,10 @@ Get the Kafka logging endpoint for a particular service and version. */ func (a *LoggingKafkaAPIService) GetLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIGetLogKafkaRequest { return APIGetLogKafkaRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKafkaName: loggingKafkaName, } } @@ -609,10 +622,10 @@ func (a *LoggingKafkaAPIService) GetLogKafka(ctx context.Context, serviceID stri // @return LoggingKafkaResponse func (a *LoggingKafkaAPIService) GetLogKafkaExecute(r APIGetLogKafkaRequest) (*LoggingKafkaResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKafkaResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKafkaResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.GetLogKafka") @@ -694,7 +707,6 @@ func (a *LoggingKafkaAPIService) GetLogKafkaExecute(r APIGetLogKafkaRequest) (*L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -713,13 +725,12 @@ func (a *LoggingKafkaAPIService) GetLogKafkaExecute(r APIGetLogKafkaRequest) (*L // APIListLogKafkaRequest represents a request for the resource. type APIListLogKafkaRequest struct { - ctx context.Context + ctx context.Context APIService LoggingKafkaAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogKafkaRequest) Execute() ([]LoggingKafkaResponse, *http.Response, error) { return r.APIService.ListLogKafkaExecute(r) @@ -738,9 +749,9 @@ List all of the Kafka logging endpoints for a particular service and version. func (a *LoggingKafkaAPIService) ListLogKafka(ctx context.Context, serviceID string, versionID int32) APIListLogKafkaRequest { return APIListLogKafkaRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -748,10 +759,10 @@ func (a *LoggingKafkaAPIService) ListLogKafka(ctx context.Context, serviceID str // @return []LoggingKafkaResponse func (a *LoggingKafkaAPIService) ListLogKafkaExecute(r APIListLogKafkaRequest) ([]LoggingKafkaResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingKafkaResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingKafkaResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.ListLogKafka") @@ -832,7 +843,6 @@ func (a *LoggingKafkaAPIService) ListLogKafkaExecute(r APIListLogKafkaRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -851,14 +861,13 @@ func (a *LoggingKafkaAPIService) ListLogKafkaExecute(r APIListLogKafkaRequest) ( // APIUpdateLogKafkaRequest represents a request for the resource. type APIUpdateLogKafkaRequest struct { - ctx context.Context - APIService LoggingKafkaAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKafkaAPI + serviceID string + versionID int32 loggingKafkaName string } - // Execute calls the API using the request data configured. func (r APIUpdateLogKafkaRequest) Execute() (*LoggingKafkaResponse, *http.Response, error) { return r.APIService.UpdateLogKafkaExecute(r) @@ -877,10 +886,10 @@ Update the Kafka logging endpoint for a particular service and version. */ func (a *LoggingKafkaAPIService) UpdateLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIUpdateLogKafkaRequest { return APIUpdateLogKafkaRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKafkaName: loggingKafkaName, } } @@ -889,10 +898,10 @@ func (a *LoggingKafkaAPIService) UpdateLogKafka(ctx context.Context, serviceID s // @return LoggingKafkaResponse func (a *LoggingKafkaAPIService) UpdateLogKafkaExecute(r APIUpdateLogKafkaRequest) (*LoggingKafkaResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKafkaResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKafkaResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.UpdateLogKafka") @@ -974,7 +983,6 @@ func (a *LoggingKafkaAPIService) UpdateLogKafkaExecute(r APIUpdateLogKafkaReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_kinesis.go b/fastly/api_logging_kinesis.go index dc7f59d..21a7d4d 100644 --- a/fastly/api_logging_kinesis.go +++ b/fastly/api_logging_kinesis.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingKinesisAPI interface { /* - CreateLogKinesis Create an Amazon Kinesis log endpoint + CreateLogKinesis Create an Amazon Kinesis log endpoint - Create an Amazon Kinesis Data Streams logging object for a particular service and version. + Create an Amazon Kinesis Data Streams logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogKinesisRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogKinesisRequest */ CreateLogKinesis(ctx context.Context, serviceID string, versionID int32) APICreateLogKinesisRequest @@ -48,15 +47,15 @@ type LoggingKinesisAPI interface { CreateLogKinesisExecute(r APICreateLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) /* - DeleteLogKinesis Delete the Amazon Kinesis log endpoint + DeleteLogKinesis Delete the Amazon Kinesis log endpoint - Delete an Amazon Kinesis Data Streams logging object for a particular service and version. + Delete an Amazon Kinesis Data Streams logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKinesisName The name for the real-time logging configuration. - @return APIDeleteLogKinesisRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKinesisName The name for the real-time logging configuration. + @return APIDeleteLogKinesisRequest */ DeleteLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIDeleteLogKinesisRequest @@ -65,15 +64,15 @@ type LoggingKinesisAPI interface { DeleteLogKinesisExecute(r APIDeleteLogKinesisRequest) (*InlineResponse200, *http.Response, error) /* - GetLogKinesis Get an Amazon Kinesis log endpoint + GetLogKinesis Get an Amazon Kinesis log endpoint - Get the details for an Amazon Kinesis Data Streams logging object for a particular service and version. + Get the details for an Amazon Kinesis Data Streams logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKinesisName The name for the real-time logging configuration. - @return APIGetLogKinesisRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKinesisName The name for the real-time logging configuration. + @return APIGetLogKinesisRequest */ GetLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIGetLogKinesisRequest @@ -82,14 +81,14 @@ type LoggingKinesisAPI interface { GetLogKinesisExecute(r APIGetLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) /* - ListLogKinesis List Amazon Kinesis log endpoints + ListLogKinesis List Amazon Kinesis log endpoints - List all of the Amazon Kinesis Data Streams logging objects for a particular service and version. + List all of the Amazon Kinesis Data Streams logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogKinesisRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogKinesisRequest */ ListLogKinesis(ctx context.Context, serviceID string, versionID int32) APIListLogKinesisRequest @@ -98,15 +97,15 @@ type LoggingKinesisAPI interface { ListLogKinesisExecute(r APIListLogKinesisRequest) ([]LoggingKinesisResponse, *http.Response, error) /* - UpdateLogKinesis Update the Amazon Kinesis log endpoint + UpdateLogKinesis Update the Amazon Kinesis log endpoint - Update an Amazon Kinesis Data Streams logging object for a particular service and version. + Update an Amazon Kinesis Data Streams logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingKinesisName The name for the real-time logging configuration. - @return APIUpdateLogKinesisRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKinesisName The name for the real-time logging configuration. + @return APIUpdateLogKinesisRequest */ UpdateLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIUpdateLogKinesisRequest @@ -120,18 +119,18 @@ type LoggingKinesisAPIService service // APICreateLogKinesisRequest represents a request for the resource. type APICreateLogKinesisRequest struct { - ctx context.Context - APIService LoggingKinesisAPI - serviceID string - versionID int32 - name *string - placement *LoggingPlacement - format *string - topic *string - region *AwsRegion - secretKey *string - accessKey *string - iamRole *string + ctx context.Context + APIService LoggingKinesisAPI + serviceID string + versionID int32 + name *string + placement *LoggingPlacement + format *string + topic *string + region *AwsRegion + secretKey *string + accessKey *string + iamRole *string formatVersion *int32 } @@ -140,42 +139,50 @@ func (r *APICreateLogKinesisRequest) Name(name string) *APICreateLogKinesisReque r.name = &name return r } + // Placement returns a pointer to a request. func (r *APICreateLogKinesisRequest) Placement(placement LoggingPlacement) *APICreateLogKinesisRequest { r.placement = &placement return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogKinesisRequest) Format(format string) *APICreateLogKinesisRequest { r.format = &format return r } + // Topic The Amazon Kinesis stream to send logs to. Required. func (r *APICreateLogKinesisRequest) Topic(topic string) *APICreateLogKinesisRequest { r.topic = &topic return r } + // Region returns a pointer to a request. func (r *APICreateLogKinesisRequest) Region(region AwsRegion) *APICreateLogKinesisRequest { r.region = ®ion return r } + // SecretKey The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. func (r *APICreateLogKinesisRequest) SecretKey(secretKey string) *APICreateLogKinesisRequest { r.secretKey = &secretKey return r } + // AccessKey The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. func (r *APICreateLogKinesisRequest) AccessKey(accessKey string) *APICreateLogKinesisRequest { r.accessKey = &accessKey return r } + // IamRole The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. func (r *APICreateLogKinesisRequest) IamRole(iamRole string) *APICreateLogKinesisRequest { r.iamRole = &iamRole return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogKinesisRequest) FormatVersion(formatVersion int32) *APICreateLogKinesisRequest { r.formatVersion = &formatVersion return r @@ -199,9 +206,9 @@ Create an Amazon Kinesis Data Streams logging object for a particular service an func (a *LoggingKinesisAPIService) CreateLogKinesis(ctx context.Context, serviceID string, versionID int32) APICreateLogKinesisRequest { return APICreateLogKinesisRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -209,10 +216,10 @@ func (a *LoggingKinesisAPIService) CreateLogKinesis(ctx context.Context, service // @return LoggingKinesisResponse func (a *LoggingKinesisAPIService) CreateLogKinesisExecute(r APICreateLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKinesisResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKinesisResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.CreateLogKinesis") @@ -320,7 +327,6 @@ func (a *LoggingKinesisAPIService) CreateLogKinesisExecute(r APICreateLogKinesis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -339,14 +345,13 @@ func (a *LoggingKinesisAPIService) CreateLogKinesisExecute(r APICreateLogKinesis // APIDeleteLogKinesisRequest represents a request for the resource. type APIDeleteLogKinesisRequest struct { - ctx context.Context - APIService LoggingKinesisAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKinesisAPI + serviceID string + versionID int32 loggingKinesisName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogKinesisRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogKinesisExecute(r) @@ -365,10 +370,10 @@ Delete an Amazon Kinesis Data Streams logging object for a particular service an */ func (a *LoggingKinesisAPIService) DeleteLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIDeleteLogKinesisRequest { return APIDeleteLogKinesisRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKinesisName: loggingKinesisName, } } @@ -377,10 +382,10 @@ func (a *LoggingKinesisAPIService) DeleteLogKinesis(ctx context.Context, service // @return InlineResponse200 func (a *LoggingKinesisAPIService) DeleteLogKinesisExecute(r APIDeleteLogKinesisRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.DeleteLogKinesis") @@ -462,7 +467,6 @@ func (a *LoggingKinesisAPIService) DeleteLogKinesisExecute(r APIDeleteLogKinesis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -481,14 +485,13 @@ func (a *LoggingKinesisAPIService) DeleteLogKinesisExecute(r APIDeleteLogKinesis // APIGetLogKinesisRequest represents a request for the resource. type APIGetLogKinesisRequest struct { - ctx context.Context - APIService LoggingKinesisAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKinesisAPI + serviceID string + versionID int32 loggingKinesisName string } - // Execute calls the API using the request data configured. func (r APIGetLogKinesisRequest) Execute() (*LoggingKinesisResponse, *http.Response, error) { return r.APIService.GetLogKinesisExecute(r) @@ -507,10 +510,10 @@ Get the details for an Amazon Kinesis Data Streams logging object for a particul */ func (a *LoggingKinesisAPIService) GetLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIGetLogKinesisRequest { return APIGetLogKinesisRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKinesisName: loggingKinesisName, } } @@ -519,10 +522,10 @@ func (a *LoggingKinesisAPIService) GetLogKinesis(ctx context.Context, serviceID // @return LoggingKinesisResponse func (a *LoggingKinesisAPIService) GetLogKinesisExecute(r APIGetLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKinesisResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKinesisResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.GetLogKinesis") @@ -604,7 +607,6 @@ func (a *LoggingKinesisAPIService) GetLogKinesisExecute(r APIGetLogKinesisReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -623,13 +625,12 @@ func (a *LoggingKinesisAPIService) GetLogKinesisExecute(r APIGetLogKinesisReques // APIListLogKinesisRequest represents a request for the resource. type APIListLogKinesisRequest struct { - ctx context.Context + ctx context.Context APIService LoggingKinesisAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogKinesisRequest) Execute() ([]LoggingKinesisResponse, *http.Response, error) { return r.APIService.ListLogKinesisExecute(r) @@ -648,9 +649,9 @@ List all of the Amazon Kinesis Data Streams logging objects for a particular ser func (a *LoggingKinesisAPIService) ListLogKinesis(ctx context.Context, serviceID string, versionID int32) APIListLogKinesisRequest { return APIListLogKinesisRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -658,10 +659,10 @@ func (a *LoggingKinesisAPIService) ListLogKinesis(ctx context.Context, serviceID // @return []LoggingKinesisResponse func (a *LoggingKinesisAPIService) ListLogKinesisExecute(r APIListLogKinesisRequest) ([]LoggingKinesisResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingKinesisResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingKinesisResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.ListLogKinesis") @@ -742,7 +743,6 @@ func (a *LoggingKinesisAPIService) ListLogKinesisExecute(r APIListLogKinesisRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -761,14 +761,13 @@ func (a *LoggingKinesisAPIService) ListLogKinesisExecute(r APIListLogKinesisRequ // APIUpdateLogKinesisRequest represents a request for the resource. type APIUpdateLogKinesisRequest struct { - ctx context.Context - APIService LoggingKinesisAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingKinesisAPI + serviceID string + versionID int32 loggingKinesisName string } - // Execute calls the API using the request data configured. func (r APIUpdateLogKinesisRequest) Execute() (*LoggingKinesisResponse, *http.Response, error) { return r.APIService.UpdateLogKinesisExecute(r) @@ -787,10 +786,10 @@ Update an Amazon Kinesis Data Streams logging object for a particular service an */ func (a *LoggingKinesisAPIService) UpdateLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIUpdateLogKinesisRequest { return APIUpdateLogKinesisRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingKinesisName: loggingKinesisName, } } @@ -799,10 +798,10 @@ func (a *LoggingKinesisAPIService) UpdateLogKinesis(ctx context.Context, service // @return LoggingKinesisResponse func (a *LoggingKinesisAPIService) UpdateLogKinesisExecute(r APIUpdateLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingKinesisResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKinesisResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.UpdateLogKinesis") @@ -884,7 +883,6 @@ func (a *LoggingKinesisAPIService) UpdateLogKinesisExecute(r APIUpdateLogKinesis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_logentries.go b/fastly/api_logging_logentries.go index add3c6c..edee69f 100644 --- a/fastly/api_logging_logentries.go +++ b/fastly/api_logging_logentries.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type LoggingLogentriesAPI interface { /* - CreateLogLogentries Create a Logentries log endpoint + CreateLogLogentries Create a Logentries log endpoint - Create a Logentry for a particular service and version. + Create a Logentry for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogLogentriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogLogentriesRequest - Deprecated + Deprecated */ CreateLogLogentries(ctx context.Context, serviceID string, versionID int32) APICreateLogLogentriesRequest @@ -51,17 +50,17 @@ type LoggingLogentriesAPI interface { CreateLogLogentriesExecute(r APICreateLogLogentriesRequest) (*LoggingLogentriesResponse, *http.Response, error) /* - DeleteLogLogentries Delete a Logentries log endpoint + DeleteLogLogentries Delete a Logentries log endpoint - Delete the Logentry for a particular service and version. + Delete the Logentry for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogentriesName The name for the real-time logging configuration. - @return APIDeleteLogLogentriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogentriesName The name for the real-time logging configuration. + @return APIDeleteLogLogentriesRequest - Deprecated + Deprecated */ DeleteLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIDeleteLogLogentriesRequest @@ -71,17 +70,17 @@ type LoggingLogentriesAPI interface { DeleteLogLogentriesExecute(r APIDeleteLogLogentriesRequest) (*InlineResponse200, *http.Response, error) /* - GetLogLogentries Get a Logentries log endpoint + GetLogLogentries Get a Logentries log endpoint - Get the Logentry for a particular service and version. + Get the Logentry for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogentriesName The name for the real-time logging configuration. - @return APIGetLogLogentriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogentriesName The name for the real-time logging configuration. + @return APIGetLogLogentriesRequest - Deprecated + Deprecated */ GetLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIGetLogLogentriesRequest @@ -91,16 +90,16 @@ type LoggingLogentriesAPI interface { GetLogLogentriesExecute(r APIGetLogLogentriesRequest) (*LoggingLogentriesResponse, *http.Response, error) /* - ListLogLogentries List Logentries log endpoints + ListLogLogentries List Logentries log endpoints - List all of the Logentries for a particular service and version. + List all of the Logentries for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogLogentriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogLogentriesRequest - Deprecated + Deprecated */ ListLogLogentries(ctx context.Context, serviceID string, versionID int32) APIListLogLogentriesRequest @@ -110,17 +109,17 @@ type LoggingLogentriesAPI interface { ListLogLogentriesExecute(r APIListLogLogentriesRequest) ([]LoggingLogentriesResponse, *http.Response, error) /* - UpdateLogLogentries Update a Logentries log endpoint + UpdateLogLogentries Update a Logentries log endpoint - Update the Logentry for a particular service and version. + Update the Logentry for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogentriesName The name for the real-time logging configuration. - @return APIUpdateLogLogentriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogentriesName The name for the real-time logging configuration. + @return APIUpdateLogLogentriesRequest - Deprecated + Deprecated */ UpdateLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIUpdateLogLogentriesRequest @@ -135,19 +134,19 @@ type LoggingLogentriesAPIService service // APICreateLogLogentriesRequest represents a request for the resource. type APICreateLogLogentriesRequest struct { - ctx context.Context - APIService LoggingLogentriesAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingLogentriesAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - port *int32 - token *string - useTLS *LoggingUseTLSString - region *string + format *string + formatVersion *int32 + port *int32 + token *string + useTLS *LoggingUseTLSString + region *string } // Name The name for the real-time logging configuration. @@ -155,41 +154,49 @@ func (r *APICreateLogLogentriesRequest) Name(name string) *APICreateLogLogentrie r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogLogentriesRequest) Placement(placement string) *APICreateLogLogentriesRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogLogentriesRequest) ResponseCondition(responseCondition string) *APICreateLogLogentriesRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogLogentriesRequest) Format(format string) *APICreateLogLogentriesRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogLogentriesRequest) FormatVersion(formatVersion int32) *APICreateLogLogentriesRequest { r.formatVersion = &formatVersion return r } + // Port The port number. func (r *APICreateLogLogentriesRequest) Port(port int32) *APICreateLogLogentriesRequest { r.port = &port return r } + // Token Use token based authentication. func (r *APICreateLogLogentriesRequest) Token(token string) *APICreateLogLogentriesRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APICreateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogLogentriesRequest { r.useTLS = &useTLS return r } + // Region The region to which to stream logs. func (r *APICreateLogLogentriesRequest) Region(region string) *APICreateLogLogentriesRequest { r.region = ®ion @@ -216,9 +223,9 @@ Deprecated func (a *LoggingLogentriesAPIService) CreateLogLogentries(ctx context.Context, serviceID string, versionID int32) APICreateLogLogentriesRequest { return APICreateLogLogentriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -227,10 +234,10 @@ func (a *LoggingLogentriesAPIService) CreateLogLogentries(ctx context.Context, s // Deprecated func (a *LoggingLogentriesAPIService) CreateLogLogentriesExecute(r APICreateLogLogentriesRequest) (*LoggingLogentriesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogentriesResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogentriesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogentriesAPIService.CreateLogLogentries") @@ -338,7 +345,6 @@ func (a *LoggingLogentriesAPIService) CreateLogLogentriesExecute(r APICreateLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -357,14 +363,13 @@ func (a *LoggingLogentriesAPIService) CreateLogLogentriesExecute(r APICreateLogL // APIDeleteLogLogentriesRequest represents a request for the resource. type APIDeleteLogLogentriesRequest struct { - ctx context.Context - APIService LoggingLogentriesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogentriesAPI + serviceID string + versionID int32 loggingLogentriesName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogLogentriesRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogLogentriesExecute(r) @@ -385,10 +390,10 @@ Deprecated */ func (a *LoggingLogentriesAPIService) DeleteLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIDeleteLogLogentriesRequest { return APIDeleteLogLogentriesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogentriesName: loggingLogentriesName, } } @@ -398,10 +403,10 @@ func (a *LoggingLogentriesAPIService) DeleteLogLogentries(ctx context.Context, s // Deprecated func (a *LoggingLogentriesAPIService) DeleteLogLogentriesExecute(r APIDeleteLogLogentriesRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogentriesAPIService.DeleteLogLogentries") @@ -483,7 +488,6 @@ func (a *LoggingLogentriesAPIService) DeleteLogLogentriesExecute(r APIDeleteLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -502,14 +506,13 @@ func (a *LoggingLogentriesAPIService) DeleteLogLogentriesExecute(r APIDeleteLogL // APIGetLogLogentriesRequest represents a request for the resource. type APIGetLogLogentriesRequest struct { - ctx context.Context - APIService LoggingLogentriesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogentriesAPI + serviceID string + versionID int32 loggingLogentriesName string } - // Execute calls the API using the request data configured. func (r APIGetLogLogentriesRequest) Execute() (*LoggingLogentriesResponse, *http.Response, error) { return r.APIService.GetLogLogentriesExecute(r) @@ -530,10 +533,10 @@ Deprecated */ func (a *LoggingLogentriesAPIService) GetLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIGetLogLogentriesRequest { return APIGetLogLogentriesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogentriesName: loggingLogentriesName, } } @@ -543,10 +546,10 @@ func (a *LoggingLogentriesAPIService) GetLogLogentries(ctx context.Context, serv // Deprecated func (a *LoggingLogentriesAPIService) GetLogLogentriesExecute(r APIGetLogLogentriesRequest) (*LoggingLogentriesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogentriesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogentriesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogentriesAPIService.GetLogLogentries") @@ -628,7 +631,6 @@ func (a *LoggingLogentriesAPIService) GetLogLogentriesExecute(r APIGetLogLogentr return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -647,13 +649,12 @@ func (a *LoggingLogentriesAPIService) GetLogLogentriesExecute(r APIGetLogLogentr // APIListLogLogentriesRequest represents a request for the resource. type APIListLogLogentriesRequest struct { - ctx context.Context + ctx context.Context APIService LoggingLogentriesAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogLogentriesRequest) Execute() ([]LoggingLogentriesResponse, *http.Response, error) { return r.APIService.ListLogLogentriesExecute(r) @@ -674,9 +675,9 @@ Deprecated func (a *LoggingLogentriesAPIService) ListLogLogentries(ctx context.Context, serviceID string, versionID int32) APIListLogLogentriesRequest { return APIListLogLogentriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -685,10 +686,10 @@ func (a *LoggingLogentriesAPIService) ListLogLogentries(ctx context.Context, ser // Deprecated func (a *LoggingLogentriesAPIService) ListLogLogentriesExecute(r APIListLogLogentriesRequest) ([]LoggingLogentriesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingLogentriesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingLogentriesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogentriesAPIService.ListLogLogentries") @@ -769,7 +770,6 @@ func (a *LoggingLogentriesAPIService) ListLogLogentriesExecute(r APIListLogLogen return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -788,20 +788,20 @@ func (a *LoggingLogentriesAPIService) ListLogLogentriesExecute(r APIListLogLogen // APIUpdateLogLogentriesRequest represents a request for the resource. type APIUpdateLogLogentriesRequest struct { - ctx context.Context - APIService LoggingLogentriesAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogentriesAPI + serviceID string + versionID int32 loggingLogentriesName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - port *int32 - token *string - useTLS *LoggingUseTLSString - region *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + port *int32 + token *string + useTLS *LoggingUseTLSString + region *string } // Name The name for the real-time logging configuration. @@ -809,41 +809,49 @@ func (r *APIUpdateLogLogentriesRequest) Name(name string) *APIUpdateLogLogentrie r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogLogentriesRequest) Placement(placement string) *APIUpdateLogLogentriesRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogLogentriesRequest) ResponseCondition(responseCondition string) *APIUpdateLogLogentriesRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogLogentriesRequest) Format(format string) *APIUpdateLogLogentriesRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogLogentriesRequest) FormatVersion(formatVersion int32) *APIUpdateLogLogentriesRequest { r.formatVersion = &formatVersion return r } + // Port The port number. func (r *APIUpdateLogLogentriesRequest) Port(port int32) *APIUpdateLogLogentriesRequest { r.port = &port return r } + // Token Use token based authentication. func (r *APIUpdateLogLogentriesRequest) Token(token string) *APIUpdateLogLogentriesRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APIUpdateLogLogentriesRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogLogentriesRequest { r.useTLS = &useTLS return r } + // Region The region to which to stream logs. func (r *APIUpdateLogLogentriesRequest) Region(region string) *APIUpdateLogLogentriesRequest { r.region = ®ion @@ -870,10 +878,10 @@ Deprecated */ func (a *LoggingLogentriesAPIService) UpdateLogLogentries(ctx context.Context, serviceID string, versionID int32, loggingLogentriesName string) APIUpdateLogLogentriesRequest { return APIUpdateLogLogentriesRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogentriesName: loggingLogentriesName, } } @@ -883,10 +891,10 @@ func (a *LoggingLogentriesAPIService) UpdateLogLogentries(ctx context.Context, s // Deprecated func (a *LoggingLogentriesAPIService) UpdateLogLogentriesExecute(r APIUpdateLogLogentriesRequest) (*LoggingLogentriesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogentriesResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogentriesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogentriesAPIService.UpdateLogLogentries") @@ -995,7 +1003,6 @@ func (a *LoggingLogentriesAPIService) UpdateLogLogentriesExecute(r APIUpdateLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_loggly.go b/fastly/api_logging_loggly.go index 1d7b8cf..2c0877a 100644 --- a/fastly/api_logging_loggly.go +++ b/fastly/api_logging_loggly.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingLogglyAPI interface { /* - CreateLogLoggly Create a Loggly log endpoint + CreateLogLoggly Create a Loggly log endpoint - Create a Loggly logging object for a particular service and version. + Create a Loggly logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogLogglyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogLogglyRequest */ CreateLogLoggly(ctx context.Context, serviceID string, versionID int32) APICreateLogLogglyRequest @@ -48,15 +47,15 @@ type LoggingLogglyAPI interface { CreateLogLogglyExecute(r APICreateLogLogglyRequest) (*LoggingLogglyResponse, *http.Response, error) /* - DeleteLogLoggly Delete a Loggly log endpoint + DeleteLogLoggly Delete a Loggly log endpoint - Delete the Loggly logging object for a particular service and version. + Delete the Loggly logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogglyName The name for the real-time logging configuration. - @return APIDeleteLogLogglyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogglyName The name for the real-time logging configuration. + @return APIDeleteLogLogglyRequest */ DeleteLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIDeleteLogLogglyRequest @@ -65,15 +64,15 @@ type LoggingLogglyAPI interface { DeleteLogLogglyExecute(r APIDeleteLogLogglyRequest) (*InlineResponse200, *http.Response, error) /* - GetLogLoggly Get a Loggly log endpoint + GetLogLoggly Get a Loggly log endpoint - Get the Loggly logging object for a particular service and version. + Get the Loggly logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogglyName The name for the real-time logging configuration. - @return APIGetLogLogglyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogglyName The name for the real-time logging configuration. + @return APIGetLogLogglyRequest */ GetLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIGetLogLogglyRequest @@ -82,14 +81,14 @@ type LoggingLogglyAPI interface { GetLogLogglyExecute(r APIGetLogLogglyRequest) (*LoggingLogglyResponse, *http.Response, error) /* - ListLogLoggly List Loggly log endpoints + ListLogLoggly List Loggly log endpoints - List all Loggly logging objects for a particular service and version. + List all Loggly logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogLogglyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogLogglyRequest */ ListLogLoggly(ctx context.Context, serviceID string, versionID int32) APIListLogLogglyRequest @@ -98,15 +97,15 @@ type LoggingLogglyAPI interface { ListLogLogglyExecute(r APIListLogLogglyRequest) ([]LoggingLogglyResponse, *http.Response, error) /* - UpdateLogLoggly Update a Loggly log endpoint + UpdateLogLoggly Update a Loggly log endpoint - Update the Loggly logging object for a particular service and version. + Update the Loggly logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogglyName The name for the real-time logging configuration. - @return APIUpdateLogLogglyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogglyName The name for the real-time logging configuration. + @return APIUpdateLogLogglyRequest */ UpdateLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIUpdateLogLogglyRequest @@ -120,16 +119,16 @@ type LoggingLogglyAPIService service // APICreateLogLogglyRequest represents a request for the resource. type APICreateLogLogglyRequest struct { - ctx context.Context - APIService LoggingLogglyAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingLogglyAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string + format *string + formatVersion *int32 + token *string } // Name The name for the real-time logging configuration. @@ -137,26 +136,31 @@ func (r *APICreateLogLogglyRequest) Name(name string) *APICreateLogLogglyRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogLogglyRequest) Placement(placement string) *APICreateLogLogglyRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogLogglyRequest) ResponseCondition(responseCondition string) *APICreateLogLogglyRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogLogglyRequest) Format(format string) *APICreateLogLogglyRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogLogglyRequest) FormatVersion(formatVersion int32) *APICreateLogLogglyRequest { r.formatVersion = &formatVersion return r } + // Token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). func (r *APICreateLogLogglyRequest) Token(token string) *APICreateLogLogglyRequest { r.token = &token @@ -181,9 +185,9 @@ Create a Loggly logging object for a particular service and version. func (a *LoggingLogglyAPIService) CreateLogLoggly(ctx context.Context, serviceID string, versionID int32) APICreateLogLogglyRequest { return APICreateLogLogglyRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -191,10 +195,10 @@ func (a *LoggingLogglyAPIService) CreateLogLoggly(ctx context.Context, serviceID // @return LoggingLogglyResponse func (a *LoggingLogglyAPIService) CreateLogLogglyExecute(r APICreateLogLogglyRequest) (*LoggingLogglyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogglyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogglyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogglyAPIService.CreateLogLoggly") @@ -293,7 +297,6 @@ func (a *LoggingLogglyAPIService) CreateLogLogglyExecute(r APICreateLogLogglyReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -312,14 +315,13 @@ func (a *LoggingLogglyAPIService) CreateLogLogglyExecute(r APICreateLogLogglyReq // APIDeleteLogLogglyRequest represents a request for the resource. type APIDeleteLogLogglyRequest struct { - ctx context.Context - APIService LoggingLogglyAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogglyAPI + serviceID string + versionID int32 loggingLogglyName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogLogglyRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogLogglyExecute(r) @@ -338,10 +340,10 @@ Delete the Loggly logging object for a particular service and version. */ func (a *LoggingLogglyAPIService) DeleteLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIDeleteLogLogglyRequest { return APIDeleteLogLogglyRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogglyName: loggingLogglyName, } } @@ -350,10 +352,10 @@ func (a *LoggingLogglyAPIService) DeleteLogLoggly(ctx context.Context, serviceID // @return InlineResponse200 func (a *LoggingLogglyAPIService) DeleteLogLogglyExecute(r APIDeleteLogLogglyRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogglyAPIService.DeleteLogLoggly") @@ -435,7 +437,6 @@ func (a *LoggingLogglyAPIService) DeleteLogLogglyExecute(r APIDeleteLogLogglyReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -454,14 +455,13 @@ func (a *LoggingLogglyAPIService) DeleteLogLogglyExecute(r APIDeleteLogLogglyReq // APIGetLogLogglyRequest represents a request for the resource. type APIGetLogLogglyRequest struct { - ctx context.Context - APIService LoggingLogglyAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogglyAPI + serviceID string + versionID int32 loggingLogglyName string } - // Execute calls the API using the request data configured. func (r APIGetLogLogglyRequest) Execute() (*LoggingLogglyResponse, *http.Response, error) { return r.APIService.GetLogLogglyExecute(r) @@ -480,10 +480,10 @@ Get the Loggly logging object for a particular service and version. */ func (a *LoggingLogglyAPIService) GetLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIGetLogLogglyRequest { return APIGetLogLogglyRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogglyName: loggingLogglyName, } } @@ -492,10 +492,10 @@ func (a *LoggingLogglyAPIService) GetLogLoggly(ctx context.Context, serviceID st // @return LoggingLogglyResponse func (a *LoggingLogglyAPIService) GetLogLogglyExecute(r APIGetLogLogglyRequest) (*LoggingLogglyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogglyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogglyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogglyAPIService.GetLogLoggly") @@ -577,7 +577,6 @@ func (a *LoggingLogglyAPIService) GetLogLogglyExecute(r APIGetLogLogglyRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -596,13 +595,12 @@ func (a *LoggingLogglyAPIService) GetLogLogglyExecute(r APIGetLogLogglyRequest) // APIListLogLogglyRequest represents a request for the resource. type APIListLogLogglyRequest struct { - ctx context.Context + ctx context.Context APIService LoggingLogglyAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogLogglyRequest) Execute() ([]LoggingLogglyResponse, *http.Response, error) { return r.APIService.ListLogLogglyExecute(r) @@ -621,9 +619,9 @@ List all Loggly logging objects for a particular service and version. func (a *LoggingLogglyAPIService) ListLogLoggly(ctx context.Context, serviceID string, versionID int32) APIListLogLogglyRequest { return APIListLogLogglyRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -631,10 +629,10 @@ func (a *LoggingLogglyAPIService) ListLogLoggly(ctx context.Context, serviceID s // @return []LoggingLogglyResponse func (a *LoggingLogglyAPIService) ListLogLogglyExecute(r APIListLogLogglyRequest) ([]LoggingLogglyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingLogglyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingLogglyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogglyAPIService.ListLogLoggly") @@ -715,7 +713,6 @@ func (a *LoggingLogglyAPIService) ListLogLogglyExecute(r APIListLogLogglyRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -734,17 +731,17 @@ func (a *LoggingLogglyAPIService) ListLogLogglyExecute(r APIListLogLogglyRequest // APIUpdateLogLogglyRequest represents a request for the resource. type APIUpdateLogLogglyRequest struct { - ctx context.Context - APIService LoggingLogglyAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogglyAPI + serviceID string + versionID int32 loggingLogglyName string - name *string - placement *string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string + format *string + formatVersion *int32 + token *string } // Name The name for the real-time logging configuration. @@ -752,26 +749,31 @@ func (r *APIUpdateLogLogglyRequest) Name(name string) *APIUpdateLogLogglyRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogLogglyRequest) Placement(placement string) *APIUpdateLogLogglyRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogLogglyRequest) ResponseCondition(responseCondition string) *APIUpdateLogLogglyRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogLogglyRequest) Format(format string) *APIUpdateLogLogglyRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogLogglyRequest) FormatVersion(formatVersion int32) *APIUpdateLogLogglyRequest { r.formatVersion = &formatVersion return r } + // Token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). func (r *APIUpdateLogLogglyRequest) Token(token string) *APIUpdateLogLogglyRequest { r.token = &token @@ -796,10 +798,10 @@ Update the Loggly logging object for a particular service and version. */ func (a *LoggingLogglyAPIService) UpdateLogLoggly(ctx context.Context, serviceID string, versionID int32, loggingLogglyName string) APIUpdateLogLogglyRequest { return APIUpdateLogLogglyRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogglyName: loggingLogglyName, } } @@ -808,10 +810,10 @@ func (a *LoggingLogglyAPIService) UpdateLogLoggly(ctx context.Context, serviceID // @return LoggingLogglyResponse func (a *LoggingLogglyAPIService) UpdateLogLogglyExecute(r APIUpdateLogLogglyRequest) (*LoggingLogglyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogglyResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogglyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogglyAPIService.UpdateLogLoggly") @@ -911,7 +913,6 @@ func (a *LoggingLogglyAPIService) UpdateLogLogglyExecute(r APIUpdateLogLogglyReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_logshuttle.go b/fastly/api_logging_logshuttle.go index e7da677..ec7cb53 100644 --- a/fastly/api_logging_logshuttle.go +++ b/fastly/api_logging_logshuttle.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingLogshuttleAPI interface { /* - CreateLogLogshuttle Create a Log Shuttle log endpoint + CreateLogLogshuttle Create a Log Shuttle log endpoint - Create a Log Shuttle logging endpoint for a particular service and version. + Create a Log Shuttle logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogLogshuttleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogLogshuttleRequest */ CreateLogLogshuttle(ctx context.Context, serviceID string, versionID int32) APICreateLogLogshuttleRequest @@ -48,15 +47,15 @@ type LoggingLogshuttleAPI interface { CreateLogLogshuttleExecute(r APICreateLogLogshuttleRequest) (*LoggingLogshuttleResponse, *http.Response, error) /* - DeleteLogLogshuttle Delete a Log Shuttle log endpoint + DeleteLogLogshuttle Delete a Log Shuttle log endpoint - Delete the Log Shuttle logging endpoint for a particular service and version. + Delete the Log Shuttle logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogshuttleName The name for the real-time logging configuration. - @return APIDeleteLogLogshuttleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogshuttleName The name for the real-time logging configuration. + @return APIDeleteLogLogshuttleRequest */ DeleteLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIDeleteLogLogshuttleRequest @@ -65,15 +64,15 @@ type LoggingLogshuttleAPI interface { DeleteLogLogshuttleExecute(r APIDeleteLogLogshuttleRequest) (*InlineResponse200, *http.Response, error) /* - GetLogLogshuttle Get a Log Shuttle log endpoint + GetLogLogshuttle Get a Log Shuttle log endpoint - Get the Log Shuttle logging endpoint for a particular service and version. + Get the Log Shuttle logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogshuttleName The name for the real-time logging configuration. - @return APIGetLogLogshuttleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogshuttleName The name for the real-time logging configuration. + @return APIGetLogLogshuttleRequest */ GetLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIGetLogLogshuttleRequest @@ -82,14 +81,14 @@ type LoggingLogshuttleAPI interface { GetLogLogshuttleExecute(r APIGetLogLogshuttleRequest) (*LoggingLogshuttleResponse, *http.Response, error) /* - ListLogLogshuttle List Log Shuttle log endpoints + ListLogLogshuttle List Log Shuttle log endpoints - List all of the Log Shuttle logging endpoints for a particular service and version. + List all of the Log Shuttle logging endpoints for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogLogshuttleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogLogshuttleRequest */ ListLogLogshuttle(ctx context.Context, serviceID string, versionID int32) APIListLogLogshuttleRequest @@ -98,15 +97,15 @@ type LoggingLogshuttleAPI interface { ListLogLogshuttleExecute(r APIListLogLogshuttleRequest) ([]LoggingLogshuttleResponse, *http.Response, error) /* - UpdateLogLogshuttle Update a Log Shuttle log endpoint + UpdateLogLogshuttle Update a Log Shuttle log endpoint - Update the Log Shuttle logging endpoint for a particular service and version. + Update the Log Shuttle logging endpoint for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingLogshuttleName The name for the real-time logging configuration. - @return APIUpdateLogLogshuttleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingLogshuttleName The name for the real-time logging configuration. + @return APIUpdateLogLogshuttleRequest */ UpdateLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIUpdateLogLogshuttleRequest @@ -120,17 +119,17 @@ type LoggingLogshuttleAPIService service // APICreateLogLogshuttleRequest represents a request for the resource. type APICreateLogLogshuttleRequest struct { - ctx context.Context - APIService LoggingLogshuttleAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingLogshuttleAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string - url *string + format *string + formatVersion *int32 + token *string + url *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogLogshuttleRequest) Name(name string) *APICreateLogLogshuttl r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogLogshuttleRequest) Placement(placement string) *APICreateLogLogshuttleRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogLogshuttleRequest) ResponseCondition(responseCondition string) *APICreateLogLogshuttleRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogLogshuttleRequest) Format(format string) *APICreateLogLogshuttleRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogLogshuttleRequest) FormatVersion(formatVersion int32) *APICreateLogLogshuttleRequest { r.formatVersion = &formatVersion return r } + // Token The data authentication token associated with this endpoint. func (r *APICreateLogLogshuttleRequest) Token(token string) *APICreateLogLogshuttleRequest { r.token = &token return r } + // URL The URL to stream logs to. func (r *APICreateLogLogshuttleRequest) URL(url string) *APICreateLogLogshuttleRequest { r.url = &url @@ -187,9 +192,9 @@ Create a Log Shuttle logging endpoint for a particular service and version. func (a *LoggingLogshuttleAPIService) CreateLogLogshuttle(ctx context.Context, serviceID string, versionID int32) APICreateLogLogshuttleRequest { return APICreateLogLogshuttleRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingLogshuttleAPIService) CreateLogLogshuttle(ctx context.Context, s // @return LoggingLogshuttleResponse func (a *LoggingLogshuttleAPIService) CreateLogLogshuttleExecute(r APICreateLogLogshuttleRequest) (*LoggingLogshuttleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogshuttleResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogshuttleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogshuttleAPIService.CreateLogLogshuttle") @@ -302,7 +307,6 @@ func (a *LoggingLogshuttleAPIService) CreateLogLogshuttleExecute(r APICreateLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingLogshuttleAPIService) CreateLogLogshuttleExecute(r APICreateLogL // APIDeleteLogLogshuttleRequest represents a request for the resource. type APIDeleteLogLogshuttleRequest struct { - ctx context.Context - APIService LoggingLogshuttleAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogshuttleAPI + serviceID string + versionID int32 loggingLogshuttleName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogLogshuttleRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogLogshuttleExecute(r) @@ -347,10 +350,10 @@ Delete the Log Shuttle logging endpoint for a particular service and version. */ func (a *LoggingLogshuttleAPIService) DeleteLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIDeleteLogLogshuttleRequest { return APIDeleteLogLogshuttleRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogshuttleName: loggingLogshuttleName, } } @@ -359,10 +362,10 @@ func (a *LoggingLogshuttleAPIService) DeleteLogLogshuttle(ctx context.Context, s // @return InlineResponse200 func (a *LoggingLogshuttleAPIService) DeleteLogLogshuttleExecute(r APIDeleteLogLogshuttleRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogshuttleAPIService.DeleteLogLogshuttle") @@ -444,7 +447,6 @@ func (a *LoggingLogshuttleAPIService) DeleteLogLogshuttleExecute(r APIDeleteLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingLogshuttleAPIService) DeleteLogLogshuttleExecute(r APIDeleteLogL // APIGetLogLogshuttleRequest represents a request for the resource. type APIGetLogLogshuttleRequest struct { - ctx context.Context - APIService LoggingLogshuttleAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogshuttleAPI + serviceID string + versionID int32 loggingLogshuttleName string } - // Execute calls the API using the request data configured. func (r APIGetLogLogshuttleRequest) Execute() (*LoggingLogshuttleResponse, *http.Response, error) { return r.APIService.GetLogLogshuttleExecute(r) @@ -489,10 +490,10 @@ Get the Log Shuttle logging endpoint for a particular service and version. */ func (a *LoggingLogshuttleAPIService) GetLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIGetLogLogshuttleRequest { return APIGetLogLogshuttleRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogshuttleName: loggingLogshuttleName, } } @@ -501,10 +502,10 @@ func (a *LoggingLogshuttleAPIService) GetLogLogshuttle(ctx context.Context, serv // @return LoggingLogshuttleResponse func (a *LoggingLogshuttleAPIService) GetLogLogshuttleExecute(r APIGetLogLogshuttleRequest) (*LoggingLogshuttleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogshuttleResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogshuttleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogshuttleAPIService.GetLogLogshuttle") @@ -586,7 +587,6 @@ func (a *LoggingLogshuttleAPIService) GetLogLogshuttleExecute(r APIGetLogLogshut return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingLogshuttleAPIService) GetLogLogshuttleExecute(r APIGetLogLogshut // APIListLogLogshuttleRequest represents a request for the resource. type APIListLogLogshuttleRequest struct { - ctx context.Context + ctx context.Context APIService LoggingLogshuttleAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogLogshuttleRequest) Execute() ([]LoggingLogshuttleResponse, *http.Response, error) { return r.APIService.ListLogLogshuttleExecute(r) @@ -630,9 +629,9 @@ List all of the Log Shuttle logging endpoints for a particular service and versi func (a *LoggingLogshuttleAPIService) ListLogLogshuttle(ctx context.Context, serviceID string, versionID int32) APIListLogLogshuttleRequest { return APIListLogLogshuttleRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingLogshuttleAPIService) ListLogLogshuttle(ctx context.Context, ser // @return []LoggingLogshuttleResponse func (a *LoggingLogshuttleAPIService) ListLogLogshuttleExecute(r APIListLogLogshuttleRequest) ([]LoggingLogshuttleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingLogshuttleResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingLogshuttleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogshuttleAPIService.ListLogLogshuttle") @@ -724,7 +723,6 @@ func (a *LoggingLogshuttleAPIService) ListLogLogshuttleExecute(r APIListLogLogsh return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingLogshuttleAPIService) ListLogLogshuttleExecute(r APIListLogLogsh // APIUpdateLogLogshuttleRequest represents a request for the resource. type APIUpdateLogLogshuttleRequest struct { - ctx context.Context - APIService LoggingLogshuttleAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingLogshuttleAPI + serviceID string + versionID int32 loggingLogshuttleName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - token *string - url *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + token *string + url *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogLogshuttleRequest) Name(name string) *APIUpdateLogLogshuttl r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogLogshuttleRequest) Placement(placement string) *APIUpdateLogLogshuttleRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogLogshuttleRequest) ResponseCondition(responseCondition string) *APIUpdateLogLogshuttleRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogLogshuttleRequest) Format(format string) *APIUpdateLogLogshuttleRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogLogshuttleRequest) FormatVersion(formatVersion int32) *APIUpdateLogLogshuttleRequest { r.formatVersion = &formatVersion return r } + // Token The data authentication token associated with this endpoint. func (r *APIUpdateLogLogshuttleRequest) Token(token string) *APIUpdateLogLogshuttleRequest { r.token = &token return r } + // URL The URL to stream logs to. func (r *APIUpdateLogLogshuttleRequest) URL(url string) *APIUpdateLogLogshuttleRequest { r.url = &url @@ -811,10 +815,10 @@ Update the Log Shuttle logging endpoint for a particular service and version. */ func (a *LoggingLogshuttleAPIService) UpdateLogLogshuttle(ctx context.Context, serviceID string, versionID int32, loggingLogshuttleName string) APIUpdateLogLogshuttleRequest { return APIUpdateLogLogshuttleRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingLogshuttleName: loggingLogshuttleName, } } @@ -823,10 +827,10 @@ func (a *LoggingLogshuttleAPIService) UpdateLogLogshuttle(ctx context.Context, s // @return LoggingLogshuttleResponse func (a *LoggingLogshuttleAPIService) UpdateLogLogshuttleExecute(r APIUpdateLogLogshuttleRequest) (*LoggingLogshuttleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingLogshuttleResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingLogshuttleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingLogshuttleAPIService.UpdateLogLogshuttle") @@ -929,7 +933,6 @@ func (a *LoggingLogshuttleAPIService) UpdateLogLogshuttleExecute(r APIUpdateLogL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_newrelic.go b/fastly/api_logging_newrelic.go index 1d7d63f..ab814f3 100644 --- a/fastly/api_logging_newrelic.go +++ b/fastly/api_logging_newrelic.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingNewrelicAPI interface { /* - CreateLogNewrelic Create a New Relic log endpoint + CreateLogNewrelic Create a New Relic log endpoint - Create a New Relic Logs logging object for a particular service and version. + Create a New Relic Logs logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogNewrelicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogNewrelicRequest */ CreateLogNewrelic(ctx context.Context, serviceID string, versionID int32) APICreateLogNewrelicRequest @@ -48,15 +47,15 @@ type LoggingNewrelicAPI interface { CreateLogNewrelicExecute(r APICreateLogNewrelicRequest) (*LoggingNewrelicResponse, *http.Response, error) /* - DeleteLogNewrelic Delete a New Relic log endpoint + DeleteLogNewrelic Delete a New Relic log endpoint - Delete the New Relic Logs logging object for a particular service and version. + Delete the New Relic Logs logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicName The name for the real-time logging configuration. - @return APIDeleteLogNewrelicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicName The name for the real-time logging configuration. + @return APIDeleteLogNewrelicRequest */ DeleteLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIDeleteLogNewrelicRequest @@ -65,15 +64,15 @@ type LoggingNewrelicAPI interface { DeleteLogNewrelicExecute(r APIDeleteLogNewrelicRequest) (*InlineResponse200, *http.Response, error) /* - GetLogNewrelic Get a New Relic log endpoint + GetLogNewrelic Get a New Relic log endpoint - Get the details of a New Relic Logs logging object for a particular service and version. + Get the details of a New Relic Logs logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicName The name for the real-time logging configuration. - @return APIGetLogNewrelicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicName The name for the real-time logging configuration. + @return APIGetLogNewrelicRequest */ GetLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIGetLogNewrelicRequest @@ -82,14 +81,14 @@ type LoggingNewrelicAPI interface { GetLogNewrelicExecute(r APIGetLogNewrelicRequest) (*LoggingNewrelicResponse, *http.Response, error) /* - ListLogNewrelic List New Relic log endpoints + ListLogNewrelic List New Relic log endpoints - List all of the New Relic Logs logging objects for a particular service and version. + List all of the New Relic Logs logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogNewrelicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogNewrelicRequest */ ListLogNewrelic(ctx context.Context, serviceID string, versionID int32) APIListLogNewrelicRequest @@ -98,15 +97,15 @@ type LoggingNewrelicAPI interface { ListLogNewrelicExecute(r APIListLogNewrelicRequest) ([]LoggingNewrelicResponse, *http.Response, error) /* - UpdateLogNewrelic Update a New Relic log endpoint + UpdateLogNewrelic Update a New Relic log endpoint - Update a New Relic Logs logging object for a particular service and version. + Update a New Relic Logs logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicName The name for the real-time logging configuration. - @return APIUpdateLogNewrelicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicName The name for the real-time logging configuration. + @return APIUpdateLogNewrelicRequest */ UpdateLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIUpdateLogNewrelicRequest @@ -120,17 +119,17 @@ type LoggingNewrelicAPIService service // APICreateLogNewrelicRequest represents a request for the resource. type APICreateLogNewrelicRequest struct { - ctx context.Context - APIService LoggingNewrelicAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingNewrelicAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string - region *string + format *string + formatVersion *int32 + token *string + region *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogNewrelicRequest) Name(name string) *APICreateLogNewrelicReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogNewrelicRequest) Placement(placement string) *APICreateLogNewrelicRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogNewrelicRequest) ResponseCondition(responseCondition string) *APICreateLogNewrelicRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. func (r *APICreateLogNewrelicRequest) Format(format string) *APICreateLogNewrelicRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogNewrelicRequest) FormatVersion(formatVersion int32) *APICreateLogNewrelicRequest { r.formatVersion = &formatVersion return r } + // Token The Insert API key from the Account page of your New Relic account. Required. func (r *APICreateLogNewrelicRequest) Token(token string) *APICreateLogNewrelicRequest { r.token = &token return r } + // Region The region to which to stream logs. func (r *APICreateLogNewrelicRequest) Region(region string) *APICreateLogNewrelicRequest { r.region = ®ion @@ -187,9 +192,9 @@ Create a New Relic Logs logging object for a particular service and version. func (a *LoggingNewrelicAPIService) CreateLogNewrelic(ctx context.Context, serviceID string, versionID int32) APICreateLogNewrelicRequest { return APICreateLogNewrelicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingNewrelicAPIService) CreateLogNewrelic(ctx context.Context, servi // @return LoggingNewrelicResponse func (a *LoggingNewrelicAPIService) CreateLogNewrelicExecute(r APICreateLogNewrelicRequest) (*LoggingNewrelicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicAPIService.CreateLogNewrelic") @@ -302,7 +307,6 @@ func (a *LoggingNewrelicAPIService) CreateLogNewrelicExecute(r APICreateLogNewre return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingNewrelicAPIService) CreateLogNewrelicExecute(r APICreateLogNewre // APIDeleteLogNewrelicRequest represents a request for the resource. type APIDeleteLogNewrelicRequest struct { - ctx context.Context - APIService LoggingNewrelicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicAPI + serviceID string + versionID int32 loggingNewrelicName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogNewrelicRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogNewrelicExecute(r) @@ -347,10 +350,10 @@ Delete the New Relic Logs logging object for a particular service and version. */ func (a *LoggingNewrelicAPIService) DeleteLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIDeleteLogNewrelicRequest { return APIDeleteLogNewrelicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicName: loggingNewrelicName, } } @@ -359,10 +362,10 @@ func (a *LoggingNewrelicAPIService) DeleteLogNewrelic(ctx context.Context, servi // @return InlineResponse200 func (a *LoggingNewrelicAPIService) DeleteLogNewrelicExecute(r APIDeleteLogNewrelicRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicAPIService.DeleteLogNewrelic") @@ -444,7 +447,6 @@ func (a *LoggingNewrelicAPIService) DeleteLogNewrelicExecute(r APIDeleteLogNewre return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingNewrelicAPIService) DeleteLogNewrelicExecute(r APIDeleteLogNewre // APIGetLogNewrelicRequest represents a request for the resource. type APIGetLogNewrelicRequest struct { - ctx context.Context - APIService LoggingNewrelicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicAPI + serviceID string + versionID int32 loggingNewrelicName string } - // Execute calls the API using the request data configured. func (r APIGetLogNewrelicRequest) Execute() (*LoggingNewrelicResponse, *http.Response, error) { return r.APIService.GetLogNewrelicExecute(r) @@ -489,10 +490,10 @@ Get the details of a New Relic Logs logging object for a particular service and */ func (a *LoggingNewrelicAPIService) GetLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIGetLogNewrelicRequest { return APIGetLogNewrelicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicName: loggingNewrelicName, } } @@ -501,10 +502,10 @@ func (a *LoggingNewrelicAPIService) GetLogNewrelic(ctx context.Context, serviceI // @return LoggingNewrelicResponse func (a *LoggingNewrelicAPIService) GetLogNewrelicExecute(r APIGetLogNewrelicRequest) (*LoggingNewrelicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicAPIService.GetLogNewrelic") @@ -586,7 +587,6 @@ func (a *LoggingNewrelicAPIService) GetLogNewrelicExecute(r APIGetLogNewrelicReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingNewrelicAPIService) GetLogNewrelicExecute(r APIGetLogNewrelicReq // APIListLogNewrelicRequest represents a request for the resource. type APIListLogNewrelicRequest struct { - ctx context.Context + ctx context.Context APIService LoggingNewrelicAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogNewrelicRequest) Execute() ([]LoggingNewrelicResponse, *http.Response, error) { return r.APIService.ListLogNewrelicExecute(r) @@ -630,9 +629,9 @@ List all of the New Relic Logs logging objects for a particular service and vers func (a *LoggingNewrelicAPIService) ListLogNewrelic(ctx context.Context, serviceID string, versionID int32) APIListLogNewrelicRequest { return APIListLogNewrelicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingNewrelicAPIService) ListLogNewrelic(ctx context.Context, service // @return []LoggingNewrelicResponse func (a *LoggingNewrelicAPIService) ListLogNewrelicExecute(r APIListLogNewrelicRequest) ([]LoggingNewrelicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingNewrelicResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingNewrelicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicAPIService.ListLogNewrelic") @@ -724,7 +723,6 @@ func (a *LoggingNewrelicAPIService) ListLogNewrelicExecute(r APIListLogNewrelicR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingNewrelicAPIService) ListLogNewrelicExecute(r APIListLogNewrelicR // APIUpdateLogNewrelicRequest represents a request for the resource. type APIUpdateLogNewrelicRequest struct { - ctx context.Context - APIService LoggingNewrelicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicAPI + serviceID string + versionID int32 loggingNewrelicName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - token *string - region *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + token *string + region *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogNewrelicRequest) Name(name string) *APIUpdateLogNewrelicReq r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogNewrelicRequest) Placement(placement string) *APIUpdateLogNewrelicRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogNewrelicRequest) ResponseCondition(responseCondition string) *APIUpdateLogNewrelicRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. func (r *APIUpdateLogNewrelicRequest) Format(format string) *APIUpdateLogNewrelicRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogNewrelicRequest) FormatVersion(formatVersion int32) *APIUpdateLogNewrelicRequest { r.formatVersion = &formatVersion return r } + // Token The Insert API key from the Account page of your New Relic account. Required. func (r *APIUpdateLogNewrelicRequest) Token(token string) *APIUpdateLogNewrelicRequest { r.token = &token return r } + // Region The region to which to stream logs. func (r *APIUpdateLogNewrelicRequest) Region(region string) *APIUpdateLogNewrelicRequest { r.region = ®ion @@ -811,10 +815,10 @@ Update a New Relic Logs logging object for a particular service and version. */ func (a *LoggingNewrelicAPIService) UpdateLogNewrelic(ctx context.Context, serviceID string, versionID int32, loggingNewrelicName string) APIUpdateLogNewrelicRequest { return APIUpdateLogNewrelicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicName: loggingNewrelicName, } } @@ -823,10 +827,10 @@ func (a *LoggingNewrelicAPIService) UpdateLogNewrelic(ctx context.Context, servi // @return LoggingNewrelicResponse func (a *LoggingNewrelicAPIService) UpdateLogNewrelicExecute(r APIUpdateLogNewrelicRequest) (*LoggingNewrelicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicAPIService.UpdateLogNewrelic") @@ -929,7 +933,6 @@ func (a *LoggingNewrelicAPIService) UpdateLogNewrelicExecute(r APIUpdateLogNewre return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_newrelicotlp.go b/fastly/api_logging_newrelicotlp.go index 53865c7..b3ed150 100644 --- a/fastly/api_logging_newrelicotlp.go +++ b/fastly/api_logging_newrelicotlp.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingNewrelicotlpAPI interface { /* - CreateLogNewrelicotlp Create a New Relic OTLP endpoint + CreateLogNewrelicotlp Create a New Relic OTLP endpoint - Create a New Relic OTLP logging object for a particular service and version. + Create a New Relic OTLP logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogNewrelicotlpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogNewrelicotlpRequest */ CreateLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32) APICreateLogNewrelicotlpRequest @@ -48,15 +47,15 @@ type LoggingNewrelicotlpAPI interface { CreateLogNewrelicotlpExecute(r APICreateLogNewrelicotlpRequest) (*LoggingNewrelicotlpResponse, *http.Response, error) /* - DeleteLogNewrelicotlp Delete a New Relic OTLP endpoint + DeleteLogNewrelicotlp Delete a New Relic OTLP endpoint - Delete the New Relic OTLP logging object for a particular service and version. + Delete the New Relic OTLP logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicotlpName The name for the real-time logging configuration. - @return APIDeleteLogNewrelicotlpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicotlpName The name for the real-time logging configuration. + @return APIDeleteLogNewrelicotlpRequest */ DeleteLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIDeleteLogNewrelicotlpRequest @@ -65,15 +64,15 @@ type LoggingNewrelicotlpAPI interface { DeleteLogNewrelicotlpExecute(r APIDeleteLogNewrelicotlpRequest) (*InlineResponse200, *http.Response, error) /* - GetLogNewrelicotlp Get a New Relic OTLP endpoint + GetLogNewrelicotlp Get a New Relic OTLP endpoint - Get the details of a New Relic OTLP logging object for a particular service and version. + Get the details of a New Relic OTLP logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicotlpName The name for the real-time logging configuration. - @return APIGetLogNewrelicotlpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicotlpName The name for the real-time logging configuration. + @return APIGetLogNewrelicotlpRequest */ GetLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIGetLogNewrelicotlpRequest @@ -82,14 +81,14 @@ type LoggingNewrelicotlpAPI interface { GetLogNewrelicotlpExecute(r APIGetLogNewrelicotlpRequest) (*LoggingNewrelicotlpResponse, *http.Response, error) /* - ListLogNewrelicotlp List New Relic OTLP endpoints + ListLogNewrelicotlp List New Relic OTLP endpoints - List all of the New Relic OTLP logging objects for a particular service and version. + List all of the New Relic OTLP logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogNewrelicotlpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogNewrelicotlpRequest */ ListLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32) APIListLogNewrelicotlpRequest @@ -98,15 +97,15 @@ type LoggingNewrelicotlpAPI interface { ListLogNewrelicotlpExecute(r APIListLogNewrelicotlpRequest) ([]LoggingNewrelicotlpResponse, *http.Response, error) /* - UpdateLogNewrelicotlp Update a New Relic log endpoint + UpdateLogNewrelicotlp Update a New Relic log endpoint - Update a New Relic OTLP logging object for a particular service and version. + Update a New Relic OTLP logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingNewrelicotlpName The name for the real-time logging configuration. - @return APIUpdateLogNewrelicotlpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingNewrelicotlpName The name for the real-time logging configuration. + @return APIUpdateLogNewrelicotlpRequest */ UpdateLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIUpdateLogNewrelicotlpRequest @@ -120,18 +119,18 @@ type LoggingNewrelicotlpAPIService service // APICreateLogNewrelicotlpRequest represents a request for the resource. type APICreateLogNewrelicotlpRequest struct { - ctx context.Context - APIService LoggingNewrelicotlpAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingNewrelicotlpAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - token *string - region *string - url *string + format *string + formatVersion *int32 + token *string + region *string + url *string } // Name The name for the real-time logging configuration. @@ -139,36 +138,43 @@ func (r *APICreateLogNewrelicotlpRequest) Name(name string) *APICreateLogNewreli r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogNewrelicotlpRequest) Placement(placement string) *APICreateLogNewrelicotlpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogNewrelicotlpRequest) ResponseCondition(responseCondition string) *APICreateLogNewrelicotlpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogNewrelicotlpRequest) Format(format string) *APICreateLogNewrelicotlpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogNewrelicotlpRequest) FormatVersion(formatVersion int32) *APICreateLogNewrelicotlpRequest { r.formatVersion = &formatVersion return r } + // Token The Insert API key from the Account page of your New Relic account. Required. func (r *APICreateLogNewrelicotlpRequest) Token(token string) *APICreateLogNewrelicotlpRequest { r.token = &token return r } + // Region The region to which to stream logs. func (r *APICreateLogNewrelicotlpRequest) Region(region string) *APICreateLogNewrelicotlpRequest { r.region = ®ion return r } + // URL (Optional) URL of the New Relic Trace Observer, if you are using New Relic Infinite Tracing. func (r *APICreateLogNewrelicotlpRequest) URL(url string) *APICreateLogNewrelicotlpRequest { r.url = &url @@ -193,9 +199,9 @@ Create a New Relic OTLP logging object for a particular service and version. func (a *LoggingNewrelicotlpAPIService) CreateLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32) APICreateLogNewrelicotlpRequest { return APICreateLogNewrelicotlpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -203,10 +209,10 @@ func (a *LoggingNewrelicotlpAPIService) CreateLogNewrelicotlp(ctx context.Contex // @return LoggingNewrelicotlpResponse func (a *LoggingNewrelicotlpAPIService) CreateLogNewrelicotlpExecute(r APICreateLogNewrelicotlpRequest) (*LoggingNewrelicotlpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicotlpResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicotlpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicotlpAPIService.CreateLogNewrelicotlp") @@ -311,7 +317,6 @@ func (a *LoggingNewrelicotlpAPIService) CreateLogNewrelicotlpExecute(r APICreate return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -330,14 +335,13 @@ func (a *LoggingNewrelicotlpAPIService) CreateLogNewrelicotlpExecute(r APICreate // APIDeleteLogNewrelicotlpRequest represents a request for the resource. type APIDeleteLogNewrelicotlpRequest struct { - ctx context.Context - APIService LoggingNewrelicotlpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicotlpAPI + serviceID string + versionID int32 loggingNewrelicotlpName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogNewrelicotlpRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogNewrelicotlpExecute(r) @@ -356,10 +360,10 @@ Delete the New Relic OTLP logging object for a particular service and version. */ func (a *LoggingNewrelicotlpAPIService) DeleteLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIDeleteLogNewrelicotlpRequest { return APIDeleteLogNewrelicotlpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicotlpName: loggingNewrelicotlpName, } } @@ -368,10 +372,10 @@ func (a *LoggingNewrelicotlpAPIService) DeleteLogNewrelicotlp(ctx context.Contex // @return InlineResponse200 func (a *LoggingNewrelicotlpAPIService) DeleteLogNewrelicotlpExecute(r APIDeleteLogNewrelicotlpRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicotlpAPIService.DeleteLogNewrelicotlp") @@ -453,7 +457,6 @@ func (a *LoggingNewrelicotlpAPIService) DeleteLogNewrelicotlpExecute(r APIDelete return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -472,14 +475,13 @@ func (a *LoggingNewrelicotlpAPIService) DeleteLogNewrelicotlpExecute(r APIDelete // APIGetLogNewrelicotlpRequest represents a request for the resource. type APIGetLogNewrelicotlpRequest struct { - ctx context.Context - APIService LoggingNewrelicotlpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicotlpAPI + serviceID string + versionID int32 loggingNewrelicotlpName string } - // Execute calls the API using the request data configured. func (r APIGetLogNewrelicotlpRequest) Execute() (*LoggingNewrelicotlpResponse, *http.Response, error) { return r.APIService.GetLogNewrelicotlpExecute(r) @@ -498,10 +500,10 @@ Get the details of a New Relic OTLP logging object for a particular service and */ func (a *LoggingNewrelicotlpAPIService) GetLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIGetLogNewrelicotlpRequest { return APIGetLogNewrelicotlpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicotlpName: loggingNewrelicotlpName, } } @@ -510,10 +512,10 @@ func (a *LoggingNewrelicotlpAPIService) GetLogNewrelicotlp(ctx context.Context, // @return LoggingNewrelicotlpResponse func (a *LoggingNewrelicotlpAPIService) GetLogNewrelicotlpExecute(r APIGetLogNewrelicotlpRequest) (*LoggingNewrelicotlpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicotlpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicotlpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicotlpAPIService.GetLogNewrelicotlp") @@ -595,7 +597,6 @@ func (a *LoggingNewrelicotlpAPIService) GetLogNewrelicotlpExecute(r APIGetLogNew return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -614,13 +615,12 @@ func (a *LoggingNewrelicotlpAPIService) GetLogNewrelicotlpExecute(r APIGetLogNew // APIListLogNewrelicotlpRequest represents a request for the resource. type APIListLogNewrelicotlpRequest struct { - ctx context.Context + ctx context.Context APIService LoggingNewrelicotlpAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogNewrelicotlpRequest) Execute() ([]LoggingNewrelicotlpResponse, *http.Response, error) { return r.APIService.ListLogNewrelicotlpExecute(r) @@ -639,9 +639,9 @@ List all of the New Relic OTLP logging objects for a particular service and vers func (a *LoggingNewrelicotlpAPIService) ListLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32) APIListLogNewrelicotlpRequest { return APIListLogNewrelicotlpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -649,10 +649,10 @@ func (a *LoggingNewrelicotlpAPIService) ListLogNewrelicotlp(ctx context.Context, // @return []LoggingNewrelicotlpResponse func (a *LoggingNewrelicotlpAPIService) ListLogNewrelicotlpExecute(r APIListLogNewrelicotlpRequest) ([]LoggingNewrelicotlpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingNewrelicotlpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingNewrelicotlpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicotlpAPIService.ListLogNewrelicotlp") @@ -733,7 +733,6 @@ func (a *LoggingNewrelicotlpAPIService) ListLogNewrelicotlpExecute(r APIListLogN return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -752,19 +751,19 @@ func (a *LoggingNewrelicotlpAPIService) ListLogNewrelicotlpExecute(r APIListLogN // APIUpdateLogNewrelicotlpRequest represents a request for the resource. type APIUpdateLogNewrelicotlpRequest struct { - ctx context.Context - APIService LoggingNewrelicotlpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingNewrelicotlpAPI + serviceID string + versionID int32 loggingNewrelicotlpName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - token *string - region *string - url *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + token *string + region *string + url *string } // Name The name for the real-time logging configuration. @@ -772,36 +771,43 @@ func (r *APIUpdateLogNewrelicotlpRequest) Name(name string) *APIUpdateLogNewreli r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogNewrelicotlpRequest) Placement(placement string) *APIUpdateLogNewrelicotlpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogNewrelicotlpRequest) ResponseCondition(responseCondition string) *APIUpdateLogNewrelicotlpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogNewrelicotlpRequest) Format(format string) *APIUpdateLogNewrelicotlpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogNewrelicotlpRequest) FormatVersion(formatVersion int32) *APIUpdateLogNewrelicotlpRequest { r.formatVersion = &formatVersion return r } + // Token The Insert API key from the Account page of your New Relic account. Required. func (r *APIUpdateLogNewrelicotlpRequest) Token(token string) *APIUpdateLogNewrelicotlpRequest { r.token = &token return r } + // Region The region to which to stream logs. func (r *APIUpdateLogNewrelicotlpRequest) Region(region string) *APIUpdateLogNewrelicotlpRequest { r.region = ®ion return r } + // URL (Optional) URL of the New Relic Trace Observer, if you are using New Relic Infinite Tracing. func (r *APIUpdateLogNewrelicotlpRequest) URL(url string) *APIUpdateLogNewrelicotlpRequest { r.url = &url @@ -826,10 +832,10 @@ Update a New Relic OTLP logging object for a particular service and version. */ func (a *LoggingNewrelicotlpAPIService) UpdateLogNewrelicotlp(ctx context.Context, serviceID string, versionID int32, loggingNewrelicotlpName string) APIUpdateLogNewrelicotlpRequest { return APIUpdateLogNewrelicotlpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingNewrelicotlpName: loggingNewrelicotlpName, } } @@ -838,10 +844,10 @@ func (a *LoggingNewrelicotlpAPIService) UpdateLogNewrelicotlp(ctx context.Contex // @return LoggingNewrelicotlpResponse func (a *LoggingNewrelicotlpAPIService) UpdateLogNewrelicotlpExecute(r APIUpdateLogNewrelicotlpRequest) (*LoggingNewrelicotlpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingNewrelicotlpResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingNewrelicotlpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingNewrelicotlpAPIService.UpdateLogNewrelicotlp") @@ -947,7 +953,6 @@ func (a *LoggingNewrelicotlpAPIService) UpdateLogNewrelicotlpExecute(r APIUpdate return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_openstack.go b/fastly/api_logging_openstack.go index 1ee2e9b..b6f1617 100644 --- a/fastly/api_logging_openstack.go +++ b/fastly/api_logging_openstack.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingOpenstackAPI interface { /* - CreateLogOpenstack Create an OpenStack log endpoint + CreateLogOpenstack Create an OpenStack log endpoint - Create a openstack for a particular service and version. + Create a openstack for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogOpenstackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogOpenstackRequest */ CreateLogOpenstack(ctx context.Context, serviceID string, versionID int32) APICreateLogOpenstackRequest @@ -48,15 +47,15 @@ type LoggingOpenstackAPI interface { CreateLogOpenstackExecute(r APICreateLogOpenstackRequest) (*LoggingOpenstackResponse, *http.Response, error) /* - DeleteLogOpenstack Delete an OpenStack log endpoint + DeleteLogOpenstack Delete an OpenStack log endpoint - Delete the openstack for a particular service and version. + Delete the openstack for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingOpenstackName The name for the real-time logging configuration. - @return APIDeleteLogOpenstackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingOpenstackName The name for the real-time logging configuration. + @return APIDeleteLogOpenstackRequest */ DeleteLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIDeleteLogOpenstackRequest @@ -65,15 +64,15 @@ type LoggingOpenstackAPI interface { DeleteLogOpenstackExecute(r APIDeleteLogOpenstackRequest) (*InlineResponse200, *http.Response, error) /* - GetLogOpenstack Get an OpenStack log endpoint + GetLogOpenstack Get an OpenStack log endpoint - Get the openstack for a particular service and version. + Get the openstack for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingOpenstackName The name for the real-time logging configuration. - @return APIGetLogOpenstackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingOpenstackName The name for the real-time logging configuration. + @return APIGetLogOpenstackRequest */ GetLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIGetLogOpenstackRequest @@ -82,14 +81,14 @@ type LoggingOpenstackAPI interface { GetLogOpenstackExecute(r APIGetLogOpenstackRequest) (*LoggingOpenstackResponse, *http.Response, error) /* - ListLogOpenstack List OpenStack log endpoints + ListLogOpenstack List OpenStack log endpoints - List all of the openstacks for a particular service and version. + List all of the openstacks for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogOpenstackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogOpenstackRequest */ ListLogOpenstack(ctx context.Context, serviceID string, versionID int32) APIListLogOpenstackRequest @@ -98,15 +97,15 @@ type LoggingOpenstackAPI interface { ListLogOpenstackExecute(r APIListLogOpenstackRequest) ([]LoggingOpenstackResponse, *http.Response, error) /* - UpdateLogOpenstack Update an OpenStack log endpoint + UpdateLogOpenstack Update an OpenStack log endpoint - Update the openstack for a particular service and version. + Update the openstack for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingOpenstackName The name for the real-time logging configuration. - @return APIUpdateLogOpenstackRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingOpenstackName The name for the real-time logging configuration. + @return APIUpdateLogOpenstackRequest */ UpdateLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIUpdateLogOpenstackRequest @@ -120,26 +119,26 @@ type LoggingOpenstackAPIService service // APICreateLogOpenstackRequest represents a request for the resource. type APICreateLogOpenstackRequest struct { - ctx context.Context - APIService LoggingOpenstackAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingOpenstackAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - bucketName *string - path *string - publicKey *string - url *string - user *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + bucketName *string + path *string + publicKey *string + url *string + user *string } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogOpenstackRequest) Name(name string) *APICreateLogOpenstackR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogOpenstackRequest) Placement(placement string) *APICreateLogOpenstackRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogOpenstackRequest) ResponseCondition(responseCondition string) *APICreateLogOpenstackRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogOpenstackRequest) Format(format string) *APICreateLogOpenstackRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogOpenstackRequest) FormatVersion(formatVersion int32) *APICreateLogOpenstackRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogOpenstackRequest) MessageType(messageType string) *APICreateLogOpenstackRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogOpenstackRequest) TimestampFormat(timestampFormat string) *APICreateLogOpenstackRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogOpenstackRequest) CompressionCodec(compressionCodec string) *APICreateLogOpenstackRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogOpenstackRequest) Period(period int32) *APICreateLogOpenstackRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogOpenstackRequest) GzipLevel(gzipLevel int32) *APICreateLogOpenstackRequest { r.gzipLevel = &gzipLevel return r } + // AccessKey Your OpenStack account access key. func (r *APICreateLogOpenstackRequest) AccessKey(accessKey string) *APICreateLogOpenstackRequest { r.accessKey = &accessKey return r } + // BucketName The name of your OpenStack container. func (r *APICreateLogOpenstackRequest) BucketName(bucketName string) *APICreateLogOpenstackRequest { r.bucketName = &bucketName return r } + // Path The path to upload logs to. func (r *APICreateLogOpenstackRequest) Path(path string) *APICreateLogOpenstackRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogOpenstackRequest) PublicKey(publicKey string) *APICreateLogOpenstackRequest { r.publicKey = &publicKey return r } + // URL Your OpenStack auth url. func (r *APICreateLogOpenstackRequest) URL(url string) *APICreateLogOpenstackRequest { r.url = &url return r } + // User The username for your OpenStack account. func (r *APICreateLogOpenstackRequest) User(user string) *APICreateLogOpenstackRequest { r.user = &user @@ -241,9 +255,9 @@ Create a openstack for a particular service and version. func (a *LoggingOpenstackAPIService) CreateLogOpenstack(ctx context.Context, serviceID string, versionID int32) APICreateLogOpenstackRequest { return APICreateLogOpenstackRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingOpenstackAPIService) CreateLogOpenstack(ctx context.Context, ser // @return LoggingOpenstackResponse func (a *LoggingOpenstackAPIService) CreateLogOpenstackExecute(r APICreateLogOpenstackRequest) (*LoggingOpenstackResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingOpenstackResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingOpenstackResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingOpenstackAPIService.CreateLogOpenstack") @@ -383,7 +397,6 @@ func (a *LoggingOpenstackAPIService) CreateLogOpenstackExecute(r APICreateLogOpe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingOpenstackAPIService) CreateLogOpenstackExecute(r APICreateLogOpe // APIDeleteLogOpenstackRequest represents a request for the resource. type APIDeleteLogOpenstackRequest struct { - ctx context.Context - APIService LoggingOpenstackAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingOpenstackAPI + serviceID string + versionID int32 loggingOpenstackName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogOpenstackRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogOpenstackExecute(r) @@ -428,10 +440,10 @@ Delete the openstack for a particular service and version. */ func (a *LoggingOpenstackAPIService) DeleteLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIDeleteLogOpenstackRequest { return APIDeleteLogOpenstackRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingOpenstackName: loggingOpenstackName, } } @@ -440,10 +452,10 @@ func (a *LoggingOpenstackAPIService) DeleteLogOpenstack(ctx context.Context, ser // @return InlineResponse200 func (a *LoggingOpenstackAPIService) DeleteLogOpenstackExecute(r APIDeleteLogOpenstackRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingOpenstackAPIService.DeleteLogOpenstack") @@ -525,7 +537,6 @@ func (a *LoggingOpenstackAPIService) DeleteLogOpenstackExecute(r APIDeleteLogOpe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingOpenstackAPIService) DeleteLogOpenstackExecute(r APIDeleteLogOpe // APIGetLogOpenstackRequest represents a request for the resource. type APIGetLogOpenstackRequest struct { - ctx context.Context - APIService LoggingOpenstackAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingOpenstackAPI + serviceID string + versionID int32 loggingOpenstackName string } - // Execute calls the API using the request data configured. func (r APIGetLogOpenstackRequest) Execute() (*LoggingOpenstackResponse, *http.Response, error) { return r.APIService.GetLogOpenstackExecute(r) @@ -570,10 +580,10 @@ Get the openstack for a particular service and version. */ func (a *LoggingOpenstackAPIService) GetLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIGetLogOpenstackRequest { return APIGetLogOpenstackRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingOpenstackName: loggingOpenstackName, } } @@ -582,10 +592,10 @@ func (a *LoggingOpenstackAPIService) GetLogOpenstack(ctx context.Context, servic // @return LoggingOpenstackResponse func (a *LoggingOpenstackAPIService) GetLogOpenstackExecute(r APIGetLogOpenstackRequest) (*LoggingOpenstackResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingOpenstackResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingOpenstackResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingOpenstackAPIService.GetLogOpenstack") @@ -667,7 +677,6 @@ func (a *LoggingOpenstackAPIService) GetLogOpenstackExecute(r APIGetLogOpenstack return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingOpenstackAPIService) GetLogOpenstackExecute(r APIGetLogOpenstack // APIListLogOpenstackRequest represents a request for the resource. type APIListLogOpenstackRequest struct { - ctx context.Context + ctx context.Context APIService LoggingOpenstackAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogOpenstackRequest) Execute() ([]LoggingOpenstackResponse, *http.Response, error) { return r.APIService.ListLogOpenstackExecute(r) @@ -711,9 +719,9 @@ List all of the openstacks for a particular service and version. func (a *LoggingOpenstackAPIService) ListLogOpenstack(ctx context.Context, serviceID string, versionID int32) APIListLogOpenstackRequest { return APIListLogOpenstackRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingOpenstackAPIService) ListLogOpenstack(ctx context.Context, servi // @return []LoggingOpenstackResponse func (a *LoggingOpenstackAPIService) ListLogOpenstackExecute(r APIListLogOpenstackRequest) ([]LoggingOpenstackResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingOpenstackResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingOpenstackResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingOpenstackAPIService.ListLogOpenstack") @@ -805,7 +813,6 @@ func (a *LoggingOpenstackAPIService) ListLogOpenstackExecute(r APIListLogOpensta return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingOpenstackAPIService) ListLogOpenstackExecute(r APIListLogOpensta // APIUpdateLogOpenstackRequest represents a request for the resource. type APIUpdateLogOpenstackRequest struct { - ctx context.Context - APIService LoggingOpenstackAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingOpenstackAPI + serviceID string + versionID int32 loggingOpenstackName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - bucketName *string - path *string - publicKey *string - url *string - user *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + bucketName *string + path *string + publicKey *string + url *string + user *string } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogOpenstackRequest) Name(name string) *APIUpdateLogOpenstackR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogOpenstackRequest) Placement(placement string) *APIUpdateLogOpenstackRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogOpenstackRequest) ResponseCondition(responseCondition string) *APIUpdateLogOpenstackRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogOpenstackRequest) Format(format string) *APIUpdateLogOpenstackRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogOpenstackRequest) FormatVersion(formatVersion int32) *APIUpdateLogOpenstackRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogOpenstackRequest) MessageType(messageType string) *APIUpdateLogOpenstackRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogOpenstackRequest) TimestampFormat(timestampFormat string) *APIUpdateLogOpenstackRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogOpenstackRequest) CompressionCodec(compressionCodec string) *APIUpdateLogOpenstackRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogOpenstackRequest) Period(period int32) *APIUpdateLogOpenstackRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogOpenstackRequest) GzipLevel(gzipLevel int32) *APIUpdateLogOpenstackRequest { r.gzipLevel = &gzipLevel return r } + // AccessKey Your OpenStack account access key. func (r *APIUpdateLogOpenstackRequest) AccessKey(accessKey string) *APIUpdateLogOpenstackRequest { r.accessKey = &accessKey return r } + // BucketName The name of your OpenStack container. func (r *APIUpdateLogOpenstackRequest) BucketName(bucketName string) *APIUpdateLogOpenstackRequest { r.bucketName = &bucketName return r } + // Path The path to upload logs to. func (r *APIUpdateLogOpenstackRequest) Path(path string) *APIUpdateLogOpenstackRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogOpenstackRequest) PublicKey(publicKey string) *APIUpdateLogOpenstackRequest { r.publicKey = &publicKey return r } + // URL Your OpenStack auth url. func (r *APIUpdateLogOpenstackRequest) URL(url string) *APIUpdateLogOpenstackRequest { r.url = &url return r } + // User The username for your OpenStack account. func (r *APIUpdateLogOpenstackRequest) User(user string) *APIUpdateLogOpenstackRequest { r.user = &user @@ -946,10 +968,10 @@ Update the openstack for a particular service and version. */ func (a *LoggingOpenstackAPIService) UpdateLogOpenstack(ctx context.Context, serviceID string, versionID int32, loggingOpenstackName string) APIUpdateLogOpenstackRequest { return APIUpdateLogOpenstackRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingOpenstackName: loggingOpenstackName, } } @@ -958,10 +980,10 @@ func (a *LoggingOpenstackAPIService) UpdateLogOpenstack(ctx context.Context, ser // @return LoggingOpenstackResponse func (a *LoggingOpenstackAPIService) UpdateLogOpenstackExecute(r APIUpdateLogOpenstackRequest) (*LoggingOpenstackResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingOpenstackResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingOpenstackResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingOpenstackAPIService.UpdateLogOpenstack") @@ -1091,7 +1113,6 @@ func (a *LoggingOpenstackAPIService) UpdateLogOpenstackExecute(r APIUpdateLogOpe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_papertrail.go b/fastly/api_logging_papertrail.go index 21b234f..84d7c51 100644 --- a/fastly/api_logging_papertrail.go +++ b/fastly/api_logging_papertrail.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingPapertrailAPI interface { /* - CreateLogPapertrail Create a Papertrail log endpoint + CreateLogPapertrail Create a Papertrail log endpoint - Create a Papertrail for a particular service and version. + Create a Papertrail for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogPapertrailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogPapertrailRequest */ CreateLogPapertrail(ctx context.Context, serviceID string, versionID int32) APICreateLogPapertrailRequest @@ -48,15 +47,15 @@ type LoggingPapertrailAPI interface { CreateLogPapertrailExecute(r APICreateLogPapertrailRequest) (*LoggingPapertrailResponse, *http.Response, error) /* - DeleteLogPapertrail Delete a Papertrail log endpoint + DeleteLogPapertrail Delete a Papertrail log endpoint - Delete the Papertrail for a particular service and version. + Delete the Papertrail for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingPapertrailName The name for the real-time logging configuration. - @return APIDeleteLogPapertrailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingPapertrailName The name for the real-time logging configuration. + @return APIDeleteLogPapertrailRequest */ DeleteLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIDeleteLogPapertrailRequest @@ -65,15 +64,15 @@ type LoggingPapertrailAPI interface { DeleteLogPapertrailExecute(r APIDeleteLogPapertrailRequest) (*InlineResponse200, *http.Response, error) /* - GetLogPapertrail Get a Papertrail log endpoint + GetLogPapertrail Get a Papertrail log endpoint - Get the Papertrail for a particular service and version. + Get the Papertrail for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingPapertrailName The name for the real-time logging configuration. - @return APIGetLogPapertrailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingPapertrailName The name for the real-time logging configuration. + @return APIGetLogPapertrailRequest */ GetLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIGetLogPapertrailRequest @@ -82,14 +81,14 @@ type LoggingPapertrailAPI interface { GetLogPapertrailExecute(r APIGetLogPapertrailRequest) (*LoggingPapertrailResponse, *http.Response, error) /* - ListLogPapertrail List Papertrail log endpoints + ListLogPapertrail List Papertrail log endpoints - List all of the Papertrails for a particular service and version. + List all of the Papertrails for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogPapertrailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogPapertrailRequest */ ListLogPapertrail(ctx context.Context, serviceID string, versionID int32) APIListLogPapertrailRequest @@ -98,15 +97,15 @@ type LoggingPapertrailAPI interface { ListLogPapertrailExecute(r APIListLogPapertrailRequest) ([]LoggingPapertrailResponse, *http.Response, error) /* - UpdateLogPapertrail Update a Papertrail log endpoint + UpdateLogPapertrail Update a Papertrail log endpoint - Update the Papertrail for a particular service and version. + Update the Papertrail for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingPapertrailName The name for the real-time logging configuration. - @return APIUpdateLogPapertrailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingPapertrailName The name for the real-time logging configuration. + @return APIUpdateLogPapertrailRequest */ UpdateLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIUpdateLogPapertrailRequest @@ -120,17 +119,17 @@ type LoggingPapertrailAPIService service // APICreateLogPapertrailRequest represents a request for the resource. type APICreateLogPapertrailRequest struct { - ctx context.Context - APIService LoggingPapertrailAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingPapertrailAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - address *string - port *int32 + format *string + formatVersion *int32 + address *string + port *int32 } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogPapertrailRequest) Name(name string) *APICreateLogPapertrai r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogPapertrailRequest) Placement(placement string) *APICreateLogPapertrailRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogPapertrailRequest) ResponseCondition(responseCondition string) *APICreateLogPapertrailRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogPapertrailRequest) Format(format string) *APICreateLogPapertrailRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogPapertrailRequest) FormatVersion(formatVersion int32) *APICreateLogPapertrailRequest { r.formatVersion = &formatVersion return r } + // Address A hostname or IPv4 address. func (r *APICreateLogPapertrailRequest) Address(address string) *APICreateLogPapertrailRequest { r.address = &address return r } + // Port The port number. func (r *APICreateLogPapertrailRequest) Port(port int32) *APICreateLogPapertrailRequest { r.port = &port @@ -187,9 +192,9 @@ Create a Papertrail for a particular service and version. func (a *LoggingPapertrailAPIService) CreateLogPapertrail(ctx context.Context, serviceID string, versionID int32) APICreateLogPapertrailRequest { return APICreateLogPapertrailRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingPapertrailAPIService) CreateLogPapertrail(ctx context.Context, s // @return LoggingPapertrailResponse func (a *LoggingPapertrailAPIService) CreateLogPapertrailExecute(r APICreateLogPapertrailRequest) (*LoggingPapertrailResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingPapertrailResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingPapertrailResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPapertrailAPIService.CreateLogPapertrail") @@ -302,7 +307,6 @@ func (a *LoggingPapertrailAPIService) CreateLogPapertrailExecute(r APICreateLogP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingPapertrailAPIService) CreateLogPapertrailExecute(r APICreateLogP // APIDeleteLogPapertrailRequest represents a request for the resource. type APIDeleteLogPapertrailRequest struct { - ctx context.Context - APIService LoggingPapertrailAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPapertrailAPI + serviceID string + versionID int32 loggingPapertrailName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogPapertrailRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogPapertrailExecute(r) @@ -347,10 +350,10 @@ Delete the Papertrail for a particular service and version. */ func (a *LoggingPapertrailAPIService) DeleteLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIDeleteLogPapertrailRequest { return APIDeleteLogPapertrailRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingPapertrailName: loggingPapertrailName, } } @@ -359,10 +362,10 @@ func (a *LoggingPapertrailAPIService) DeleteLogPapertrail(ctx context.Context, s // @return InlineResponse200 func (a *LoggingPapertrailAPIService) DeleteLogPapertrailExecute(r APIDeleteLogPapertrailRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPapertrailAPIService.DeleteLogPapertrail") @@ -444,7 +447,6 @@ func (a *LoggingPapertrailAPIService) DeleteLogPapertrailExecute(r APIDeleteLogP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingPapertrailAPIService) DeleteLogPapertrailExecute(r APIDeleteLogP // APIGetLogPapertrailRequest represents a request for the resource. type APIGetLogPapertrailRequest struct { - ctx context.Context - APIService LoggingPapertrailAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPapertrailAPI + serviceID string + versionID int32 loggingPapertrailName string } - // Execute calls the API using the request data configured. func (r APIGetLogPapertrailRequest) Execute() (*LoggingPapertrailResponse, *http.Response, error) { return r.APIService.GetLogPapertrailExecute(r) @@ -489,10 +490,10 @@ Get the Papertrail for a particular service and version. */ func (a *LoggingPapertrailAPIService) GetLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIGetLogPapertrailRequest { return APIGetLogPapertrailRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingPapertrailName: loggingPapertrailName, } } @@ -501,10 +502,10 @@ func (a *LoggingPapertrailAPIService) GetLogPapertrail(ctx context.Context, serv // @return LoggingPapertrailResponse func (a *LoggingPapertrailAPIService) GetLogPapertrailExecute(r APIGetLogPapertrailRequest) (*LoggingPapertrailResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingPapertrailResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingPapertrailResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPapertrailAPIService.GetLogPapertrail") @@ -586,7 +587,6 @@ func (a *LoggingPapertrailAPIService) GetLogPapertrailExecute(r APIGetLogPapertr return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingPapertrailAPIService) GetLogPapertrailExecute(r APIGetLogPapertr // APIListLogPapertrailRequest represents a request for the resource. type APIListLogPapertrailRequest struct { - ctx context.Context + ctx context.Context APIService LoggingPapertrailAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogPapertrailRequest) Execute() ([]LoggingPapertrailResponse, *http.Response, error) { return r.APIService.ListLogPapertrailExecute(r) @@ -630,9 +629,9 @@ List all of the Papertrails for a particular service and version. func (a *LoggingPapertrailAPIService) ListLogPapertrail(ctx context.Context, serviceID string, versionID int32) APIListLogPapertrailRequest { return APIListLogPapertrailRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingPapertrailAPIService) ListLogPapertrail(ctx context.Context, ser // @return []LoggingPapertrailResponse func (a *LoggingPapertrailAPIService) ListLogPapertrailExecute(r APIListLogPapertrailRequest) ([]LoggingPapertrailResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingPapertrailResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingPapertrailResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPapertrailAPIService.ListLogPapertrail") @@ -724,7 +723,6 @@ func (a *LoggingPapertrailAPIService) ListLogPapertrailExecute(r APIListLogPaper return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingPapertrailAPIService) ListLogPapertrailExecute(r APIListLogPaper // APIUpdateLogPapertrailRequest represents a request for the resource. type APIUpdateLogPapertrailRequest struct { - ctx context.Context - APIService LoggingPapertrailAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPapertrailAPI + serviceID string + versionID int32 loggingPapertrailName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - address *string - port *int32 + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + address *string + port *int32 } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogPapertrailRequest) Name(name string) *APIUpdateLogPapertrai r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogPapertrailRequest) Placement(placement string) *APIUpdateLogPapertrailRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogPapertrailRequest) ResponseCondition(responseCondition string) *APIUpdateLogPapertrailRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogPapertrailRequest) Format(format string) *APIUpdateLogPapertrailRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogPapertrailRequest) FormatVersion(formatVersion int32) *APIUpdateLogPapertrailRequest { r.formatVersion = &formatVersion return r } + // Address A hostname or IPv4 address. func (r *APIUpdateLogPapertrailRequest) Address(address string) *APIUpdateLogPapertrailRequest { r.address = &address return r } + // Port The port number. func (r *APIUpdateLogPapertrailRequest) Port(port int32) *APIUpdateLogPapertrailRequest { r.port = &port @@ -811,10 +815,10 @@ Update the Papertrail for a particular service and version. */ func (a *LoggingPapertrailAPIService) UpdateLogPapertrail(ctx context.Context, serviceID string, versionID int32, loggingPapertrailName string) APIUpdateLogPapertrailRequest { return APIUpdateLogPapertrailRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingPapertrailName: loggingPapertrailName, } } @@ -823,10 +827,10 @@ func (a *LoggingPapertrailAPIService) UpdateLogPapertrail(ctx context.Context, s // @return LoggingPapertrailResponse func (a *LoggingPapertrailAPIService) UpdateLogPapertrailExecute(r APIUpdateLogPapertrailRequest) (*LoggingPapertrailResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingPapertrailResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingPapertrailResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPapertrailAPIService.UpdateLogPapertrail") @@ -929,7 +933,6 @@ func (a *LoggingPapertrailAPIService) UpdateLogPapertrailExecute(r APIUpdateLogP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_pubsub.go b/fastly/api_logging_pubsub.go index a52fd36..84c8426 100644 --- a/fastly/api_logging_pubsub.go +++ b/fastly/api_logging_pubsub.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingPubsubAPI interface { /* - CreateLogGcpPubsub Create a GCP Cloud Pub/Sub log endpoint + CreateLogGcpPubsub Create a GCP Cloud Pub/Sub log endpoint - Create a Pub/Sub logging object for a particular service and version. + Create a Pub/Sub logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogGcpPubsubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogGcpPubsubRequest */ CreateLogGcpPubsub(ctx context.Context, serviceID string, versionID int32) APICreateLogGcpPubsubRequest @@ -48,15 +47,15 @@ type LoggingPubsubAPI interface { CreateLogGcpPubsubExecute(r APICreateLogGcpPubsubRequest) (*LoggingGooglePubsubResponse, *http.Response, error) /* - DeleteLogGcpPubsub Delete a GCP Cloud Pub/Sub log endpoint + DeleteLogGcpPubsub Delete a GCP Cloud Pub/Sub log endpoint - Delete a Pub/Sub logging object for a particular service and version. + Delete a Pub/Sub logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGooglePubsubName The name for the real-time logging configuration. - @return APIDeleteLogGcpPubsubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGooglePubsubName The name for the real-time logging configuration. + @return APIDeleteLogGcpPubsubRequest */ DeleteLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIDeleteLogGcpPubsubRequest @@ -65,15 +64,15 @@ type LoggingPubsubAPI interface { DeleteLogGcpPubsubExecute(r APIDeleteLogGcpPubsubRequest) (*InlineResponse200, *http.Response, error) /* - GetLogGcpPubsub Get a GCP Cloud Pub/Sub log endpoint + GetLogGcpPubsub Get a GCP Cloud Pub/Sub log endpoint - Get the details for a Pub/Sub logging object for a particular service and version. + Get the details for a Pub/Sub logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGooglePubsubName The name for the real-time logging configuration. - @return APIGetLogGcpPubsubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGooglePubsubName The name for the real-time logging configuration. + @return APIGetLogGcpPubsubRequest */ GetLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIGetLogGcpPubsubRequest @@ -82,14 +81,14 @@ type LoggingPubsubAPI interface { GetLogGcpPubsubExecute(r APIGetLogGcpPubsubRequest) (*LoggingGooglePubsubResponse, *http.Response, error) /* - ListLogGcpPubsub List GCP Cloud Pub/Sub log endpoints + ListLogGcpPubsub List GCP Cloud Pub/Sub log endpoints - List all of the Pub/Sub logging objects for a particular service and version. + List all of the Pub/Sub logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogGcpPubsubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogGcpPubsubRequest */ ListLogGcpPubsub(ctx context.Context, serviceID string, versionID int32) APIListLogGcpPubsubRequest @@ -98,15 +97,15 @@ type LoggingPubsubAPI interface { ListLogGcpPubsubExecute(r APIListLogGcpPubsubRequest) ([]LoggingGooglePubsubResponse, *http.Response, error) /* - UpdateLogGcpPubsub Update a GCP Cloud Pub/Sub log endpoint + UpdateLogGcpPubsub Update a GCP Cloud Pub/Sub log endpoint - Update a Pub/Sub logging object for a particular service and version. + Update a Pub/Sub logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingGooglePubsubName The name for the real-time logging configuration. - @return APIUpdateLogGcpPubsubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingGooglePubsubName The name for the real-time logging configuration. + @return APIUpdateLogGcpPubsubRequest */ UpdateLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIUpdateLogGcpPubsubRequest @@ -120,20 +119,20 @@ type LoggingPubsubAPIService service // APICreateLogGcpPubsubRequest represents a request for the resource. type APICreateLogGcpPubsubRequest struct { - ctx context.Context - APIService LoggingPubsubAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingPubsubAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - user *string - secretKey *string - accountName *string - topic *string - projectID *string + format *string + formatVersion *int32 + user *string + secretKey *string + accountName *string + topic *string + projectID *string } // Name The name for the real-time logging configuration. @@ -141,46 +140,55 @@ func (r *APICreateLogGcpPubsubRequest) Name(name string) *APICreateLogGcpPubsubR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogGcpPubsubRequest) Placement(placement string) *APICreateLogGcpPubsubRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogGcpPubsubRequest) ResponseCondition(responseCondition string) *APICreateLogGcpPubsubRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogGcpPubsubRequest) Format(format string) *APICreateLogGcpPubsubRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogGcpPubsubRequest) FormatVersion(formatVersion int32) *APICreateLogGcpPubsubRequest { r.formatVersion = &formatVersion return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogGcpPubsubRequest) User(user string) *APICreateLogGcpPubsubRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APICreateLogGcpPubsubRequest) SecretKey(secretKey string) *APICreateLogGcpPubsubRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APICreateLogGcpPubsubRequest) AccountName(accountName string) *APICreateLogGcpPubsubRequest { r.accountName = &accountName return r } + // Topic The Google Cloud Pub/Sub topic to which logs will be published. Required. func (r *APICreateLogGcpPubsubRequest) Topic(topic string) *APICreateLogGcpPubsubRequest { r.topic = &topic return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APICreateLogGcpPubsubRequest) ProjectID(projectID string) *APICreateLogGcpPubsubRequest { r.projectID = &projectID @@ -205,9 +213,9 @@ Create a Pub/Sub logging object for a particular service and version. func (a *LoggingPubsubAPIService) CreateLogGcpPubsub(ctx context.Context, serviceID string, versionID int32) APICreateLogGcpPubsubRequest { return APICreateLogGcpPubsubRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -215,10 +223,10 @@ func (a *LoggingPubsubAPIService) CreateLogGcpPubsub(ctx context.Context, servic // @return LoggingGooglePubsubResponse func (a *LoggingPubsubAPIService) CreateLogGcpPubsubExecute(r APICreateLogGcpPubsubRequest) (*LoggingGooglePubsubResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGooglePubsubResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGooglePubsubResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPubsubAPIService.CreateLogGcpPubsub") @@ -329,7 +337,6 @@ func (a *LoggingPubsubAPIService) CreateLogGcpPubsubExecute(r APICreateLogGcpPub return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -348,14 +355,13 @@ func (a *LoggingPubsubAPIService) CreateLogGcpPubsubExecute(r APICreateLogGcpPub // APIDeleteLogGcpPubsubRequest represents a request for the resource. type APIDeleteLogGcpPubsubRequest struct { - ctx context.Context - APIService LoggingPubsubAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPubsubAPI + serviceID string + versionID int32 loggingGooglePubsubName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogGcpPubsubRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogGcpPubsubExecute(r) @@ -374,10 +380,10 @@ Delete a Pub/Sub logging object for a particular service and version. */ func (a *LoggingPubsubAPIService) DeleteLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIDeleteLogGcpPubsubRequest { return APIDeleteLogGcpPubsubRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGooglePubsubName: loggingGooglePubsubName, } } @@ -386,10 +392,10 @@ func (a *LoggingPubsubAPIService) DeleteLogGcpPubsub(ctx context.Context, servic // @return InlineResponse200 func (a *LoggingPubsubAPIService) DeleteLogGcpPubsubExecute(r APIDeleteLogGcpPubsubRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPubsubAPIService.DeleteLogGcpPubsub") @@ -471,7 +477,6 @@ func (a *LoggingPubsubAPIService) DeleteLogGcpPubsubExecute(r APIDeleteLogGcpPub return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -490,14 +495,13 @@ func (a *LoggingPubsubAPIService) DeleteLogGcpPubsubExecute(r APIDeleteLogGcpPub // APIGetLogGcpPubsubRequest represents a request for the resource. type APIGetLogGcpPubsubRequest struct { - ctx context.Context - APIService LoggingPubsubAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPubsubAPI + serviceID string + versionID int32 loggingGooglePubsubName string } - // Execute calls the API using the request data configured. func (r APIGetLogGcpPubsubRequest) Execute() (*LoggingGooglePubsubResponse, *http.Response, error) { return r.APIService.GetLogGcpPubsubExecute(r) @@ -516,10 +520,10 @@ Get the details for a Pub/Sub logging object for a particular service and versio */ func (a *LoggingPubsubAPIService) GetLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIGetLogGcpPubsubRequest { return APIGetLogGcpPubsubRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGooglePubsubName: loggingGooglePubsubName, } } @@ -528,10 +532,10 @@ func (a *LoggingPubsubAPIService) GetLogGcpPubsub(ctx context.Context, serviceID // @return LoggingGooglePubsubResponse func (a *LoggingPubsubAPIService) GetLogGcpPubsubExecute(r APIGetLogGcpPubsubRequest) (*LoggingGooglePubsubResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGooglePubsubResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGooglePubsubResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPubsubAPIService.GetLogGcpPubsub") @@ -613,7 +617,6 @@ func (a *LoggingPubsubAPIService) GetLogGcpPubsubExecute(r APIGetLogGcpPubsubReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -632,13 +635,12 @@ func (a *LoggingPubsubAPIService) GetLogGcpPubsubExecute(r APIGetLogGcpPubsubReq // APIListLogGcpPubsubRequest represents a request for the resource. type APIListLogGcpPubsubRequest struct { - ctx context.Context + ctx context.Context APIService LoggingPubsubAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogGcpPubsubRequest) Execute() ([]LoggingGooglePubsubResponse, *http.Response, error) { return r.APIService.ListLogGcpPubsubExecute(r) @@ -657,9 +659,9 @@ List all of the Pub/Sub logging objects for a particular service and version. func (a *LoggingPubsubAPIService) ListLogGcpPubsub(ctx context.Context, serviceID string, versionID int32) APIListLogGcpPubsubRequest { return APIListLogGcpPubsubRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -667,10 +669,10 @@ func (a *LoggingPubsubAPIService) ListLogGcpPubsub(ctx context.Context, serviceI // @return []LoggingGooglePubsubResponse func (a *LoggingPubsubAPIService) ListLogGcpPubsubExecute(r APIListLogGcpPubsubRequest) ([]LoggingGooglePubsubResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingGooglePubsubResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingGooglePubsubResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPubsubAPIService.ListLogGcpPubsub") @@ -751,7 +753,6 @@ func (a *LoggingPubsubAPIService) ListLogGcpPubsubExecute(r APIListLogGcpPubsubR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -770,21 +771,21 @@ func (a *LoggingPubsubAPIService) ListLogGcpPubsubExecute(r APIListLogGcpPubsubR // APIUpdateLogGcpPubsubRequest represents a request for the resource. type APIUpdateLogGcpPubsubRequest struct { - ctx context.Context - APIService LoggingPubsubAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingPubsubAPI + serviceID string + versionID int32 loggingGooglePubsubName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - user *string - secretKey *string - accountName *string - topic *string - projectID *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + user *string + secretKey *string + accountName *string + topic *string + projectID *string } // Name The name for the real-time logging configuration. @@ -792,46 +793,55 @@ func (r *APIUpdateLogGcpPubsubRequest) Name(name string) *APIUpdateLogGcpPubsubR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogGcpPubsubRequest) Placement(placement string) *APIUpdateLogGcpPubsubRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogGcpPubsubRequest) ResponseCondition(responseCondition string) *APIUpdateLogGcpPubsubRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogGcpPubsubRequest) Format(format string) *APIUpdateLogGcpPubsubRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogGcpPubsubRequest) FormatVersion(formatVersion int32) *APIUpdateLogGcpPubsubRequest { r.formatVersion = &formatVersion return r } + // User Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogGcpPubsubRequest) User(user string) *APIUpdateLogGcpPubsubRequest { r.user = &user return r } + // SecretKey Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. func (r *APIUpdateLogGcpPubsubRequest) SecretKey(secretKey string) *APIUpdateLogGcpPubsubRequest { r.secretKey = &secretKey return r } + // AccountName The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. func (r *APIUpdateLogGcpPubsubRequest) AccountName(accountName string) *APIUpdateLogGcpPubsubRequest { r.accountName = &accountName return r } + // Topic The Google Cloud Pub/Sub topic to which logs will be published. Required. func (r *APIUpdateLogGcpPubsubRequest) Topic(topic string) *APIUpdateLogGcpPubsubRequest { r.topic = &topic return r } + // ProjectID Your Google Cloud Platform project ID. Required func (r *APIUpdateLogGcpPubsubRequest) ProjectID(projectID string) *APIUpdateLogGcpPubsubRequest { r.projectID = &projectID @@ -856,10 +866,10 @@ Update a Pub/Sub logging object for a particular service and version. */ func (a *LoggingPubsubAPIService) UpdateLogGcpPubsub(ctx context.Context, serviceID string, versionID int32, loggingGooglePubsubName string) APIUpdateLogGcpPubsubRequest { return APIUpdateLogGcpPubsubRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingGooglePubsubName: loggingGooglePubsubName, } } @@ -868,10 +878,10 @@ func (a *LoggingPubsubAPIService) UpdateLogGcpPubsub(ctx context.Context, servic // @return LoggingGooglePubsubResponse func (a *LoggingPubsubAPIService) UpdateLogGcpPubsubExecute(r APIUpdateLogGcpPubsubRequest) (*LoggingGooglePubsubResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingGooglePubsubResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingGooglePubsubResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingPubsubAPIService.UpdateLogGcpPubsub") @@ -983,7 +993,6 @@ func (a *LoggingPubsubAPIService) UpdateLogGcpPubsubExecute(r APIUpdateLogGcpPub return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_s3.go b/fastly/api_logging_s3.go index 49e1640..d32f2c9 100644 --- a/fastly/api_logging_s3.go +++ b/fastly/api_logging_s3.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingS3API interface { /* - CreateLogAwsS3 Create an AWS S3 log endpoint + CreateLogAwsS3 Create an AWS S3 log endpoint - Create a S3 for a particular service and version. + Create a S3 for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogAwsS3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogAwsS3Request */ CreateLogAwsS3(ctx context.Context, serviceID string, versionID int32) APICreateLogAwsS3Request @@ -48,15 +47,15 @@ type LoggingS3API interface { CreateLogAwsS3Execute(r APICreateLogAwsS3Request) (*LoggingS3Response, *http.Response, error) /* - DeleteLogAwsS3 Delete an AWS S3 log endpoint + DeleteLogAwsS3 Delete an AWS S3 log endpoint - Delete the S3 for a particular service and version. + Delete the S3 for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingS3Name The name for the real-time logging configuration. - @return APIDeleteLogAwsS3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingS3Name The name for the real-time logging configuration. + @return APIDeleteLogAwsS3Request */ DeleteLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIDeleteLogAwsS3Request @@ -65,15 +64,15 @@ type LoggingS3API interface { DeleteLogAwsS3Execute(r APIDeleteLogAwsS3Request) (*InlineResponse200, *http.Response, error) /* - GetLogAwsS3 Get an AWS S3 log endpoint + GetLogAwsS3 Get an AWS S3 log endpoint - Get the S3 for a particular service and version. + Get the S3 for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingS3Name The name for the real-time logging configuration. - @return APIGetLogAwsS3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingS3Name The name for the real-time logging configuration. + @return APIGetLogAwsS3Request */ GetLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIGetLogAwsS3Request @@ -82,14 +81,14 @@ type LoggingS3API interface { GetLogAwsS3Execute(r APIGetLogAwsS3Request) (*LoggingS3Response, *http.Response, error) /* - ListLogAwsS3 List AWS S3 log endpoints + ListLogAwsS3 List AWS S3 log endpoints - List all of the S3s for a particular service and version. + List all of the S3s for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogAwsS3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogAwsS3Request */ ListLogAwsS3(ctx context.Context, serviceID string, versionID int32) APIListLogAwsS3Request @@ -98,15 +97,15 @@ type LoggingS3API interface { ListLogAwsS3Execute(r APIListLogAwsS3Request) ([]LoggingS3Response, *http.Response, error) /* - UpdateLogAwsS3 Update an AWS S3 log endpoint + UpdateLogAwsS3 Update an AWS S3 log endpoint - Update the S3 for a particular service and version. + Update the S3 for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingS3Name The name for the real-time logging configuration. - @return APIUpdateLogAwsS3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingS3Name The name for the real-time logging configuration. + @return APIUpdateLogAwsS3Request */ UpdateLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIUpdateLogAwsS3Request @@ -120,32 +119,32 @@ type LoggingS3APIService service // APICreateLogAwsS3Request represents a request for the resource. type APICreateLogAwsS3Request struct { - ctx context.Context - APIService LoggingS3API - serviceID string - versionID int32 - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - acl *string - bucketName *string - domain *string - iamRole *string - path *string - publicKey *string - redundancy *string - secretKey *string + ctx context.Context + APIService LoggingS3API + serviceID string + versionID int32 + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + acl *string + bucketName *string + domain *string + iamRole *string + path *string + publicKey *string + redundancy *string + secretKey *string serverSideEncryptionKmsKeyID *string - serverSideEncryption *string - fileMaxBytes *int32 + serverSideEncryption *string + fileMaxBytes *int32 } // Name The name for the real-time logging configuration. @@ -153,106 +152,127 @@ func (r *APICreateLogAwsS3Request) Name(name string) *APICreateLogAwsS3Request { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogAwsS3Request) Placement(placement string) *APICreateLogAwsS3Request { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogAwsS3Request) ResponseCondition(responseCondition string) *APICreateLogAwsS3Request { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogAwsS3Request) Format(format string) *APICreateLogAwsS3Request { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogAwsS3Request) FormatVersion(formatVersion int32) *APICreateLogAwsS3Request { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogAwsS3Request) MessageType(messageType string) *APICreateLogAwsS3Request { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogAwsS3Request) TimestampFormat(timestampFormat string) *APICreateLogAwsS3Request { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogAwsS3Request) CompressionCodec(compressionCodec string) *APICreateLogAwsS3Request { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogAwsS3Request) Period(period int32) *APICreateLogAwsS3Request { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogAwsS3Request) GzipLevel(gzipLevel int32) *APICreateLogAwsS3Request { r.gzipLevel = &gzipLevel return r } + // AccessKey The access key for your S3 account. Not required if `iam_role` is provided. func (r *APICreateLogAwsS3Request) AccessKey(accessKey string) *APICreateLogAwsS3Request { r.accessKey = &accessKey return r } + // ACL The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. func (r *APICreateLogAwsS3Request) ACL(acl string) *APICreateLogAwsS3Request { r.acl = &acl return r } + // BucketName The bucket name for S3 account. func (r *APICreateLogAwsS3Request) BucketName(bucketName string) *APICreateLogAwsS3Request { r.bucketName = &bucketName return r } + // Domain The domain of the Amazon S3 endpoint. func (r *APICreateLogAwsS3Request) Domain(domain string) *APICreateLogAwsS3Request { r.domain = &domain return r } + // IamRole The Amazon Resource Name (ARN) for the IAM role granting Fastly access to S3. Not required if `access_key` and `secret_key` are provided. func (r *APICreateLogAwsS3Request) IamRole(iamRole string) *APICreateLogAwsS3Request { r.iamRole = &iamRole return r } + // Path The path to upload logs to. func (r *APICreateLogAwsS3Request) Path(path string) *APICreateLogAwsS3Request { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogAwsS3Request) PublicKey(publicKey string) *APICreateLogAwsS3Request { r.publicKey = &publicKey return r } + // Redundancy The S3 redundancy level. func (r *APICreateLogAwsS3Request) Redundancy(redundancy string) *APICreateLogAwsS3Request { r.redundancy = &redundancy return r } + // SecretKey The secret key for your S3 account. Not required if `iam_role` is provided. func (r *APICreateLogAwsS3Request) SecretKey(secretKey string) *APICreateLogAwsS3Request { r.secretKey = &secretKey return r } + // ServerSideEncryptionKmsKeyID Optional server-side KMS Key ID. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. func (r *APICreateLogAwsS3Request) ServerSideEncryptionKmsKeyID(serverSideEncryptionKmsKeyID string) *APICreateLogAwsS3Request { r.serverSideEncryptionKmsKeyID = &serverSideEncryptionKmsKeyID return r } + // ServerSideEncryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. func (r *APICreateLogAwsS3Request) ServerSideEncryption(serverSideEncryption string) *APICreateLogAwsS3Request { r.serverSideEncryption = &serverSideEncryption return r } + // FileMaxBytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) func (r *APICreateLogAwsS3Request) FileMaxBytes(fileMaxBytes int32) *APICreateLogAwsS3Request { r.fileMaxBytes = &fileMaxBytes @@ -277,9 +297,9 @@ Create a S3 for a particular service and version. func (a *LoggingS3APIService) CreateLogAwsS3(ctx context.Context, serviceID string, versionID int32) APICreateLogAwsS3Request { return APICreateLogAwsS3Request{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -287,10 +307,10 @@ func (a *LoggingS3APIService) CreateLogAwsS3(ctx context.Context, serviceID stri // @return LoggingS3Response func (a *LoggingS3APIService) CreateLogAwsS3Execute(r APICreateLogAwsS3Request) (*LoggingS3Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingS3Response + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingS3Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingS3APIService.CreateLogAwsS3") @@ -437,7 +457,6 @@ func (a *LoggingS3APIService) CreateLogAwsS3Execute(r APICreateLogAwsS3Request) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -456,14 +475,13 @@ func (a *LoggingS3APIService) CreateLogAwsS3Execute(r APICreateLogAwsS3Request) // APIDeleteLogAwsS3Request represents a request for the resource. type APIDeleteLogAwsS3Request struct { - ctx context.Context - APIService LoggingS3API - serviceID string - versionID int32 + ctx context.Context + APIService LoggingS3API + serviceID string + versionID int32 loggingS3Name string } - // Execute calls the API using the request data configured. func (r APIDeleteLogAwsS3Request) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogAwsS3Execute(r) @@ -482,10 +500,10 @@ Delete the S3 for a particular service and version. */ func (a *LoggingS3APIService) DeleteLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIDeleteLogAwsS3Request { return APIDeleteLogAwsS3Request{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingS3Name: loggingS3Name, } } @@ -494,10 +512,10 @@ func (a *LoggingS3APIService) DeleteLogAwsS3(ctx context.Context, serviceID stri // @return InlineResponse200 func (a *LoggingS3APIService) DeleteLogAwsS3Execute(r APIDeleteLogAwsS3Request) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingS3APIService.DeleteLogAwsS3") @@ -579,7 +597,6 @@ func (a *LoggingS3APIService) DeleteLogAwsS3Execute(r APIDeleteLogAwsS3Request) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -598,14 +615,13 @@ func (a *LoggingS3APIService) DeleteLogAwsS3Execute(r APIDeleteLogAwsS3Request) // APIGetLogAwsS3Request represents a request for the resource. type APIGetLogAwsS3Request struct { - ctx context.Context - APIService LoggingS3API - serviceID string - versionID int32 + ctx context.Context + APIService LoggingS3API + serviceID string + versionID int32 loggingS3Name string } - // Execute calls the API using the request data configured. func (r APIGetLogAwsS3Request) Execute() (*LoggingS3Response, *http.Response, error) { return r.APIService.GetLogAwsS3Execute(r) @@ -624,10 +640,10 @@ Get the S3 for a particular service and version. */ func (a *LoggingS3APIService) GetLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIGetLogAwsS3Request { return APIGetLogAwsS3Request{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingS3Name: loggingS3Name, } } @@ -636,10 +652,10 @@ func (a *LoggingS3APIService) GetLogAwsS3(ctx context.Context, serviceID string, // @return LoggingS3Response func (a *LoggingS3APIService) GetLogAwsS3Execute(r APIGetLogAwsS3Request) (*LoggingS3Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingS3Response + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingS3Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingS3APIService.GetLogAwsS3") @@ -721,7 +737,6 @@ func (a *LoggingS3APIService) GetLogAwsS3Execute(r APIGetLogAwsS3Request) (*Logg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -740,13 +755,12 @@ func (a *LoggingS3APIService) GetLogAwsS3Execute(r APIGetLogAwsS3Request) (*Logg // APIListLogAwsS3Request represents a request for the resource. type APIListLogAwsS3Request struct { - ctx context.Context + ctx context.Context APIService LoggingS3API - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogAwsS3Request) Execute() ([]LoggingS3Response, *http.Response, error) { return r.APIService.ListLogAwsS3Execute(r) @@ -765,9 +779,9 @@ List all of the S3s for a particular service and version. func (a *LoggingS3APIService) ListLogAwsS3(ctx context.Context, serviceID string, versionID int32) APIListLogAwsS3Request { return APIListLogAwsS3Request{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -775,10 +789,10 @@ func (a *LoggingS3APIService) ListLogAwsS3(ctx context.Context, serviceID string // @return []LoggingS3Response func (a *LoggingS3APIService) ListLogAwsS3Execute(r APIListLogAwsS3Request) ([]LoggingS3Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingS3Response + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingS3Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingS3APIService.ListLogAwsS3") @@ -859,7 +873,6 @@ func (a *LoggingS3APIService) ListLogAwsS3Execute(r APIListLogAwsS3Request) ([]L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -878,33 +891,33 @@ func (a *LoggingS3APIService) ListLogAwsS3Execute(r APIListLogAwsS3Request) ([]L // APIUpdateLogAwsS3Request represents a request for the resource. type APIUpdateLogAwsS3Request struct { - ctx context.Context - APIService LoggingS3API - serviceID string - versionID int32 - loggingS3Name string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - accessKey *string - acl *string - bucketName *string - domain *string - iamRole *string - path *string - publicKey *string - redundancy *string - secretKey *string + ctx context.Context + APIService LoggingS3API + serviceID string + versionID int32 + loggingS3Name string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + accessKey *string + acl *string + bucketName *string + domain *string + iamRole *string + path *string + publicKey *string + redundancy *string + secretKey *string serverSideEncryptionKmsKeyID *string - serverSideEncryption *string - fileMaxBytes *int32 + serverSideEncryption *string + fileMaxBytes *int32 } // Name The name for the real-time logging configuration. @@ -912,106 +925,127 @@ func (r *APIUpdateLogAwsS3Request) Name(name string) *APIUpdateLogAwsS3Request { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogAwsS3Request) Placement(placement string) *APIUpdateLogAwsS3Request { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogAwsS3Request) ResponseCondition(responseCondition string) *APIUpdateLogAwsS3Request { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogAwsS3Request) Format(format string) *APIUpdateLogAwsS3Request { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogAwsS3Request) FormatVersion(formatVersion int32) *APIUpdateLogAwsS3Request { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogAwsS3Request) MessageType(messageType string) *APIUpdateLogAwsS3Request { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogAwsS3Request) TimestampFormat(timestampFormat string) *APIUpdateLogAwsS3Request { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogAwsS3Request) CompressionCodec(compressionCodec string) *APIUpdateLogAwsS3Request { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogAwsS3Request) Period(period int32) *APIUpdateLogAwsS3Request { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogAwsS3Request) GzipLevel(gzipLevel int32) *APIUpdateLogAwsS3Request { r.gzipLevel = &gzipLevel return r } + // AccessKey The access key for your S3 account. Not required if `iam_role` is provided. func (r *APIUpdateLogAwsS3Request) AccessKey(accessKey string) *APIUpdateLogAwsS3Request { r.accessKey = &accessKey return r } + // ACL The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. func (r *APIUpdateLogAwsS3Request) ACL(acl string) *APIUpdateLogAwsS3Request { r.acl = &acl return r } + // BucketName The bucket name for S3 account. func (r *APIUpdateLogAwsS3Request) BucketName(bucketName string) *APIUpdateLogAwsS3Request { r.bucketName = &bucketName return r } + // Domain The domain of the Amazon S3 endpoint. func (r *APIUpdateLogAwsS3Request) Domain(domain string) *APIUpdateLogAwsS3Request { r.domain = &domain return r } + // IamRole The Amazon Resource Name (ARN) for the IAM role granting Fastly access to S3. Not required if `access_key` and `secret_key` are provided. func (r *APIUpdateLogAwsS3Request) IamRole(iamRole string) *APIUpdateLogAwsS3Request { r.iamRole = &iamRole return r } + // Path The path to upload logs to. func (r *APIUpdateLogAwsS3Request) Path(path string) *APIUpdateLogAwsS3Request { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogAwsS3Request) PublicKey(publicKey string) *APIUpdateLogAwsS3Request { r.publicKey = &publicKey return r } + // Redundancy The S3 redundancy level. func (r *APIUpdateLogAwsS3Request) Redundancy(redundancy string) *APIUpdateLogAwsS3Request { r.redundancy = &redundancy return r } + // SecretKey The secret key for your S3 account. Not required if `iam_role` is provided. func (r *APIUpdateLogAwsS3Request) SecretKey(secretKey string) *APIUpdateLogAwsS3Request { r.secretKey = &secretKey return r } + // ServerSideEncryptionKmsKeyID Optional server-side KMS Key ID. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. func (r *APIUpdateLogAwsS3Request) ServerSideEncryptionKmsKeyID(serverSideEncryptionKmsKeyID string) *APIUpdateLogAwsS3Request { r.serverSideEncryptionKmsKeyID = &serverSideEncryptionKmsKeyID return r } + // ServerSideEncryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. func (r *APIUpdateLogAwsS3Request) ServerSideEncryption(serverSideEncryption string) *APIUpdateLogAwsS3Request { r.serverSideEncryption = &serverSideEncryption return r } + // FileMaxBytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) func (r *APIUpdateLogAwsS3Request) FileMaxBytes(fileMaxBytes int32) *APIUpdateLogAwsS3Request { r.fileMaxBytes = &fileMaxBytes @@ -1036,10 +1070,10 @@ Update the S3 for a particular service and version. */ func (a *LoggingS3APIService) UpdateLogAwsS3(ctx context.Context, serviceID string, versionID int32, loggingS3Name string) APIUpdateLogAwsS3Request { return APIUpdateLogAwsS3Request{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingS3Name: loggingS3Name, } } @@ -1048,10 +1082,10 @@ func (a *LoggingS3APIService) UpdateLogAwsS3(ctx context.Context, serviceID stri // @return LoggingS3Response func (a *LoggingS3APIService) UpdateLogAwsS3Execute(r APIUpdateLogAwsS3Request) (*LoggingS3Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingS3Response + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingS3Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingS3APIService.UpdateLogAwsS3") @@ -1199,7 +1233,6 @@ func (a *LoggingS3APIService) UpdateLogAwsS3Execute(r APIUpdateLogAwsS3Request) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_scalyr.go b/fastly/api_logging_scalyr.go index 5317663..180640d 100644 --- a/fastly/api_logging_scalyr.go +++ b/fastly/api_logging_scalyr.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingScalyrAPI interface { /* - CreateLogScalyr Create a Scalyr log endpoint + CreateLogScalyr Create a Scalyr log endpoint - Create a Scalyr for a particular service and version. + Create a Scalyr for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogScalyrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogScalyrRequest */ CreateLogScalyr(ctx context.Context, serviceID string, versionID int32) APICreateLogScalyrRequest @@ -48,15 +47,15 @@ type LoggingScalyrAPI interface { CreateLogScalyrExecute(r APICreateLogScalyrRequest) (*LoggingScalyrResponse, *http.Response, error) /* - DeleteLogScalyr Delete the Scalyr log endpoint + DeleteLogScalyr Delete the Scalyr log endpoint - Delete the Scalyr for a particular service and version. + Delete the Scalyr for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingScalyrName The name for the real-time logging configuration. - @return APIDeleteLogScalyrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingScalyrName The name for the real-time logging configuration. + @return APIDeleteLogScalyrRequest */ DeleteLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIDeleteLogScalyrRequest @@ -65,15 +64,15 @@ type LoggingScalyrAPI interface { DeleteLogScalyrExecute(r APIDeleteLogScalyrRequest) (*InlineResponse200, *http.Response, error) /* - GetLogScalyr Get a Scalyr log endpoint + GetLogScalyr Get a Scalyr log endpoint - Get the Scalyr for a particular service and version. + Get the Scalyr for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingScalyrName The name for the real-time logging configuration. - @return APIGetLogScalyrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingScalyrName The name for the real-time logging configuration. + @return APIGetLogScalyrRequest */ GetLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIGetLogScalyrRequest @@ -82,14 +81,14 @@ type LoggingScalyrAPI interface { GetLogScalyrExecute(r APIGetLogScalyrRequest) (*LoggingScalyrResponse, *http.Response, error) /* - ListLogScalyr List Scalyr log endpoints + ListLogScalyr List Scalyr log endpoints - List all of the Scalyrs for a particular service and version. + List all of the Scalyrs for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogScalyrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogScalyrRequest */ ListLogScalyr(ctx context.Context, serviceID string, versionID int32) APIListLogScalyrRequest @@ -98,15 +97,15 @@ type LoggingScalyrAPI interface { ListLogScalyrExecute(r APIListLogScalyrRequest) ([]LoggingScalyrResponse, *http.Response, error) /* - UpdateLogScalyr Update the Scalyr log endpoint + UpdateLogScalyr Update the Scalyr log endpoint - Update the Scalyr for a particular service and version. + Update the Scalyr for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingScalyrName The name for the real-time logging configuration. - @return APIUpdateLogScalyrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingScalyrName The name for the real-time logging configuration. + @return APIUpdateLogScalyrRequest */ UpdateLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIUpdateLogScalyrRequest @@ -120,18 +119,18 @@ type LoggingScalyrAPIService service // APICreateLogScalyrRequest represents a request for the resource. type APICreateLogScalyrRequest struct { - ctx context.Context - APIService LoggingScalyrAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingScalyrAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - region *string - token *string - projectID *string + format *string + formatVersion *int32 + region *string + token *string + projectID *string } // Name The name for the real-time logging configuration. @@ -139,36 +138,43 @@ func (r *APICreateLogScalyrRequest) Name(name string) *APICreateLogScalyrRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogScalyrRequest) Placement(placement string) *APICreateLogScalyrRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogScalyrRequest) ResponseCondition(responseCondition string) *APICreateLogScalyrRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogScalyrRequest) Format(format string) *APICreateLogScalyrRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogScalyrRequest) FormatVersion(formatVersion int32) *APICreateLogScalyrRequest { r.formatVersion = &formatVersion return r } + // Region The region that log data will be sent to. func (r *APICreateLogScalyrRequest) Region(region string) *APICreateLogScalyrRequest { r.region = ®ion return r } + // Token The token to use for authentication. func (r *APICreateLogScalyrRequest) Token(token string) *APICreateLogScalyrRequest { r.token = &token return r } + // ProjectID The name of the logfile within Scalyr. func (r *APICreateLogScalyrRequest) ProjectID(projectID string) *APICreateLogScalyrRequest { r.projectID = &projectID @@ -193,9 +199,9 @@ Create a Scalyr for a particular service and version. func (a *LoggingScalyrAPIService) CreateLogScalyr(ctx context.Context, serviceID string, versionID int32) APICreateLogScalyrRequest { return APICreateLogScalyrRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -203,10 +209,10 @@ func (a *LoggingScalyrAPIService) CreateLogScalyr(ctx context.Context, serviceID // @return LoggingScalyrResponse func (a *LoggingScalyrAPIService) CreateLogScalyrExecute(r APICreateLogScalyrRequest) (*LoggingScalyrResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingScalyrResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingScalyrResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingScalyrAPIService.CreateLogScalyr") @@ -311,7 +317,6 @@ func (a *LoggingScalyrAPIService) CreateLogScalyrExecute(r APICreateLogScalyrReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -330,14 +335,13 @@ func (a *LoggingScalyrAPIService) CreateLogScalyrExecute(r APICreateLogScalyrReq // APIDeleteLogScalyrRequest represents a request for the resource. type APIDeleteLogScalyrRequest struct { - ctx context.Context - APIService LoggingScalyrAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingScalyrAPI + serviceID string + versionID int32 loggingScalyrName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogScalyrRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogScalyrExecute(r) @@ -356,10 +360,10 @@ Delete the Scalyr for a particular service and version. */ func (a *LoggingScalyrAPIService) DeleteLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIDeleteLogScalyrRequest { return APIDeleteLogScalyrRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingScalyrName: loggingScalyrName, } } @@ -368,10 +372,10 @@ func (a *LoggingScalyrAPIService) DeleteLogScalyr(ctx context.Context, serviceID // @return InlineResponse200 func (a *LoggingScalyrAPIService) DeleteLogScalyrExecute(r APIDeleteLogScalyrRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingScalyrAPIService.DeleteLogScalyr") @@ -453,7 +457,6 @@ func (a *LoggingScalyrAPIService) DeleteLogScalyrExecute(r APIDeleteLogScalyrReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -472,14 +475,13 @@ func (a *LoggingScalyrAPIService) DeleteLogScalyrExecute(r APIDeleteLogScalyrReq // APIGetLogScalyrRequest represents a request for the resource. type APIGetLogScalyrRequest struct { - ctx context.Context - APIService LoggingScalyrAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingScalyrAPI + serviceID string + versionID int32 loggingScalyrName string } - // Execute calls the API using the request data configured. func (r APIGetLogScalyrRequest) Execute() (*LoggingScalyrResponse, *http.Response, error) { return r.APIService.GetLogScalyrExecute(r) @@ -498,10 +500,10 @@ Get the Scalyr for a particular service and version. */ func (a *LoggingScalyrAPIService) GetLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIGetLogScalyrRequest { return APIGetLogScalyrRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingScalyrName: loggingScalyrName, } } @@ -510,10 +512,10 @@ func (a *LoggingScalyrAPIService) GetLogScalyr(ctx context.Context, serviceID st // @return LoggingScalyrResponse func (a *LoggingScalyrAPIService) GetLogScalyrExecute(r APIGetLogScalyrRequest) (*LoggingScalyrResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingScalyrResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingScalyrResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingScalyrAPIService.GetLogScalyr") @@ -595,7 +597,6 @@ func (a *LoggingScalyrAPIService) GetLogScalyrExecute(r APIGetLogScalyrRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -614,13 +615,12 @@ func (a *LoggingScalyrAPIService) GetLogScalyrExecute(r APIGetLogScalyrRequest) // APIListLogScalyrRequest represents a request for the resource. type APIListLogScalyrRequest struct { - ctx context.Context + ctx context.Context APIService LoggingScalyrAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogScalyrRequest) Execute() ([]LoggingScalyrResponse, *http.Response, error) { return r.APIService.ListLogScalyrExecute(r) @@ -639,9 +639,9 @@ List all of the Scalyrs for a particular service and version. func (a *LoggingScalyrAPIService) ListLogScalyr(ctx context.Context, serviceID string, versionID int32) APIListLogScalyrRequest { return APIListLogScalyrRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -649,10 +649,10 @@ func (a *LoggingScalyrAPIService) ListLogScalyr(ctx context.Context, serviceID s // @return []LoggingScalyrResponse func (a *LoggingScalyrAPIService) ListLogScalyrExecute(r APIListLogScalyrRequest) ([]LoggingScalyrResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingScalyrResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingScalyrResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingScalyrAPIService.ListLogScalyr") @@ -733,7 +733,6 @@ func (a *LoggingScalyrAPIService) ListLogScalyrExecute(r APIListLogScalyrRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -752,19 +751,19 @@ func (a *LoggingScalyrAPIService) ListLogScalyrExecute(r APIListLogScalyrRequest // APIUpdateLogScalyrRequest represents a request for the resource. type APIUpdateLogScalyrRequest struct { - ctx context.Context - APIService LoggingScalyrAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingScalyrAPI + serviceID string + versionID int32 loggingScalyrName string - name *string - placement *string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - region *string - token *string - projectID *string + format *string + formatVersion *int32 + region *string + token *string + projectID *string } // Name The name for the real-time logging configuration. @@ -772,36 +771,43 @@ func (r *APIUpdateLogScalyrRequest) Name(name string) *APIUpdateLogScalyrRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogScalyrRequest) Placement(placement string) *APIUpdateLogScalyrRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogScalyrRequest) ResponseCondition(responseCondition string) *APIUpdateLogScalyrRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogScalyrRequest) Format(format string) *APIUpdateLogScalyrRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogScalyrRequest) FormatVersion(formatVersion int32) *APIUpdateLogScalyrRequest { r.formatVersion = &formatVersion return r } + // Region The region that log data will be sent to. func (r *APIUpdateLogScalyrRequest) Region(region string) *APIUpdateLogScalyrRequest { r.region = ®ion return r } + // Token The token to use for authentication. func (r *APIUpdateLogScalyrRequest) Token(token string) *APIUpdateLogScalyrRequest { r.token = &token return r } + // ProjectID The name of the logfile within Scalyr. func (r *APIUpdateLogScalyrRequest) ProjectID(projectID string) *APIUpdateLogScalyrRequest { r.projectID = &projectID @@ -826,10 +832,10 @@ Update the Scalyr for a particular service and version. */ func (a *LoggingScalyrAPIService) UpdateLogScalyr(ctx context.Context, serviceID string, versionID int32, loggingScalyrName string) APIUpdateLogScalyrRequest { return APIUpdateLogScalyrRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingScalyrName: loggingScalyrName, } } @@ -838,10 +844,10 @@ func (a *LoggingScalyrAPIService) UpdateLogScalyr(ctx context.Context, serviceID // @return LoggingScalyrResponse func (a *LoggingScalyrAPIService) UpdateLogScalyrExecute(r APIUpdateLogScalyrRequest) (*LoggingScalyrResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingScalyrResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingScalyrResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingScalyrAPIService.UpdateLogScalyr") @@ -947,7 +953,6 @@ func (a *LoggingScalyrAPIService) UpdateLogScalyrExecute(r APIUpdateLogScalyrReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_sftp.go b/fastly/api_logging_sftp.go index 1f235b0..19e9845 100644 --- a/fastly/api_logging_sftp.go +++ b/fastly/api_logging_sftp.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingSftpAPI interface { /* - CreateLogSftp Create an SFTP log endpoint + CreateLogSftp Create an SFTP log endpoint - Create a SFTP for a particular service and version. + Create a SFTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogSftpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogSftpRequest */ CreateLogSftp(ctx context.Context, serviceID string, versionID int32) APICreateLogSftpRequest @@ -48,15 +47,15 @@ type LoggingSftpAPI interface { CreateLogSftpExecute(r APICreateLogSftpRequest) (*LoggingSftpResponse, *http.Response, error) /* - DeleteLogSftp Delete an SFTP log endpoint + DeleteLogSftp Delete an SFTP log endpoint - Delete the SFTP for a particular service and version. + Delete the SFTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSftpName The name for the real-time logging configuration. - @return APIDeleteLogSftpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSftpName The name for the real-time logging configuration. + @return APIDeleteLogSftpRequest */ DeleteLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIDeleteLogSftpRequest @@ -65,15 +64,15 @@ type LoggingSftpAPI interface { DeleteLogSftpExecute(r APIDeleteLogSftpRequest) (*InlineResponse200, *http.Response, error) /* - GetLogSftp Get an SFTP log endpoint + GetLogSftp Get an SFTP log endpoint - Get the SFTP for a particular service and version. + Get the SFTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSftpName The name for the real-time logging configuration. - @return APIGetLogSftpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSftpName The name for the real-time logging configuration. + @return APIGetLogSftpRequest */ GetLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIGetLogSftpRequest @@ -82,14 +81,14 @@ type LoggingSftpAPI interface { GetLogSftpExecute(r APIGetLogSftpRequest) (*LoggingSftpResponse, *http.Response, error) /* - ListLogSftp List SFTP log endpoints + ListLogSftp List SFTP log endpoints - List all of the SFTPs for a particular service and version. + List all of the SFTPs for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogSftpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogSftpRequest */ ListLogSftp(ctx context.Context, serviceID string, versionID int32) APIListLogSftpRequest @@ -98,15 +97,15 @@ type LoggingSftpAPI interface { ListLogSftpExecute(r APIListLogSftpRequest) ([]LoggingSftpResponse, *http.Response, error) /* - UpdateLogSftp Update an SFTP log endpoint + UpdateLogSftp Update an SFTP log endpoint - Update the SFTP for a particular service and version. + Update the SFTP for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSftpName The name for the real-time logging configuration. - @return APIUpdateLogSftpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSftpName The name for the real-time logging configuration. + @return APIUpdateLogSftpRequest */ UpdateLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIUpdateLogSftpRequest @@ -120,28 +119,28 @@ type LoggingSftpAPIService service // APICreateLogSftpRequest represents a request for the resource. type APICreateLogSftpRequest struct { - ctx context.Context - APIService LoggingSftpAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingSftpAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - address *string - port *int32 - password *string - path *string - publicKey *string - secretKey *string - sshKnownHosts *string - user *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + address *string + port *int32 + password *string + path *string + publicKey *string + secretKey *string + sshKnownHosts *string + user *string } // Name The name for the real-time logging configuration. @@ -149,86 +148,103 @@ func (r *APICreateLogSftpRequest) Name(name string) *APICreateLogSftpRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogSftpRequest) Placement(placement string) *APICreateLogSftpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogSftpRequest) ResponseCondition(responseCondition string) *APICreateLogSftpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogSftpRequest) Format(format string) *APICreateLogSftpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogSftpRequest) FormatVersion(formatVersion int32) *APICreateLogSftpRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APICreateLogSftpRequest) MessageType(messageType string) *APICreateLogSftpRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APICreateLogSftpRequest) TimestampFormat(timestampFormat string) *APICreateLogSftpRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogSftpRequest) CompressionCodec(compressionCodec string) *APICreateLogSftpRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APICreateLogSftpRequest) Period(period int32) *APICreateLogSftpRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APICreateLogSftpRequest) GzipLevel(gzipLevel int32) *APICreateLogSftpRequest { r.gzipLevel = &gzipLevel return r } + // Address A hostname or IPv4 address. func (r *APICreateLogSftpRequest) Address(address string) *APICreateLogSftpRequest { r.address = &address return r } + // Port The port number. func (r *APICreateLogSftpRequest) Port(port int32) *APICreateLogSftpRequest { r.port = &port return r } + // Password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. func (r *APICreateLogSftpRequest) Password(password string) *APICreateLogSftpRequest { r.password = &password return r } + // Path The path to upload logs to. func (r *APICreateLogSftpRequest) Path(path string) *APICreateLogSftpRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APICreateLogSftpRequest) PublicKey(publicKey string) *APICreateLogSftpRequest { r.publicKey = &publicKey return r } + // SecretKey The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. func (r *APICreateLogSftpRequest) SecretKey(secretKey string) *APICreateLogSftpRequest { r.secretKey = &secretKey return r } + // SSHKnownHosts A list of host keys for all hosts we can connect to over SFTP. func (r *APICreateLogSftpRequest) SSHKnownHosts(sshKnownHosts string) *APICreateLogSftpRequest { r.sshKnownHosts = &sshKnownHosts return r } + // User The username for the server. func (r *APICreateLogSftpRequest) User(user string) *APICreateLogSftpRequest { r.user = &user @@ -253,9 +269,9 @@ Create a SFTP for a particular service and version. func (a *LoggingSftpAPIService) CreateLogSftp(ctx context.Context, serviceID string, versionID int32) APICreateLogSftpRequest { return APICreateLogSftpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -263,10 +279,10 @@ func (a *LoggingSftpAPIService) CreateLogSftp(ctx context.Context, serviceID str // @return LoggingSftpResponse func (a *LoggingSftpAPIService) CreateLogSftpExecute(r APICreateLogSftpRequest) (*LoggingSftpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSftpResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSftpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSftpAPIService.CreateLogSftp") @@ -401,7 +417,6 @@ func (a *LoggingSftpAPIService) CreateLogSftpExecute(r APICreateLogSftpRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -420,14 +435,13 @@ func (a *LoggingSftpAPIService) CreateLogSftpExecute(r APICreateLogSftpRequest) // APIDeleteLogSftpRequest represents a request for the resource. type APIDeleteLogSftpRequest struct { - ctx context.Context - APIService LoggingSftpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSftpAPI + serviceID string + versionID int32 loggingSftpName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogSftpRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogSftpExecute(r) @@ -446,10 +460,10 @@ Delete the SFTP for a particular service and version. */ func (a *LoggingSftpAPIService) DeleteLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIDeleteLogSftpRequest { return APIDeleteLogSftpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSftpName: loggingSftpName, } } @@ -458,10 +472,10 @@ func (a *LoggingSftpAPIService) DeleteLogSftp(ctx context.Context, serviceID str // @return InlineResponse200 func (a *LoggingSftpAPIService) DeleteLogSftpExecute(r APIDeleteLogSftpRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSftpAPIService.DeleteLogSftp") @@ -543,7 +557,6 @@ func (a *LoggingSftpAPIService) DeleteLogSftpExecute(r APIDeleteLogSftpRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -562,14 +575,13 @@ func (a *LoggingSftpAPIService) DeleteLogSftpExecute(r APIDeleteLogSftpRequest) // APIGetLogSftpRequest represents a request for the resource. type APIGetLogSftpRequest struct { - ctx context.Context - APIService LoggingSftpAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSftpAPI + serviceID string + versionID int32 loggingSftpName string } - // Execute calls the API using the request data configured. func (r APIGetLogSftpRequest) Execute() (*LoggingSftpResponse, *http.Response, error) { return r.APIService.GetLogSftpExecute(r) @@ -588,10 +600,10 @@ Get the SFTP for a particular service and version. */ func (a *LoggingSftpAPIService) GetLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIGetLogSftpRequest { return APIGetLogSftpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSftpName: loggingSftpName, } } @@ -600,10 +612,10 @@ func (a *LoggingSftpAPIService) GetLogSftp(ctx context.Context, serviceID string // @return LoggingSftpResponse func (a *LoggingSftpAPIService) GetLogSftpExecute(r APIGetLogSftpRequest) (*LoggingSftpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSftpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSftpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSftpAPIService.GetLogSftp") @@ -685,7 +697,6 @@ func (a *LoggingSftpAPIService) GetLogSftpExecute(r APIGetLogSftpRequest) (*Logg return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -704,13 +715,12 @@ func (a *LoggingSftpAPIService) GetLogSftpExecute(r APIGetLogSftpRequest) (*Logg // APIListLogSftpRequest represents a request for the resource. type APIListLogSftpRequest struct { - ctx context.Context + ctx context.Context APIService LoggingSftpAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogSftpRequest) Execute() ([]LoggingSftpResponse, *http.Response, error) { return r.APIService.ListLogSftpExecute(r) @@ -729,9 +739,9 @@ List all of the SFTPs for a particular service and version. func (a *LoggingSftpAPIService) ListLogSftp(ctx context.Context, serviceID string, versionID int32) APIListLogSftpRequest { return APIListLogSftpRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -739,10 +749,10 @@ func (a *LoggingSftpAPIService) ListLogSftp(ctx context.Context, serviceID strin // @return []LoggingSftpResponse func (a *LoggingSftpAPIService) ListLogSftpExecute(r APIListLogSftpRequest) ([]LoggingSftpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingSftpResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingSftpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSftpAPIService.ListLogSftp") @@ -823,7 +833,6 @@ func (a *LoggingSftpAPIService) ListLogSftpExecute(r APIListLogSftpRequest) ([]L return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -842,29 +851,29 @@ func (a *LoggingSftpAPIService) ListLogSftpExecute(r APIListLogSftpRequest) ([]L // APIUpdateLogSftpRequest represents a request for the resource. type APIUpdateLogSftpRequest struct { - ctx context.Context - APIService LoggingSftpAPI - serviceID string - versionID int32 - loggingSftpName string - name *string - placement *string + ctx context.Context + APIService LoggingSftpAPI + serviceID string + versionID int32 + loggingSftpName string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *string - timestampFormat *string - compressionCodec *string - period *int32 - gzipLevel *int32 - address *string - port *int32 - password *string - path *string - publicKey *string - secretKey *string - sshKnownHosts *string - user *string + format *string + formatVersion *int32 + messageType *string + timestampFormat *string + compressionCodec *string + period *int32 + gzipLevel *int32 + address *string + port *int32 + password *string + path *string + publicKey *string + secretKey *string + sshKnownHosts *string + user *string } // Name The name for the real-time logging configuration. @@ -872,86 +881,103 @@ func (r *APIUpdateLogSftpRequest) Name(name string) *APIUpdateLogSftpRequest { r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogSftpRequest) Placement(placement string) *APIUpdateLogSftpRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogSftpRequest) ResponseCondition(responseCondition string) *APIUpdateLogSftpRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogSftpRequest) Format(format string) *APIUpdateLogSftpRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogSftpRequest) FormatVersion(formatVersion int32) *APIUpdateLogSftpRequest { r.formatVersion = &formatVersion return r } + // MessageType How the message should be formatted. func (r *APIUpdateLogSftpRequest) MessageType(messageType string) *APIUpdateLogSftpRequest { r.messageType = &messageType return r } + // TimestampFormat A timestamp format func (r *APIUpdateLogSftpRequest) TimestampFormat(timestampFormat string) *APIUpdateLogSftpRequest { r.timestampFormat = ×tampFormat return r } + // CompressionCodec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogSftpRequest) CompressionCodec(compressionCodec string) *APIUpdateLogSftpRequest { r.compressionCodec = &compressionCodec return r } + // Period How frequently log files are finalized so they can be available for reading (in seconds). func (r *APIUpdateLogSftpRequest) Period(period int32) *APIUpdateLogSftpRequest { r.period = &period return r } + // GzipLevel The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. func (r *APIUpdateLogSftpRequest) GzipLevel(gzipLevel int32) *APIUpdateLogSftpRequest { r.gzipLevel = &gzipLevel return r } + // Address A hostname or IPv4 address. func (r *APIUpdateLogSftpRequest) Address(address string) *APIUpdateLogSftpRequest { r.address = &address return r } + // Port The port number. func (r *APIUpdateLogSftpRequest) Port(port int32) *APIUpdateLogSftpRequest { r.port = &port return r } + // Password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. func (r *APIUpdateLogSftpRequest) Password(password string) *APIUpdateLogSftpRequest { r.password = &password return r } + // Path The path to upload logs to. func (r *APIUpdateLogSftpRequest) Path(path string) *APIUpdateLogSftpRequest { r.path = &path return r } + // PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. func (r *APIUpdateLogSftpRequest) PublicKey(publicKey string) *APIUpdateLogSftpRequest { r.publicKey = &publicKey return r } + // SecretKey The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. func (r *APIUpdateLogSftpRequest) SecretKey(secretKey string) *APIUpdateLogSftpRequest { r.secretKey = &secretKey return r } + // SSHKnownHosts A list of host keys for all hosts we can connect to over SFTP. func (r *APIUpdateLogSftpRequest) SSHKnownHosts(sshKnownHosts string) *APIUpdateLogSftpRequest { r.sshKnownHosts = &sshKnownHosts return r } + // User The username for the server. func (r *APIUpdateLogSftpRequest) User(user string) *APIUpdateLogSftpRequest { r.user = &user @@ -976,10 +1002,10 @@ Update the SFTP for a particular service and version. */ func (a *LoggingSftpAPIService) UpdateLogSftp(ctx context.Context, serviceID string, versionID int32, loggingSftpName string) APIUpdateLogSftpRequest { return APIUpdateLogSftpRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSftpName: loggingSftpName, } } @@ -988,10 +1014,10 @@ func (a *LoggingSftpAPIService) UpdateLogSftp(ctx context.Context, serviceID str // @return LoggingSftpResponse func (a *LoggingSftpAPIService) UpdateLogSftpExecute(r APIUpdateLogSftpRequest) (*LoggingSftpResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSftpResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSftpResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSftpAPIService.UpdateLogSftp") @@ -1127,7 +1153,6 @@ func (a *LoggingSftpAPIService) UpdateLogSftpExecute(r APIUpdateLogSftpRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_splunk.go b/fastly/api_logging_splunk.go index 1fdb296..916d23a 100644 --- a/fastly/api_logging_splunk.go +++ b/fastly/api_logging_splunk.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingSplunkAPI interface { /* - CreateLogSplunk Create a Splunk log endpoint + CreateLogSplunk Create a Splunk log endpoint - Create a Splunk logging object for a particular service and version. + Create a Splunk logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogSplunkRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogSplunkRequest */ CreateLogSplunk(ctx context.Context, serviceID string, versionID int32) APICreateLogSplunkRequest @@ -48,15 +47,15 @@ type LoggingSplunkAPI interface { CreateLogSplunkExecute(r APICreateLogSplunkRequest) (*LoggingSplunkResponse, *http.Response, error) /* - DeleteLogSplunk Delete a Splunk log endpoint + DeleteLogSplunk Delete a Splunk log endpoint - Delete the Splunk logging object for a particular service and version. + Delete the Splunk logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSplunkName The name for the real-time logging configuration. - @return APIDeleteLogSplunkRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSplunkName The name for the real-time logging configuration. + @return APIDeleteLogSplunkRequest */ DeleteLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIDeleteLogSplunkRequest @@ -65,15 +64,15 @@ type LoggingSplunkAPI interface { DeleteLogSplunkExecute(r APIDeleteLogSplunkRequest) (*InlineResponse200, *http.Response, error) /* - GetLogSplunk Get a Splunk log endpoint + GetLogSplunk Get a Splunk log endpoint - Get the details for a Splunk logging object for a particular service and version. + Get the details for a Splunk logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSplunkName The name for the real-time logging configuration. - @return APIGetLogSplunkRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSplunkName The name for the real-time logging configuration. + @return APIGetLogSplunkRequest */ GetLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIGetLogSplunkRequest @@ -82,14 +81,14 @@ type LoggingSplunkAPI interface { GetLogSplunkExecute(r APIGetLogSplunkRequest) (*LoggingSplunkResponse, *http.Response, error) /* - ListLogSplunk List Splunk log endpoints + ListLogSplunk List Splunk log endpoints - List all of the Splunk logging objects for a particular service and version. + List all of the Splunk logging objects for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogSplunkRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogSplunkRequest */ ListLogSplunk(ctx context.Context, serviceID string, versionID int32) APIListLogSplunkRequest @@ -98,15 +97,15 @@ type LoggingSplunkAPI interface { ListLogSplunkExecute(r APIListLogSplunkRequest) ([]LoggingSplunkResponse, *http.Response, error) /* - UpdateLogSplunk Update a Splunk log endpoint + UpdateLogSplunk Update a Splunk log endpoint - Update the Splunk logging object for a particular service and version. + Update the Splunk logging object for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSplunkName The name for the real-time logging configuration. - @return APIUpdateLogSplunkRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSplunkName The name for the real-time logging configuration. + @return APIUpdateLogSplunkRequest */ UpdateLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIUpdateLogSplunkRequest @@ -120,24 +119,24 @@ type LoggingSplunkAPIService service // APICreateLogSplunkRequest represents a request for the resource. type APICreateLogSplunkRequest struct { - ctx context.Context - APIService LoggingSplunkAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingSplunkAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string requestMaxEntries *int32 - requestMaxBytes *int32 - url *string - token *string - useTLS *LoggingUseTLSString + requestMaxBytes *int32 + url *string + token *string + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -145,66 +144,79 @@ func (r *APICreateLogSplunkRequest) Name(name string) *APICreateLogSplunkRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogSplunkRequest) Placement(placement string) *APICreateLogSplunkRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogSplunkRequest) ResponseCondition(responseCondition string) *APICreateLogSplunkRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogSplunkRequest) Format(format string) *APICreateLogSplunkRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogSplunkRequest) FormatVersion(formatVersion int32) *APICreateLogSplunkRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APICreateLogSplunkRequest) TLSCaCert(tlsCaCert string) *APICreateLogSplunkRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateLogSplunkRequest) TLSClientCert(tlsClientCert string) *APICreateLogSplunkRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateLogSplunkRequest) TLSClientKey(tlsClientKey string) *APICreateLogSplunkRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APICreateLogSplunkRequest) TLSHostname(tlsHostname string) *APICreateLogSplunkRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` for unbounded. func (r *APICreateLogSplunkRequest) RequestMaxEntries(requestMaxEntries int32) *APICreateLogSplunkRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. func (r *APICreateLogSplunkRequest) RequestMaxBytes(requestMaxBytes int32) *APICreateLogSplunkRequest { r.requestMaxBytes = &requestMaxBytes return r } + // URL The URL to post logs to. func (r *APICreateLogSplunkRequest) URL(url string) *APICreateLogSplunkRequest { r.url = &url return r } + // Token A Splunk token for use in posting logs over HTTP to your collector. func (r *APICreateLogSplunkRequest) Token(token string) *APICreateLogSplunkRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APICreateLogSplunkRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogSplunkRequest { r.useTLS = &useTLS @@ -229,9 +241,9 @@ Create a Splunk logging object for a particular service and version. func (a *LoggingSplunkAPIService) CreateLogSplunk(ctx context.Context, serviceID string, versionID int32) APICreateLogSplunkRequest { return APICreateLogSplunkRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -239,10 +251,10 @@ func (a *LoggingSplunkAPIService) CreateLogSplunk(ctx context.Context, serviceID // @return LoggingSplunkResponse func (a *LoggingSplunkAPIService) CreateLogSplunkExecute(r APICreateLogSplunkRequest) (*LoggingSplunkResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSplunkResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSplunkResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSplunkAPIService.CreateLogSplunk") @@ -365,7 +377,6 @@ func (a *LoggingSplunkAPIService) CreateLogSplunkExecute(r APICreateLogSplunkReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -384,14 +395,13 @@ func (a *LoggingSplunkAPIService) CreateLogSplunkExecute(r APICreateLogSplunkReq // APIDeleteLogSplunkRequest represents a request for the resource. type APIDeleteLogSplunkRequest struct { - ctx context.Context - APIService LoggingSplunkAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSplunkAPI + serviceID string + versionID int32 loggingSplunkName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogSplunkRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogSplunkExecute(r) @@ -410,10 +420,10 @@ Delete the Splunk logging object for a particular service and version. */ func (a *LoggingSplunkAPIService) DeleteLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIDeleteLogSplunkRequest { return APIDeleteLogSplunkRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSplunkName: loggingSplunkName, } } @@ -422,10 +432,10 @@ func (a *LoggingSplunkAPIService) DeleteLogSplunk(ctx context.Context, serviceID // @return InlineResponse200 func (a *LoggingSplunkAPIService) DeleteLogSplunkExecute(r APIDeleteLogSplunkRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSplunkAPIService.DeleteLogSplunk") @@ -507,7 +517,6 @@ func (a *LoggingSplunkAPIService) DeleteLogSplunkExecute(r APIDeleteLogSplunkReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -526,14 +535,13 @@ func (a *LoggingSplunkAPIService) DeleteLogSplunkExecute(r APIDeleteLogSplunkReq // APIGetLogSplunkRequest represents a request for the resource. type APIGetLogSplunkRequest struct { - ctx context.Context - APIService LoggingSplunkAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSplunkAPI + serviceID string + versionID int32 loggingSplunkName string } - // Execute calls the API using the request data configured. func (r APIGetLogSplunkRequest) Execute() (*LoggingSplunkResponse, *http.Response, error) { return r.APIService.GetLogSplunkExecute(r) @@ -552,10 +560,10 @@ Get the details for a Splunk logging object for a particular service and version */ func (a *LoggingSplunkAPIService) GetLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIGetLogSplunkRequest { return APIGetLogSplunkRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSplunkName: loggingSplunkName, } } @@ -564,10 +572,10 @@ func (a *LoggingSplunkAPIService) GetLogSplunk(ctx context.Context, serviceID st // @return LoggingSplunkResponse func (a *LoggingSplunkAPIService) GetLogSplunkExecute(r APIGetLogSplunkRequest) (*LoggingSplunkResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSplunkResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSplunkResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSplunkAPIService.GetLogSplunk") @@ -649,7 +657,6 @@ func (a *LoggingSplunkAPIService) GetLogSplunkExecute(r APIGetLogSplunkRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -668,13 +675,12 @@ func (a *LoggingSplunkAPIService) GetLogSplunkExecute(r APIGetLogSplunkRequest) // APIListLogSplunkRequest represents a request for the resource. type APIListLogSplunkRequest struct { - ctx context.Context + ctx context.Context APIService LoggingSplunkAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogSplunkRequest) Execute() ([]LoggingSplunkResponse, *http.Response, error) { return r.APIService.ListLogSplunkExecute(r) @@ -693,9 +699,9 @@ List all of the Splunk logging objects for a particular service and version. func (a *LoggingSplunkAPIService) ListLogSplunk(ctx context.Context, serviceID string, versionID int32) APIListLogSplunkRequest { return APIListLogSplunkRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -703,10 +709,10 @@ func (a *LoggingSplunkAPIService) ListLogSplunk(ctx context.Context, serviceID s // @return []LoggingSplunkResponse func (a *LoggingSplunkAPIService) ListLogSplunkExecute(r APIListLogSplunkRequest) ([]LoggingSplunkResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingSplunkResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingSplunkResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSplunkAPIService.ListLogSplunk") @@ -787,7 +793,6 @@ func (a *LoggingSplunkAPIService) ListLogSplunkExecute(r APIListLogSplunkRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -806,25 +811,25 @@ func (a *LoggingSplunkAPIService) ListLogSplunkExecute(r APIListLogSplunkRequest // APIUpdateLogSplunkRequest represents a request for the resource. type APIUpdateLogSplunkRequest struct { - ctx context.Context - APIService LoggingSplunkAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSplunkAPI + serviceID string + versionID int32 loggingSplunkName string - name *string - placement *string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string requestMaxEntries *int32 - requestMaxBytes *int32 - url *string - token *string - useTLS *LoggingUseTLSString + requestMaxBytes *int32 + url *string + token *string + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -832,66 +837,79 @@ func (r *APIUpdateLogSplunkRequest) Name(name string) *APIUpdateLogSplunkRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogSplunkRequest) Placement(placement string) *APIUpdateLogSplunkRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogSplunkRequest) ResponseCondition(responseCondition string) *APIUpdateLogSplunkRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogSplunkRequest) Format(format string) *APIUpdateLogSplunkRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogSplunkRequest) FormatVersion(formatVersion int32) *APIUpdateLogSplunkRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APIUpdateLogSplunkRequest) TLSCaCert(tlsCaCert string) *APIUpdateLogSplunkRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogSplunkRequest) TLSClientCert(tlsClientCert string) *APIUpdateLogSplunkRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogSplunkRequest) TLSClientKey(tlsClientKey string) *APIUpdateLogSplunkRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APIUpdateLogSplunkRequest) TLSHostname(tlsHostname string) *APIUpdateLogSplunkRequest { r.tlsHostname = &tlsHostname return r } + // RequestMaxEntries The maximum number of logs sent in one request. Defaults `0` for unbounded. func (r *APIUpdateLogSplunkRequest) RequestMaxEntries(requestMaxEntries int32) *APIUpdateLogSplunkRequest { r.requestMaxEntries = &requestMaxEntries return r } + // RequestMaxBytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. func (r *APIUpdateLogSplunkRequest) RequestMaxBytes(requestMaxBytes int32) *APIUpdateLogSplunkRequest { r.requestMaxBytes = &requestMaxBytes return r } + // URL The URL to post logs to. func (r *APIUpdateLogSplunkRequest) URL(url string) *APIUpdateLogSplunkRequest { r.url = &url return r } + // Token A Splunk token for use in posting logs over HTTP to your collector. func (r *APIUpdateLogSplunkRequest) Token(token string) *APIUpdateLogSplunkRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APIUpdateLogSplunkRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogSplunkRequest { r.useTLS = &useTLS @@ -916,10 +934,10 @@ Update the Splunk logging object for a particular service and version. */ func (a *LoggingSplunkAPIService) UpdateLogSplunk(ctx context.Context, serviceID string, versionID int32, loggingSplunkName string) APIUpdateLogSplunkRequest { return APIUpdateLogSplunkRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSplunkName: loggingSplunkName, } } @@ -928,10 +946,10 @@ func (a *LoggingSplunkAPIService) UpdateLogSplunk(ctx context.Context, serviceID // @return LoggingSplunkResponse func (a *LoggingSplunkAPIService) UpdateLogSplunkExecute(r APIUpdateLogSplunkRequest) (*LoggingSplunkResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSplunkResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSplunkResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSplunkAPIService.UpdateLogSplunk") @@ -1055,7 +1073,6 @@ func (a *LoggingSplunkAPIService) UpdateLogSplunkExecute(r APIUpdateLogSplunkReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_sumologic.go b/fastly/api_logging_sumologic.go index d1b9a53..9e0ef47 100644 --- a/fastly/api_logging_sumologic.go +++ b/fastly/api_logging_sumologic.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingSumologicAPI interface { /* - CreateLogSumologic Create a Sumologic log endpoint + CreateLogSumologic Create a Sumologic log endpoint - Create a Sumologic for a particular service and version. + Create a Sumologic for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogSumologicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogSumologicRequest */ CreateLogSumologic(ctx context.Context, serviceID string, versionID int32) APICreateLogSumologicRequest @@ -48,15 +47,15 @@ type LoggingSumologicAPI interface { CreateLogSumologicExecute(r APICreateLogSumologicRequest) (*LoggingSumologicResponse, *http.Response, error) /* - DeleteLogSumologic Delete a Sumologic log endpoint + DeleteLogSumologic Delete a Sumologic log endpoint - Delete the Sumologic for a particular service and version. + Delete the Sumologic for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSumologicName The name for the real-time logging configuration. - @return APIDeleteLogSumologicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSumologicName The name for the real-time logging configuration. + @return APIDeleteLogSumologicRequest */ DeleteLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIDeleteLogSumologicRequest @@ -65,15 +64,15 @@ type LoggingSumologicAPI interface { DeleteLogSumologicExecute(r APIDeleteLogSumologicRequest) (*InlineResponse200, *http.Response, error) /* - GetLogSumologic Get a Sumologic log endpoint + GetLogSumologic Get a Sumologic log endpoint - Get the Sumologic for a particular service and version. + Get the Sumologic for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSumologicName The name for the real-time logging configuration. - @return APIGetLogSumologicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSumologicName The name for the real-time logging configuration. + @return APIGetLogSumologicRequest */ GetLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIGetLogSumologicRequest @@ -82,14 +81,14 @@ type LoggingSumologicAPI interface { GetLogSumologicExecute(r APIGetLogSumologicRequest) (*LoggingSumologicResponse, *http.Response, error) /* - ListLogSumologic List Sumologic log endpoints + ListLogSumologic List Sumologic log endpoints - List all of the Sumologics for a particular service and version. + List all of the Sumologics for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogSumologicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogSumologicRequest */ ListLogSumologic(ctx context.Context, serviceID string, versionID int32) APIListLogSumologicRequest @@ -98,15 +97,15 @@ type LoggingSumologicAPI interface { ListLogSumologicExecute(r APIListLogSumologicRequest) ([]LoggingSumologicResponse, *http.Response, error) /* - UpdateLogSumologic Update a Sumologic log endpoint + UpdateLogSumologic Update a Sumologic log endpoint - Update the Sumologic for a particular service and version. + Update the Sumologic for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSumologicName The name for the real-time logging configuration. - @return APIUpdateLogSumologicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSumologicName The name for the real-time logging configuration. + @return APIUpdateLogSumologicRequest */ UpdateLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIUpdateLogSumologicRequest @@ -120,17 +119,17 @@ type LoggingSumologicAPIService service // APICreateLogSumologicRequest represents a request for the resource. type APICreateLogSumologicRequest struct { - ctx context.Context - APIService LoggingSumologicAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingSumologicAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - messageType *LoggingMessageType - url *string + format *string + formatVersion *int32 + messageType *LoggingMessageType + url *string } // Name The name for the real-time logging configuration. @@ -138,31 +137,37 @@ func (r *APICreateLogSumologicRequest) Name(name string) *APICreateLogSumologicR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogSumologicRequest) Placement(placement string) *APICreateLogSumologicRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogSumologicRequest) ResponseCondition(responseCondition string) *APICreateLogSumologicRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogSumologicRequest) Format(format string) *APICreateLogSumologicRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogSumologicRequest) FormatVersion(formatVersion int32) *APICreateLogSumologicRequest { r.formatVersion = &formatVersion return r } + // MessageType returns a pointer to a request. func (r *APICreateLogSumologicRequest) MessageType(messageType LoggingMessageType) *APICreateLogSumologicRequest { r.messageType = &messageType return r } + // URL The URL to post logs to. func (r *APICreateLogSumologicRequest) URL(url string) *APICreateLogSumologicRequest { r.url = &url @@ -187,9 +192,9 @@ Create a Sumologic for a particular service and version. func (a *LoggingSumologicAPIService) CreateLogSumologic(ctx context.Context, serviceID string, versionID int32) APICreateLogSumologicRequest { return APICreateLogSumologicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -197,10 +202,10 @@ func (a *LoggingSumologicAPIService) CreateLogSumologic(ctx context.Context, ser // @return LoggingSumologicResponse func (a *LoggingSumologicAPIService) CreateLogSumologicExecute(r APICreateLogSumologicRequest) (*LoggingSumologicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSumologicResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSumologicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSumologicAPIService.CreateLogSumologic") @@ -302,7 +307,6 @@ func (a *LoggingSumologicAPIService) CreateLogSumologicExecute(r APICreateLogSum return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *LoggingSumologicAPIService) CreateLogSumologicExecute(r APICreateLogSum // APIDeleteLogSumologicRequest represents a request for the resource. type APIDeleteLogSumologicRequest struct { - ctx context.Context - APIService LoggingSumologicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSumologicAPI + serviceID string + versionID int32 loggingSumologicName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogSumologicRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogSumologicExecute(r) @@ -347,10 +350,10 @@ Delete the Sumologic for a particular service and version. */ func (a *LoggingSumologicAPIService) DeleteLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIDeleteLogSumologicRequest { return APIDeleteLogSumologicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSumologicName: loggingSumologicName, } } @@ -359,10 +362,10 @@ func (a *LoggingSumologicAPIService) DeleteLogSumologic(ctx context.Context, ser // @return InlineResponse200 func (a *LoggingSumologicAPIService) DeleteLogSumologicExecute(r APIDeleteLogSumologicRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSumologicAPIService.DeleteLogSumologic") @@ -444,7 +447,6 @@ func (a *LoggingSumologicAPIService) DeleteLogSumologicExecute(r APIDeleteLogSum return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *LoggingSumologicAPIService) DeleteLogSumologicExecute(r APIDeleteLogSum // APIGetLogSumologicRequest represents a request for the resource. type APIGetLogSumologicRequest struct { - ctx context.Context - APIService LoggingSumologicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSumologicAPI + serviceID string + versionID int32 loggingSumologicName string } - // Execute calls the API using the request data configured. func (r APIGetLogSumologicRequest) Execute() (*LoggingSumologicResponse, *http.Response, error) { return r.APIService.GetLogSumologicExecute(r) @@ -489,10 +490,10 @@ Get the Sumologic for a particular service and version. */ func (a *LoggingSumologicAPIService) GetLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIGetLogSumologicRequest { return APIGetLogSumologicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSumologicName: loggingSumologicName, } } @@ -501,10 +502,10 @@ func (a *LoggingSumologicAPIService) GetLogSumologic(ctx context.Context, servic // @return LoggingSumologicResponse func (a *LoggingSumologicAPIService) GetLogSumologicExecute(r APIGetLogSumologicRequest) (*LoggingSumologicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSumologicResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSumologicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSumologicAPIService.GetLogSumologic") @@ -586,7 +587,6 @@ func (a *LoggingSumologicAPIService) GetLogSumologicExecute(r APIGetLogSumologic return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *LoggingSumologicAPIService) GetLogSumologicExecute(r APIGetLogSumologic // APIListLogSumologicRequest represents a request for the resource. type APIListLogSumologicRequest struct { - ctx context.Context + ctx context.Context APIService LoggingSumologicAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogSumologicRequest) Execute() ([]LoggingSumologicResponse, *http.Response, error) { return r.APIService.ListLogSumologicExecute(r) @@ -630,9 +629,9 @@ List all of the Sumologics for a particular service and version. func (a *LoggingSumologicAPIService) ListLogSumologic(ctx context.Context, serviceID string, versionID int32) APIListLogSumologicRequest { return APIListLogSumologicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -640,10 +639,10 @@ func (a *LoggingSumologicAPIService) ListLogSumologic(ctx context.Context, servi // @return []LoggingSumologicResponse func (a *LoggingSumologicAPIService) ListLogSumologicExecute(r APIListLogSumologicRequest) ([]LoggingSumologicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingSumologicResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingSumologicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSumologicAPIService.ListLogSumologic") @@ -724,7 +723,6 @@ func (a *LoggingSumologicAPIService) ListLogSumologicExecute(r APIListLogSumolog return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,18 +741,18 @@ func (a *LoggingSumologicAPIService) ListLogSumologicExecute(r APIListLogSumolog // APIUpdateLogSumologicRequest represents a request for the resource. type APIUpdateLogSumologicRequest struct { - ctx context.Context - APIService LoggingSumologicAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSumologicAPI + serviceID string + versionID int32 loggingSumologicName string - name *string - placement *string - responseCondition *string - format *string - formatVersion *int32 - messageType *LoggingMessageType - url *string + name *string + placement *string + responseCondition *string + format *string + formatVersion *int32 + messageType *LoggingMessageType + url *string } // Name The name for the real-time logging configuration. @@ -762,31 +760,37 @@ func (r *APIUpdateLogSumologicRequest) Name(name string) *APIUpdateLogSumologicR r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogSumologicRequest) Placement(placement string) *APIUpdateLogSumologicRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogSumologicRequest) ResponseCondition(responseCondition string) *APIUpdateLogSumologicRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogSumologicRequest) Format(format string) *APIUpdateLogSumologicRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogSumologicRequest) FormatVersion(formatVersion int32) *APIUpdateLogSumologicRequest { r.formatVersion = &formatVersion return r } + // MessageType returns a pointer to a request. func (r *APIUpdateLogSumologicRequest) MessageType(messageType LoggingMessageType) *APIUpdateLogSumologicRequest { r.messageType = &messageType return r } + // URL The URL to post logs to. func (r *APIUpdateLogSumologicRequest) URL(url string) *APIUpdateLogSumologicRequest { r.url = &url @@ -811,10 +815,10 @@ Update the Sumologic for a particular service and version. */ func (a *LoggingSumologicAPIService) UpdateLogSumologic(ctx context.Context, serviceID string, versionID int32, loggingSumologicName string) APIUpdateLogSumologicRequest { return APIUpdateLogSumologicRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSumologicName: loggingSumologicName, } } @@ -823,10 +827,10 @@ func (a *LoggingSumologicAPIService) UpdateLogSumologic(ctx context.Context, ser // @return LoggingSumologicResponse func (a *LoggingSumologicAPIService) UpdateLogSumologicExecute(r APIUpdateLogSumologicRequest) (*LoggingSumologicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSumologicResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSumologicResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSumologicAPIService.UpdateLogSumologic") @@ -929,7 +933,6 @@ func (a *LoggingSumologicAPIService) UpdateLogSumologicExecute(r APIUpdateLogSum return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_syslog.go b/fastly/api_logging_syslog.go index 91151e2..34867ca 100644 --- a/fastly/api_logging_syslog.go +++ b/fastly/api_logging_syslog.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type LoggingSyslogAPI interface { /* - CreateLogSyslog Create a syslog log endpoint + CreateLogSyslog Create a syslog log endpoint - Create a Syslog for a particular service and version. + Create a Syslog for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateLogSyslogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLogSyslogRequest */ CreateLogSyslog(ctx context.Context, serviceID string, versionID int32) APICreateLogSyslogRequest @@ -48,15 +47,15 @@ type LoggingSyslogAPI interface { CreateLogSyslogExecute(r APICreateLogSyslogRequest) (*LoggingSyslogResponse, *http.Response, error) /* - DeleteLogSyslog Delete a syslog log endpoint + DeleteLogSyslog Delete a syslog log endpoint - Delete the Syslog for a particular service and version. + Delete the Syslog for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSyslogName The name for the real-time logging configuration. - @return APIDeleteLogSyslogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSyslogName The name for the real-time logging configuration. + @return APIDeleteLogSyslogRequest */ DeleteLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIDeleteLogSyslogRequest @@ -65,15 +64,15 @@ type LoggingSyslogAPI interface { DeleteLogSyslogExecute(r APIDeleteLogSyslogRequest) (*InlineResponse200, *http.Response, error) /* - GetLogSyslog Get a syslog log endpoint + GetLogSyslog Get a syslog log endpoint - Get the Syslog for a particular service and version. + Get the Syslog for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSyslogName The name for the real-time logging configuration. - @return APIGetLogSyslogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSyslogName The name for the real-time logging configuration. + @return APIGetLogSyslogRequest */ GetLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIGetLogSyslogRequest @@ -82,14 +81,14 @@ type LoggingSyslogAPI interface { GetLogSyslogExecute(r APIGetLogSyslogRequest) (*LoggingSyslogResponse, *http.Response, error) /* - ListLogSyslog List Syslog log endpoints + ListLogSyslog List Syslog log endpoints - List all of the Syslogs for a particular service and version. + List all of the Syslogs for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListLogSyslogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLogSyslogRequest */ ListLogSyslog(ctx context.Context, serviceID string, versionID int32) APIListLogSyslogRequest @@ -98,15 +97,15 @@ type LoggingSyslogAPI interface { ListLogSyslogExecute(r APIListLogSyslogRequest) ([]LoggingSyslogResponse, *http.Response, error) /* - UpdateLogSyslog Update a syslog log endpoint + UpdateLogSyslog Update a syslog log endpoint - Update the Syslog for a particular service and version. + Update the Syslog for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param loggingSyslogName The name for the real-time logging configuration. - @return APIUpdateLogSyslogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingSyslogName The name for the real-time logging configuration. + @return APIUpdateLogSyslogRequest */ UpdateLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIUpdateLogSyslogRequest @@ -120,26 +119,26 @@ type LoggingSyslogAPIService service // APICreateLogSyslogRequest represents a request for the resource. type APICreateLogSyslogRequest struct { - ctx context.Context - APIService LoggingSyslogAPI - serviceID string - versionID int32 - name *string - placement *string + ctx context.Context + APIService LoggingSyslogAPI + serviceID string + versionID int32 + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string - address *string - port *int32 - messageType *LoggingMessageType - hostname *string - ipv4 *string - token *string - useTLS *LoggingUseTLSString + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string + address *string + port *int32 + messageType *LoggingMessageType + hostname *string + ipv4 *string + token *string + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -147,76 +146,91 @@ func (r *APICreateLogSyslogRequest) Name(name string) *APICreateLogSyslogRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APICreateLogSyslogRequest) Placement(placement string) *APICreateLogSyslogRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APICreateLogSyslogRequest) ResponseCondition(responseCondition string) *APICreateLogSyslogRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APICreateLogSyslogRequest) Format(format string) *APICreateLogSyslogRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APICreateLogSyslogRequest) FormatVersion(formatVersion int32) *APICreateLogSyslogRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APICreateLogSyslogRequest) TLSCaCert(tlsCaCert string) *APICreateLogSyslogRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateLogSyslogRequest) TLSClientCert(tlsClientCert string) *APICreateLogSyslogRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateLogSyslogRequest) TLSClientKey(tlsClientKey string) *APICreateLogSyslogRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APICreateLogSyslogRequest) TLSHostname(tlsHostname string) *APICreateLogSyslogRequest { r.tlsHostname = &tlsHostname return r } + // Address A hostname or IPv4 address. func (r *APICreateLogSyslogRequest) Address(address string) *APICreateLogSyslogRequest { r.address = &address return r } + // Port The port number. func (r *APICreateLogSyslogRequest) Port(port int32) *APICreateLogSyslogRequest { r.port = &port return r } + // MessageType returns a pointer to a request. func (r *APICreateLogSyslogRequest) MessageType(messageType LoggingMessageType) *APICreateLogSyslogRequest { r.messageType = &messageType return r } + // Hostname The hostname used for the syslog endpoint. func (r *APICreateLogSyslogRequest) Hostname(hostname string) *APICreateLogSyslogRequest { r.hostname = &hostname return r } + // Ipv4 The IPv4 address used for the syslog endpoint. func (r *APICreateLogSyslogRequest) Ipv4(ipv4 string) *APICreateLogSyslogRequest { r.ipv4 = &ipv4 return r } + // Token Whether to prepend each message with a specific token. func (r *APICreateLogSyslogRequest) Token(token string) *APICreateLogSyslogRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APICreateLogSyslogRequest) UseTLS(useTLS LoggingUseTLSString) *APICreateLogSyslogRequest { r.useTLS = &useTLS @@ -241,9 +255,9 @@ Create a Syslog for a particular service and version. func (a *LoggingSyslogAPIService) CreateLogSyslog(ctx context.Context, serviceID string, versionID int32) APICreateLogSyslogRequest { return APICreateLogSyslogRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -251,10 +265,10 @@ func (a *LoggingSyslogAPIService) CreateLogSyslog(ctx context.Context, serviceID // @return LoggingSyslogResponse func (a *LoggingSyslogAPIService) CreateLogSyslogExecute(r APICreateLogSyslogRequest) (*LoggingSyslogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSyslogResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSyslogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSyslogAPIService.CreateLogSyslog") @@ -383,7 +397,6 @@ func (a *LoggingSyslogAPIService) CreateLogSyslogExecute(r APICreateLogSyslogReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -402,14 +415,13 @@ func (a *LoggingSyslogAPIService) CreateLogSyslogExecute(r APICreateLogSyslogReq // APIDeleteLogSyslogRequest represents a request for the resource. type APIDeleteLogSyslogRequest struct { - ctx context.Context - APIService LoggingSyslogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSyslogAPI + serviceID string + versionID int32 loggingSyslogName string } - // Execute calls the API using the request data configured. func (r APIDeleteLogSyslogRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteLogSyslogExecute(r) @@ -428,10 +440,10 @@ Delete the Syslog for a particular service and version. */ func (a *LoggingSyslogAPIService) DeleteLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIDeleteLogSyslogRequest { return APIDeleteLogSyslogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSyslogName: loggingSyslogName, } } @@ -440,10 +452,10 @@ func (a *LoggingSyslogAPIService) DeleteLogSyslog(ctx context.Context, serviceID // @return InlineResponse200 func (a *LoggingSyslogAPIService) DeleteLogSyslogExecute(r APIDeleteLogSyslogRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSyslogAPIService.DeleteLogSyslog") @@ -525,7 +537,6 @@ func (a *LoggingSyslogAPIService) DeleteLogSyslogExecute(r APIDeleteLogSyslogReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -544,14 +555,13 @@ func (a *LoggingSyslogAPIService) DeleteLogSyslogExecute(r APIDeleteLogSyslogReq // APIGetLogSyslogRequest represents a request for the resource. type APIGetLogSyslogRequest struct { - ctx context.Context - APIService LoggingSyslogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSyslogAPI + serviceID string + versionID int32 loggingSyslogName string } - // Execute calls the API using the request data configured. func (r APIGetLogSyslogRequest) Execute() (*LoggingSyslogResponse, *http.Response, error) { return r.APIService.GetLogSyslogExecute(r) @@ -570,10 +580,10 @@ Get the Syslog for a particular service and version. */ func (a *LoggingSyslogAPIService) GetLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIGetLogSyslogRequest { return APIGetLogSyslogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSyslogName: loggingSyslogName, } } @@ -582,10 +592,10 @@ func (a *LoggingSyslogAPIService) GetLogSyslog(ctx context.Context, serviceID st // @return LoggingSyslogResponse func (a *LoggingSyslogAPIService) GetLogSyslogExecute(r APIGetLogSyslogRequest) (*LoggingSyslogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSyslogResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSyslogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSyslogAPIService.GetLogSyslog") @@ -667,7 +677,6 @@ func (a *LoggingSyslogAPIService) GetLogSyslogExecute(r APIGetLogSyslogRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -686,13 +695,12 @@ func (a *LoggingSyslogAPIService) GetLogSyslogExecute(r APIGetLogSyslogRequest) // APIListLogSyslogRequest represents a request for the resource. type APIListLogSyslogRequest struct { - ctx context.Context + ctx context.Context APIService LoggingSyslogAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListLogSyslogRequest) Execute() ([]LoggingSyslogResponse, *http.Response, error) { return r.APIService.ListLogSyslogExecute(r) @@ -711,9 +719,9 @@ List all of the Syslogs for a particular service and version. func (a *LoggingSyslogAPIService) ListLogSyslog(ctx context.Context, serviceID string, versionID int32) APIListLogSyslogRequest { return APIListLogSyslogRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -721,10 +729,10 @@ func (a *LoggingSyslogAPIService) ListLogSyslog(ctx context.Context, serviceID s // @return []LoggingSyslogResponse func (a *LoggingSyslogAPIService) ListLogSyslogExecute(r APIListLogSyslogRequest) ([]LoggingSyslogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []LoggingSyslogResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []LoggingSyslogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSyslogAPIService.ListLogSyslog") @@ -805,7 +813,6 @@ func (a *LoggingSyslogAPIService) ListLogSyslogExecute(r APIListLogSyslogRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -824,27 +831,27 @@ func (a *LoggingSyslogAPIService) ListLogSyslogExecute(r APIListLogSyslogRequest // APIUpdateLogSyslogRequest represents a request for the resource. type APIUpdateLogSyslogRequest struct { - ctx context.Context - APIService LoggingSyslogAPI - serviceID string - versionID int32 + ctx context.Context + APIService LoggingSyslogAPI + serviceID string + versionID int32 loggingSyslogName string - name *string - placement *string + name *string + placement *string responseCondition *string - format *string - formatVersion *int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsHostname *string - address *string - port *int32 - messageType *LoggingMessageType - hostname *string - ipv4 *string - token *string - useTLS *LoggingUseTLSString + format *string + formatVersion *int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsHostname *string + address *string + port *int32 + messageType *LoggingMessageType + hostname *string + ipv4 *string + token *string + useTLS *LoggingUseTLSString } // Name The name for the real-time logging configuration. @@ -852,76 +859,91 @@ func (r *APIUpdateLogSyslogRequest) Name(name string) *APIUpdateLogSyslogRequest r.name = &name return r } -// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + +// Placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. func (r *APIUpdateLogSyslogRequest) Placement(placement string) *APIUpdateLogSyslogRequest { r.placement = &placement return r } + // ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. func (r *APIUpdateLogSyslogRequest) ResponseCondition(responseCondition string) *APIUpdateLogSyslogRequest { r.responseCondition = &responseCondition return r } + // Format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). func (r *APIUpdateLogSyslogRequest) Format(format string) *APIUpdateLogSyslogRequest { r.format = &format return r } -// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + +// FormatVersion The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. func (r *APIUpdateLogSyslogRequest) FormatVersion(formatVersion int32) *APIUpdateLogSyslogRequest { r.formatVersion = &formatVersion return r } + // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. func (r *APIUpdateLogSyslogRequest) TLSCaCert(tlsCaCert string) *APIUpdateLogSyslogRequest { r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogSyslogRequest) TLSClientCert(tlsClientCert string) *APIUpdateLogSyslogRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APIUpdateLogSyslogRequest) TLSClientKey(tlsClientKey string) *APIUpdateLogSyslogRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSHostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. func (r *APIUpdateLogSyslogRequest) TLSHostname(tlsHostname string) *APIUpdateLogSyslogRequest { r.tlsHostname = &tlsHostname return r } + // Address A hostname or IPv4 address. func (r *APIUpdateLogSyslogRequest) Address(address string) *APIUpdateLogSyslogRequest { r.address = &address return r } + // Port The port number. func (r *APIUpdateLogSyslogRequest) Port(port int32) *APIUpdateLogSyslogRequest { r.port = &port return r } + // MessageType returns a pointer to a request. func (r *APIUpdateLogSyslogRequest) MessageType(messageType LoggingMessageType) *APIUpdateLogSyslogRequest { r.messageType = &messageType return r } + // Hostname The hostname used for the syslog endpoint. func (r *APIUpdateLogSyslogRequest) Hostname(hostname string) *APIUpdateLogSyslogRequest { r.hostname = &hostname return r } + // Ipv4 The IPv4 address used for the syslog endpoint. func (r *APIUpdateLogSyslogRequest) Ipv4(ipv4 string) *APIUpdateLogSyslogRequest { r.ipv4 = &ipv4 return r } + // Token Whether to prepend each message with a specific token. func (r *APIUpdateLogSyslogRequest) Token(token string) *APIUpdateLogSyslogRequest { r.token = &token return r } + // UseTLS returns a pointer to a request. func (r *APIUpdateLogSyslogRequest) UseTLS(useTLS LoggingUseTLSString) *APIUpdateLogSyslogRequest { r.useTLS = &useTLS @@ -946,10 +968,10 @@ Update the Syslog for a particular service and version. */ func (a *LoggingSyslogAPIService) UpdateLogSyslog(ctx context.Context, serviceID string, versionID int32, loggingSyslogName string) APIUpdateLogSyslogRequest { return APIUpdateLogSyslogRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, loggingSyslogName: loggingSyslogName, } } @@ -958,10 +980,10 @@ func (a *LoggingSyslogAPIService) UpdateLogSyslog(ctx context.Context, serviceID // @return LoggingSyslogResponse func (a *LoggingSyslogAPIService) UpdateLogSyslogExecute(r APIUpdateLogSyslogRequest) (*LoggingSyslogResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *LoggingSyslogResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingSyslogResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingSyslogAPIService.UpdateLogSyslog") @@ -1091,7 +1113,6 @@ func (a *LoggingSyslogAPIService) UpdateLogSyslogExecute(r APIUpdateLogSyslogReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_mutual_authentication.go b/fastly/api_mutual_authentication.go index 3ffef51..eda2cb6 100644 --- a/fastly/api_mutual_authentication.go +++ b/fastly/api_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type MutualAuthenticationAPI interface { /* - CreateMutualTLSAuthentication Create a Mutual Authentication + CreateMutualTLSAuthentication Create a Mutual Authentication - Create a mutual authentication using a bundle of certificates to enable client-to-server mutual TLS. + Create a mutual authentication using a bundle of certificates to enable client-to-server mutual TLS. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateMutualTLSAuthenticationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateMutualTLSAuthenticationRequest */ CreateMutualTLSAuthentication(ctx context.Context) APICreateMutualTLSAuthenticationRequest @@ -46,13 +45,13 @@ type MutualAuthenticationAPI interface { CreateMutualTLSAuthenticationExecute(r APICreateMutualTLSAuthenticationRequest) (*MutualAuthenticationResponse, *http.Response, error) /* - DeleteMutualTLS Delete a Mutual TLS + DeleteMutualTLS Delete a Mutual TLS - Remove a Mutual TLS authentication + Remove a Mutual TLS authentication - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. - @return APIDeleteMutualTLSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. + @return APIDeleteMutualTLSRequest */ DeleteMutualTLS(ctx context.Context, mutualAuthenticationID string) APIDeleteMutualTLSRequest @@ -60,13 +59,13 @@ type MutualAuthenticationAPI interface { DeleteMutualTLSExecute(r APIDeleteMutualTLSRequest) (*http.Response, error) /* - GetMutualAuthentication Get a Mutual Authentication + GetMutualAuthentication Get a Mutual Authentication - Show a Mutual Authentication. + Show a Mutual Authentication. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. - @return APIGetMutualAuthenticationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. + @return APIGetMutualAuthenticationRequest */ GetMutualAuthentication(ctx context.Context, mutualAuthenticationID string) APIGetMutualAuthenticationRequest @@ -75,12 +74,12 @@ type MutualAuthenticationAPI interface { GetMutualAuthenticationExecute(r APIGetMutualAuthenticationRequest) (*MutualAuthenticationResponse, *http.Response, error) /* - ListMutualAuthentications List Mutual Authentications + ListMutualAuthentications List Mutual Authentications - List all mutual authentications. + List all mutual authentications. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListMutualAuthenticationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListMutualAuthenticationsRequest */ ListMutualAuthentications(ctx context.Context) APIListMutualAuthenticationsRequest @@ -89,13 +88,13 @@ type MutualAuthenticationAPI interface { ListMutualAuthenticationsExecute(r APIListMutualAuthenticationsRequest) (*MutualAuthenticationsResponse, *http.Response, error) /* - PatchMutualAuthentication Update a Mutual Authentication + PatchMutualAuthentication Update a Mutual Authentication - Update a Mutual Authentication. + Update a Mutual Authentication. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. - @return APIPatchMutualAuthenticationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param mutualAuthenticationID Alphanumeric string identifying a mutual authentication. + @return APIPatchMutualAuthenticationRequest */ PatchMutualAuthentication(ctx context.Context, mutualAuthenticationID string) APIPatchMutualAuthenticationRequest @@ -109,8 +108,8 @@ type MutualAuthenticationAPIService service // APICreateMutualTLSAuthenticationRequest represents a request for the resource. type APICreateMutualTLSAuthenticationRequest struct { - ctx context.Context - APIService MutualAuthenticationAPI + ctx context.Context + APIService MutualAuthenticationAPI mutualAuthentication *MutualAuthentication } @@ -136,7 +135,7 @@ Create a mutual authentication using a bundle of certificates to enable client-t func (a *MutualAuthenticationAPIService) CreateMutualTLSAuthentication(ctx context.Context) APICreateMutualTLSAuthenticationRequest { return APICreateMutualTLSAuthenticationRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -144,10 +143,10 @@ func (a *MutualAuthenticationAPIService) CreateMutualTLSAuthentication(ctx conte // @return MutualAuthenticationResponse func (a *MutualAuthenticationAPIService) CreateMutualTLSAuthenticationExecute(r APICreateMutualTLSAuthenticationRequest) (*MutualAuthenticationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *MutualAuthenticationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *MutualAuthenticationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MutualAuthenticationAPIService.CreateMutualTLSAuthentication") @@ -228,7 +227,6 @@ func (a *MutualAuthenticationAPIService) CreateMutualTLSAuthenticationExecute(r return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -247,12 +245,11 @@ func (a *MutualAuthenticationAPIService) CreateMutualTLSAuthenticationExecute(r // APIDeleteMutualTLSRequest represents a request for the resource. type APIDeleteMutualTLSRequest struct { - ctx context.Context - APIService MutualAuthenticationAPI + ctx context.Context + APIService MutualAuthenticationAPI mutualAuthenticationID string } - // Execute calls the API using the request data configured. func (r APIDeleteMutualTLSRequest) Execute() (*http.Response, error) { return r.APIService.DeleteMutualTLSExecute(r) @@ -269,8 +266,8 @@ Remove a Mutual TLS authentication */ func (a *MutualAuthenticationAPIService) DeleteMutualTLS(ctx context.Context, mutualAuthenticationID string) APIDeleteMutualTLSRequest { return APIDeleteMutualTLSRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, mutualAuthenticationID: mutualAuthenticationID, } } @@ -278,9 +275,9 @@ func (a *MutualAuthenticationAPIService) DeleteMutualTLS(ctx context.Context, mu // DeleteMutualTLSExecute executes the request func (a *MutualAuthenticationAPIService) DeleteMutualTLSExecute(r APIDeleteMutualTLSRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MutualAuthenticationAPIService.DeleteMutualTLS") @@ -351,7 +348,6 @@ func (a *MutualAuthenticationAPIService) DeleteMutualTLSExecute(r APIDeleteMutua return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -370,13 +366,13 @@ func (a *MutualAuthenticationAPIService) DeleteMutualTLSExecute(r APIDeleteMutua // APIGetMutualAuthenticationRequest represents a request for the resource. type APIGetMutualAuthenticationRequest struct { - ctx context.Context - APIService MutualAuthenticationAPI + ctx context.Context + APIService MutualAuthenticationAPI mutualAuthenticationID string - include *string + include *string } -// Include Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. +// Include Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. func (r *APIGetMutualAuthenticationRequest) Include(include string) *APIGetMutualAuthenticationRequest { r.include = &include return r @@ -398,8 +394,8 @@ Show a Mutual Authentication. */ func (a *MutualAuthenticationAPIService) GetMutualAuthentication(ctx context.Context, mutualAuthenticationID string) APIGetMutualAuthenticationRequest { return APIGetMutualAuthenticationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, mutualAuthenticationID: mutualAuthenticationID, } } @@ -408,10 +404,10 @@ func (a *MutualAuthenticationAPIService) GetMutualAuthentication(ctx context.Con // @return MutualAuthenticationResponse func (a *MutualAuthenticationAPIService) GetMutualAuthenticationExecute(r APIGetMutualAuthenticationRequest) (*MutualAuthenticationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *MutualAuthenticationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *MutualAuthenticationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MutualAuthenticationAPIService.GetMutualAuthentication") @@ -494,7 +490,6 @@ func (a *MutualAuthenticationAPIService) GetMutualAuthenticationExecute(r APIGet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -513,23 +508,25 @@ func (a *MutualAuthenticationAPIService) GetMutualAuthenticationExecute(r APIGet // APIListMutualAuthenticationsRequest represents a request for the resource. type APIListMutualAuthenticationsRequest struct { - ctx context.Context + ctx context.Context APIService MutualAuthenticationAPI - include *string + include *string pageNumber *int32 - pageSize *int32 + pageSize *int32 } -// Include Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. +// Include Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. func (r *APIListMutualAuthenticationsRequest) Include(include string) *APIListMutualAuthenticationsRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListMutualAuthenticationsRequest) PageNumber(pageNumber int32) *APIListMutualAuthenticationsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListMutualAuthenticationsRequest) PageSize(pageSize int32) *APIListMutualAuthenticationsRequest { r.pageSize = &pageSize @@ -552,7 +549,7 @@ List all mutual authentications. func (a *MutualAuthenticationAPIService) ListMutualAuthentications(ctx context.Context) APIListMutualAuthenticationsRequest { return APIListMutualAuthenticationsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -560,10 +557,10 @@ func (a *MutualAuthenticationAPIService) ListMutualAuthentications(ctx context.C // @return MutualAuthenticationsResponse func (a *MutualAuthenticationAPIService) ListMutualAuthenticationsExecute(r APIListMutualAuthenticationsRequest) (*MutualAuthenticationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *MutualAuthenticationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *MutualAuthenticationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MutualAuthenticationAPIService.ListMutualAuthentications") @@ -651,7 +648,6 @@ func (a *MutualAuthenticationAPIService) ListMutualAuthenticationsExecute(r APIL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -670,10 +666,10 @@ func (a *MutualAuthenticationAPIService) ListMutualAuthenticationsExecute(r APIL // APIPatchMutualAuthenticationRequest represents a request for the resource. type APIPatchMutualAuthenticationRequest struct { - ctx context.Context - APIService MutualAuthenticationAPI + ctx context.Context + APIService MutualAuthenticationAPI mutualAuthenticationID string - mutualAuthentication *MutualAuthentication + mutualAuthentication *MutualAuthentication } // MutualAuthentication returns a pointer to a request. @@ -698,8 +694,8 @@ Update a Mutual Authentication. */ func (a *MutualAuthenticationAPIService) PatchMutualAuthentication(ctx context.Context, mutualAuthenticationID string) APIPatchMutualAuthenticationRequest { return APIPatchMutualAuthenticationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, mutualAuthenticationID: mutualAuthenticationID, } } @@ -708,10 +704,10 @@ func (a *MutualAuthenticationAPIService) PatchMutualAuthentication(ctx context.C // @return MutualAuthenticationResponse func (a *MutualAuthenticationAPIService) PatchMutualAuthenticationExecute(r APIPatchMutualAuthenticationRequest) (*MutualAuthenticationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *MutualAuthenticationResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *MutualAuthenticationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MutualAuthenticationAPIService.PatchMutualAuthentication") @@ -793,7 +789,6 @@ func (a *MutualAuthenticationAPIService) PatchMutualAuthenticationExecute(r APIP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_observability_custom_dashboards.go b/fastly/api_observability_custom_dashboards.go index b67ebe0..9d3f333 100644 --- a/fastly/api_observability_custom_dashboards.go +++ b/fastly/api_observability_custom_dashboards.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type ObservabilityCustomDashboardsAPI interface { /* - CreateDashboard Create a new dashboard + CreateDashboard Create a new dashboard - Create a new dashboard + Create a new dashboard - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateDashboardRequest */ CreateDashboard(ctx context.Context) APICreateDashboardRequest @@ -46,13 +45,13 @@ type ObservabilityCustomDashboardsAPI interface { CreateDashboardExecute(r APICreateDashboardRequest) (*Dashboard, *http.Response, error) /* - DeleteDashboard Delete an existing dashboard + DeleteDashboard Delete an existing dashboard - Delete an existing dashboard + Delete an existing dashboard - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardID - @return APIDeleteDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardID + @return APIDeleteDashboardRequest */ DeleteDashboard(ctx context.Context, dashboardID string) APIDeleteDashboardRequest @@ -60,13 +59,13 @@ type ObservabilityCustomDashboardsAPI interface { DeleteDashboardExecute(r APIDeleteDashboardRequest) (*http.Response, error) /* - GetDashboard Retrieve a dashboard by ID + GetDashboard Retrieve a dashboard by ID - Retrieve a dashboard by ID + Retrieve a dashboard by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardID - @return APIGetDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardID + @return APIGetDashboardRequest */ GetDashboard(ctx context.Context, dashboardID string) APIGetDashboardRequest @@ -75,12 +74,12 @@ type ObservabilityCustomDashboardsAPI interface { GetDashboardExecute(r APIGetDashboardRequest) (*Dashboard, *http.Response, error) /* - ListDashboards List all custom dashboards + ListDashboards List all custom dashboards - List all custom dashboards + List all custom dashboards - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListDashboardsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListDashboardsRequest */ ListDashboards(ctx context.Context) APIListDashboardsRequest @@ -89,13 +88,13 @@ type ObservabilityCustomDashboardsAPI interface { ListDashboardsExecute(r APIListDashboardsRequest) (*ListDashboardsResponse, *http.Response, error) /* - UpdateDashboard Update an existing dashboard + UpdateDashboard Update an existing dashboard - Update an existing dashboard + Update an existing dashboard - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param dashboardID - @return APIUpdateDashboardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param dashboardID + @return APIUpdateDashboardRequest */ UpdateDashboard(ctx context.Context, dashboardID string) APIUpdateDashboardRequest @@ -109,8 +108,8 @@ type ObservabilityCustomDashboardsAPIService service // APICreateDashboardRequest represents a request for the resource. type APICreateDashboardRequest struct { - ctx context.Context - APIService ObservabilityCustomDashboardsAPI + ctx context.Context + APIService ObservabilityCustomDashboardsAPI createDashboardRequest *CreateDashboardRequest } @@ -136,7 +135,7 @@ Create a new dashboard func (a *ObservabilityCustomDashboardsAPIService) CreateDashboard(ctx context.Context) APICreateDashboardRequest { return APICreateDashboardRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -144,10 +143,10 @@ func (a *ObservabilityCustomDashboardsAPIService) CreateDashboard(ctx context.Co // @return Dashboard func (a *ObservabilityCustomDashboardsAPIService) CreateDashboardExecute(r APICreateDashboardRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *Dashboard ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ObservabilityCustomDashboardsAPIService.CreateDashboard") @@ -228,7 +227,6 @@ func (a *ObservabilityCustomDashboardsAPIService) CreateDashboardExecute(r APICr return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -247,12 +245,11 @@ func (a *ObservabilityCustomDashboardsAPIService) CreateDashboardExecute(r APICr // APIDeleteDashboardRequest represents a request for the resource. type APIDeleteDashboardRequest struct { - ctx context.Context - APIService ObservabilityCustomDashboardsAPI + ctx context.Context + APIService ObservabilityCustomDashboardsAPI dashboardID string } - // Execute calls the API using the request data configured. func (r APIDeleteDashboardRequest) Execute() (*http.Response, error) { return r.APIService.DeleteDashboardExecute(r) @@ -269,8 +266,8 @@ Delete an existing dashboard */ func (a *ObservabilityCustomDashboardsAPIService) DeleteDashboard(ctx context.Context, dashboardID string) APIDeleteDashboardRequest { return APIDeleteDashboardRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, dashboardID: dashboardID, } } @@ -278,9 +275,9 @@ func (a *ObservabilityCustomDashboardsAPIService) DeleteDashboard(ctx context.Co // DeleteDashboardExecute executes the request func (a *ObservabilityCustomDashboardsAPIService) DeleteDashboardExecute(r APIDeleteDashboardRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ObservabilityCustomDashboardsAPIService.DeleteDashboard") @@ -351,7 +348,6 @@ func (a *ObservabilityCustomDashboardsAPIService) DeleteDashboardExecute(r APIDe return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -370,12 +366,11 @@ func (a *ObservabilityCustomDashboardsAPIService) DeleteDashboardExecute(r APIDe // APIGetDashboardRequest represents a request for the resource. type APIGetDashboardRequest struct { - ctx context.Context - APIService ObservabilityCustomDashboardsAPI + ctx context.Context + APIService ObservabilityCustomDashboardsAPI dashboardID string } - // Execute calls the API using the request data configured. func (r APIGetDashboardRequest) Execute() (*Dashboard, *http.Response, error) { return r.APIService.GetDashboardExecute(r) @@ -392,8 +387,8 @@ Retrieve a dashboard by ID */ func (a *ObservabilityCustomDashboardsAPIService) GetDashboard(ctx context.Context, dashboardID string) APIGetDashboardRequest { return APIGetDashboardRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, dashboardID: dashboardID, } } @@ -402,10 +397,10 @@ func (a *ObservabilityCustomDashboardsAPIService) GetDashboard(ctx context.Conte // @return Dashboard func (a *ObservabilityCustomDashboardsAPIService) GetDashboardExecute(r APIGetDashboardRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Dashboard ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ObservabilityCustomDashboardsAPIService.GetDashboard") @@ -485,7 +480,6 @@ func (a *ObservabilityCustomDashboardsAPIService) GetDashboardExecute(r APIGetDa return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -504,11 +498,10 @@ func (a *ObservabilityCustomDashboardsAPIService) GetDashboardExecute(r APIGetDa // APIListDashboardsRequest represents a request for the resource. type APIListDashboardsRequest struct { - ctx context.Context + ctx context.Context APIService ObservabilityCustomDashboardsAPI } - // Execute calls the API using the request data configured. func (r APIListDashboardsRequest) Execute() (*ListDashboardsResponse, *http.Response, error) { return r.APIService.ListDashboardsExecute(r) @@ -525,7 +518,7 @@ List all custom dashboards func (a *ObservabilityCustomDashboardsAPIService) ListDashboards(ctx context.Context) APIListDashboardsRequest { return APIListDashboardsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -533,10 +526,10 @@ func (a *ObservabilityCustomDashboardsAPIService) ListDashboards(ctx context.Con // @return ListDashboardsResponse func (a *ObservabilityCustomDashboardsAPIService) ListDashboardsExecute(r APIListDashboardsRequest) (*ListDashboardsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ListDashboardsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ListDashboardsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ObservabilityCustomDashboardsAPIService.ListDashboards") @@ -615,7 +608,6 @@ func (a *ObservabilityCustomDashboardsAPIService) ListDashboardsExecute(r APILis return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -634,9 +626,9 @@ func (a *ObservabilityCustomDashboardsAPIService) ListDashboardsExecute(r APILis // APIUpdateDashboardRequest represents a request for the resource. type APIUpdateDashboardRequest struct { - ctx context.Context - APIService ObservabilityCustomDashboardsAPI - dashboardID string + ctx context.Context + APIService ObservabilityCustomDashboardsAPI + dashboardID string updateDashboardRequest *UpdateDashboardRequest } @@ -662,8 +654,8 @@ Update an existing dashboard */ func (a *ObservabilityCustomDashboardsAPIService) UpdateDashboard(ctx context.Context, dashboardID string) APIUpdateDashboardRequest { return APIUpdateDashboardRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, dashboardID: dashboardID, } } @@ -672,10 +664,10 @@ func (a *ObservabilityCustomDashboardsAPIService) UpdateDashboard(ctx context.Co // @return Dashboard func (a *ObservabilityCustomDashboardsAPIService) UpdateDashboardExecute(r APIUpdateDashboardRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *Dashboard ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ObservabilityCustomDashboardsAPIService.UpdateDashboard") @@ -757,7 +749,6 @@ func (a *ObservabilityCustomDashboardsAPIService) UpdateDashboardExecute(r APIUp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_origin_inspector_historical.go b/fastly/api_origin_inspector_historical.go index 9ffa94a..dc067db 100644 --- a/fastly/api_origin_inspector_historical.go +++ b/fastly/api_origin_inspector_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type OriginInspectorHistoricalAPI interface { /* - GetOriginInspectorHistorical Get historical origin data for a service + GetOriginInspectorHistorical Get historical origin data for a service - Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP. + Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetOriginInspectorHistoricalRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorHistoricalRequest */ GetOriginInspectorHistorical(ctx context.Context, serviceID string) APIGetOriginInspectorHistoricalRequest @@ -53,19 +52,19 @@ type OriginInspectorHistoricalAPIService service // APIGetOriginInspectorHistoricalRequest represents a request for the resource. type APIGetOriginInspectorHistoricalRequest struct { - ctx context.Context + ctx context.Context APIService OriginInspectorHistoricalAPI - serviceID string - start *string - end *string + serviceID string + start *string + end *string downsample *string - metric *string - groupBy *string - limit *string - cursor *string - region *string + metric *string + groupBy *string + limit *string + cursor *string + region *string datacenter *string - host *string + host *string } // Start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. @@ -73,46 +72,55 @@ func (r *APIGetOriginInspectorHistoricalRequest) Start(start string) *APIGetOrig r.start = &start return r } + // End A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. func (r *APIGetOriginInspectorHistoricalRequest) End(end string) *APIGetOriginInspectorHistoricalRequest { r.end = &end return r } + // Downsample Duration of sample windows. func (r *APIGetOriginInspectorHistoricalRequest) Downsample(downsample string) *APIGetOriginInspectorHistoricalRequest { r.downsample = &downsample return r } + // Metric The metrics to retrieve. Multiple values should be comma-separated. func (r *APIGetOriginInspectorHistoricalRequest) Metric(metric string) *APIGetOriginInspectorHistoricalRequest { r.metric = &metric return r } -// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs. + +// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs. func (r *APIGetOriginInspectorHistoricalRequest) GroupBy(groupBy string) *APIGetOriginInspectorHistoricalRequest { r.groupBy = &groupBy return r } + // Limit Number of results per page. The maximum is 200. func (r *APIGetOriginInspectorHistoricalRequest) Limit(limit string) *APIGetOriginInspectorHistoricalRequest { r.limit = &limit return r } + // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. func (r *APIGetOriginInspectorHistoricalRequest) Cursor(cursor string) *APIGetOriginInspectorHistoricalRequest { r.cursor = &cursor return r } -// Region Limit query to one or more specific geographic regions. Values should be comma-separated. + +// Region Limit query to one or more specific geographic regions. Values should be comma-separated. func (r *APIGetOriginInspectorHistoricalRequest) Region(region string) *APIGetOriginInspectorHistoricalRequest { r.region = ®ion return r } + // Datacenter Limit query to one or more specific POPs. Values should be comma-separated. func (r *APIGetOriginInspectorHistoricalRequest) Datacenter(datacenter string) *APIGetOriginInspectorHistoricalRequest { r.datacenter = &datacenter return r } + // Host Limit query to one or more specific origin hosts. Values should be comma-separated. func (r *APIGetOriginInspectorHistoricalRequest) Host(host string) *APIGetOriginInspectorHistoricalRequest { r.host = &host @@ -137,8 +145,8 @@ Fetches historical origin metrics for a given Fastly service, optionally filteri func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistorical(ctx context.Context, serviceID string) APIGetOriginInspectorHistoricalRequest { return APIGetOriginInspectorHistoricalRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -146,10 +154,10 @@ func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistorical(ctx c // @return HistoricalOriginsResponse func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistoricalExecute(r APIGetOriginInspectorHistoricalRequest) (*HistoricalOriginsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *HistoricalOriginsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalOriginsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorHistoricalAPIService.GetOriginInspectorHistorical") @@ -259,7 +267,6 @@ func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistoricalExecut return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_origin_inspector_realtime.go b/fastly/api_origin_inspector_realtime.go index 9a61083..4327ccf 100644 --- a/fastly/api_origin_inspector_realtime.go +++ b/fastly/api_origin_inspector_realtime.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type OriginInspectorRealtimeAPI interface { /* - GetOriginInspectorLast120Seconds Get real-time origin data for the last 120 seconds + GetOriginInspectorLast120Seconds Get real-time origin data for the last 120 seconds - Get data for the 120 seconds preceding the latest timestamp available for a service. + Get data for the 120 seconds preceding the latest timestamp available for a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetOriginInspectorLast120SecondsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorLast120SecondsRequest */ GetOriginInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetOriginInspectorLast120SecondsRequest @@ -47,14 +46,14 @@ type OriginInspectorRealtimeAPI interface { GetOriginInspectorLast120SecondsExecute(r APIGetOriginInspectorLast120SecondsRequest) (*OriginInspector, *http.Response, error) /* - GetOriginInspectorLastMaxEntries Get a limited number of real-time origin data entries + GetOriginInspectorLastMaxEntries Get a limited number of real-time origin data entries - Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param maxEntries Maximum number of results to display. - @return APIGetOriginInspectorLastMaxEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to display. + @return APIGetOriginInspectorLastMaxEntriesRequest */ GetOriginInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetOriginInspectorLastMaxEntriesRequest @@ -63,16 +62,16 @@ type OriginInspectorRealtimeAPI interface { GetOriginInspectorLastMaxEntriesExecute(r APIGetOriginInspectorLastMaxEntriesRequest) (*OriginInspector, *http.Response, error) /* - GetOriginInspectorLastSecond Get real-time origin data from specific time. + GetOriginInspectorLastSecond Get real-time origin data from specific time. - Get real-time origin data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. -Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + Get real-time origin data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. + Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param startTimestamp Timestamp in seconds (Unix epoch time). - @return APIGetOriginInspectorLastSecondRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetOriginInspectorLastSecondRequest */ GetOriginInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetOriginInspectorLastSecondRequest @@ -86,12 +85,11 @@ type OriginInspectorRealtimeAPIService service // APIGetOriginInspectorLast120SecondsRequest represents a request for the resource. type APIGetOriginInspectorLast120SecondsRequest struct { - ctx context.Context + ctx context.Context APIService OriginInspectorRealtimeAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetOriginInspectorLast120SecondsRequest) Execute() (*OriginInspector, *http.Response, error) { return r.APIService.GetOriginInspectorLast120SecondsExecute(r) @@ -109,8 +107,8 @@ Get data for the 120 seconds preceding the latest timestamp available for a serv func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetOriginInspectorLast120SecondsRequest { return APIGetOriginInspectorLast120SecondsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -118,10 +116,10 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120Seconds(ctx // @return OriginInspector func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120SecondsExecute(r APIGetOriginInspectorLast120SecondsRequest) (*OriginInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *OriginInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLast120Seconds") @@ -201,7 +199,6 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120SecondsExec return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -220,13 +217,12 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120SecondsExec // APIGetOriginInspectorLastMaxEntriesRequest represents a request for the resource. type APIGetOriginInspectorLastMaxEntriesRequest struct { - ctx context.Context + ctx context.Context APIService OriginInspectorRealtimeAPI - serviceID string + serviceID string maxEntries int32 } - // Execute calls the API using the request data configured. func (r APIGetOriginInspectorLastMaxEntriesRequest) Execute() (*OriginInspector, *http.Response, error) { return r.APIService.GetOriginInspectorLastMaxEntriesExecute(r) @@ -245,8 +241,8 @@ Get data for the `max_entries` seconds preceding the latest timestamp available func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetOriginInspectorLastMaxEntriesRequest { return APIGetOriginInspectorLastMaxEntriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, maxEntries: maxEntries, } } @@ -255,10 +251,10 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntries(ctx // @return OriginInspector func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntriesExecute(r APIGetOriginInspectorLastMaxEntriesRequest) (*OriginInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *OriginInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastMaxEntries") @@ -339,7 +335,6 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntriesExec return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -358,13 +353,12 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntriesExec // APIGetOriginInspectorLastSecondRequest represents a request for the resource. type APIGetOriginInspectorLastSecondRequest struct { - ctx context.Context - APIService OriginInspectorRealtimeAPI - serviceID string + ctx context.Context + APIService OriginInspectorRealtimeAPI + serviceID string startTimestamp int32 } - // Execute calls the API using the request data configured. func (r APIGetOriginInspectorLastSecondRequest) Execute() (*OriginInspector, *http.Response, error) { return r.APIService.GetOriginInspectorLastSecondExecute(r) @@ -384,9 +378,9 @@ Due to processing latency, the earliest entry in the response dataset may be ear */ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetOriginInspectorLastSecondRequest { return APIGetOriginInspectorLastSecondRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, startTimestamp: startTimestamp, } } @@ -395,10 +389,10 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecond(ctx con // @return OriginInspector func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecondExecute(r APIGetOriginInspectorLastSecondRequest) (*OriginInspector, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *OriginInspector + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastSecond") @@ -479,7 +473,6 @@ func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecondExecute( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_package.go b/fastly/api_package.go index 87514e6..40d92c5 100644 --- a/fastly/api_package.go +++ b/fastly/api_package.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" "io/ioutil" "net/http" gourl "net/url" + "os" "strconv" "strings" - "os" ) // Linger please @@ -33,14 +32,14 @@ var ( type PackageAPI interface { /* - GetPackage Get details of the service's Compute package. + GetPackage Get details of the service's Compute package. - List detailed information about the Compute package for the specified service. + List detailed information about the Compute package for the specified service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetPackageRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetPackageRequest */ GetPackage(ctx context.Context, serviceID string, versionID int32) APIGetPackageRequest @@ -49,14 +48,14 @@ type PackageAPI interface { GetPackageExecute(r APIGetPackageRequest) (*PackageResponse, *http.Response, error) /* - PutPackage Upload a Compute package. + PutPackage Upload a Compute package. - Upload a Compute package associated with the specified service version. + Upload a Compute package associated with the specified service version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIPutPackageRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIPutPackageRequest */ PutPackage(ctx context.Context, serviceID string, versionID int32) APIPutPackageRequest @@ -70,13 +69,12 @@ type PackageAPIService service // APIGetPackageRequest represents a request for the resource. type APIGetPackageRequest struct { - ctx context.Context + ctx context.Context APIService PackageAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetPackageRequest) Execute() (*PackageResponse, *http.Response, error) { return r.APIService.GetPackageExecute(r) @@ -95,9 +93,9 @@ List detailed information about the Compute package for the specified service. func (a *PackageAPIService) GetPackage(ctx context.Context, serviceID string, versionID int32) APIGetPackageRequest { return APIGetPackageRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -105,10 +103,10 @@ func (a *PackageAPIService) GetPackage(ctx context.Context, serviceID string, ve // @return PackageResponse func (a *PackageAPIService) GetPackageExecute(r APIGetPackageRequest) (*PackageResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *PackageResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *PackageResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackageAPIService.GetPackage") @@ -189,7 +187,6 @@ func (a *PackageAPIService) GetPackageExecute(r APIGetPackageRequest) (*PackageR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -208,11 +205,11 @@ func (a *PackageAPIService) GetPackageExecute(r APIGetPackageRequest) (*PackageR // APIPutPackageRequest represents a request for the resource. type APIPutPackageRequest struct { - ctx context.Context - APIService PackageAPI - serviceID string - versionID int32 - expect *string + ctx context.Context + APIService PackageAPI + serviceID string + versionID int32 + expect *string computePackage **os.File } @@ -221,6 +218,7 @@ func (r *APIPutPackageRequest) Expect(expect string) *APIPutPackageRequest { r.expect = &expect return r } + // ComputePackage The content of the Wasm binary package. func (r *APIPutPackageRequest) ComputePackage(computePackage *os.File) *APIPutPackageRequest { r.computePackage = &computePackage @@ -245,9 +243,9 @@ Upload a Compute package associated with the specified service version. func (a *PackageAPIService) PutPackage(ctx context.Context, serviceID string, versionID int32) APIPutPackageRequest { return APIPutPackageRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -255,10 +253,10 @@ func (a *PackageAPIService) PutPackage(ctx context.Context, serviceID string, ve // @return PackageResponse func (a *PackageAPIService) PutPackageExecute(r APIPutPackageRequest) (*PackageResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *PackageResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *PackageResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackageAPIService.PutPackage") @@ -295,8 +293,8 @@ func (a *PackageAPIService) PutPackageExecute(r APIPutPackageRequest) (*PackageR localVarHeaderParams["expect"] = parameterToString(*r.expect, "") } var computePackageLocalVarFormFileName string - var computePackageLocalVarFileName string - var computePackageLocalVarFileBytes []byte + var computePackageLocalVarFileName string + var computePackageLocalVarFileBytes []byte computePackageLocalVarFormFileName = "package" @@ -359,7 +357,6 @@ func (a *PackageAPIService) PutPackageExecute(r APIPutPackageRequest) (*PackageR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_pool.go b/fastly/api_pool.go index b4907fe..6701e4c 100644 --- a/fastly/api_pool.go +++ b/fastly/api_pool.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -33,14 +32,14 @@ var ( type PoolAPI interface { /* - CreateServerPool Create a server pool + CreateServerPool Create a server pool - Creates a pool for a particular service and version. + Creates a pool for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateServerPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateServerPoolRequest */ CreateServerPool(ctx context.Context, serviceID string, versionID int32) APICreateServerPoolRequest @@ -49,15 +48,15 @@ type PoolAPI interface { CreateServerPoolExecute(r APICreateServerPoolRequest) (*PoolResponsePost, *http.Response, error) /* - DeleteServerPool Delete a server pool + DeleteServerPool Delete a server pool - Deletes a specific pool for a particular service and version. + Deletes a specific pool for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param poolName Name for the Pool. - @return APIDeleteServerPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param poolName Name for the Pool. + @return APIDeleteServerPoolRequest */ DeleteServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIDeleteServerPoolRequest @@ -66,15 +65,15 @@ type PoolAPI interface { DeleteServerPoolExecute(r APIDeleteServerPoolRequest) (*InlineResponse200, *http.Response, error) /* - GetServerPool Get a server pool + GetServerPool Get a server pool - Gets a single pool for a particular service and version. + Gets a single pool for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param poolName Name for the Pool. - @return APIGetServerPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param poolName Name for the Pool. + @return APIGetServerPoolRequest */ GetServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIGetServerPoolRequest @@ -83,14 +82,14 @@ type PoolAPI interface { GetServerPoolExecute(r APIGetServerPoolRequest) (*PoolResponse, *http.Response, error) /* - ListServerPools List server pools + ListServerPools List server pools - Lists all pools for a particular service and pool. + Lists all pools for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListServerPoolsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListServerPoolsRequest */ ListServerPools(ctx context.Context, serviceID string, versionID int32) APIListServerPoolsRequest @@ -99,15 +98,15 @@ type PoolAPI interface { ListServerPoolsExecute(r APIListServerPoolsRequest) ([]PoolResponse, *http.Response, error) /* - UpdateServerPool Update a server pool + UpdateServerPool Update a server pool - Updates a specific pool for a particular service and version. + Updates a specific pool for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param poolName Name for the Pool. - @return APIUpdateServerPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param poolName Name for the Pool. + @return APIUpdateServerPoolRequest */ UpdateServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIUpdateServerPoolRequest @@ -121,37 +120,37 @@ type PoolAPIService service // APICreateServerPoolRequest represents a request for the resource. type APICreateServerPoolRequest struct { - ctx context.Context - APIService PoolAPI - serviceID string - versionID int32 - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsCertHostname *string - useTLS *int32 - createdAt *time.Time - deletedAt *time.Time - updatedAt *time.Time - serviceID2 *string - version *string - name *string - shield *string - requestCondition *string - tlsCiphers *string - tlsSniHostname *string - minTLSVersion *int32 - maxTLSVersion *int32 - healthcheck *string - comment *string - resourceType *string - overrideHost *string + ctx context.Context + APIService PoolAPI + serviceID string + versionID int32 + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsCertHostname *string + useTLS *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time + serviceID2 *string + version *string + name *string + shield *string + requestCondition *string + tlsCiphers *string + tlsSniHostname *string + minTLSVersion *int32 + maxTLSVersion *int32 + healthcheck *string + comment *string + resourceType *string + overrideHost *string betweenBytesTimeout *int32 - connectTimeout *int32 - firstByteTimeout *int32 - maxConnDefault *int32 - quorum *int32 - tlsCheckCert *int32 + connectTimeout *int32 + firstByteTimeout *int32 + maxConnDefault *int32 + quorum *int32 + tlsCheckCert *int32 } // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. @@ -159,131 +158,157 @@ func (r *APICreateServerPoolRequest) TLSCaCert(tlsCaCert string) *APICreateServe r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APICreateServerPoolRequest) TLSClientCert(tlsClientCert string) *APICreateServerPoolRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APICreateServerPoolRequest) TLSClientKey(tlsClientKey string) *APICreateServerPoolRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSCertHostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). func (r *APICreateServerPoolRequest) TLSCertHostname(tlsCertHostname string) *APICreateServerPoolRequest { r.tlsCertHostname = &tlsCertHostname return r } + // UseTLS Whether to use TLS. func (r *APICreateServerPoolRequest) UseTLS(useTLS int32) *APICreateServerPoolRequest { r.useTLS = &useTLS return r } + // CreatedAt Date and time in ISO 8601 format. func (r *APICreateServerPoolRequest) CreatedAt(createdAt time.Time) *APICreateServerPoolRequest { r.createdAt = &createdAt return r } + // DeletedAt Date and time in ISO 8601 format. func (r *APICreateServerPoolRequest) DeletedAt(deletedAt time.Time) *APICreateServerPoolRequest { r.deletedAt = &deletedAt return r } + // UpdatedAt Date and time in ISO 8601 format. func (r *APICreateServerPoolRequest) UpdatedAt(updatedAt time.Time) *APICreateServerPoolRequest { r.updatedAt = &updatedAt return r } + // ServiceID2 returns a pointer to a request. func (r *APICreateServerPoolRequest) ServiceID2(serviceID2 string) *APICreateServerPoolRequest { r.serviceID2 = &serviceID2 return r } + // Version returns a pointer to a request. func (r *APICreateServerPoolRequest) Version(version string) *APICreateServerPoolRequest { r.version = &version return r } + // Name Name for the Pool. func (r *APICreateServerPoolRequest) Name(name string) *APICreateServerPoolRequest { r.name = &name return r } + // Shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. func (r *APICreateServerPoolRequest) Shield(shield string) *APICreateServerPoolRequest { r.shield = &shield return r } + // RequestCondition Condition which, if met, will select this configuration during a request. Optional. func (r *APICreateServerPoolRequest) RequestCondition(requestCondition string) *APICreateServerPoolRequest { r.requestCondition = &requestCondition return r } + // TLSCiphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. func (r *APICreateServerPoolRequest) TLSCiphers(tlsCiphers string) *APICreateServerPoolRequest { r.tlsCiphers = &tlsCiphers return r } + // TLSSniHostname SNI hostname. Optional. func (r *APICreateServerPoolRequest) TLSSniHostname(tlsSniHostname string) *APICreateServerPoolRequest { r.tlsSniHostname = &tlsSniHostname return r } + // MinTLSVersion Minimum allowed TLS version on connections to this server. Optional. func (r *APICreateServerPoolRequest) MinTLSVersion(minTLSVersion int32) *APICreateServerPoolRequest { r.minTLSVersion = &minTLSVersion return r } + // MaxTLSVersion Maximum allowed TLS version on connections to this server. Optional. func (r *APICreateServerPoolRequest) MaxTLSVersion(maxTLSVersion int32) *APICreateServerPoolRequest { r.maxTLSVersion = &maxTLSVersion return r } + // Healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. func (r *APICreateServerPoolRequest) Healthcheck(healthcheck string) *APICreateServerPoolRequest { r.healthcheck = &healthcheck return r } + // Comment A freeform descriptive note. func (r *APICreateServerPoolRequest) Comment(comment string) *APICreateServerPoolRequest { r.comment = &comment return r } + // ResourceType What type of load balance group to use. func (r *APICreateServerPoolRequest) ResourceType(resourceType string) *APICreateServerPoolRequest { r.resourceType = &resourceType return r } + // OverrideHost The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. func (r *APICreateServerPoolRequest) OverrideHost(overrideHost string) *APICreateServerPoolRequest { r.overrideHost = &overrideHost return r } + // BetweenBytesTimeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. func (r *APICreateServerPoolRequest) BetweenBytesTimeout(betweenBytesTimeout int32) *APICreateServerPoolRequest { r.betweenBytesTimeout = &betweenBytesTimeout return r } + // ConnectTimeout How long to wait for a timeout in milliseconds. Optional. func (r *APICreateServerPoolRequest) ConnectTimeout(connectTimeout int32) *APICreateServerPoolRequest { r.connectTimeout = &connectTimeout return r } + // FirstByteTimeout How long to wait for the first byte in milliseconds. Optional. func (r *APICreateServerPoolRequest) FirstByteTimeout(firstByteTimeout int32) *APICreateServerPoolRequest { r.firstByteTimeout = &firstByteTimeout return r } + // MaxConnDefault Maximum number of connections. Optional. func (r *APICreateServerPoolRequest) MaxConnDefault(maxConnDefault int32) *APICreateServerPoolRequest { r.maxConnDefault = &maxConnDefault return r } + // Quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. func (r *APICreateServerPoolRequest) Quorum(quorum int32) *APICreateServerPoolRequest { r.quorum = &quorum return r } + // TLSCheckCert Be strict on checking TLS certs. Optional. func (r *APICreateServerPoolRequest) TLSCheckCert(tlsCheckCert int32) *APICreateServerPoolRequest { r.tlsCheckCert = &tlsCheckCert @@ -308,9 +333,9 @@ Creates a pool for a particular service and version. func (a *PoolAPIService) CreateServerPool(ctx context.Context, serviceID string, versionID int32) APICreateServerPoolRequest { return APICreateServerPoolRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -318,10 +343,10 @@ func (a *PoolAPIService) CreateServerPool(ctx context.Context, serviceID string, // @return PoolResponsePost func (a *PoolAPIService) CreateServerPoolExecute(r APICreateServerPoolRequest) (*PoolResponsePost, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *PoolResponsePost + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *PoolResponsePost ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PoolAPIService.CreateServerPool") @@ -491,7 +516,6 @@ func (a *PoolAPIService) CreateServerPoolExecute(r APICreateServerPoolRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -510,14 +534,13 @@ func (a *PoolAPIService) CreateServerPoolExecute(r APICreateServerPoolRequest) ( // APIDeleteServerPoolRequest represents a request for the resource. type APIDeleteServerPoolRequest struct { - ctx context.Context + ctx context.Context APIService PoolAPI - serviceID string - versionID int32 - poolName string + serviceID string + versionID int32 + poolName string } - // Execute calls the API using the request data configured. func (r APIDeleteServerPoolRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteServerPoolExecute(r) @@ -537,10 +560,10 @@ Deletes a specific pool for a particular service and version. func (a *PoolAPIService) DeleteServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIDeleteServerPoolRequest { return APIDeleteServerPoolRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - poolName: poolName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + poolName: poolName, } } @@ -548,10 +571,10 @@ func (a *PoolAPIService) DeleteServerPool(ctx context.Context, serviceID string, // @return InlineResponse200 func (a *PoolAPIService) DeleteServerPoolExecute(r APIDeleteServerPoolRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PoolAPIService.DeleteServerPool") @@ -633,7 +656,6 @@ func (a *PoolAPIService) DeleteServerPoolExecute(r APIDeleteServerPoolRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -652,14 +674,13 @@ func (a *PoolAPIService) DeleteServerPoolExecute(r APIDeleteServerPoolRequest) ( // APIGetServerPoolRequest represents a request for the resource. type APIGetServerPoolRequest struct { - ctx context.Context + ctx context.Context APIService PoolAPI - serviceID string - versionID int32 - poolName string + serviceID string + versionID int32 + poolName string } - // Execute calls the API using the request data configured. func (r APIGetServerPoolRequest) Execute() (*PoolResponse, *http.Response, error) { return r.APIService.GetServerPoolExecute(r) @@ -679,10 +700,10 @@ Gets a single pool for a particular service and version. func (a *PoolAPIService) GetServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIGetServerPoolRequest { return APIGetServerPoolRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - poolName: poolName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + poolName: poolName, } } @@ -690,10 +711,10 @@ func (a *PoolAPIService) GetServerPool(ctx context.Context, serviceID string, ve // @return PoolResponse func (a *PoolAPIService) GetServerPoolExecute(r APIGetServerPoolRequest) (*PoolResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *PoolResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *PoolResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PoolAPIService.GetServerPool") @@ -775,7 +796,6 @@ func (a *PoolAPIService) GetServerPoolExecute(r APIGetServerPoolRequest) (*PoolR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -794,13 +814,12 @@ func (a *PoolAPIService) GetServerPoolExecute(r APIGetServerPoolRequest) (*PoolR // APIListServerPoolsRequest represents a request for the resource. type APIListServerPoolsRequest struct { - ctx context.Context + ctx context.Context APIService PoolAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListServerPoolsRequest) Execute() ([]PoolResponse, *http.Response, error) { return r.APIService.ListServerPoolsExecute(r) @@ -819,9 +838,9 @@ Lists all pools for a particular service and pool. func (a *PoolAPIService) ListServerPools(ctx context.Context, serviceID string, versionID int32) APIListServerPoolsRequest { return APIListServerPoolsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -829,10 +848,10 @@ func (a *PoolAPIService) ListServerPools(ctx context.Context, serviceID string, // @return []PoolResponse func (a *PoolAPIService) ListServerPoolsExecute(r APIListServerPoolsRequest) ([]PoolResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []PoolResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []PoolResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PoolAPIService.ListServerPools") @@ -913,7 +932,6 @@ func (a *PoolAPIService) ListServerPoolsExecute(r APIListServerPoolsRequest) ([] return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -932,38 +950,38 @@ func (a *PoolAPIService) ListServerPoolsExecute(r APIListServerPoolsRequest) ([] // APIUpdateServerPoolRequest represents a request for the resource. type APIUpdateServerPoolRequest struct { - ctx context.Context - APIService PoolAPI - serviceID string - versionID int32 - poolName string - tlsCaCert *string - tlsClientCert *string - tlsClientKey *string - tlsCertHostname *string - useTLS *int32 - createdAt *time.Time - deletedAt *time.Time - updatedAt *time.Time - serviceID2 *string - version *string - name *string - shield *string - requestCondition *string - tlsCiphers *string - tlsSniHostname *string - minTLSVersion *int32 - maxTLSVersion *int32 - healthcheck *string - comment *string - resourceType *string - overrideHost *string + ctx context.Context + APIService PoolAPI + serviceID string + versionID int32 + poolName string + tlsCaCert *string + tlsClientCert *string + tlsClientKey *string + tlsCertHostname *string + useTLS *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time + serviceID2 *string + version *string + name *string + shield *string + requestCondition *string + tlsCiphers *string + tlsSniHostname *string + minTLSVersion *int32 + maxTLSVersion *int32 + healthcheck *string + comment *string + resourceType *string + overrideHost *string betweenBytesTimeout *int32 - connectTimeout *int32 - firstByteTimeout *int32 - maxConnDefault *int32 - quorum *int32 - tlsCheckCert *int32 + connectTimeout *int32 + firstByteTimeout *int32 + maxConnDefault *int32 + quorum *int32 + tlsCheckCert *int32 } // TLSCaCert A secure certificate to authenticate a server with. Must be in PEM format. @@ -971,131 +989,157 @@ func (r *APIUpdateServerPoolRequest) TLSCaCert(tlsCaCert string) *APIUpdateServe r.tlsCaCert = &tlsCaCert return r } + // TLSClientCert The client certificate used to make authenticated requests. Must be in PEM format. func (r *APIUpdateServerPoolRequest) TLSClientCert(tlsClientCert string) *APIUpdateServerPoolRequest { r.tlsClientCert = &tlsClientCert return r } + // TLSClientKey The client private key used to make authenticated requests. Must be in PEM format. func (r *APIUpdateServerPoolRequest) TLSClientKey(tlsClientKey string) *APIUpdateServerPoolRequest { r.tlsClientKey = &tlsClientKey return r } + // TLSCertHostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). func (r *APIUpdateServerPoolRequest) TLSCertHostname(tlsCertHostname string) *APIUpdateServerPoolRequest { r.tlsCertHostname = &tlsCertHostname return r } + // UseTLS Whether to use TLS. func (r *APIUpdateServerPoolRequest) UseTLS(useTLS int32) *APIUpdateServerPoolRequest { r.useTLS = &useTLS return r } + // CreatedAt Date and time in ISO 8601 format. func (r *APIUpdateServerPoolRequest) CreatedAt(createdAt time.Time) *APIUpdateServerPoolRequest { r.createdAt = &createdAt return r } + // DeletedAt Date and time in ISO 8601 format. func (r *APIUpdateServerPoolRequest) DeletedAt(deletedAt time.Time) *APIUpdateServerPoolRequest { r.deletedAt = &deletedAt return r } + // UpdatedAt Date and time in ISO 8601 format. func (r *APIUpdateServerPoolRequest) UpdatedAt(updatedAt time.Time) *APIUpdateServerPoolRequest { r.updatedAt = &updatedAt return r } + // ServiceID2 returns a pointer to a request. func (r *APIUpdateServerPoolRequest) ServiceID2(serviceID2 string) *APIUpdateServerPoolRequest { r.serviceID2 = &serviceID2 return r } + // Version returns a pointer to a request. func (r *APIUpdateServerPoolRequest) Version(version string) *APIUpdateServerPoolRequest { r.version = &version return r } + // Name Name for the Pool. func (r *APIUpdateServerPoolRequest) Name(name string) *APIUpdateServerPoolRequest { r.name = &name return r } + // Shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. func (r *APIUpdateServerPoolRequest) Shield(shield string) *APIUpdateServerPoolRequest { r.shield = &shield return r } + // RequestCondition Condition which, if met, will select this configuration during a request. Optional. func (r *APIUpdateServerPoolRequest) RequestCondition(requestCondition string) *APIUpdateServerPoolRequest { r.requestCondition = &requestCondition return r } + // TLSCiphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. func (r *APIUpdateServerPoolRequest) TLSCiphers(tlsCiphers string) *APIUpdateServerPoolRequest { r.tlsCiphers = &tlsCiphers return r } + // TLSSniHostname SNI hostname. Optional. func (r *APIUpdateServerPoolRequest) TLSSniHostname(tlsSniHostname string) *APIUpdateServerPoolRequest { r.tlsSniHostname = &tlsSniHostname return r } + // MinTLSVersion Minimum allowed TLS version on connections to this server. Optional. func (r *APIUpdateServerPoolRequest) MinTLSVersion(minTLSVersion int32) *APIUpdateServerPoolRequest { r.minTLSVersion = &minTLSVersion return r } + // MaxTLSVersion Maximum allowed TLS version on connections to this server. Optional. func (r *APIUpdateServerPoolRequest) MaxTLSVersion(maxTLSVersion int32) *APIUpdateServerPoolRequest { r.maxTLSVersion = &maxTLSVersion return r } + // Healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. func (r *APIUpdateServerPoolRequest) Healthcheck(healthcheck string) *APIUpdateServerPoolRequest { r.healthcheck = &healthcheck return r } + // Comment A freeform descriptive note. func (r *APIUpdateServerPoolRequest) Comment(comment string) *APIUpdateServerPoolRequest { r.comment = &comment return r } + // ResourceType What type of load balance group to use. func (r *APIUpdateServerPoolRequest) ResourceType(resourceType string) *APIUpdateServerPoolRequest { r.resourceType = &resourceType return r } + // OverrideHost The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. func (r *APIUpdateServerPoolRequest) OverrideHost(overrideHost string) *APIUpdateServerPoolRequest { r.overrideHost = &overrideHost return r } + // BetweenBytesTimeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. func (r *APIUpdateServerPoolRequest) BetweenBytesTimeout(betweenBytesTimeout int32) *APIUpdateServerPoolRequest { r.betweenBytesTimeout = &betweenBytesTimeout return r } + // ConnectTimeout How long to wait for a timeout in milliseconds. Optional. func (r *APIUpdateServerPoolRequest) ConnectTimeout(connectTimeout int32) *APIUpdateServerPoolRequest { r.connectTimeout = &connectTimeout return r } + // FirstByteTimeout How long to wait for the first byte in milliseconds. Optional. func (r *APIUpdateServerPoolRequest) FirstByteTimeout(firstByteTimeout int32) *APIUpdateServerPoolRequest { r.firstByteTimeout = &firstByteTimeout return r } + // MaxConnDefault Maximum number of connections. Optional. func (r *APIUpdateServerPoolRequest) MaxConnDefault(maxConnDefault int32) *APIUpdateServerPoolRequest { r.maxConnDefault = &maxConnDefault return r } + // Quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. func (r *APIUpdateServerPoolRequest) Quorum(quorum int32) *APIUpdateServerPoolRequest { r.quorum = &quorum return r } + // TLSCheckCert Be strict on checking TLS certs. Optional. func (r *APIUpdateServerPoolRequest) TLSCheckCert(tlsCheckCert int32) *APIUpdateServerPoolRequest { r.tlsCheckCert = &tlsCheckCert @@ -1121,10 +1165,10 @@ Updates a specific pool for a particular service and version. func (a *PoolAPIService) UpdateServerPool(ctx context.Context, serviceID string, versionID int32, poolName string) APIUpdateServerPoolRequest { return APIUpdateServerPoolRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - poolName: poolName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + poolName: poolName, } } @@ -1132,10 +1176,10 @@ func (a *PoolAPIService) UpdateServerPool(ctx context.Context, serviceID string, // @return PoolResponse func (a *PoolAPIService) UpdateServerPoolExecute(r APIUpdateServerPoolRequest) (*PoolResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *PoolResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *PoolResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PoolAPIService.UpdateServerPool") @@ -1306,7 +1350,6 @@ func (a *PoolAPIService) UpdateServerPoolExecute(r APIUpdateServerPoolRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_pop.go b/fastly/api_pop.go index 907369f..93b40b1 100644 --- a/fastly/api_pop.go +++ b/fastly/api_pop.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type PopAPI interface { /* - ListPops List Fastly POPs + ListPops List Fastly POPs - Get a list of all Fastly POPs. + Get a list of all Fastly POPs. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListPopsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListPopsRequest */ ListPops(ctx context.Context) APIListPopsRequest @@ -50,11 +49,10 @@ type PopAPIService service // APIListPopsRequest represents a request for the resource. type APIListPopsRequest struct { - ctx context.Context + ctx context.Context APIService PopAPI } - // Execute calls the API using the request data configured. func (r APIListPopsRequest) Execute() ([]Pop, *http.Response, error) { return r.APIService.ListPopsExecute(r) @@ -71,7 +69,7 @@ Get a list of all Fastly POPs. func (a *PopAPIService) ListPops(ctx context.Context) APIListPopsRequest { return APIListPopsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -79,10 +77,10 @@ func (a *PopAPIService) ListPops(ctx context.Context) APIListPopsRequest { // @return []Pop func (a *PopAPIService) ListPopsExecute(r APIListPopsRequest) ([]Pop, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []Pop + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []Pop ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PopAPIService.ListPops") @@ -161,7 +159,6 @@ func (a *PopAPIService) ListPopsExecute(r APIListPopsRequest) ([]Pop, *http.Resp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_public_ip_list.go b/fastly/api_public_ip_list.go index 95fb115..ca2904b 100644 --- a/fastly/api_public_ip_list.go +++ b/fastly/api_public_ip_list.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type PublicIPListAPI interface { /* - ListFastlyIps List Fastly's public IPs + ListFastlyIps List Fastly's public IPs - List the public IP addresses for the Fastly network. + List the public IP addresses for the Fastly network. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListFastlyIpsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListFastlyIpsRequest */ ListFastlyIps(ctx context.Context) APIListFastlyIpsRequest @@ -50,11 +49,10 @@ type PublicIPListAPIService service // APIListFastlyIpsRequest represents a request for the resource. type APIListFastlyIpsRequest struct { - ctx context.Context + ctx context.Context APIService PublicIPListAPI } - // Execute calls the API using the request data configured. func (r APIListFastlyIpsRequest) Execute() (*PublicIPList, *http.Response, error) { return r.APIService.ListFastlyIpsExecute(r) @@ -71,7 +69,7 @@ List the public IP addresses for the Fastly network. func (a *PublicIPListAPIService) ListFastlyIps(ctx context.Context) APIListFastlyIpsRequest { return APIListFastlyIpsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -79,10 +77,10 @@ func (a *PublicIPListAPIService) ListFastlyIps(ctx context.Context) APIListFastl // @return PublicIPList func (a *PublicIPListAPIService) ListFastlyIpsExecute(r APIListFastlyIpsRequest) (*PublicIPList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *PublicIPList + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *PublicIPList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicIPListAPIService.ListFastlyIps") @@ -161,7 +159,6 @@ func (a *PublicIPListAPIService) ListFastlyIpsExecute(r APIListFastlyIpsRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_publish.go b/fastly/api_publish.go index 483e39d..5c2cff5 100644 --- a/fastly/api_publish.go +++ b/fastly/api_publish.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type PublishAPI interface { /* - Publish Send messages to Fanout subscribers + Publish Send messages to Fanout subscribers - Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. -> **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme. + Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. + > **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIPublishRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIPublishRequest */ Publish(ctx context.Context, serviceID string) APIPublishRequest @@ -54,9 +53,9 @@ type PublishAPIService service // APIPublishRequest represents a request for the resource. type APIPublishRequest struct { - ctx context.Context - APIService PublishAPI - serviceID string + ctx context.Context + APIService PublishAPI + serviceID string publishRequest *PublishRequest } @@ -85,8 +84,8 @@ Send one or more messages to [Fanout](https://www.fastly.com/documentation/learn func (a *PublishAPIService) Publish(ctx context.Context, serviceID string) APIPublishRequest { return APIPublishRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -94,10 +93,10 @@ func (a *PublishAPIService) Publish(ctx context.Context, serviceID string) APIPu // @return string func (a *PublishAPIService) PublishExecute(r APIPublishRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublishAPIService.Publish") @@ -179,7 +178,6 @@ func (a *PublishAPIService) PublishExecute(r APIPublishRequest) (string, *http.R return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_purge.go b/fastly/api_purge.go index e1353a1..999f8c4 100644 --- a/fastly/api_purge.go +++ b/fastly/api_purge.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type PurgeAPI interface { /* - BulkPurgeTag Purge multiple surrogate key tags + BulkPurgeTag Purge multiple surrogate key tags - Instant Purge a particular service of items tagged with surrogate keys. Up to 256 surrogate keys can be purged in one batch request. As an alternative to sending the keys in a JSON object in the body of the request, this endpoint also supports listing keys in a Surrogate-Key request header, e.g. Surrogate-Key: key_1 key_2 key_3. + Instant Purge a particular service of items tagged with surrogate keys. Up to 256 surrogate keys can be purged in one batch request. As an alternative to sending the keys in a JSON object in the body of the request, this endpoint also supports listing keys in a Surrogate-Key request header, e.g. Surrogate-Key: key_1 key_2 key_3. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIBulkPurgeTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIBulkPurgeTagRequest */ BulkPurgeTag(ctx context.Context, serviceID string) APIBulkPurgeTagRequest @@ -48,16 +47,16 @@ type PurgeAPI interface { BulkPurgeTagExecute(r APIBulkPurgeTagRequest) (map[string]string, *http.Response, error) /* - PurgeAll Purge everything from a service + PurgeAll Purge everything from a service - Instant Purge everything from a service. + Instant Purge everything from a service. -Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys) tag (e.g., `"all"`) to all objects. + Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys) tag (e.g., `"all"`) to all objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIPurgeAllRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIPurgeAllRequest */ PurgeAll(ctx context.Context, serviceID string) APIPurgeAllRequest @@ -66,13 +65,13 @@ Purge-all requests cannot be done in soft mode and will always immediately inval PurgeAllExecute(r APIPurgeAllRequest) (*InlineResponse200, *http.Response, error) /* - PurgeSingleURL Purge a URL + PurgeSingleURL Purge a URL - Instant Purge an individual URL. + Instant Purge an individual URL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param cachedURL URL of object in cache to be purged. - @return APIPurgeSingleURLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param cachedURL URL of object in cache to be purged. + @return APIPurgeSingleURLRequest */ PurgeSingleURL(ctx context.Context, cachedURL string) APIPurgeSingleURLRequest @@ -81,14 +80,14 @@ Purge-all requests cannot be done in soft mode and will always immediately inval PurgeSingleURLExecute(r APIPurgeSingleURLRequest) (*PurgeResponse, *http.Response, error) /* - PurgeTag Purge by surrogate key tag + PurgeTag Purge by surrogate key tag - Instant Purge a particular service of items tagged with a Surrogate Key. Only one surrogate key can be purged at a time. Multiple keys can be purged using a batch surrogate key purge request. + Instant Purge a particular service of items tagged with a Surrogate Key. Only one surrogate key can be purged at a time. Multiple keys can be purged using a batch surrogate key purge request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param surrogateKey Surrogate keys are used to efficiently purge content from cache. Instead of purging your entire site or individual URLs, you can tag related assets (like all images and descriptions associated with a single product) with surrogate keys, and these grouped URLs can be purged in a single request. - @return APIPurgeTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param surrogateKey Surrogate keys are used to efficiently purge content from cache. Instead of purging your entire site or individual URLs, you can tag related assets (like all images and descriptions associated with a single product) with surrogate keys, and these grouped URLs can be purged in a single request. + @return APIPurgeTagRequest */ PurgeTag(ctx context.Context, serviceID string, surrogateKey string) APIPurgeTagRequest @@ -102,12 +101,12 @@ type PurgeAPIService service // APIBulkPurgeTagRequest represents a request for the resource. type APIBulkPurgeTagRequest struct { - ctx context.Context - APIService PurgeAPI - serviceID string + ctx context.Context + APIService PurgeAPI + serviceID string fastlySoftPurge *int32 - surrogateKey *string - purgeResponse *PurgeResponse + surrogateKey *string + purgeResponse *PurgeResponse } // FastlySoftPurge If present, this header triggers the purge to be 'soft', which marks the affected object as stale rather than making it inaccessible. Typically set to \"1\" when used, but the value is not important. @@ -115,11 +114,13 @@ func (r *APIBulkPurgeTagRequest) FastlySoftPurge(fastlySoftPurge int32) *APIBulk r.fastlySoftPurge = &fastlySoftPurge return r } + // SurrogateKey Purge multiple surrogate key tags using a request header. Not required if a JSON POST body is specified. func (r *APIBulkPurgeTagRequest) SurrogateKey(surrogateKey string) *APIBulkPurgeTagRequest { r.surrogateKey = &surrogateKey return r } + // PurgeResponse returns a pointer to a request. func (r *APIBulkPurgeTagRequest) PurgeResponse(purgeResponse PurgeResponse) *APIBulkPurgeTagRequest { r.purgeResponse = &purgeResponse @@ -144,8 +145,8 @@ Instant Purge a particular service of items tagged with surrogate keys. Up to 25 func (a *PurgeAPIService) BulkPurgeTag(ctx context.Context, serviceID string) APIBulkPurgeTagRequest { return APIBulkPurgeTagRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -153,10 +154,10 @@ func (a *PurgeAPIService) BulkPurgeTag(ctx context.Context, serviceID string) AP // @return map[string]string func (a *PurgeAPIService) BulkPurgeTagExecute(r APIBulkPurgeTagRequest) (map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]string + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PurgeAPIService.BulkPurgeTag") @@ -244,7 +245,6 @@ func (a *PurgeAPIService) BulkPurgeTagExecute(r APIBulkPurgeTagRequest) (map[str return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -263,12 +263,11 @@ func (a *PurgeAPIService) BulkPurgeTagExecute(r APIBulkPurgeTagRequest) (map[str // APIPurgeAllRequest represents a request for the resource. type APIPurgeAllRequest struct { - ctx context.Context + ctx context.Context APIService PurgeAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIPurgeAllRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.PurgeAllExecute(r) @@ -289,8 +288,8 @@ Purge-all requests cannot be done in soft mode and will always immediately inval func (a *PurgeAPIService) PurgeAll(ctx context.Context, serviceID string) APIPurgeAllRequest { return APIPurgeAllRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -298,10 +297,10 @@ func (a *PurgeAPIService) PurgeAll(ctx context.Context, serviceID string) APIPur // @return InlineResponse200 func (a *PurgeAPIService) PurgeAllExecute(r APIPurgeAllRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PurgeAPIService.PurgeAll") @@ -381,7 +380,6 @@ func (a *PurgeAPIService) PurgeAllExecute(r APIPurgeAllRequest) (*InlineResponse return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -400,9 +398,9 @@ func (a *PurgeAPIService) PurgeAllExecute(r APIPurgeAllRequest) (*InlineResponse // APIPurgeSingleURLRequest represents a request for the resource. type APIPurgeSingleURLRequest struct { - ctx context.Context - APIService PurgeAPI - cachedURL string + ctx context.Context + APIService PurgeAPI + cachedURL string fastlySoftPurge *int32 } @@ -429,8 +427,8 @@ Instant Purge an individual URL. func (a *PurgeAPIService) PurgeSingleURL(ctx context.Context, cachedURL string) APIPurgeSingleURLRequest { return APIPurgeSingleURLRequest{ APIService: a, - ctx: ctx, - cachedURL: cachedURL, + ctx: ctx, + cachedURL: cachedURL, } } @@ -438,10 +436,10 @@ func (a *PurgeAPIService) PurgeSingleURL(ctx context.Context, cachedURL string) // @return PurgeResponse func (a *PurgeAPIService) PurgeSingleURLExecute(r APIPurgeSingleURLRequest) (*PurgeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *PurgeResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *PurgeResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PurgeAPIService.PurgeSingleURL") @@ -524,7 +522,6 @@ func (a *PurgeAPIService) PurgeSingleURLExecute(r APIPurgeSingleURLRequest) (*Pu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -543,10 +540,10 @@ func (a *PurgeAPIService) PurgeSingleURLExecute(r APIPurgeSingleURLRequest) (*Pu // APIPurgeTagRequest represents a request for the resource. type APIPurgeTagRequest struct { - ctx context.Context - APIService PurgeAPI - serviceID string - surrogateKey string + ctx context.Context + APIService PurgeAPI + serviceID string + surrogateKey string fastlySoftPurge *int32 } @@ -573,9 +570,9 @@ Instant Purge a particular service of items tagged with a Surrogate Key. Only on */ func (a *PurgeAPIService) PurgeTag(ctx context.Context, serviceID string, surrogateKey string) APIPurgeTagRequest { return APIPurgeTagRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, surrogateKey: surrogateKey, } } @@ -584,10 +581,10 @@ func (a *PurgeAPIService) PurgeTag(ctx context.Context, serviceID string, surrog // @return PurgeResponse func (a *PurgeAPIService) PurgeTagExecute(r APIPurgeTagRequest) (*PurgeResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *PurgeResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *PurgeResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PurgeAPIService.PurgeTag") @@ -671,7 +668,6 @@ func (a *PurgeAPIService) PurgeTagExecute(r APIPurgeTagRequest) (*PurgeResponse, return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_rate_limiter.go b/fastly/api_rate_limiter.go index af60528..7dde8e5 100644 --- a/fastly/api_rate_limiter.go +++ b/fastly/api_rate_limiter.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type RateLimiterAPI interface { /* - CreateRateLimiter Create a rate limiter + CreateRateLimiter Create a rate limiter - Create a rate limiter for a particular service and version. + Create a rate limiter for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateRateLimiterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateRateLimiterRequest */ CreateRateLimiter(ctx context.Context, serviceID string, versionID int32) APICreateRateLimiterRequest @@ -48,13 +47,13 @@ type RateLimiterAPI interface { CreateRateLimiterExecute(r APICreateRateLimiterRequest) (*RateLimiterResponse, *http.Response, error) /* - DeleteRateLimiter Delete a rate limiter + DeleteRateLimiter Delete a rate limiter - Delete a rate limiter by its ID. + Delete a rate limiter by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param rateLimiterID Alphanumeric string identifying the rate limiter. - @return APIDeleteRateLimiterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param rateLimiterID Alphanumeric string identifying the rate limiter. + @return APIDeleteRateLimiterRequest */ DeleteRateLimiter(ctx context.Context, rateLimiterID string) APIDeleteRateLimiterRequest @@ -63,13 +62,13 @@ type RateLimiterAPI interface { DeleteRateLimiterExecute(r APIDeleteRateLimiterRequest) (*InlineResponse200, *http.Response, error) /* - GetRateLimiter Get a rate limiter + GetRateLimiter Get a rate limiter - Get a rate limiter by its ID. + Get a rate limiter by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param rateLimiterID Alphanumeric string identifying the rate limiter. - @return APIGetRateLimiterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param rateLimiterID Alphanumeric string identifying the rate limiter. + @return APIGetRateLimiterRequest */ GetRateLimiter(ctx context.Context, rateLimiterID string) APIGetRateLimiterRequest @@ -78,14 +77,14 @@ type RateLimiterAPI interface { GetRateLimiterExecute(r APIGetRateLimiterRequest) (*RateLimiterResponse, *http.Response, error) /* - ListRateLimiters List rate limiters + ListRateLimiters List rate limiters - List all rate limiters for a particular service and version. + List all rate limiters for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListRateLimitersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListRateLimitersRequest */ ListRateLimiters(ctx context.Context, serviceID string, versionID int32) APIListRateLimitersRequest @@ -94,13 +93,13 @@ type RateLimiterAPI interface { ListRateLimitersExecute(r APIListRateLimitersRequest) ([]RateLimiterResponse, *http.Response, error) /* - UpdateRateLimiter Update a rate limiter + UpdateRateLimiter Update a rate limiter - Update a rate limiter by its ID. + Update a rate limiter by its ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param rateLimiterID Alphanumeric string identifying the rate limiter. - @return APIUpdateRateLimiterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param rateLimiterID Alphanumeric string identifying the rate limiter. + @return APIUpdateRateLimiterRequest */ UpdateRateLimiter(ctx context.Context, rateLimiterID string) APIUpdateRateLimiterRequest @@ -114,21 +113,21 @@ type RateLimiterAPIService service // APICreateRateLimiterRequest represents a request for the resource. type APICreateRateLimiterRequest struct { - ctx context.Context - APIService RateLimiterAPI - serviceID string - versionID int32 - name *string - uriDictionaryName *string - httpMethods *[]string - rpsLimit *int32 - windowSize *int32 - clientKey *[]string + ctx context.Context + APIService RateLimiterAPI + serviceID string + versionID int32 + name *string + uriDictionaryName *string + httpMethods *[]string + rpsLimit *int32 + windowSize *int32 + clientKey *[]string penaltyBoxDuration *int32 - action *string + action *string responseObjectName *string - loggerType *string - featureRevision *int32 + loggerType *string + featureRevision *int32 } // Name A human readable name for the rate limiting rule. @@ -136,51 +135,61 @@ func (r *APICreateRateLimiterRequest) Name(name string) *APICreateRateLimiterReq r.name = &name return r } + // URIDictionaryName The name of an Edge Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited. func (r *APICreateRateLimiterRequest) URIDictionaryName(uriDictionaryName string) *APICreateRateLimiterRequest { r.uriDictionaryName = &uriDictionaryName return r } + // HTTPMethods Array of HTTP methods to apply rate limiting to. func (r *APICreateRateLimiterRequest) HTTPMethods(httpMethods []string) *APICreateRateLimiterRequest { r.httpMethods = &httpMethods return r } + // RpsLimit Upper limit of requests per second allowed by the rate limiter. func (r *APICreateRateLimiterRequest) RpsLimit(rpsLimit int32) *APICreateRateLimiterRequest { r.rpsLimit = &rpsLimit return r } + // WindowSize Number of seconds during which the RPS limit must be exceeded in order to trigger a violation. func (r *APICreateRateLimiterRequest) WindowSize(windowSize int32) *APICreateRateLimiterRequest { r.windowSize = &windowSize return r } + // ClientKey Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`. func (r *APICreateRateLimiterRequest) ClientKey(clientKey []string) *APICreateRateLimiterRequest { r.clientKey = &clientKey return r } + // PenaltyBoxDuration Length of time in minutes that the rate limiter is in effect after the initial violation is detected. func (r *APICreateRateLimiterRequest) PenaltyBoxDuration(penaltyBoxDuration int32) *APICreateRateLimiterRequest { r.penaltyBoxDuration = &penaltyBoxDuration return r } + // Action The action to take when a rate limiter violation is detected. func (r *APICreateRateLimiterRequest) Action(action string) *APICreateRateLimiterRequest { r.action = &action return r } + // ResponseObjectName Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration. func (r *APICreateRateLimiterRequest) ResponseObjectName(responseObjectName string) *APICreateRateLimiterRequest { r.responseObjectName = &responseObjectName return r } + // LoggerType Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. func (r *APICreateRateLimiterRequest) LoggerType(loggerType string) *APICreateRateLimiterRequest { r.loggerType = &loggerType return r } + // FeatureRevision Revision number of the rate limiting feature implementation. Defaults to the most recent revision. func (r *APICreateRateLimiterRequest) FeatureRevision(featureRevision int32) *APICreateRateLimiterRequest { r.featureRevision = &featureRevision @@ -205,9 +214,9 @@ Create a rate limiter for a particular service and version. func (a *RateLimiterAPIService) CreateRateLimiter(ctx context.Context, serviceID string, versionID int32) APICreateRateLimiterRequest { return APICreateRateLimiterRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -215,10 +224,10 @@ func (a *RateLimiterAPIService) CreateRateLimiter(ctx context.Context, serviceID // @return RateLimiterResponse func (a *RateLimiterAPIService) CreateRateLimiterExecute(r APICreateRateLimiterRequest) (*RateLimiterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *RateLimiterResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *RateLimiterResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RateLimiterAPIService.CreateRateLimiter") @@ -332,7 +341,6 @@ func (a *RateLimiterAPIService) CreateRateLimiterExecute(r APICreateRateLimiterR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -351,12 +359,11 @@ func (a *RateLimiterAPIService) CreateRateLimiterExecute(r APICreateRateLimiterR // APIDeleteRateLimiterRequest represents a request for the resource. type APIDeleteRateLimiterRequest struct { - ctx context.Context - APIService RateLimiterAPI + ctx context.Context + APIService RateLimiterAPI rateLimiterID string } - // Execute calls the API using the request data configured. func (r APIDeleteRateLimiterRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteRateLimiterExecute(r) @@ -373,8 +380,8 @@ Delete a rate limiter by its ID. */ func (a *RateLimiterAPIService) DeleteRateLimiter(ctx context.Context, rateLimiterID string) APIDeleteRateLimiterRequest { return APIDeleteRateLimiterRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, rateLimiterID: rateLimiterID, } } @@ -383,10 +390,10 @@ func (a *RateLimiterAPIService) DeleteRateLimiter(ctx context.Context, rateLimit // @return InlineResponse200 func (a *RateLimiterAPIService) DeleteRateLimiterExecute(r APIDeleteRateLimiterRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RateLimiterAPIService.DeleteRateLimiter") @@ -466,7 +473,6 @@ func (a *RateLimiterAPIService) DeleteRateLimiterExecute(r APIDeleteRateLimiterR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -485,12 +491,11 @@ func (a *RateLimiterAPIService) DeleteRateLimiterExecute(r APIDeleteRateLimiterR // APIGetRateLimiterRequest represents a request for the resource. type APIGetRateLimiterRequest struct { - ctx context.Context - APIService RateLimiterAPI + ctx context.Context + APIService RateLimiterAPI rateLimiterID string } - // Execute calls the API using the request data configured. func (r APIGetRateLimiterRequest) Execute() (*RateLimiterResponse, *http.Response, error) { return r.APIService.GetRateLimiterExecute(r) @@ -507,8 +512,8 @@ Get a rate limiter by its ID. */ func (a *RateLimiterAPIService) GetRateLimiter(ctx context.Context, rateLimiterID string) APIGetRateLimiterRequest { return APIGetRateLimiterRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, rateLimiterID: rateLimiterID, } } @@ -517,10 +522,10 @@ func (a *RateLimiterAPIService) GetRateLimiter(ctx context.Context, rateLimiterI // @return RateLimiterResponse func (a *RateLimiterAPIService) GetRateLimiterExecute(r APIGetRateLimiterRequest) (*RateLimiterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *RateLimiterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *RateLimiterResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RateLimiterAPIService.GetRateLimiter") @@ -600,7 +605,6 @@ func (a *RateLimiterAPIService) GetRateLimiterExecute(r APIGetRateLimiterRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -619,13 +623,12 @@ func (a *RateLimiterAPIService) GetRateLimiterExecute(r APIGetRateLimiterRequest // APIListRateLimitersRequest represents a request for the resource. type APIListRateLimitersRequest struct { - ctx context.Context + ctx context.Context APIService RateLimiterAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListRateLimitersRequest) Execute() ([]RateLimiterResponse, *http.Response, error) { return r.APIService.ListRateLimitersExecute(r) @@ -644,9 +647,9 @@ List all rate limiters for a particular service and version. func (a *RateLimiterAPIService) ListRateLimiters(ctx context.Context, serviceID string, versionID int32) APIListRateLimitersRequest { return APIListRateLimitersRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -654,10 +657,10 @@ func (a *RateLimiterAPIService) ListRateLimiters(ctx context.Context, serviceID // @return []RateLimiterResponse func (a *RateLimiterAPIService) ListRateLimitersExecute(r APIListRateLimitersRequest) ([]RateLimiterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []RateLimiterResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []RateLimiterResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RateLimiterAPIService.ListRateLimiters") @@ -738,7 +741,6 @@ func (a *RateLimiterAPIService) ListRateLimitersExecute(r APIListRateLimitersReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -757,20 +759,20 @@ func (a *RateLimiterAPIService) ListRateLimitersExecute(r APIListRateLimitersReq // APIUpdateRateLimiterRequest represents a request for the resource. type APIUpdateRateLimiterRequest struct { - ctx context.Context - APIService RateLimiterAPI - rateLimiterID string - name *string - uriDictionaryName *string - httpMethods *[]string - rpsLimit *int32 - windowSize *int32 - clientKey *[]string + ctx context.Context + APIService RateLimiterAPI + rateLimiterID string + name *string + uriDictionaryName *string + httpMethods *[]string + rpsLimit *int32 + windowSize *int32 + clientKey *[]string penaltyBoxDuration *int32 - action *string + action *string responseObjectName *string - loggerType *string - featureRevision *int32 + loggerType *string + featureRevision *int32 } // Name A human readable name for the rate limiting rule. @@ -778,51 +780,61 @@ func (r *APIUpdateRateLimiterRequest) Name(name string) *APIUpdateRateLimiterReq r.name = &name return r } + // URIDictionaryName The name of an Edge Dictionary containing URIs as keys. If not defined or `null`, all origin URIs will be rate limited. func (r *APIUpdateRateLimiterRequest) URIDictionaryName(uriDictionaryName string) *APIUpdateRateLimiterRequest { r.uriDictionaryName = &uriDictionaryName return r } + // HTTPMethods Array of HTTP methods to apply rate limiting to. func (r *APIUpdateRateLimiterRequest) HTTPMethods(httpMethods []string) *APIUpdateRateLimiterRequest { r.httpMethods = &httpMethods return r } + // RpsLimit Upper limit of requests per second allowed by the rate limiter. func (r *APIUpdateRateLimiterRequest) RpsLimit(rpsLimit int32) *APIUpdateRateLimiterRequest { r.rpsLimit = &rpsLimit return r } + // WindowSize Number of seconds during which the RPS limit must be exceeded in order to trigger a violation. func (r *APIUpdateRateLimiterRequest) WindowSize(windowSize int32) *APIUpdateRateLimiterRequest { r.windowSize = &windowSize return r } + // ClientKey Array of VCL variables used to generate a counter key to identify a client. Example variables include `req.http.Fastly-Client-IP`, `req.http.User-Agent`, or a custom header like `req.http.API-Key`. func (r *APIUpdateRateLimiterRequest) ClientKey(clientKey []string) *APIUpdateRateLimiterRequest { r.clientKey = &clientKey return r } + // PenaltyBoxDuration Length of time in minutes that the rate limiter is in effect after the initial violation is detected. func (r *APIUpdateRateLimiterRequest) PenaltyBoxDuration(penaltyBoxDuration int32) *APIUpdateRateLimiterRequest { r.penaltyBoxDuration = &penaltyBoxDuration return r } + // Action The action to take when a rate limiter violation is detected. func (r *APIUpdateRateLimiterRequest) Action(action string) *APIUpdateRateLimiterRequest { r.action = &action return r } + // ResponseObjectName Name of existing response object. Required if `action` is `response_object`. Note that the rate limiter response is only updated to reflect the response object content when saving the rate limiter configuration. func (r *APIUpdateRateLimiterRequest) ResponseObjectName(responseObjectName string) *APIUpdateRateLimiterRequest { r.responseObjectName = &responseObjectName return r } + // LoggerType Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. func (r *APIUpdateRateLimiterRequest) LoggerType(loggerType string) *APIUpdateRateLimiterRequest { r.loggerType = &loggerType return r } + // FeatureRevision Revision number of the rate limiting feature implementation. Defaults to the most recent revision. func (r *APIUpdateRateLimiterRequest) FeatureRevision(featureRevision int32) *APIUpdateRateLimiterRequest { r.featureRevision = &featureRevision @@ -845,8 +857,8 @@ Update a rate limiter by its ID. */ func (a *RateLimiterAPIService) UpdateRateLimiter(ctx context.Context, rateLimiterID string) APIUpdateRateLimiterRequest { return APIUpdateRateLimiterRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, rateLimiterID: rateLimiterID, } } @@ -855,10 +867,10 @@ func (a *RateLimiterAPIService) UpdateRateLimiter(ctx context.Context, rateLimit // @return RateLimiterResponse func (a *RateLimiterAPIService) UpdateRateLimiterExecute(r APIUpdateRateLimiterRequest) (*RateLimiterResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *RateLimiterResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *RateLimiterResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RateLimiterAPIService.UpdateRateLimiter") @@ -971,7 +983,6 @@ func (a *RateLimiterAPIService) UpdateRateLimiterExecute(r APIUpdateRateLimiterR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_realtime.go b/fastly/api_realtime.go index 39558f4..d920c95 100644 --- a/fastly/api_realtime.go +++ b/fastly/api_realtime.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type RealtimeAPI interface { /* - GetStatsLast120Seconds Get real-time data for the last 120 seconds + GetStatsLast120Seconds Get real-time data for the last 120 seconds - Get data for the 120 seconds preceding the latest timestamp available for a service. + Get data for the 120 seconds preceding the latest timestamp available for a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetStatsLast120SecondsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetStatsLast120SecondsRequest */ GetStatsLast120Seconds(ctx context.Context, serviceID string) APIGetStatsLast120SecondsRequest @@ -47,14 +46,14 @@ type RealtimeAPI interface { GetStatsLast120SecondsExecute(r APIGetStatsLast120SecondsRequest) (*Realtime, *http.Response, error) /* - GetStatsLast120SecondsLimitEntries Get a limited number of real-time data entries + GetStatsLast120SecondsLimitEntries Get a limited number of real-time data entries - Get data for the 120 seconds preceding the latest timestamp available for a service, up to a maximum of `max_entries` entries. + Get data for the 120 seconds preceding the latest timestamp available for a service, up to a maximum of `max_entries` entries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param maxEntries Maximum number of results to show. - @return APIGetStatsLast120SecondsLimitEntriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to show. + @return APIGetStatsLast120SecondsLimitEntriesRequest */ GetStatsLast120SecondsLimitEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetStatsLast120SecondsLimitEntriesRequest @@ -63,14 +62,14 @@ type RealtimeAPI interface { GetStatsLast120SecondsLimitEntriesExecute(r APIGetStatsLast120SecondsLimitEntriesRequest) (*Realtime, *http.Response, error) /* - GetStatsLastSecond Get real-time data from specified time + GetStatsLastSecond Get real-time data from specified time - Get real-time data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. + Get real-time data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param timestampInSeconds Timestamp in seconds (Unix epoch time). - @return APIGetStatsLastSecondRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param timestampInSeconds Timestamp in seconds (Unix epoch time). + @return APIGetStatsLastSecondRequest */ GetStatsLastSecond(ctx context.Context, serviceID string, timestampInSeconds int32) APIGetStatsLastSecondRequest @@ -84,12 +83,11 @@ type RealtimeAPIService service // APIGetStatsLast120SecondsRequest represents a request for the resource. type APIGetStatsLast120SecondsRequest struct { - ctx context.Context + ctx context.Context APIService RealtimeAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetStatsLast120SecondsRequest) Execute() (*Realtime, *http.Response, error) { return r.APIService.GetStatsLast120SecondsExecute(r) @@ -107,8 +105,8 @@ Get data for the 120 seconds preceding the latest timestamp available for a serv func (a *RealtimeAPIService) GetStatsLast120Seconds(ctx context.Context, serviceID string) APIGetStatsLast120SecondsRequest { return APIGetStatsLast120SecondsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -116,10 +114,10 @@ func (a *RealtimeAPIService) GetStatsLast120Seconds(ctx context.Context, service // @return Realtime func (a *RealtimeAPIService) GetStatsLast120SecondsExecute(r APIGetStatsLast120SecondsRequest) (*Realtime, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Realtime + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Realtime ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealtimeAPIService.GetStatsLast120Seconds") @@ -199,7 +197,6 @@ func (a *RealtimeAPIService) GetStatsLast120SecondsExecute(r APIGetStatsLast120S return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -218,13 +215,12 @@ func (a *RealtimeAPIService) GetStatsLast120SecondsExecute(r APIGetStatsLast120S // APIGetStatsLast120SecondsLimitEntriesRequest represents a request for the resource. type APIGetStatsLast120SecondsLimitEntriesRequest struct { - ctx context.Context + ctx context.Context APIService RealtimeAPI - serviceID string + serviceID string maxEntries int32 } - // Execute calls the API using the request data configured. func (r APIGetStatsLast120SecondsLimitEntriesRequest) Execute() (*Realtime, *http.Response, error) { return r.APIService.GetStatsLast120SecondsLimitEntriesExecute(r) @@ -243,8 +239,8 @@ Get data for the 120 seconds preceding the latest timestamp available for a serv func (a *RealtimeAPIService) GetStatsLast120SecondsLimitEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetStatsLast120SecondsLimitEntriesRequest { return APIGetStatsLast120SecondsLimitEntriesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, maxEntries: maxEntries, } } @@ -253,10 +249,10 @@ func (a *RealtimeAPIService) GetStatsLast120SecondsLimitEntries(ctx context.Cont // @return Realtime func (a *RealtimeAPIService) GetStatsLast120SecondsLimitEntriesExecute(r APIGetStatsLast120SecondsLimitEntriesRequest) (*Realtime, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Realtime + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Realtime ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealtimeAPIService.GetStatsLast120SecondsLimitEntries") @@ -337,7 +333,6 @@ func (a *RealtimeAPIService) GetStatsLast120SecondsLimitEntriesExecute(r APIGetS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -356,13 +351,12 @@ func (a *RealtimeAPIService) GetStatsLast120SecondsLimitEntriesExecute(r APIGetS // APIGetStatsLastSecondRequest represents a request for the resource. type APIGetStatsLastSecondRequest struct { - ctx context.Context - APIService RealtimeAPI - serviceID string + ctx context.Context + APIService RealtimeAPI + serviceID string timestampInSeconds int32 } - // Execute calls the API using the request data configured. func (r APIGetStatsLastSecondRequest) Execute() (*Realtime, *http.Response, error) { return r.APIService.GetStatsLastSecondExecute(r) @@ -380,9 +374,9 @@ Get real-time data for the specified reporting period. Specify `0` to get a sing */ func (a *RealtimeAPIService) GetStatsLastSecond(ctx context.Context, serviceID string, timestampInSeconds int32) APIGetStatsLastSecondRequest { return APIGetStatsLastSecondRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, timestampInSeconds: timestampInSeconds, } } @@ -391,10 +385,10 @@ func (a *RealtimeAPIService) GetStatsLastSecond(ctx context.Context, serviceID s // @return Realtime func (a *RealtimeAPIService) GetStatsLastSecondExecute(r APIGetStatsLastSecondRequest) (*Realtime, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Realtime + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Realtime ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RealtimeAPIService.GetStatsLastSecond") @@ -475,7 +469,6 @@ func (a *RealtimeAPIService) GetStatsLastSecondExecute(r APIGetStatsLastSecondRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_request_settings.go b/fastly/api_request_settings.go index 9ae86f4..2253b31 100644 --- a/fastly/api_request_settings.go +++ b/fastly/api_request_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type RequestSettingsAPI interface { /* - CreateRequestSettings Create a Request Settings object + CreateRequestSettings Create a Request Settings object - Creates a new Request Settings object. + Creates a new Request Settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateRequestSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateRequestSettingsRequest */ CreateRequestSettings(ctx context.Context, serviceID string, versionID int32) APICreateRequestSettingsRequest @@ -48,15 +47,15 @@ type RequestSettingsAPI interface { CreateRequestSettingsExecute(r APICreateRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) /* - DeleteRequestSettings Delete a Request Settings object + DeleteRequestSettings Delete a Request Settings object - Removes the specified Request Settings object. + Removes the specified Request Settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param requestSettingsName Name for the request settings. - @return APIDeleteRequestSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param requestSettingsName Name for the request settings. + @return APIDeleteRequestSettingsRequest */ DeleteRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIDeleteRequestSettingsRequest @@ -65,15 +64,15 @@ type RequestSettingsAPI interface { DeleteRequestSettingsExecute(r APIDeleteRequestSettingsRequest) (*InlineResponse200, *http.Response, error) /* - GetRequestSettings Get a Request Settings object + GetRequestSettings Get a Request Settings object - Gets the specified Request Settings object. + Gets the specified Request Settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param requestSettingsName Name for the request settings. - @return APIGetRequestSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param requestSettingsName Name for the request settings. + @return APIGetRequestSettingsRequest */ GetRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIGetRequestSettingsRequest @@ -82,14 +81,14 @@ type RequestSettingsAPI interface { GetRequestSettingsExecute(r APIGetRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) /* - ListRequestSettings List Request Settings objects + ListRequestSettings List Request Settings objects - Returns a list of all Request Settings objects for the given service and version. + Returns a list of all Request Settings objects for the given service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListRequestSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListRequestSettingsRequest */ ListRequestSettings(ctx context.Context, serviceID string, versionID int32) APIListRequestSettingsRequest @@ -98,15 +97,15 @@ type RequestSettingsAPI interface { ListRequestSettingsExecute(r APIListRequestSettingsRequest) ([]RequestSettingsResponse, *http.Response, error) /* - UpdateRequestSettings Update a Request Settings object + UpdateRequestSettings Update a Request Settings object - Updates the specified Request Settings object. + Updates the specified Request Settings object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param requestSettingsName Name for the request settings. - @return APIUpdateRequestSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param requestSettingsName Name for the request settings. + @return APIUpdateRequestSettingsRequest */ UpdateRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIUpdateRequestSettingsRequest @@ -120,13 +119,12 @@ type RequestSettingsAPIService service // APICreateRequestSettingsRequest represents a request for the resource. type APICreateRequestSettingsRequest struct { - ctx context.Context + ctx context.Context APIService RequestSettingsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APICreateRequestSettingsRequest) Execute() (*RequestSettingsResponse, *http.Response, error) { return r.APIService.CreateRequestSettingsExecute(r) @@ -145,9 +143,9 @@ Creates a new Request Settings object. func (a *RequestSettingsAPIService) CreateRequestSettings(ctx context.Context, serviceID string, versionID int32) APICreateRequestSettingsRequest { return APICreateRequestSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -155,10 +153,10 @@ func (a *RequestSettingsAPIService) CreateRequestSettings(ctx context.Context, s // @return RequestSettingsResponse func (a *RequestSettingsAPIService) CreateRequestSettingsExecute(r APICreateRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *RequestSettingsResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *RequestSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.CreateRequestSettings") @@ -239,7 +237,6 @@ func (a *RequestSettingsAPIService) CreateRequestSettingsExecute(r APICreateRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -258,14 +255,13 @@ func (a *RequestSettingsAPIService) CreateRequestSettingsExecute(r APICreateRequ // APIDeleteRequestSettingsRequest represents a request for the resource. type APIDeleteRequestSettingsRequest struct { - ctx context.Context - APIService RequestSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService RequestSettingsAPI + serviceID string + versionID int32 requestSettingsName string } - // Execute calls the API using the request data configured. func (r APIDeleteRequestSettingsRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteRequestSettingsExecute(r) @@ -284,10 +280,10 @@ Removes the specified Request Settings object. */ func (a *RequestSettingsAPIService) DeleteRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIDeleteRequestSettingsRequest { return APIDeleteRequestSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, requestSettingsName: requestSettingsName, } } @@ -296,10 +292,10 @@ func (a *RequestSettingsAPIService) DeleteRequestSettings(ctx context.Context, s // @return InlineResponse200 func (a *RequestSettingsAPIService) DeleteRequestSettingsExecute(r APIDeleteRequestSettingsRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.DeleteRequestSettings") @@ -381,7 +377,6 @@ func (a *RequestSettingsAPIService) DeleteRequestSettingsExecute(r APIDeleteRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -400,14 +395,13 @@ func (a *RequestSettingsAPIService) DeleteRequestSettingsExecute(r APIDeleteRequ // APIGetRequestSettingsRequest represents a request for the resource. type APIGetRequestSettingsRequest struct { - ctx context.Context - APIService RequestSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService RequestSettingsAPI + serviceID string + versionID int32 requestSettingsName string } - // Execute calls the API using the request data configured. func (r APIGetRequestSettingsRequest) Execute() (*RequestSettingsResponse, *http.Response, error) { return r.APIService.GetRequestSettingsExecute(r) @@ -426,10 +420,10 @@ Gets the specified Request Settings object. */ func (a *RequestSettingsAPIService) GetRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIGetRequestSettingsRequest { return APIGetRequestSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, requestSettingsName: requestSettingsName, } } @@ -438,10 +432,10 @@ func (a *RequestSettingsAPIService) GetRequestSettings(ctx context.Context, serv // @return RequestSettingsResponse func (a *RequestSettingsAPIService) GetRequestSettingsExecute(r APIGetRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *RequestSettingsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *RequestSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.GetRequestSettings") @@ -523,7 +517,6 @@ func (a *RequestSettingsAPIService) GetRequestSettingsExecute(r APIGetRequestSet return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -542,13 +535,12 @@ func (a *RequestSettingsAPIService) GetRequestSettingsExecute(r APIGetRequestSet // APIListRequestSettingsRequest represents a request for the resource. type APIListRequestSettingsRequest struct { - ctx context.Context + ctx context.Context APIService RequestSettingsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListRequestSettingsRequest) Execute() ([]RequestSettingsResponse, *http.Response, error) { return r.APIService.ListRequestSettingsExecute(r) @@ -567,9 +559,9 @@ Returns a list of all Request Settings objects for the given service and version func (a *RequestSettingsAPIService) ListRequestSettings(ctx context.Context, serviceID string, versionID int32) APIListRequestSettingsRequest { return APIListRequestSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -577,10 +569,10 @@ func (a *RequestSettingsAPIService) ListRequestSettings(ctx context.Context, ser // @return []RequestSettingsResponse func (a *RequestSettingsAPIService) ListRequestSettingsExecute(r APIListRequestSettingsRequest) ([]RequestSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []RequestSettingsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []RequestSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.ListRequestSettings") @@ -661,7 +653,6 @@ func (a *RequestSettingsAPIService) ListRequestSettingsExecute(r APIListRequestS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -680,23 +671,23 @@ func (a *RequestSettingsAPIService) ListRequestSettingsExecute(r APIListRequestS // APIUpdateRequestSettingsRequest represents a request for the resource. type APIUpdateRequestSettingsRequest struct { - ctx context.Context - APIService RequestSettingsAPI - serviceID string - versionID int32 + ctx context.Context + APIService RequestSettingsAPI + serviceID string + versionID int32 requestSettingsName string - action *string - defaultHost *string - hashKeys *string - name *string - requestCondition *string - xff *string - bypassBusyWait *int32 - forceMiss *int32 - forceSsl *int32 - geoHeaders *int32 - maxStaleAge *int32 - timerSupport *int32 + action *string + defaultHost *string + hashKeys *string + name *string + requestCondition *string + xff *string + bypassBusyWait *int32 + forceMiss *int32 + forceSsl *int32 + geoHeaders *int32 + maxStaleAge *int32 + timerSupport *int32 } // Action Allows you to terminate request handling and immediately perform an action. @@ -704,56 +695,67 @@ func (r *APIUpdateRequestSettingsRequest) Action(action string) *APIUpdateReques r.action = &action return r } + // DefaultHost Sets the host header. func (r *APIUpdateRequestSettingsRequest) DefaultHost(defaultHost string) *APIUpdateRequestSettingsRequest { r.defaultHost = &defaultHost return r } + // HashKeys Comma separated list of varnish request object fields that should be in the hash key. func (r *APIUpdateRequestSettingsRequest) HashKeys(hashKeys string) *APIUpdateRequestSettingsRequest { r.hashKeys = &hashKeys return r } + // Name Name for the request settings. func (r *APIUpdateRequestSettingsRequest) Name(name string) *APIUpdateRequestSettingsRequest { r.name = &name return r } + // RequestCondition Condition which, if met, will select this configuration during a request. Optional. func (r *APIUpdateRequestSettingsRequest) RequestCondition(requestCondition string) *APIUpdateRequestSettingsRequest { r.requestCondition = &requestCondition return r } + // Xff Short for X-Forwarded-For. func (r *APIUpdateRequestSettingsRequest) Xff(xff string) *APIUpdateRequestSettingsRequest { r.xff = &xff return r } + // BypassBusyWait Disable collapsed forwarding, so you don't wait for other objects to origin. func (r *APIUpdateRequestSettingsRequest) BypassBusyWait(bypassBusyWait int32) *APIUpdateRequestSettingsRequest { r.bypassBusyWait = &bypassBusyWait return r } + // ForceMiss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. func (r *APIUpdateRequestSettingsRequest) ForceMiss(forceMiss int32) *APIUpdateRequestSettingsRequest { r.forceMiss = &forceMiss return r } + // ForceSsl Forces the request use SSL (redirects a non-SSL to SSL). func (r *APIUpdateRequestSettingsRequest) ForceSsl(forceSsl int32) *APIUpdateRequestSettingsRequest { r.forceSsl = &forceSsl return r } + // GeoHeaders Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. func (r *APIUpdateRequestSettingsRequest) GeoHeaders(geoHeaders int32) *APIUpdateRequestSettingsRequest { r.geoHeaders = &geoHeaders return r } + // MaxStaleAge How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. func (r *APIUpdateRequestSettingsRequest) MaxStaleAge(maxStaleAge int32) *APIUpdateRequestSettingsRequest { r.maxStaleAge = &maxStaleAge return r } + // TimerSupport Injects the X-Timer info into the request for viewing origin fetch durations. func (r *APIUpdateRequestSettingsRequest) TimerSupport(timerSupport int32) *APIUpdateRequestSettingsRequest { r.timerSupport = &timerSupport @@ -778,10 +780,10 @@ Updates the specified Request Settings object. */ func (a *RequestSettingsAPIService) UpdateRequestSettings(ctx context.Context, serviceID string, versionID int32, requestSettingsName string) APIUpdateRequestSettingsRequest { return APIUpdateRequestSettingsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, requestSettingsName: requestSettingsName, } } @@ -790,10 +792,10 @@ func (a *RequestSettingsAPIService) UpdateRequestSettings(ctx context.Context, s // @return RequestSettingsResponse func (a *RequestSettingsAPIService) UpdateRequestSettingsExecute(r APIUpdateRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *RequestSettingsResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *RequestSettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.UpdateRequestSettings") @@ -911,7 +913,6 @@ func (a *RequestSettingsAPIService) UpdateRequestSettingsExecute(r APIUpdateRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_resource.go b/fastly/api_resource.go index 1a42114..ea23b6f 100644 --- a/fastly/api_resource.go +++ b/fastly/api_resource.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ResourceAPI interface { /* - CreateResource Create a resource link + CreateResource Create a resource link - Create a link between a resource and a service version. + Create a link between a resource and a service version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateResourceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateResourceRequest */ CreateResource(ctx context.Context, serviceID string, versionID int32) APICreateResourceRequest @@ -48,15 +47,15 @@ type ResourceAPI interface { CreateResourceExecute(r APICreateResourceRequest) (*ResourceResponse, *http.Response, error) /* - DeleteResource Delete a resource link + DeleteResource Delete a resource link - Delete a link between a resource and a service version. + Delete a link between a resource and a service version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param id An alphanumeric string identifying the resource link. - @return APIDeleteResourceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param id An alphanumeric string identifying the resource link. + @return APIDeleteResourceRequest */ DeleteResource(ctx context.Context, serviceID string, versionID int32, id string) APIDeleteResourceRequest @@ -65,15 +64,15 @@ type ResourceAPI interface { DeleteResourceExecute(r APIDeleteResourceRequest) (*InlineResponse200, *http.Response, error) /* - GetResource Display a resource link + GetResource Display a resource link - Display a resource link by its identifier. + Display a resource link by its identifier. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param id An alphanumeric string identifying the resource link. - @return APIGetResourceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param id An alphanumeric string identifying the resource link. + @return APIGetResourceRequest */ GetResource(ctx context.Context, serviceID string, versionID int32, id string) APIGetResourceRequest @@ -82,14 +81,14 @@ type ResourceAPI interface { GetResourceExecute(r APIGetResourceRequest) (*ResourceResponse, *http.Response, error) /* - ListResources List resource links + ListResources List resource links - List links between resources and services + List links between resources and services - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListResourcesRequest */ ListResources(ctx context.Context, serviceID string, versionID int32) APIListResourcesRequest @@ -98,15 +97,15 @@ type ResourceAPI interface { ListResourcesExecute(r APIListResourcesRequest) ([]ResourceResponse, *http.Response, error) /* - UpdateResource Update a resource link + UpdateResource Update a resource link - Update a link between a resource and a service version. + Update a link between a resource and a service version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param id An alphanumeric string identifying the resource link. - @return APIUpdateResourceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param id An alphanumeric string identifying the resource link. + @return APIUpdateResourceRequest */ UpdateResource(ctx context.Context, serviceID string, versionID int32, id string) APIUpdateResourceRequest @@ -120,12 +119,12 @@ type ResourceAPIService service // APICreateResourceRequest represents a request for the resource. type APICreateResourceRequest struct { - ctx context.Context + ctx context.Context APIService ResourceAPI - serviceID string - versionID int32 + serviceID string + versionID int32 resourceID *string - name *string + name *string } // ResourceID The ID of the underlying linked resource. @@ -133,6 +132,7 @@ func (r *APICreateResourceRequest) ResourceID(resourceID string) *APICreateResou r.resourceID = &resourceID return r } + // Name The name of the resource link. func (r *APICreateResourceRequest) Name(name string) *APICreateResourceRequest { r.name = &name @@ -157,9 +157,9 @@ Create a link between a resource and a service version. func (a *ResourceAPIService) CreateResource(ctx context.Context, serviceID string, versionID int32) APICreateResourceRequest { return APICreateResourceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -167,10 +167,10 @@ func (a *ResourceAPIService) CreateResource(ctx context.Context, serviceID strin // @return ResourceResponse func (a *ResourceAPIService) CreateResourceExecute(r APICreateResourceRequest) (*ResourceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResourceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResourceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceAPIService.CreateResource") @@ -257,7 +257,6 @@ func (a *ResourceAPIService) CreateResourceExecute(r APICreateResourceRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -276,14 +275,13 @@ func (a *ResourceAPIService) CreateResourceExecute(r APICreateResourceRequest) ( // APIDeleteResourceRequest represents a request for the resource. type APIDeleteResourceRequest struct { - ctx context.Context + ctx context.Context APIService ResourceAPI - serviceID string - versionID int32 - id string + serviceID string + versionID int32 + id string } - // Execute calls the API using the request data configured. func (r APIDeleteResourceRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteResourceExecute(r) @@ -303,10 +301,10 @@ Delete a link between a resource and a service version. func (a *ResourceAPIService) DeleteResource(ctx context.Context, serviceID string, versionID int32, id string) APIDeleteResourceRequest { return APIDeleteResourceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - id: id, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + id: id, } } @@ -314,10 +312,10 @@ func (a *ResourceAPIService) DeleteResource(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *ResourceAPIService) DeleteResourceExecute(r APIDeleteResourceRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceAPIService.DeleteResource") @@ -399,7 +397,6 @@ func (a *ResourceAPIService) DeleteResourceExecute(r APIDeleteResourceRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -418,14 +415,13 @@ func (a *ResourceAPIService) DeleteResourceExecute(r APIDeleteResourceRequest) ( // APIGetResourceRequest represents a request for the resource. type APIGetResourceRequest struct { - ctx context.Context + ctx context.Context APIService ResourceAPI - serviceID string - versionID int32 - id string + serviceID string + versionID int32 + id string } - // Execute calls the API using the request data configured. func (r APIGetResourceRequest) Execute() (*ResourceResponse, *http.Response, error) { return r.APIService.GetResourceExecute(r) @@ -445,10 +441,10 @@ Display a resource link by its identifier. func (a *ResourceAPIService) GetResource(ctx context.Context, serviceID string, versionID int32, id string) APIGetResourceRequest { return APIGetResourceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - id: id, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + id: id, } } @@ -456,10 +452,10 @@ func (a *ResourceAPIService) GetResource(ctx context.Context, serviceID string, // @return ResourceResponse func (a *ResourceAPIService) GetResourceExecute(r APIGetResourceRequest) (*ResourceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResourceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResourceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceAPIService.GetResource") @@ -541,7 +537,6 @@ func (a *ResourceAPIService) GetResourceExecute(r APIGetResourceRequest) (*Resou return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -560,13 +555,12 @@ func (a *ResourceAPIService) GetResourceExecute(r APIGetResourceRequest) (*Resou // APIListResourcesRequest represents a request for the resource. type APIListResourcesRequest struct { - ctx context.Context + ctx context.Context APIService ResourceAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListResourcesRequest) Execute() ([]ResourceResponse, *http.Response, error) { return r.APIService.ListResourcesExecute(r) @@ -585,9 +579,9 @@ List links between resources and services func (a *ResourceAPIService) ListResources(ctx context.Context, serviceID string, versionID int32) APIListResourcesRequest { return APIListResourcesRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -595,10 +589,10 @@ func (a *ResourceAPIService) ListResources(ctx context.Context, serviceID string // @return []ResourceResponse func (a *ResourceAPIService) ListResourcesExecute(r APIListResourcesRequest) ([]ResourceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ResourceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ResourceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceAPIService.ListResources") @@ -679,7 +673,6 @@ func (a *ResourceAPIService) ListResourcesExecute(r APIListResourcesRequest) ([] return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -698,13 +691,13 @@ func (a *ResourceAPIService) ListResourcesExecute(r APIListResourcesRequest) ([] // APIUpdateResourceRequest represents a request for the resource. type APIUpdateResourceRequest struct { - ctx context.Context + ctx context.Context APIService ResourceAPI - serviceID string - versionID int32 - id string + serviceID string + versionID int32 + id string resourceID *string - name *string + name *string } // ResourceID The ID of the underlying linked resource. @@ -712,6 +705,7 @@ func (r *APIUpdateResourceRequest) ResourceID(resourceID string) *APIUpdateResou r.resourceID = &resourceID return r } + // Name The name of the resource link. func (r *APIUpdateResourceRequest) Name(name string) *APIUpdateResourceRequest { r.name = &name @@ -737,10 +731,10 @@ Update a link between a resource and a service version. func (a *ResourceAPIService) UpdateResource(ctx context.Context, serviceID string, versionID int32, id string) APIUpdateResourceRequest { return APIUpdateResourceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - id: id, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + id: id, } } @@ -748,10 +742,10 @@ func (a *ResourceAPIService) UpdateResource(ctx context.Context, serviceID strin // @return ResourceResponse func (a *ResourceAPIService) UpdateResourceExecute(r APIUpdateResourceRequest) (*ResourceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResourceResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResourceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceAPIService.UpdateResource") @@ -839,7 +833,6 @@ func (a *ResourceAPIService) UpdateResourceExecute(r APIUpdateResourceRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_response_object.go b/fastly/api_response_object.go index 4a4d287..5ecb268 100644 --- a/fastly/api_response_object.go +++ b/fastly/api_response_object.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ResponseObjectAPI interface { /* - CreateResponseObject Create a Response object + CreateResponseObject Create a Response object - Creates a new Response Object. + Creates a new Response Object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateResponseObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateResponseObjectRequest */ CreateResponseObject(ctx context.Context, serviceID string, versionID int32) APICreateResponseObjectRequest @@ -48,15 +47,15 @@ type ResponseObjectAPI interface { CreateResponseObjectExecute(r APICreateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) /* - DeleteResponseObject Delete a Response Object + DeleteResponseObject Delete a Response Object - Deletes the specified Response Object. + Deletes the specified Response Object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param responseObjectName Name for the request settings. - @return APIDeleteResponseObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param responseObjectName Name for the request settings. + @return APIDeleteResponseObjectRequest */ DeleteResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIDeleteResponseObjectRequest @@ -65,15 +64,15 @@ type ResponseObjectAPI interface { DeleteResponseObjectExecute(r APIDeleteResponseObjectRequest) (*InlineResponse200, *http.Response, error) /* - GetResponseObject Get a Response object + GetResponseObject Get a Response object - Gets the specified Response Object. + Gets the specified Response Object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param responseObjectName Name for the request settings. - @return APIGetResponseObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param responseObjectName Name for the request settings. + @return APIGetResponseObjectRequest */ GetResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIGetResponseObjectRequest @@ -82,14 +81,14 @@ type ResponseObjectAPI interface { GetResponseObjectExecute(r APIGetResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) /* - ListResponseObjects List Response objects + ListResponseObjects List Response objects - Returns all Response Objects for the specified service and version. + Returns all Response Objects for the specified service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListResponseObjectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListResponseObjectsRequest */ ListResponseObjects(ctx context.Context, serviceID string, versionID int32) APIListResponseObjectsRequest @@ -98,15 +97,15 @@ type ResponseObjectAPI interface { ListResponseObjectsExecute(r APIListResponseObjectsRequest) ([]ResponseObjectResponse, *http.Response, error) /* - UpdateResponseObject Update a Response object + UpdateResponseObject Update a Response object - Updates the specified Response Object. + Updates the specified Response Object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param responseObjectName Name for the request settings. - @return APIUpdateResponseObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param responseObjectName Name for the request settings. + @return APIUpdateResponseObjectRequest */ UpdateResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIUpdateResponseObjectRequest @@ -120,10 +119,10 @@ type ResponseObjectAPIService service // APICreateResponseObjectRequest represents a request for the resource. type APICreateResponseObjectRequest struct { - ctx context.Context - APIService ResponseObjectAPI - serviceID string - versionID int32 + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 createResponseObjectRequest *CreateResponseObjectRequest } @@ -151,9 +150,9 @@ Creates a new Response Object. func (a *ResponseObjectAPIService) CreateResponseObject(ctx context.Context, serviceID string, versionID int32) APICreateResponseObjectRequest { return APICreateResponseObjectRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -161,10 +160,10 @@ func (a *ResponseObjectAPIService) CreateResponseObject(ctx context.Context, ser // @return ResponseObjectResponse func (a *ResponseObjectAPIService) CreateResponseObjectExecute(r APICreateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResponseObjectResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResponseObjectResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.CreateResponseObject") @@ -247,7 +246,6 @@ func (a *ResponseObjectAPIService) CreateResponseObjectExecute(r APICreateRespon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -266,14 +264,13 @@ func (a *ResponseObjectAPIService) CreateResponseObjectExecute(r APICreateRespon // APIDeleteResponseObjectRequest represents a request for the resource. type APIDeleteResponseObjectRequest struct { - ctx context.Context - APIService ResponseObjectAPI - serviceID string - versionID int32 + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 responseObjectName string } - // Execute calls the API using the request data configured. func (r APIDeleteResponseObjectRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteResponseObjectExecute(r) @@ -292,10 +289,10 @@ Deletes the specified Response Object. */ func (a *ResponseObjectAPIService) DeleteResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIDeleteResponseObjectRequest { return APIDeleteResponseObjectRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, responseObjectName: responseObjectName, } } @@ -304,10 +301,10 @@ func (a *ResponseObjectAPIService) DeleteResponseObject(ctx context.Context, ser // @return InlineResponse200 func (a *ResponseObjectAPIService) DeleteResponseObjectExecute(r APIDeleteResponseObjectRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.DeleteResponseObject") @@ -389,7 +386,6 @@ func (a *ResponseObjectAPIService) DeleteResponseObjectExecute(r APIDeleteRespon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -408,14 +404,13 @@ func (a *ResponseObjectAPIService) DeleteResponseObjectExecute(r APIDeleteRespon // APIGetResponseObjectRequest represents a request for the resource. type APIGetResponseObjectRequest struct { - ctx context.Context - APIService ResponseObjectAPI - serviceID string - versionID int32 + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 responseObjectName string } - // Execute calls the API using the request data configured. func (r APIGetResponseObjectRequest) Execute() (*ResponseObjectResponse, *http.Response, error) { return r.APIService.GetResponseObjectExecute(r) @@ -434,10 +429,10 @@ Gets the specified Response Object. */ func (a *ResponseObjectAPIService) GetResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIGetResponseObjectRequest { return APIGetResponseObjectRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, responseObjectName: responseObjectName, } } @@ -446,10 +441,10 @@ func (a *ResponseObjectAPIService) GetResponseObject(ctx context.Context, servic // @return ResponseObjectResponse func (a *ResponseObjectAPIService) GetResponseObjectExecute(r APIGetResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResponseObjectResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResponseObjectResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.GetResponseObject") @@ -531,7 +526,6 @@ func (a *ResponseObjectAPIService) GetResponseObjectExecute(r APIGetResponseObje return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -550,13 +544,12 @@ func (a *ResponseObjectAPIService) GetResponseObjectExecute(r APIGetResponseObje // APIListResponseObjectsRequest represents a request for the resource. type APIListResponseObjectsRequest struct { - ctx context.Context + ctx context.Context APIService ResponseObjectAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListResponseObjectsRequest) Execute() ([]ResponseObjectResponse, *http.Response, error) { return r.APIService.ListResponseObjectsExecute(r) @@ -575,9 +568,9 @@ Returns all Response Objects for the specified service and version. func (a *ResponseObjectAPIService) ListResponseObjects(ctx context.Context, serviceID string, versionID int32) APIListResponseObjectsRequest { return APIListResponseObjectsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -585,10 +578,10 @@ func (a *ResponseObjectAPIService) ListResponseObjects(ctx context.Context, serv // @return []ResponseObjectResponse func (a *ResponseObjectAPIService) ListResponseObjectsExecute(r APIListResponseObjectsRequest) ([]ResponseObjectResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ResponseObjectResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ResponseObjectResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.ListResponseObjects") @@ -669,7 +662,6 @@ func (a *ResponseObjectAPIService) ListResponseObjectsExecute(r APIListResponseO return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -688,11 +680,11 @@ func (a *ResponseObjectAPIService) ListResponseObjectsExecute(r APIListResponseO // APIUpdateResponseObjectRequest represents a request for the resource. type APIUpdateResponseObjectRequest struct { - ctx context.Context - APIService ResponseObjectAPI - serviceID string - versionID int32 - responseObjectName string + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 + responseObjectName string createResponseObjectRequest *CreateResponseObjectRequest } @@ -720,10 +712,10 @@ Updates the specified Response Object. */ func (a *ResponseObjectAPIService) UpdateResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIUpdateResponseObjectRequest { return APIUpdateResponseObjectRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, responseObjectName: responseObjectName, } } @@ -732,10 +724,10 @@ func (a *ResponseObjectAPIService) UpdateResponseObject(ctx context.Context, ser // @return ResponseObjectResponse func (a *ResponseObjectAPIService) UpdateResponseObjectExecute(r APIUpdateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ResponseObjectResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResponseObjectResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.UpdateResponseObject") @@ -819,7 +811,6 @@ func (a *ResponseObjectAPIService) UpdateResponseObjectExecute(r APIUpdateRespon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_secret_store.go b/fastly/api_secret_store.go index ae7ffca..8e18c66 100644 --- a/fastly/api_secret_store.go +++ b/fastly/api_secret_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type SecretStoreAPI interface { /* - ClientKey Create new client key + ClientKey Create new client key - Create a new client key for encrypting secrets locally before uploading. + Create a new client key for encrypting secrets locally before uploading. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIClientKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIClientKeyRequest */ ClientKey(ctx context.Context) APIClientKeyRequest @@ -46,12 +45,12 @@ type SecretStoreAPI interface { ClientKeyExecute(r APIClientKeyRequest) (*ClientKey, *http.Response, error) /* - CreateSecretStore Create new secret store + CreateSecretStore Create new secret store - Create a new secret store. + Create a new secret store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateSecretStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateSecretStoreRequest */ CreateSecretStore(ctx context.Context) APICreateSecretStoreRequest @@ -60,13 +59,13 @@ type SecretStoreAPI interface { CreateSecretStoreExecute(r APICreateSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) /* - DeleteSecretStore Delete secret store + DeleteSecretStore Delete secret store - Delete a secret store and all of its contents. + Delete a secret store and all of its contents. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIDeleteSecretStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIDeleteSecretStoreRequest */ DeleteSecretStore(ctx context.Context, storeID string) APIDeleteSecretStoreRequest @@ -74,13 +73,13 @@ type SecretStoreAPI interface { DeleteSecretStoreExecute(r APIDeleteSecretStoreRequest) (*http.Response, error) /* - GetSecretStore Get secret store by ID + GetSecretStore Get secret store by ID - Get a secret store by ID. + Get a secret store by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIGetSecretStoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretStoreRequest */ GetSecretStore(ctx context.Context, storeID string) APIGetSecretStoreRequest @@ -89,12 +88,12 @@ type SecretStoreAPI interface { GetSecretStoreExecute(r APIGetSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) /* - GetSecretStores Get all secret stores + GetSecretStores Get all secret stores - Get all secret stores. + Get all secret stores. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetSecretStoresRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetSecretStoresRequest */ GetSecretStores(ctx context.Context) APIGetSecretStoresRequest @@ -103,12 +102,12 @@ type SecretStoreAPI interface { GetSecretStoresExecute(r APIGetSecretStoresRequest) (*InlineResponse2005, *http.Response, error) /* - SigningKey Get public key + SigningKey Get public key - Get the public key used for signing client keys. + Get the public key used for signing client keys. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APISigningKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APISigningKeyRequest */ SigningKey(ctx context.Context) APISigningKeyRequest @@ -122,11 +121,10 @@ type SecretStoreAPIService service // APIClientKeyRequest represents a request for the resource. type APIClientKeyRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreAPI } - // Execute calls the API using the request data configured. func (r APIClientKeyRequest) Execute() (*ClientKey, *http.Response, error) { return r.APIService.ClientKeyExecute(r) @@ -143,7 +141,7 @@ Create a new client key for encrypting secrets locally before uploading. func (a *SecretStoreAPIService) ClientKey(ctx context.Context) APIClientKeyRequest { return APIClientKeyRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -151,10 +149,10 @@ func (a *SecretStoreAPIService) ClientKey(ctx context.Context) APIClientKeyReque // @return ClientKey func (a *SecretStoreAPIService) ClientKeyExecute(r APIClientKeyRequest) (*ClientKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ClientKey + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ClientKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.ClientKey") @@ -233,7 +231,6 @@ func (a *SecretStoreAPIService) ClientKeyExecute(r APIClientKeyRequest) (*Client return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -252,8 +249,8 @@ func (a *SecretStoreAPIService) ClientKeyExecute(r APIClientKeyRequest) (*Client // APICreateSecretStoreRequest represents a request for the resource. type APICreateSecretStoreRequest struct { - ctx context.Context - APIService SecretStoreAPI + ctx context.Context + APIService SecretStoreAPI secretStore *SecretStore } @@ -279,7 +276,7 @@ Create a new secret store. func (a *SecretStoreAPIService) CreateSecretStore(ctx context.Context) APICreateSecretStoreRequest { return APICreateSecretStoreRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -287,10 +284,10 @@ func (a *SecretStoreAPIService) CreateSecretStore(ctx context.Context) APICreate // @return SecretStoreResponse func (a *SecretStoreAPIService) CreateSecretStoreExecute(r APICreateSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretStoreResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.CreateSecretStore") @@ -371,7 +368,6 @@ func (a *SecretStoreAPIService) CreateSecretStoreExecute(r APICreateSecretStoreR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -390,12 +386,11 @@ func (a *SecretStoreAPIService) CreateSecretStoreExecute(r APICreateSecretStoreR // APIDeleteSecretStoreRequest represents a request for the resource. type APIDeleteSecretStoreRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreAPI - storeID string + storeID string } - // Execute calls the API using the request data configured. func (r APIDeleteSecretStoreRequest) Execute() (*http.Response, error) { return r.APIService.DeleteSecretStoreExecute(r) @@ -413,17 +408,17 @@ Delete a secret store and all of its contents. func (a *SecretStoreAPIService) DeleteSecretStore(ctx context.Context, storeID string) APIDeleteSecretStoreRequest { return APIDeleteSecretStoreRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } // DeleteSecretStoreExecute executes the request func (a *SecretStoreAPIService) DeleteSecretStoreExecute(r APIDeleteSecretStoreRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.DeleteSecretStore") @@ -494,7 +489,6 @@ func (a *SecretStoreAPIService) DeleteSecretStoreExecute(r APIDeleteSecretStoreR return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -513,12 +507,11 @@ func (a *SecretStoreAPIService) DeleteSecretStoreExecute(r APIDeleteSecretStoreR // APIGetSecretStoreRequest represents a request for the resource. type APIGetSecretStoreRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreAPI - storeID string + storeID string } - // Execute calls the API using the request data configured. func (r APIGetSecretStoreRequest) Execute() (*SecretStoreResponse, *http.Response, error) { return r.APIService.GetSecretStoreExecute(r) @@ -536,8 +529,8 @@ Get a secret store by ID. func (a *SecretStoreAPIService) GetSecretStore(ctx context.Context, storeID string) APIGetSecretStoreRequest { return APIGetSecretStoreRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -545,10 +538,10 @@ func (a *SecretStoreAPIService) GetSecretStore(ctx context.Context, storeID stri // @return SecretStoreResponse func (a *SecretStoreAPIService) GetSecretStoreExecute(r APIGetSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretStoreResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretStoreResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.GetSecretStore") @@ -628,7 +621,6 @@ func (a *SecretStoreAPIService) GetSecretStoreExecute(r APIGetSecretStoreRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -647,11 +639,11 @@ func (a *SecretStoreAPIService) GetSecretStoreExecute(r APIGetSecretStoreRequest // APIGetSecretStoresRequest represents a request for the resource. type APIGetSecretStoresRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreAPI - cursor *string - limit *string - name *string + cursor *string + limit *string + name *string } // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. @@ -659,11 +651,13 @@ func (r *APIGetSecretStoresRequest) Cursor(cursor string) *APIGetSecretStoresReq r.cursor = &cursor return r } + // Limit Number of results per page. The maximum is 200. func (r *APIGetSecretStoresRequest) Limit(limit string) *APIGetSecretStoresRequest { r.limit = &limit return r } + // Name Returns a one-element array containing the details for the named secret store. func (r *APIGetSecretStoresRequest) Name(name string) *APIGetSecretStoresRequest { r.name = &name @@ -686,7 +680,7 @@ Get all secret stores. func (a *SecretStoreAPIService) GetSecretStores(ctx context.Context) APIGetSecretStoresRequest { return APIGetSecretStoresRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -694,10 +688,10 @@ func (a *SecretStoreAPIService) GetSecretStores(ctx context.Context) APIGetSecre // @return InlineResponse2005 func (a *SecretStoreAPIService) GetSecretStoresExecute(r APIGetSecretStoresRequest) (*InlineResponse2005, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2005 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2005 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.GetSecretStores") @@ -785,7 +779,6 @@ func (a *SecretStoreAPIService) GetSecretStoresExecute(r APIGetSecretStoresReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -804,11 +797,10 @@ func (a *SecretStoreAPIService) GetSecretStoresExecute(r APIGetSecretStoresReque // APISigningKeyRequest represents a request for the resource. type APISigningKeyRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreAPI } - // Execute calls the API using the request data configured. func (r APISigningKeyRequest) Execute() (*SigningKey, *http.Response, error) { return r.APIService.SigningKeyExecute(r) @@ -825,7 +817,7 @@ Get the public key used for signing client keys. func (a *SecretStoreAPIService) SigningKey(ctx context.Context) APISigningKeyRequest { return APISigningKeyRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -833,10 +825,10 @@ func (a *SecretStoreAPIService) SigningKey(ctx context.Context) APISigningKeyReq // @return SigningKey func (a *SecretStoreAPIService) SigningKeyExecute(r APISigningKeyRequest) (*SigningKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SigningKey + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SigningKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.SigningKey") @@ -915,7 +907,6 @@ func (a *SecretStoreAPIService) SigningKeyExecute(r APISigningKeyRequest) (*Sign return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_secret_store_item.go b/fastly/api_secret_store_item.go index e18b583..4a706a6 100644 --- a/fastly/api_secret_store_item.go +++ b/fastly/api_secret_store_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,19 +31,19 @@ var ( type SecretStoreItemAPI interface { /* - CreateSecret Create a new secret in a store. + CreateSecret Create a new secret in a store. - Create a new secret in a store. -Returns an error if a secret already exists with the same name. -See `PUT` and `PATCH` methods for ways to recreate an existing secret. + Create a new secret in a store. + Returns an error if a secret already exists with the same name. + See `PUT` and `PATCH` methods for ways to recreate an existing secret. -The `secret` field must be Base64-encoded because a secret can contain binary data. -In the example below, the unencoded secret is "Hello, world!" + The `secret` field must be Base64-encoded because a secret can contain binary data. + In the example below, the unencoded secret is "Hello, world!" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APICreateSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APICreateSecretRequest */ CreateSecret(ctx context.Context, storeID string) APICreateSecretRequest @@ -53,14 +52,14 @@ In the example below, the unencoded secret is "Hello, world!" CreateSecretExecute(r APICreateSecretRequest) (*SecretResponse, *http.Response, error) /* - DeleteSecret Delete a secret from a store. + DeleteSecret Delete a secret from a store. - Delete a secret from a store by name. + Delete a secret from a store by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @param secretName - @return APIDeleteSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIDeleteSecretRequest */ DeleteSecret(ctx context.Context, storeID string, secretName string) APIDeleteSecretRequest @@ -68,14 +67,14 @@ In the example below, the unencoded secret is "Hello, world!" DeleteSecretExecute(r APIDeleteSecretRequest) (*http.Response, error) /* - GetSecret Get secret metadata. + GetSecret Get secret metadata. - Get metadata about a secret by name. + Get metadata about a secret by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @param secretName - @return APIGetSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIGetSecretRequest */ GetSecret(ctx context.Context, storeID string, secretName string) APIGetSecretRequest @@ -84,13 +83,13 @@ In the example below, the unencoded secret is "Hello, world!" GetSecretExecute(r APIGetSecretRequest) (*SecretResponse, *http.Response, error) /* - GetSecrets List secrets within a store. + GetSecrets List secrets within a store. - List all secrets within a store. + List all secrets within a store. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIGetSecretsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretsRequest */ GetSecrets(ctx context.Context, storeID string) APIGetSecretsRequest @@ -99,18 +98,18 @@ In the example below, the unencoded secret is "Hello, world!" GetSecretsExecute(r APIGetSecretsRequest) (*InlineResponse2006, *http.Response, error) /* - MustRecreateSecret Recreate a secret in a store. + MustRecreateSecret Recreate a secret in a store. - Recreate a secret based on the secret's name. -Returns an error if there is no existing secret with the same name. + Recreate a secret based on the secret's name. + Returns an error if there is no existing secret with the same name. -The `secret` field must be Base64-encoded because a secret can contain binary data. -In the example below, the unencoded secret is "Hello, world!" + The `secret` field must be Base64-encoded because a secret can contain binary data. + In the example below, the unencoded secret is "Hello, world!" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIMustRecreateSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIMustRecreateSecretRequest */ MustRecreateSecret(ctx context.Context, storeID string) APIMustRecreateSecretRequest @@ -119,18 +118,18 @@ In the example below, the unencoded secret is "Hello, world!" MustRecreateSecretExecute(r APIMustRecreateSecretRequest) (*SecretResponse, *http.Response, error) /* - RecreateSecret Create or recreate a secret in a store. + RecreateSecret Create or recreate a secret in a store. - Create or recreate a secret based on the secret's name. -The response object's `recreated` field will be true if the secret was recreated. + Create or recreate a secret based on the secret's name. + The response object's `recreated` field will be true if the secret was recreated. -The `secret` field must be Base64-encoded because a secret can contain binary data. -In the example below, the unencoded secret is "Hello, world!" + The `secret` field must be Base64-encoded because a secret can contain binary data. + In the example below, the unencoded secret is "Hello, world!" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param storeID - @return APIRecreateSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIRecreateSecretRequest */ RecreateSecret(ctx context.Context, storeID string) APIRecreateSecretRequest @@ -144,10 +143,10 @@ type SecretStoreItemAPIService service // APICreateSecretRequest represents a request for the resource. type APICreateSecretRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string - secret *Secret + storeID string + secret *Secret } // Secret returns a pointer to a request. @@ -179,8 +178,8 @@ In the example below, the unencoded secret is "Hello, world!" func (a *SecretStoreItemAPIService) CreateSecret(ctx context.Context, storeID string) APICreateSecretRequest { return APICreateSecretRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -188,10 +187,10 @@ func (a *SecretStoreItemAPIService) CreateSecret(ctx context.Context, storeID st // @return SecretResponse func (a *SecretStoreItemAPIService) CreateSecretExecute(r APICreateSecretRequest) (*SecretResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.CreateSecret") @@ -273,7 +272,6 @@ func (a *SecretStoreItemAPIService) CreateSecretExecute(r APICreateSecretRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -292,13 +290,12 @@ func (a *SecretStoreItemAPIService) CreateSecretExecute(r APICreateSecretRequest // APIDeleteSecretRequest represents a request for the resource. type APIDeleteSecretRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string + storeID string secretName string } - // Execute calls the API using the request data configured. func (r APIDeleteSecretRequest) Execute() (*http.Response, error) { return r.APIService.DeleteSecretExecute(r) @@ -317,8 +314,8 @@ Delete a secret from a store by name. func (a *SecretStoreItemAPIService) DeleteSecret(ctx context.Context, storeID string, secretName string) APIDeleteSecretRequest { return APIDeleteSecretRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, secretName: secretName, } } @@ -326,9 +323,9 @@ func (a *SecretStoreItemAPIService) DeleteSecret(ctx context.Context, storeID st // DeleteSecretExecute executes the request func (a *SecretStoreItemAPIService) DeleteSecretExecute(r APIDeleteSecretRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.DeleteSecret") @@ -400,7 +397,6 @@ func (a *SecretStoreItemAPIService) DeleteSecretExecute(r APIDeleteSecretRequest return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -419,13 +415,12 @@ func (a *SecretStoreItemAPIService) DeleteSecretExecute(r APIDeleteSecretRequest // APIGetSecretRequest represents a request for the resource. type APIGetSecretRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string + storeID string secretName string } - // Execute calls the API using the request data configured. func (r APIGetSecretRequest) Execute() (*SecretResponse, *http.Response, error) { return r.APIService.GetSecretExecute(r) @@ -444,8 +439,8 @@ Get metadata about a secret by name. func (a *SecretStoreItemAPIService) GetSecret(ctx context.Context, storeID string, secretName string) APIGetSecretRequest { return APIGetSecretRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, secretName: secretName, } } @@ -454,10 +449,10 @@ func (a *SecretStoreItemAPIService) GetSecret(ctx context.Context, storeID strin // @return SecretResponse func (a *SecretStoreItemAPIService) GetSecretExecute(r APIGetSecretRequest) (*SecretResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.GetSecret") @@ -538,7 +533,6 @@ func (a *SecretStoreItemAPIService) GetSecretExecute(r APIGetSecretRequest) (*Se return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -557,11 +551,11 @@ func (a *SecretStoreItemAPIService) GetSecretExecute(r APIGetSecretRequest) (*Se // APIGetSecretsRequest represents a request for the resource. type APIGetSecretsRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string - cursor *string - limit *string + storeID string + cursor *string + limit *string } // Cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. @@ -569,6 +563,7 @@ func (r *APIGetSecretsRequest) Cursor(cursor string) *APIGetSecretsRequest { r.cursor = &cursor return r } + // Limit Number of results per page. The maximum is 200. func (r *APIGetSecretsRequest) Limit(limit string) *APIGetSecretsRequest { r.limit = &limit @@ -592,8 +587,8 @@ List all secrets within a store. func (a *SecretStoreItemAPIService) GetSecrets(ctx context.Context, storeID string) APIGetSecretsRequest { return APIGetSecretsRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -601,10 +596,10 @@ func (a *SecretStoreItemAPIService) GetSecrets(ctx context.Context, storeID stri // @return InlineResponse2006 func (a *SecretStoreItemAPIService) GetSecretsExecute(r APIGetSecretsRequest) (*InlineResponse2006, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2006 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2006 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.GetSecrets") @@ -690,7 +685,6 @@ func (a *SecretStoreItemAPIService) GetSecretsExecute(r APIGetSecretsRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -709,10 +703,10 @@ func (a *SecretStoreItemAPIService) GetSecretsExecute(r APIGetSecretsRequest) (* // APIMustRecreateSecretRequest represents a request for the resource. type APIMustRecreateSecretRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string - secret *Secret + storeID string + secret *Secret } // Secret returns a pointer to a request. @@ -743,8 +737,8 @@ In the example below, the unencoded secret is "Hello, world!" func (a *SecretStoreItemAPIService) MustRecreateSecret(ctx context.Context, storeID string) APIMustRecreateSecretRequest { return APIMustRecreateSecretRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -752,10 +746,10 @@ func (a *SecretStoreItemAPIService) MustRecreateSecret(ctx context.Context, stor // @return SecretResponse func (a *SecretStoreItemAPIService) MustRecreateSecretExecute(r APIMustRecreateSecretRequest) (*SecretResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.MustRecreateSecret") @@ -837,7 +831,6 @@ func (a *SecretStoreItemAPIService) MustRecreateSecretExecute(r APIMustRecreateS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -856,10 +849,10 @@ func (a *SecretStoreItemAPIService) MustRecreateSecretExecute(r APIMustRecreateS // APIRecreateSecretRequest represents a request for the resource. type APIRecreateSecretRequest struct { - ctx context.Context + ctx context.Context APIService SecretStoreItemAPI - storeID string - secret *Secret + storeID string + secret *Secret } // Secret returns a pointer to a request. @@ -890,8 +883,8 @@ In the example below, the unencoded secret is "Hello, world!" func (a *SecretStoreItemAPIService) RecreateSecret(ctx context.Context, storeID string) APIRecreateSecretRequest { return APIRecreateSecretRequest{ APIService: a, - ctx: ctx, - storeID: storeID, + ctx: ctx, + storeID: storeID, } } @@ -899,10 +892,10 @@ func (a *SecretStoreItemAPIService) RecreateSecret(ctx context.Context, storeID // @return SecretResponse func (a *SecretStoreItemAPIService) RecreateSecretExecute(r APIRecreateSecretRequest) (*SecretResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *SecretResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.RecreateSecret") @@ -984,7 +977,6 @@ func (a *SecretStoreItemAPIService) RecreateSecretExecute(r APIRecreateSecretReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_server.go b/fastly/api_server.go index a9b2615..d14a99d 100644 --- a/fastly/api_server.go +++ b/fastly/api_server.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type ServerAPI interface { /* - CreatePoolServer Add a server to a pool + CreatePoolServer Add a server to a pool - Creates a single server for a particular service and pool. + Creates a single server for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param poolID Alphanumeric string identifying a Pool. - @return APICreatePoolServerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param poolID Alphanumeric string identifying a Pool. + @return APICreatePoolServerRequest */ CreatePoolServer(ctx context.Context, serviceID string, poolID string) APICreatePoolServerRequest @@ -48,15 +47,15 @@ type ServerAPI interface { CreatePoolServerExecute(r APICreatePoolServerRequest) (*ServerResponse, *http.Response, error) /* - DeletePoolServer Delete a server from a pool + DeletePoolServer Delete a server from a pool - Deletes a single server for a particular service and pool. + Deletes a single server for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param poolID Alphanumeric string identifying a Pool. - @param serverID Alphanumeric string identifying a Server. - @return APIDeletePoolServerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param poolID Alphanumeric string identifying a Pool. + @param serverID Alphanumeric string identifying a Server. + @return APIDeletePoolServerRequest */ DeletePoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIDeletePoolServerRequest @@ -65,15 +64,15 @@ type ServerAPI interface { DeletePoolServerExecute(r APIDeletePoolServerRequest) (*InlineResponse200, *http.Response, error) /* - GetPoolServer Get a pool server + GetPoolServer Get a pool server - Gets a single server for a particular service and pool. + Gets a single server for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param poolID Alphanumeric string identifying a Pool. - @param serverID Alphanumeric string identifying a Server. - @return APIGetPoolServerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param poolID Alphanumeric string identifying a Pool. + @param serverID Alphanumeric string identifying a Server. + @return APIGetPoolServerRequest */ GetPoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIGetPoolServerRequest @@ -82,14 +81,14 @@ type ServerAPI interface { GetPoolServerExecute(r APIGetPoolServerRequest) (*ServerResponse, *http.Response, error) /* - ListPoolServers List servers in a pool + ListPoolServers List servers in a pool - Lists all servers for a particular service and pool. + Lists all servers for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param poolID Alphanumeric string identifying a Pool. - @return APIListPoolServersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param poolID Alphanumeric string identifying a Pool. + @return APIListPoolServersRequest */ ListPoolServers(ctx context.Context, serviceID string, poolID string) APIListPoolServersRequest @@ -98,15 +97,15 @@ type ServerAPI interface { ListPoolServersExecute(r APIListPoolServersRequest) ([]ServerResponse, *http.Response, error) /* - UpdatePoolServer Update a server + UpdatePoolServer Update a server - Updates a single server for a particular service and pool. + Updates a single server for a particular service and pool. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param poolID Alphanumeric string identifying a Pool. - @param serverID Alphanumeric string identifying a Server. - @return APIUpdatePoolServerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param poolID Alphanumeric string identifying a Pool. + @param serverID Alphanumeric string identifying a Server. + @return APIUpdatePoolServerRequest */ UpdatePoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIUpdatePoolServerRequest @@ -120,16 +119,16 @@ type ServerAPIService service // APICreatePoolServerRequest represents a request for the resource. type APICreatePoolServerRequest struct { - ctx context.Context - APIService ServerAPI - serviceID string - poolID string - weight *int32 - maxConn *int32 - port *int32 - address *string - comment *string - disabled *bool + ctx context.Context + APIService ServerAPI + serviceID string + poolID string + weight *int32 + maxConn *int32 + port *int32 + address *string + comment *string + disabled *bool overrideHost *string } @@ -138,31 +137,37 @@ func (r *APICreatePoolServerRequest) Weight(weight int32) *APICreatePoolServerRe r.weight = &weight return r } + // MaxConn Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`. func (r *APICreatePoolServerRequest) MaxConn(maxConn int32) *APICreatePoolServerRequest { r.maxConn = &maxConn return r } + // Port Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS. func (r *APICreatePoolServerRequest) Port(port int32) *APICreatePoolServerRequest { r.port = &port return r } + // Address A hostname, IPv4, or IPv6 address for the server. Required. func (r *APICreatePoolServerRequest) Address(address string) *APICreatePoolServerRequest { r.address = &address return r } + // Comment A freeform descriptive note. func (r *APICreatePoolServerRequest) Comment(comment string) *APICreatePoolServerRequest { r.comment = &comment return r } + // Disabled Allows servers to be enabled and disabled in a pool. func (r *APICreatePoolServerRequest) Disabled(disabled bool) *APICreatePoolServerRequest { r.disabled = &disabled return r } + // OverrideHost The hostname to override the Host header. Defaults to `null` meaning no override of the Host header if not set. This setting can also be added to a Pool definition. However, the server setting will override the Pool setting. func (r *APICreatePoolServerRequest) OverrideHost(overrideHost string) *APICreatePoolServerRequest { r.overrideHost = &overrideHost @@ -187,9 +192,9 @@ Creates a single server for a particular service and pool. func (a *ServerAPIService) CreatePoolServer(ctx context.Context, serviceID string, poolID string) APICreatePoolServerRequest { return APICreatePoolServerRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - poolID: poolID, + ctx: ctx, + serviceID: serviceID, + poolID: poolID, } } @@ -197,10 +202,10 @@ func (a *ServerAPIService) CreatePoolServer(ctx context.Context, serviceID strin // @return ServerResponse func (a *ServerAPIService) CreatePoolServerExecute(r APICreatePoolServerRequest) (*ServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServerResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServerAPIService.CreatePoolServer") @@ -302,7 +307,6 @@ func (a *ServerAPIService) CreatePoolServerExecute(r APICreatePoolServerRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -321,14 +325,13 @@ func (a *ServerAPIService) CreatePoolServerExecute(r APICreatePoolServerRequest) // APIDeletePoolServerRequest represents a request for the resource. type APIDeletePoolServerRequest struct { - ctx context.Context + ctx context.Context APIService ServerAPI - serviceID string - poolID string - serverID string + serviceID string + poolID string + serverID string } - // Execute calls the API using the request data configured. func (r APIDeletePoolServerRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeletePoolServerExecute(r) @@ -348,10 +351,10 @@ Deletes a single server for a particular service and pool. func (a *ServerAPIService) DeletePoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIDeletePoolServerRequest { return APIDeletePoolServerRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - poolID: poolID, - serverID: serverID, + ctx: ctx, + serviceID: serviceID, + poolID: poolID, + serverID: serverID, } } @@ -359,10 +362,10 @@ func (a *ServerAPIService) DeletePoolServer(ctx context.Context, serviceID strin // @return InlineResponse200 func (a *ServerAPIService) DeletePoolServerExecute(r APIDeletePoolServerRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServerAPIService.DeletePoolServer") @@ -444,7 +447,6 @@ func (a *ServerAPIService) DeletePoolServerExecute(r APIDeletePoolServerRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -463,14 +465,13 @@ func (a *ServerAPIService) DeletePoolServerExecute(r APIDeletePoolServerRequest) // APIGetPoolServerRequest represents a request for the resource. type APIGetPoolServerRequest struct { - ctx context.Context + ctx context.Context APIService ServerAPI - serviceID string - poolID string - serverID string + serviceID string + poolID string + serverID string } - // Execute calls the API using the request data configured. func (r APIGetPoolServerRequest) Execute() (*ServerResponse, *http.Response, error) { return r.APIService.GetPoolServerExecute(r) @@ -490,10 +491,10 @@ Gets a single server for a particular service and pool. func (a *ServerAPIService) GetPoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIGetPoolServerRequest { return APIGetPoolServerRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - poolID: poolID, - serverID: serverID, + ctx: ctx, + serviceID: serviceID, + poolID: poolID, + serverID: serverID, } } @@ -501,10 +502,10 @@ func (a *ServerAPIService) GetPoolServer(ctx context.Context, serviceID string, // @return ServerResponse func (a *ServerAPIService) GetPoolServerExecute(r APIGetPoolServerRequest) (*ServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServerAPIService.GetPoolServer") @@ -586,7 +587,6 @@ func (a *ServerAPIService) GetPoolServerExecute(r APIGetPoolServerRequest) (*Ser return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -605,13 +605,12 @@ func (a *ServerAPIService) GetPoolServerExecute(r APIGetPoolServerRequest) (*Ser // APIListPoolServersRequest represents a request for the resource. type APIListPoolServersRequest struct { - ctx context.Context + ctx context.Context APIService ServerAPI - serviceID string - poolID string + serviceID string + poolID string } - // Execute calls the API using the request data configured. func (r APIListPoolServersRequest) Execute() ([]ServerResponse, *http.Response, error) { return r.APIService.ListPoolServersExecute(r) @@ -630,9 +629,9 @@ Lists all servers for a particular service and pool. func (a *ServerAPIService) ListPoolServers(ctx context.Context, serviceID string, poolID string) APIListPoolServersRequest { return APIListPoolServersRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - poolID: poolID, + ctx: ctx, + serviceID: serviceID, + poolID: poolID, } } @@ -640,10 +639,10 @@ func (a *ServerAPIService) ListPoolServers(ctx context.Context, serviceID string // @return []ServerResponse func (a *ServerAPIService) ListPoolServersExecute(r APIListPoolServersRequest) ([]ServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ServerResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ServerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServerAPIService.ListPoolServers") @@ -724,7 +723,6 @@ func (a *ServerAPIService) ListPoolServersExecute(r APIListPoolServersRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,17 +741,17 @@ func (a *ServerAPIService) ListPoolServersExecute(r APIListPoolServersRequest) ( // APIUpdatePoolServerRequest represents a request for the resource. type APIUpdatePoolServerRequest struct { - ctx context.Context - APIService ServerAPI - serviceID string - poolID string - serverID string - weight *int32 - maxConn *int32 - port *int32 - address *string - comment *string - disabled *bool + ctx context.Context + APIService ServerAPI + serviceID string + poolID string + serverID string + weight *int32 + maxConn *int32 + port *int32 + address *string + comment *string + disabled *bool overrideHost *string } @@ -762,31 +760,37 @@ func (r *APIUpdatePoolServerRequest) Weight(weight int32) *APIUpdatePoolServerRe r.weight = &weight return r } + // MaxConn Maximum number of connections. If the value is `0`, it inherits the value from pool's `max_conn_default`. func (r *APIUpdatePoolServerRequest) MaxConn(maxConn int32) *APIUpdatePoolServerRequest { r.maxConn = &maxConn return r } + // Port Port number. Setting port `443` does not force TLS. Set `use_tls` in pool to force TLS. func (r *APIUpdatePoolServerRequest) Port(port int32) *APIUpdatePoolServerRequest { r.port = &port return r } + // Address A hostname, IPv4, or IPv6 address for the server. Required. func (r *APIUpdatePoolServerRequest) Address(address string) *APIUpdatePoolServerRequest { r.address = &address return r } + // Comment A freeform descriptive note. func (r *APIUpdatePoolServerRequest) Comment(comment string) *APIUpdatePoolServerRequest { r.comment = &comment return r } + // Disabled Allows servers to be enabled and disabled in a pool. func (r *APIUpdatePoolServerRequest) Disabled(disabled bool) *APIUpdatePoolServerRequest { r.disabled = &disabled return r } + // OverrideHost The hostname to override the Host header. Defaults to `null` meaning no override of the Host header if not set. This setting can also be added to a Pool definition. However, the server setting will override the Pool setting. func (r *APIUpdatePoolServerRequest) OverrideHost(overrideHost string) *APIUpdatePoolServerRequest { r.overrideHost = &overrideHost @@ -812,10 +816,10 @@ Updates a single server for a particular service and pool. func (a *ServerAPIService) UpdatePoolServer(ctx context.Context, serviceID string, poolID string, serverID string) APIUpdatePoolServerRequest { return APIUpdatePoolServerRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - poolID: poolID, - serverID: serverID, + ctx: ctx, + serviceID: serviceID, + poolID: poolID, + serverID: serverID, } } @@ -823,10 +827,10 @@ func (a *ServerAPIService) UpdatePoolServer(ctx context.Context, serviceID strin // @return ServerResponse func (a *ServerAPIService) UpdatePoolServerExecute(r APIUpdatePoolServerRequest) (*ServerResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServerResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServerResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServerAPIService.UpdatePoolServer") @@ -929,7 +933,6 @@ func (a *ServerAPIService) UpdatePoolServerExecute(r APIUpdatePoolServerRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_service.go b/fastly/api_service.go index c442c2e..24df496 100644 --- a/fastly/api_service.go +++ b/fastly/api_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type ServiceAPI interface { /* - CreateService Create a service + CreateService Create a service - Create a service. + Create a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateServiceRequest */ CreateService(ctx context.Context) APICreateServiceRequest @@ -46,13 +45,13 @@ type ServiceAPI interface { CreateServiceExecute(r APICreateServiceRequest) (*ServiceResponse, *http.Response, error) /* - DeleteService Delete a service + DeleteService Delete a service - Delete a service. + Delete a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIDeleteServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIDeleteServiceRequest */ DeleteService(ctx context.Context, serviceID string) APIDeleteServiceRequest @@ -61,13 +60,13 @@ type ServiceAPI interface { DeleteServiceExecute(r APIDeleteServiceRequest) (*InlineResponse200, *http.Response, error) /* - GetService Get a service + GetService Get a service - Get a specific service by id. + Get a specific service by id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetServiceRequest */ GetService(ctx context.Context, serviceID string) APIGetServiceRequest @@ -76,13 +75,13 @@ type ServiceAPI interface { GetServiceExecute(r APIGetServiceRequest) (*ServiceResponse, *http.Response, error) /* - GetServiceDetail Get service details + GetServiceDetail Get service details - List detailed information on a specified service. + List detailed information on a specified service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetServiceDetailRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetServiceDetailRequest */ GetServiceDetail(ctx context.Context, serviceID string) APIGetServiceDetailRequest @@ -91,13 +90,13 @@ type ServiceAPI interface { GetServiceDetailExecute(r APIGetServiceDetailRequest) (*ServiceDetail, *http.Response, error) /* - ListServiceDomains List the domains within a service + ListServiceDomains List the domains within a service - List the domains within a service. + List the domains within a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIListServiceDomainsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIListServiceDomainsRequest */ ListServiceDomains(ctx context.Context, serviceID string) APIListServiceDomainsRequest @@ -106,12 +105,12 @@ type ServiceAPI interface { ListServiceDomainsExecute(r APIListServiceDomainsRequest) ([]DomainResponse, *http.Response, error) /* - ListServices List services + ListServices List services - List services. + List services. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListServicesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListServicesRequest */ ListServices(ctx context.Context) APIListServicesRequest @@ -120,12 +119,12 @@ type ServiceAPI interface { ListServicesExecute(r APIListServicesRequest) ([]ServiceListResponse, *http.Response, error) /* - SearchService Search for a service by name + SearchService Search for a service by name - Get a specific service by name. + Get a specific service by name. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APISearchServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APISearchServiceRequest */ SearchService(ctx context.Context) APISearchServiceRequest @@ -134,13 +133,13 @@ type ServiceAPI interface { SearchServiceExecute(r APISearchServiceRequest) (*ServiceResponse, *http.Response, error) /* - UpdateService Update a service + UpdateService Update a service - Update a service. + Update a service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIUpdateServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIUpdateServiceRequest */ UpdateService(ctx context.Context, serviceID string) APIUpdateServiceRequest @@ -154,11 +153,11 @@ type ServiceAPIService service // APICreateServiceRequest represents a request for the resource. type APICreateServiceRequest struct { - ctx context.Context - APIService ServiceAPI - comment *string - name *string - customerID *string + ctx context.Context + APIService ServiceAPI + comment *string + name *string + customerID *string resourceType *string } @@ -167,16 +166,19 @@ func (r *APICreateServiceRequest) Comment(comment string) *APICreateServiceReque r.comment = &comment return r } + // Name The name of the service. func (r *APICreateServiceRequest) Name(name string) *APICreateServiceRequest { r.name = &name return r } + // CustomerID Alphanumeric string identifying the customer. func (r *APICreateServiceRequest) CustomerID(customerID string) *APICreateServiceRequest { r.customerID = &customerID return r } + // ResourceType The type of this service. func (r *APICreateServiceRequest) ResourceType(resourceType string) *APICreateServiceRequest { r.resourceType = &resourceType @@ -199,7 +201,7 @@ Create a service. func (a *ServiceAPIService) CreateService(ctx context.Context) APICreateServiceRequest { return APICreateServiceRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -207,10 +209,10 @@ func (a *ServiceAPIService) CreateService(ctx context.Context) APICreateServiceR // @return ServiceResponse func (a *ServiceAPIService) CreateServiceExecute(r APICreateServiceRequest) (*ServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.CreateService") @@ -301,7 +303,6 @@ func (a *ServiceAPIService) CreateServiceExecute(r APICreateServiceRequest) (*Se return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -320,12 +321,11 @@ func (a *ServiceAPIService) CreateServiceExecute(r APICreateServiceRequest) (*Se // APIDeleteServiceRequest represents a request for the resource. type APIDeleteServiceRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIDeleteServiceRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteServiceExecute(r) @@ -343,8 +343,8 @@ Delete a service. func (a *ServiceAPIService) DeleteService(ctx context.Context, serviceID string) APIDeleteServiceRequest { return APIDeleteServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -352,10 +352,10 @@ func (a *ServiceAPIService) DeleteService(ctx context.Context, serviceID string) // @return InlineResponse200 func (a *ServiceAPIService) DeleteServiceExecute(r APIDeleteServiceRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.DeleteService") @@ -435,7 +435,6 @@ func (a *ServiceAPIService) DeleteServiceExecute(r APIDeleteServiceRequest) (*In return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -454,12 +453,11 @@ func (a *ServiceAPIService) DeleteServiceExecute(r APIDeleteServiceRequest) (*In // APIGetServiceRequest represents a request for the resource. type APIGetServiceRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIGetServiceRequest) Execute() (*ServiceResponse, *http.Response, error) { return r.APIService.GetServiceExecute(r) @@ -477,8 +475,8 @@ Get a specific service by id. func (a *ServiceAPIService) GetService(ctx context.Context, serviceID string) APIGetServiceRequest { return APIGetServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -486,10 +484,10 @@ func (a *ServiceAPIService) GetService(ctx context.Context, serviceID string) AP // @return ServiceResponse func (a *ServiceAPIService) GetServiceExecute(r APIGetServiceRequest) (*ServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.GetService") @@ -569,7 +567,6 @@ func (a *ServiceAPIService) GetServiceExecute(r APIGetServiceRequest) (*ServiceR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -588,10 +585,10 @@ func (a *ServiceAPIService) GetServiceExecute(r APIGetServiceRequest) (*ServiceR // APIGetServiceDetailRequest represents a request for the resource. type APIGetServiceDetailRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - serviceID string - version *int32 + serviceID string + version *int32 } // Version Number identifying a version of the service. @@ -617,8 +614,8 @@ List detailed information on a specified service. func (a *ServiceAPIService) GetServiceDetail(ctx context.Context, serviceID string) APIGetServiceDetailRequest { return APIGetServiceDetailRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -626,10 +623,10 @@ func (a *ServiceAPIService) GetServiceDetail(ctx context.Context, serviceID stri // @return ServiceDetail func (a *ServiceAPIService) GetServiceDetailExecute(r APIGetServiceDetailRequest) (*ServiceDetail, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceDetail + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceDetail ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.GetServiceDetail") @@ -712,7 +709,6 @@ func (a *ServiceAPIService) GetServiceDetailExecute(r APIGetServiceDetailRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -731,12 +727,11 @@ func (a *ServiceAPIService) GetServiceDetailExecute(r APIGetServiceDetailRequest // APIListServiceDomainsRequest represents a request for the resource. type APIListServiceDomainsRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIListServiceDomainsRequest) Execute() ([]DomainResponse, *http.Response, error) { return r.APIService.ListServiceDomainsExecute(r) @@ -754,8 +749,8 @@ List the domains within a service. func (a *ServiceAPIService) ListServiceDomains(ctx context.Context, serviceID string) APIListServiceDomainsRequest { return APIListServiceDomainsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -763,10 +758,10 @@ func (a *ServiceAPIService) ListServiceDomains(ctx context.Context, serviceID st // @return []DomainResponse func (a *ServiceAPIService) ListServiceDomainsExecute(r APIListServiceDomainsRequest) ([]DomainResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []DomainResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []DomainResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.ListServiceDomains") @@ -846,7 +841,6 @@ func (a *ServiceAPIService) ListServiceDomainsExecute(r APIListServiceDomainsReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -865,12 +859,12 @@ func (a *ServiceAPIService) ListServiceDomainsExecute(r APIListServiceDomainsReq // APIListServicesRequest represents a request for the resource. type APIListServicesRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - page *int32 - perPage *int32 - sort *string - direction *string + page *int32 + perPage *int32 + sort *string + direction *string } // Page Current page. @@ -878,16 +872,19 @@ func (r *APIListServicesRequest) Page(page int32) *APIListServicesRequest { r.page = &page return r } + // PerPage Number of records per page. func (r *APIListServicesRequest) PerPage(perPage int32) *APIListServicesRequest { r.perPage = &perPage return r } + // Sort Field on which to sort. func (r *APIListServicesRequest) Sort(sort string) *APIListServicesRequest { r.sort = &sort return r } + // Direction Direction in which to sort results. func (r *APIListServicesRequest) Direction(direction string) *APIListServicesRequest { r.direction = &direction @@ -910,7 +907,7 @@ List services. func (a *ServiceAPIService) ListServices(ctx context.Context) APIListServicesRequest { return APIListServicesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -918,10 +915,10 @@ func (a *ServiceAPIService) ListServices(ctx context.Context) APIListServicesReq // @return []ServiceListResponse func (a *ServiceAPIService) ListServicesExecute(r APIListServicesRequest) ([]ServiceListResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []ServiceListResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []ServiceListResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.ListServices") @@ -1012,7 +1009,6 @@ func (a *ServiceAPIService) ListServicesExecute(r APIListServicesRequest) ([]Ser return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1031,9 +1027,9 @@ func (a *ServiceAPIService) ListServicesExecute(r APIListServicesRequest) ([]Ser // APISearchServiceRequest represents a request for the resource. type APISearchServiceRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - name *string + name *string } // Name The name of the service. @@ -1058,7 +1054,7 @@ Get a specific service by name. func (a *ServiceAPIService) SearchService(ctx context.Context) APISearchServiceRequest { return APISearchServiceRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1066,10 +1062,10 @@ func (a *ServiceAPIService) SearchService(ctx context.Context) APISearchServiceR // @return ServiceResponse func (a *ServiceAPIService) SearchServiceExecute(r APISearchServiceRequest) (*ServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.SearchService") @@ -1152,7 +1148,6 @@ func (a *ServiceAPIService) SearchServiceExecute(r APISearchServiceRequest) (*Se return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1171,11 +1166,11 @@ func (a *ServiceAPIService) SearchServiceExecute(r APISearchServiceRequest) (*Se // APIUpdateServiceRequest represents a request for the resource. type APIUpdateServiceRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAPI - serviceID string - comment *string - name *string + serviceID string + comment *string + name *string customerID *string } @@ -1184,11 +1179,13 @@ func (r *APIUpdateServiceRequest) Comment(comment string) *APIUpdateServiceReque r.comment = &comment return r } + // Name The name of the service. func (r *APIUpdateServiceRequest) Name(name string) *APIUpdateServiceRequest { r.name = &name return r } + // CustomerID Alphanumeric string identifying the customer. func (r *APIUpdateServiceRequest) CustomerID(customerID string) *APIUpdateServiceRequest { r.customerID = &customerID @@ -1212,8 +1209,8 @@ Update a service. func (a *ServiceAPIService) UpdateService(ctx context.Context, serviceID string) APIUpdateServiceRequest { return APIUpdateServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -1221,10 +1218,10 @@ func (a *ServiceAPIService) UpdateService(ctx context.Context, serviceID string) // @return ServiceResponse func (a *ServiceAPIService) UpdateServiceExecute(r APIUpdateServiceRequest) (*ServiceResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAPIService.UpdateService") @@ -1313,7 +1310,6 @@ func (a *ServiceAPIService) UpdateServiceExecute(r APIUpdateServiceRequest) (*Se return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_service_authorizations.go b/fastly/api_service_authorizations.go index 419b243..e5b2f07 100644 --- a/fastly/api_service_authorizations.go +++ b/fastly/api_service_authorizations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type ServiceAuthorizationsAPI interface { /* - CreateServiceAuthorization Create service authorization + CreateServiceAuthorization Create service authorization - Create service authorization. + Create service authorization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateServiceAuthorizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateServiceAuthorizationRequest */ CreateServiceAuthorization(ctx context.Context) APICreateServiceAuthorizationRequest @@ -46,13 +45,13 @@ type ServiceAuthorizationsAPI interface { CreateServiceAuthorizationExecute(r APICreateServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) /* - DeleteServiceAuthorization Delete service authorization + DeleteServiceAuthorization Delete service authorization - Delete service authorization. + Delete service authorization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceAuthorizationID Alphanumeric string identifying a service authorization. - @return APIDeleteServiceAuthorizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceAuthorizationID Alphanumeric string identifying a service authorization. + @return APIDeleteServiceAuthorizationRequest */ DeleteServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIDeleteServiceAuthorizationRequest @@ -60,12 +59,12 @@ type ServiceAuthorizationsAPI interface { DeleteServiceAuthorizationExecute(r APIDeleteServiceAuthorizationRequest) (*http.Response, error) /* - DeleteServiceAuthorization2 Delete service authorizations + DeleteServiceAuthorization2 Delete service authorizations - Delete service authorizations. + Delete service authorizations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIDeleteServiceAuthorization2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIDeleteServiceAuthorization2Request */ DeleteServiceAuthorization2(ctx context.Context) APIDeleteServiceAuthorization2Request @@ -74,12 +73,12 @@ type ServiceAuthorizationsAPI interface { DeleteServiceAuthorization2Execute(r APIDeleteServiceAuthorization2Request) (*InlineResponse2007, *http.Response, error) /* - ListServiceAuthorization List service authorizations + ListServiceAuthorization List service authorizations - List service authorizations. + List service authorizations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListServiceAuthorizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListServiceAuthorizationRequest */ ListServiceAuthorization(ctx context.Context) APIListServiceAuthorizationRequest @@ -88,13 +87,13 @@ type ServiceAuthorizationsAPI interface { ListServiceAuthorizationExecute(r APIListServiceAuthorizationRequest) (*ServiceAuthorizationsResponse, *http.Response, error) /* - ShowServiceAuthorization Show service authorization + ShowServiceAuthorization Show service authorization - Show service authorization. + Show service authorization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceAuthorizationID Alphanumeric string identifying a service authorization. - @return APIShowServiceAuthorizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceAuthorizationID Alphanumeric string identifying a service authorization. + @return APIShowServiceAuthorizationRequest */ ShowServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIShowServiceAuthorizationRequest @@ -103,13 +102,13 @@ type ServiceAuthorizationsAPI interface { ShowServiceAuthorizationExecute(r APIShowServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) /* - UpdateServiceAuthorization Update service authorization + UpdateServiceAuthorization Update service authorization - Update service authorization. + Update service authorization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceAuthorizationID Alphanumeric string identifying a service authorization. - @return APIUpdateServiceAuthorizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceAuthorizationID Alphanumeric string identifying a service authorization. + @return APIUpdateServiceAuthorizationRequest */ UpdateServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIUpdateServiceAuthorizationRequest @@ -118,12 +117,12 @@ type ServiceAuthorizationsAPI interface { UpdateServiceAuthorizationExecute(r APIUpdateServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) /* - UpdateServiceAuthorization2 Update service authorizations + UpdateServiceAuthorization2 Update service authorizations - Update service authorizations. + Update service authorizations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIUpdateServiceAuthorization2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIUpdateServiceAuthorization2Request */ UpdateServiceAuthorization2(ctx context.Context) APIUpdateServiceAuthorization2Request @@ -137,8 +136,8 @@ type ServiceAuthorizationsAPIService service // APICreateServiceAuthorizationRequest represents a request for the resource. type APICreateServiceAuthorizationRequest struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI serviceAuthorization *ServiceAuthorization } @@ -164,7 +163,7 @@ Create service authorization. func (a *ServiceAuthorizationsAPIService) CreateServiceAuthorization(ctx context.Context) APICreateServiceAuthorizationRequest { return APICreateServiceAuthorizationRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -172,10 +171,10 @@ func (a *ServiceAuthorizationsAPIService) CreateServiceAuthorization(ctx context // @return ServiceAuthorizationResponse func (a *ServiceAuthorizationsAPIService) CreateServiceAuthorizationExecute(r APICreateServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceAuthorizationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.CreateServiceAuthorization") @@ -256,7 +255,6 @@ func (a *ServiceAuthorizationsAPIService) CreateServiceAuthorizationExecute(r AP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -275,12 +273,11 @@ func (a *ServiceAuthorizationsAPIService) CreateServiceAuthorizationExecute(r AP // APIDeleteServiceAuthorizationRequest represents a request for the resource. type APIDeleteServiceAuthorizationRequest struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI serviceAuthorizationID string } - // Execute calls the API using the request data configured. func (r APIDeleteServiceAuthorizationRequest) Execute() (*http.Response, error) { return r.APIService.DeleteServiceAuthorizationExecute(r) @@ -297,8 +294,8 @@ Delete service authorization. */ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIDeleteServiceAuthorizationRequest { return APIDeleteServiceAuthorizationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceAuthorizationID: serviceAuthorizationID, } } @@ -306,9 +303,9 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization(ctx context // DeleteServiceAuthorizationExecute executes the request func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorizationExecute(r APIDeleteServiceAuthorizationRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.DeleteServiceAuthorization") @@ -379,7 +376,6 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorizationExecute(r AP return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -398,8 +394,8 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorizationExecute(r AP // APIDeleteServiceAuthorization2Request represents a request for the resource. type APIDeleteServiceAuthorization2Request struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI requestBody *map[string]map[string]any } @@ -425,7 +421,7 @@ Delete service authorizations. func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2(ctx context.Context) APIDeleteServiceAuthorization2Request { return APIDeleteServiceAuthorization2Request{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -433,10 +429,10 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2(ctx contex // @return InlineResponse2007 func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2Execute(r APIDeleteServiceAuthorization2Request) (*InlineResponse2007, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse2007 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2007 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.DeleteServiceAuthorization2") @@ -517,7 +513,6 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2Execute(r A return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -536,10 +531,10 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2Execute(r A // APIListServiceAuthorizationRequest represents a request for the resource. type APIListServiceAuthorizationRequest struct { - ctx context.Context + ctx context.Context APIService ServiceAuthorizationsAPI pageNumber *int32 - pageSize *int32 + pageSize *int32 } // PageNumber Current page. @@ -547,6 +542,7 @@ func (r *APIListServiceAuthorizationRequest) PageNumber(pageNumber int32) *APILi r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListServiceAuthorizationRequest) PageSize(pageSize int32) *APIListServiceAuthorizationRequest { r.pageSize = &pageSize @@ -569,7 +565,7 @@ List service authorizations. func (a *ServiceAuthorizationsAPIService) ListServiceAuthorization(ctx context.Context) APIListServiceAuthorizationRequest { return APIListServiceAuthorizationRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -577,10 +573,10 @@ func (a *ServiceAuthorizationsAPIService) ListServiceAuthorization(ctx context.C // @return ServiceAuthorizationsResponse func (a *ServiceAuthorizationsAPIService) ListServiceAuthorizationExecute(r APIListServiceAuthorizationRequest) (*ServiceAuthorizationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceAuthorizationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.ListServiceAuthorization") @@ -665,7 +661,6 @@ func (a *ServiceAuthorizationsAPIService) ListServiceAuthorizationExecute(r APIL return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -684,12 +679,11 @@ func (a *ServiceAuthorizationsAPIService) ListServiceAuthorizationExecute(r APIL // APIShowServiceAuthorizationRequest represents a request for the resource. type APIShowServiceAuthorizationRequest struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI serviceAuthorizationID string } - // Execute calls the API using the request data configured. func (r APIShowServiceAuthorizationRequest) Execute() (*ServiceAuthorizationResponse, *http.Response, error) { return r.APIService.ShowServiceAuthorizationExecute(r) @@ -706,8 +700,8 @@ Show service authorization. */ func (a *ServiceAuthorizationsAPIService) ShowServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIShowServiceAuthorizationRequest { return APIShowServiceAuthorizationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceAuthorizationID: serviceAuthorizationID, } } @@ -716,10 +710,10 @@ func (a *ServiceAuthorizationsAPIService) ShowServiceAuthorization(ctx context.C // @return ServiceAuthorizationResponse func (a *ServiceAuthorizationsAPIService) ShowServiceAuthorizationExecute(r APIShowServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceAuthorizationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.ShowServiceAuthorization") @@ -799,7 +793,6 @@ func (a *ServiceAuthorizationsAPIService) ShowServiceAuthorizationExecute(r APIS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -818,10 +811,10 @@ func (a *ServiceAuthorizationsAPIService) ShowServiceAuthorizationExecute(r APIS // APIUpdateServiceAuthorizationRequest represents a request for the resource. type APIUpdateServiceAuthorizationRequest struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI serviceAuthorizationID string - serviceAuthorization *ServiceAuthorization + serviceAuthorization *ServiceAuthorization } // ServiceAuthorization returns a pointer to a request. @@ -846,8 +839,8 @@ Update service authorization. */ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization(ctx context.Context, serviceAuthorizationID string) APIUpdateServiceAuthorizationRequest { return APIUpdateServiceAuthorizationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, serviceAuthorizationID: serviceAuthorizationID, } } @@ -856,10 +849,10 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization(ctx context // @return ServiceAuthorizationResponse func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorizationExecute(r APIUpdateServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceAuthorizationResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.UpdateServiceAuthorization") @@ -941,7 +934,6 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorizationExecute(r AP return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -960,8 +952,8 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorizationExecute(r AP // APIUpdateServiceAuthorization2Request represents a request for the resource. type APIUpdateServiceAuthorization2Request struct { - ctx context.Context - APIService ServiceAuthorizationsAPI + ctx context.Context + APIService ServiceAuthorizationsAPI requestBody *map[string]map[string]any } @@ -987,7 +979,7 @@ Update service authorizations. func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2(ctx context.Context) APIUpdateServiceAuthorization2Request { return APIUpdateServiceAuthorization2Request{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -995,10 +987,10 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2(ctx contex // @return ServiceAuthorizationsResponse func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2Execute(r APIUpdateServiceAuthorization2Request) (*ServiceAuthorizationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *ServiceAuthorizationsResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.UpdateServiceAuthorization2") @@ -1079,7 +1071,6 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2Execute(r A return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_settings.go b/fastly/api_settings.go index 38bef5a..cb2bbb1 100644 --- a/fastly/api_settings.go +++ b/fastly/api_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type SettingsAPI interface { /* - GetServiceSettings Get service settings + GetServiceSettings Get service settings - Get the settings for a particular service and version. + Get the settings for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetServiceSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetServiceSettingsRequest */ GetServiceSettings(ctx context.Context, serviceID string, versionID int32) APIGetServiceSettingsRequest @@ -48,15 +47,15 @@ type SettingsAPI interface { GetServiceSettingsExecute(r APIGetServiceSettingsRequest) (*SettingsResponse, *http.Response, error) /* - UpdateServiceSettings Update service settings + UpdateServiceSettings Update service settings - Update the settings for a particular service and version. NOTE: If you override TTLs with custom VCL, any general.default_ttl value will not be honored and the expected behavior may change. + Update the settings for a particular service and version. NOTE: If you override TTLs with custom VCL, any general.default_ttl value will not be honored and the expected behavior may change. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIUpdateServiceSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIUpdateServiceSettingsRequest */ UpdateServiceSettings(ctx context.Context, serviceID string, versionID int32) APIUpdateServiceSettingsRequest @@ -70,13 +69,12 @@ type SettingsAPIService service // APIGetServiceSettingsRequest represents a request for the resource. type APIGetServiceSettingsRequest struct { - ctx context.Context + ctx context.Context APIService SettingsAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetServiceSettingsRequest) Execute() (*SettingsResponse, *http.Response, error) { return r.APIService.GetServiceSettingsExecute(r) @@ -95,9 +93,9 @@ Get the settings for a particular service and version. func (a *SettingsAPIService) GetServiceSettings(ctx context.Context, serviceID string, versionID int32) APIGetServiceSettingsRequest { return APIGetServiceSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -105,10 +103,10 @@ func (a *SettingsAPIService) GetServiceSettings(ctx context.Context, serviceID s // @return SettingsResponse func (a *SettingsAPIService) GetServiceSettingsExecute(r APIGetServiceSettingsRequest) (*SettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SettingsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SettingsAPIService.GetServiceSettings") @@ -189,7 +187,6 @@ func (a *SettingsAPIService) GetServiceSettingsExecute(r APIGetServiceSettingsRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -208,13 +205,13 @@ func (a *SettingsAPIService) GetServiceSettingsExecute(r APIGetServiceSettingsRe // APIUpdateServiceSettingsRequest represents a request for the resource. type APIUpdateServiceSettingsRequest struct { - ctx context.Context - APIService SettingsAPI - serviceID string - versionID int32 - generalDefaultHost *string - generalDefaultTTL *int32 - generalStaleIfError *bool + ctx context.Context + APIService SettingsAPI + serviceID string + versionID int32 + generalDefaultHost *string + generalDefaultTTL *int32 + generalStaleIfError *bool generalStaleIfErrorTTL *int32 } @@ -223,16 +220,19 @@ func (r *APIUpdateServiceSettingsRequest) GeneralDefaultHost(generalDefaultHost r.generalDefaultHost = &generalDefaultHost return r } + // GeneralDefaultTTL The default time-to-live (TTL) for the version. func (r *APIUpdateServiceSettingsRequest) GeneralDefaultTTL(generalDefaultTTL int32) *APIUpdateServiceSettingsRequest { r.generalDefaultTTL = &generalDefaultTTL return r } + // GeneralStaleIfError Enables serving a stale object if there is an error. func (r *APIUpdateServiceSettingsRequest) GeneralStaleIfError(generalStaleIfError bool) *APIUpdateServiceSettingsRequest { r.generalStaleIfError = &generalStaleIfError return r } + // GeneralStaleIfErrorTTL The default time-to-live (TTL) for serving the stale object for the version. func (r *APIUpdateServiceSettingsRequest) GeneralStaleIfErrorTTL(generalStaleIfErrorTTL int32) *APIUpdateServiceSettingsRequest { r.generalStaleIfErrorTTL = &generalStaleIfErrorTTL @@ -258,9 +258,9 @@ Update the settings for a particular service and version. NOTE: If you override func (a *SettingsAPIService) UpdateServiceSettings(ctx context.Context, serviceID string, versionID int32) APIUpdateServiceSettingsRequest { return APIUpdateServiceSettingsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -268,10 +268,10 @@ func (a *SettingsAPIService) UpdateServiceSettings(ctx context.Context, serviceI // @return SettingsResponse func (a *SettingsAPIService) UpdateServiceSettingsExecute(r APIUpdateServiceSettingsRequest) (*SettingsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *SettingsResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SettingsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SettingsAPIService.UpdateServiceSettings") @@ -364,7 +364,6 @@ func (a *SettingsAPIService) UpdateServiceSettingsExecute(r APIUpdateServiceSett return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_snippet.go b/fastly/api_snippet.go index b822d78..96b898b 100644 --- a/fastly/api_snippet.go +++ b/fastly/api_snippet.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type SnippetAPI interface { /* - CreateSnippet Create a snippet + CreateSnippet Create a snippet - Create a snippet for a particular service and version. + Create a snippet for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateSnippetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateSnippetRequest */ CreateSnippet(ctx context.Context, serviceID string, versionID int32) APICreateSnippetRequest @@ -48,15 +47,15 @@ type SnippetAPI interface { CreateSnippetExecute(r APICreateSnippetRequest) (*SnippetResponsePost, *http.Response, error) /* - DeleteSnippet Delete a snippet + DeleteSnippet Delete a snippet - Delete a specific snippet for a particular service and version. + Delete a specific snippet for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param snippetName The name for the snippet. - @return APIDeleteSnippetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param snippetName The name for the snippet. + @return APIDeleteSnippetRequest */ DeleteSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIDeleteSnippetRequest @@ -65,15 +64,15 @@ type SnippetAPI interface { DeleteSnippetExecute(r APIDeleteSnippetRequest) (*InlineResponse200, *http.Response, error) /* - GetSnippet Get a versioned snippet + GetSnippet Get a versioned snippet - Get a single snippet for a particular service and version. + Get a single snippet for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param snippetName The name for the snippet. - @return APIGetSnippetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param snippetName The name for the snippet. + @return APIGetSnippetRequest */ GetSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIGetSnippetRequest @@ -82,14 +81,14 @@ type SnippetAPI interface { GetSnippetExecute(r APIGetSnippetRequest) (*SnippetResponse, *http.Response, error) /* - GetSnippetDynamic Get a dynamic snippet + GetSnippetDynamic Get a dynamic snippet - Get a single dynamic snippet for a particular service. + Get a single dynamic snippet for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param snippetID Alphanumeric string identifying a VCL Snippet. - @return APIGetSnippetDynamicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param snippetID Alphanumeric string identifying a VCL Snippet. + @return APIGetSnippetDynamicRequest */ GetSnippetDynamic(ctx context.Context, serviceID string, snippetID string) APIGetSnippetDynamicRequest @@ -98,14 +97,14 @@ type SnippetAPI interface { GetSnippetDynamicExecute(r APIGetSnippetDynamicRequest) (*SnippetResponse, *http.Response, error) /* - ListSnippets List snippets + ListSnippets List snippets - List all snippets for a particular service and version. + List all snippets for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListSnippetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListSnippetsRequest */ ListSnippets(ctx context.Context, serviceID string, versionID int32) APIListSnippetsRequest @@ -114,15 +113,15 @@ type SnippetAPI interface { ListSnippetsExecute(r APIListSnippetsRequest) ([]SnippetResponse, *http.Response, error) /* - UpdateSnippet Update a versioned snippet + UpdateSnippet Update a versioned snippet - Update a specific snippet for a particular service and version. + Update a specific snippet for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param snippetName The name for the snippet. - @return APIUpdateSnippetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param snippetName The name for the snippet. + @return APIUpdateSnippetRequest */ UpdateSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIUpdateSnippetRequest @@ -131,14 +130,14 @@ type SnippetAPI interface { UpdateSnippetExecute(r APIUpdateSnippetRequest) (*SnippetResponse, *http.Response, error) /* - UpdateSnippetDynamic Update a dynamic snippet + UpdateSnippetDynamic Update a dynamic snippet - Update a dynamic snippet for a particular service. + Update a dynamic snippet for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param snippetID Alphanumeric string identifying a VCL Snippet. - @return APIUpdateSnippetDynamicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param snippetID Alphanumeric string identifying a VCL Snippet. + @return APIUpdateSnippetDynamicRequest */ UpdateSnippetDynamic(ctx context.Context, serviceID string, snippetID string) APIUpdateSnippetDynamicRequest @@ -152,15 +151,15 @@ type SnippetAPIService service // APICreateSnippetRequest represents a request for the resource. type APICreateSnippetRequest struct { - ctx context.Context - APIService SnippetAPI - serviceID string - versionID int32 - name *string + ctx context.Context + APIService SnippetAPI + serviceID string + versionID int32 + name *string resourceType *string - content *string - priority *string - dynamic *string + content *string + priority *string + dynamic *string } // Name The name for the snippet. @@ -168,21 +167,25 @@ func (r *APICreateSnippetRequest) Name(name string) *APICreateSnippetRequest { r.name = &name return r } + // ResourceType The location in generated VCL where the snippet should be placed. func (r *APICreateSnippetRequest) ResourceType(resourceType string) *APICreateSnippetRequest { r.resourceType = &resourceType return r } + // Content The VCL code that specifies exactly what the snippet does. func (r *APICreateSnippetRequest) Content(content string) *APICreateSnippetRequest { r.content = &content return r } + // Priority Priority determines execution order. Lower numbers execute first. func (r *APICreateSnippetRequest) Priority(priority string) *APICreateSnippetRequest { r.priority = &priority return r } + // Dynamic Sets the snippet version. func (r *APICreateSnippetRequest) Dynamic(dynamic string) *APICreateSnippetRequest { r.dynamic = &dynamic @@ -207,9 +210,9 @@ Create a snippet for a particular service and version. func (a *SnippetAPIService) CreateSnippet(ctx context.Context, serviceID string, versionID int32) APICreateSnippetRequest { return APICreateSnippetRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -217,10 +220,10 @@ func (a *SnippetAPIService) CreateSnippet(ctx context.Context, serviceID string, // @return SnippetResponsePost func (a *SnippetAPIService) CreateSnippetExecute(r APICreateSnippetRequest) (*SnippetResponsePost, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *SnippetResponsePost + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponsePost ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.CreateSnippet") @@ -316,7 +319,6 @@ func (a *SnippetAPIService) CreateSnippetExecute(r APICreateSnippetRequest) (*Sn return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -335,14 +337,13 @@ func (a *SnippetAPIService) CreateSnippetExecute(r APICreateSnippetRequest) (*Sn // APIDeleteSnippetRequest represents a request for the resource. type APIDeleteSnippetRequest struct { - ctx context.Context - APIService SnippetAPI - serviceID string - versionID int32 + ctx context.Context + APIService SnippetAPI + serviceID string + versionID int32 snippetName string } - // Execute calls the API using the request data configured. func (r APIDeleteSnippetRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteSnippetExecute(r) @@ -361,10 +362,10 @@ Delete a specific snippet for a particular service and version. */ func (a *SnippetAPIService) DeleteSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIDeleteSnippetRequest { return APIDeleteSnippetRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, snippetName: snippetName, } } @@ -373,10 +374,10 @@ func (a *SnippetAPIService) DeleteSnippet(ctx context.Context, serviceID string, // @return InlineResponse200 func (a *SnippetAPIService) DeleteSnippetExecute(r APIDeleteSnippetRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.DeleteSnippet") @@ -458,7 +459,6 @@ func (a *SnippetAPIService) DeleteSnippetExecute(r APIDeleteSnippetRequest) (*In return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -477,14 +477,13 @@ func (a *SnippetAPIService) DeleteSnippetExecute(r APIDeleteSnippetRequest) (*In // APIGetSnippetRequest represents a request for the resource. type APIGetSnippetRequest struct { - ctx context.Context - APIService SnippetAPI - serviceID string - versionID int32 + ctx context.Context + APIService SnippetAPI + serviceID string + versionID int32 snippetName string } - // Execute calls the API using the request data configured. func (r APIGetSnippetRequest) Execute() (*SnippetResponse, *http.Response, error) { return r.APIService.GetSnippetExecute(r) @@ -503,10 +502,10 @@ Get a single snippet for a particular service and version. */ func (a *SnippetAPIService) GetSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIGetSnippetRequest { return APIGetSnippetRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, snippetName: snippetName, } } @@ -515,10 +514,10 @@ func (a *SnippetAPIService) GetSnippet(ctx context.Context, serviceID string, ve // @return SnippetResponse func (a *SnippetAPIService) GetSnippetExecute(r APIGetSnippetRequest) (*SnippetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SnippetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.GetSnippet") @@ -600,7 +599,6 @@ func (a *SnippetAPIService) GetSnippetExecute(r APIGetSnippetRequest) (*SnippetR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -619,13 +617,12 @@ func (a *SnippetAPIService) GetSnippetExecute(r APIGetSnippetRequest) (*SnippetR // APIGetSnippetDynamicRequest represents a request for the resource. type APIGetSnippetDynamicRequest struct { - ctx context.Context + ctx context.Context APIService SnippetAPI - serviceID string - snippetID string + serviceID string + snippetID string } - // Execute calls the API using the request data configured. func (r APIGetSnippetDynamicRequest) Execute() (*SnippetResponse, *http.Response, error) { return r.APIService.GetSnippetDynamicExecute(r) @@ -644,9 +641,9 @@ Get a single dynamic snippet for a particular service. func (a *SnippetAPIService) GetSnippetDynamic(ctx context.Context, serviceID string, snippetID string) APIGetSnippetDynamicRequest { return APIGetSnippetDynamicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - snippetID: snippetID, + ctx: ctx, + serviceID: serviceID, + snippetID: snippetID, } } @@ -654,10 +651,10 @@ func (a *SnippetAPIService) GetSnippetDynamic(ctx context.Context, serviceID str // @return SnippetResponse func (a *SnippetAPIService) GetSnippetDynamicExecute(r APIGetSnippetDynamicRequest) (*SnippetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *SnippetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.GetSnippetDynamic") @@ -738,7 +735,6 @@ func (a *SnippetAPIService) GetSnippetDynamicExecute(r APIGetSnippetDynamicReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -757,13 +753,12 @@ func (a *SnippetAPIService) GetSnippetDynamicExecute(r APIGetSnippetDynamicReque // APIListSnippetsRequest represents a request for the resource. type APIListSnippetsRequest struct { - ctx context.Context + ctx context.Context APIService SnippetAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListSnippetsRequest) Execute() ([]SnippetResponse, *http.Response, error) { return r.APIService.ListSnippetsExecute(r) @@ -782,9 +777,9 @@ List all snippets for a particular service and version. func (a *SnippetAPIService) ListSnippets(ctx context.Context, serviceID string, versionID int32) APIListSnippetsRequest { return APIListSnippetsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -792,10 +787,10 @@ func (a *SnippetAPIService) ListSnippets(ctx context.Context, serviceID string, // @return []SnippetResponse func (a *SnippetAPIService) ListSnippetsExecute(r APIListSnippetsRequest) ([]SnippetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []SnippetResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []SnippetResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.ListSnippets") @@ -876,7 +871,6 @@ func (a *SnippetAPIService) ListSnippetsExecute(r APIListSnippetsRequest) ([]Sni return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -895,14 +889,13 @@ func (a *SnippetAPIService) ListSnippetsExecute(r APIListSnippetsRequest) ([]Sni // APIUpdateSnippetRequest represents a request for the resource. type APIUpdateSnippetRequest struct { - ctx context.Context - APIService SnippetAPI - serviceID string - versionID int32 + ctx context.Context + APIService SnippetAPI + serviceID string + versionID int32 snippetName string } - // Execute calls the API using the request data configured. func (r APIUpdateSnippetRequest) Execute() (*SnippetResponse, *http.Response, error) { return r.APIService.UpdateSnippetExecute(r) @@ -921,10 +914,10 @@ Update a specific snippet for a particular service and version. */ func (a *SnippetAPIService) UpdateSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIUpdateSnippetRequest { return APIUpdateSnippetRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, snippetName: snippetName, } } @@ -933,10 +926,10 @@ func (a *SnippetAPIService) UpdateSnippet(ctx context.Context, serviceID string, // @return SnippetResponse func (a *SnippetAPIService) UpdateSnippetExecute(r APIUpdateSnippetRequest) (*SnippetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *SnippetResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.UpdateSnippet") @@ -1018,7 +1011,6 @@ func (a *SnippetAPIService) UpdateSnippetExecute(r APIUpdateSnippetRequest) (*Sn return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1037,15 +1029,15 @@ func (a *SnippetAPIService) UpdateSnippetExecute(r APIUpdateSnippetRequest) (*Sn // APIUpdateSnippetDynamicRequest represents a request for the resource. type APIUpdateSnippetDynamicRequest struct { - ctx context.Context - APIService SnippetAPI - serviceID string - snippetID string - name *string + ctx context.Context + APIService SnippetAPI + serviceID string + snippetID string + name *string resourceType *string - content *string - priority *string - dynamic *string + content *string + priority *string + dynamic *string } // Name The name for the snippet. @@ -1053,21 +1045,25 @@ func (r *APIUpdateSnippetDynamicRequest) Name(name string) *APIUpdateSnippetDyna r.name = &name return r } + // ResourceType The location in generated VCL where the snippet should be placed. func (r *APIUpdateSnippetDynamicRequest) ResourceType(resourceType string) *APIUpdateSnippetDynamicRequest { r.resourceType = &resourceType return r } + // Content The VCL code that specifies exactly what the snippet does. func (r *APIUpdateSnippetDynamicRequest) Content(content string) *APIUpdateSnippetDynamicRequest { r.content = &content return r } + // Priority Priority determines execution order. Lower numbers execute first. func (r *APIUpdateSnippetDynamicRequest) Priority(priority string) *APIUpdateSnippetDynamicRequest { r.priority = &priority return r } + // Dynamic Sets the snippet version. func (r *APIUpdateSnippetDynamicRequest) Dynamic(dynamic string) *APIUpdateSnippetDynamicRequest { r.dynamic = &dynamic @@ -1092,9 +1088,9 @@ Update a dynamic snippet for a particular service. func (a *SnippetAPIService) UpdateSnippetDynamic(ctx context.Context, serviceID string, snippetID string) APIUpdateSnippetDynamicRequest { return APIUpdateSnippetDynamicRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - snippetID: snippetID, + ctx: ctx, + serviceID: serviceID, + snippetID: snippetID, } } @@ -1102,10 +1098,10 @@ func (a *SnippetAPIService) UpdateSnippetDynamic(ctx context.Context, serviceID // @return SnippetResponse func (a *SnippetAPIService) UpdateSnippetDynamicExecute(r APIUpdateSnippetDynamicRequest) (*SnippetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *SnippetResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.UpdateSnippetDynamic") @@ -1201,7 +1197,6 @@ func (a *SnippetAPIService) UpdateSnippetDynamicExecute(r APIUpdateSnippetDynami return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_star.go b/fastly/api_star.go index 09d6a51..0a6e33e 100644 --- a/fastly/api_star.go +++ b/fastly/api_star.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type StarAPI interface { /* - CreateServiceStar Create a star + CreateServiceStar Create a star - Create star. + Create star. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateServiceStarRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateServiceStarRequest */ CreateServiceStar(ctx context.Context) APICreateServiceStarRequest @@ -46,13 +45,13 @@ type StarAPI interface { CreateServiceStarExecute(r APICreateServiceStarRequest) (*StarResponse, *http.Response, error) /* - DeleteServiceStar Delete a star + DeleteServiceStar Delete a star - Delete star. + Delete star. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param starID Alphanumeric string identifying a star. - @return APIDeleteServiceStarRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param starID Alphanumeric string identifying a star. + @return APIDeleteServiceStarRequest */ DeleteServiceStar(ctx context.Context, starID string) APIDeleteServiceStarRequest @@ -60,13 +59,13 @@ type StarAPI interface { DeleteServiceStarExecute(r APIDeleteServiceStarRequest) (*http.Response, error) /* - GetServiceStar Get a star + GetServiceStar Get a star - Show star. + Show star. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param starID Alphanumeric string identifying a star. - @return APIGetServiceStarRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param starID Alphanumeric string identifying a star. + @return APIGetServiceStarRequest */ GetServiceStar(ctx context.Context, starID string) APIGetServiceStarRequest @@ -75,12 +74,12 @@ type StarAPI interface { GetServiceStarExecute(r APIGetServiceStarRequest) (*StarResponse, *http.Response, error) /* - ListServiceStars List stars + ListServiceStars List stars - List stars. + List stars. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListServiceStarsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListServiceStarsRequest */ ListServiceStars(ctx context.Context) APIListServiceStarsRequest @@ -94,9 +93,9 @@ type StarAPIService service // APICreateServiceStarRequest represents a request for the resource. type APICreateServiceStarRequest struct { - ctx context.Context + ctx context.Context APIService StarAPI - star *Star + star *Star } // Star returns a pointer to a request. @@ -121,7 +120,7 @@ Create star. func (a *StarAPIService) CreateServiceStar(ctx context.Context) APICreateServiceStarRequest { return APICreateServiceStarRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -129,10 +128,10 @@ func (a *StarAPIService) CreateServiceStar(ctx context.Context) APICreateService // @return StarResponse func (a *StarAPIService) CreateServiceStarExecute(r APICreateServiceStarRequest) (*StarResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *StarResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *StarResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StarAPIService.CreateServiceStar") @@ -213,7 +212,6 @@ func (a *StarAPIService) CreateServiceStarExecute(r APICreateServiceStarRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -232,12 +230,11 @@ func (a *StarAPIService) CreateServiceStarExecute(r APICreateServiceStarRequest) // APIDeleteServiceStarRequest represents a request for the resource. type APIDeleteServiceStarRequest struct { - ctx context.Context + ctx context.Context APIService StarAPI - starID string + starID string } - // Execute calls the API using the request data configured. func (r APIDeleteServiceStarRequest) Execute() (*http.Response, error) { return r.APIService.DeleteServiceStarExecute(r) @@ -255,17 +252,17 @@ Delete star. func (a *StarAPIService) DeleteServiceStar(ctx context.Context, starID string) APIDeleteServiceStarRequest { return APIDeleteServiceStarRequest{ APIService: a, - ctx: ctx, - starID: starID, + ctx: ctx, + starID: starID, } } // DeleteServiceStarExecute executes the request func (a *StarAPIService) DeleteServiceStarExecute(r APIDeleteServiceStarRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StarAPIService.DeleteServiceStar") @@ -336,7 +333,6 @@ func (a *StarAPIService) DeleteServiceStarExecute(r APIDeleteServiceStarRequest) return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -355,12 +351,11 @@ func (a *StarAPIService) DeleteServiceStarExecute(r APIDeleteServiceStarRequest) // APIGetServiceStarRequest represents a request for the resource. type APIGetServiceStarRequest struct { - ctx context.Context + ctx context.Context APIService StarAPI - starID string + starID string } - // Execute calls the API using the request data configured. func (r APIGetServiceStarRequest) Execute() (*StarResponse, *http.Response, error) { return r.APIService.GetServiceStarExecute(r) @@ -378,8 +373,8 @@ Show star. func (a *StarAPIService) GetServiceStar(ctx context.Context, starID string) APIGetServiceStarRequest { return APIGetServiceStarRequest{ APIService: a, - ctx: ctx, - starID: starID, + ctx: ctx, + starID: starID, } } @@ -387,10 +382,10 @@ func (a *StarAPIService) GetServiceStar(ctx context.Context, starID string) APIG // @return StarResponse func (a *StarAPIService) GetServiceStarExecute(r APIGetServiceStarRequest) (*StarResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *StarResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *StarResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StarAPIService.GetServiceStar") @@ -470,7 +465,6 @@ func (a *StarAPIService) GetServiceStarExecute(r APIGetServiceStarRequest) (*Sta return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -489,11 +483,10 @@ func (a *StarAPIService) GetServiceStarExecute(r APIGetServiceStarRequest) (*Sta // APIListServiceStarsRequest represents a request for the resource. type APIListServiceStarsRequest struct { - ctx context.Context + ctx context.Context APIService StarAPI } - // Execute calls the API using the request data configured. func (r APIListServiceStarsRequest) Execute() (*Pagination, *http.Response, error) { return r.APIService.ListServiceStarsExecute(r) @@ -510,7 +503,7 @@ List stars. func (a *StarAPIService) ListServiceStars(ctx context.Context) APIListServiceStarsRequest { return APIListServiceStarsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -518,10 +511,10 @@ func (a *StarAPIService) ListServiceStars(ctx context.Context) APIListServiceSta // @return Pagination func (a *StarAPIService) ListServiceStarsExecute(r APIListServiceStarsRequest) (*Pagination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Pagination + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Pagination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StarAPIService.ListServiceStars") @@ -600,7 +593,6 @@ func (a *StarAPIService) ListServiceStarsExecute(r APIListServiceStarsRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_stats.go b/fastly/api_stats.go index 4ca87fb..e8ac9bf 100644 --- a/fastly/api_stats.go +++ b/fastly/api_stats.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type StatsAPI interface { /* - GetServiceStats Get stats for a service + GetServiceStats Get stats for a service - Get the stats from a service for a block of time. This lists all stats by PoP location, starting with AMS. This call requires parameters to select block of time to query. Use either a timestamp range (using start_time and end_time) or a specified month/year combo (using month and year). + Get the stats from a service for a block of time. This lists all stats by PoP location, starting with AMS. This call requires parameters to select block of time to query. Use either a timestamp range (using start_time and end_time) or a specified month/year combo (using month and year). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIGetServiceStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetServiceStatsRequest */ GetServiceStats(ctx context.Context, serviceID string) APIGetServiceStatsRequest @@ -52,13 +51,13 @@ type StatsAPIService service // APIGetServiceStatsRequest represents a request for the resource. type APIGetServiceStatsRequest struct { - ctx context.Context + ctx context.Context APIService StatsAPI - serviceID string - month *string - year *string - startTime *int32 - endTime *int32 + serviceID string + month *string + year *string + startTime *int32 + endTime *int32 } // Month 2-digit month. @@ -66,16 +65,19 @@ func (r *APIGetServiceStatsRequest) Month(month string) *APIGetServiceStatsReque r.month = &month return r } + // Year 4-digit year. func (r *APIGetServiceStatsRequest) Year(year string) *APIGetServiceStatsRequest { r.year = &year return r } + // StartTime Epoch timestamp. Limits the results returned. func (r *APIGetServiceStatsRequest) StartTime(startTime int32) *APIGetServiceStatsRequest { r.startTime = &startTime return r } + // EndTime Epoch timestamp. Limits the results returned. func (r *APIGetServiceStatsRequest) EndTime(endTime int32) *APIGetServiceStatsRequest { r.endTime = &endTime @@ -99,8 +101,8 @@ Get the stats from a service for a block of time. This lists all stats by PoP lo func (a *StatsAPIService) GetServiceStats(ctx context.Context, serviceID string) APIGetServiceStatsRequest { return APIGetServiceStatsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -108,10 +110,10 @@ func (a *StatsAPIService) GetServiceStats(ctx context.Context, serviceID string) // @return Stats func (a *StatsAPIService) GetServiceStatsExecute(r APIGetServiceStatsRequest) (*Stats, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *Stats + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *Stats ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetServiceStats") @@ -203,7 +205,6 @@ func (a *StatsAPIService) GetServiceStatsExecute(r APIGetServiceStatsRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_sudo.go b/fastly/api_sudo.go index fbcec08..fd3f03b 100644 --- a/fastly/api_sudo.go +++ b/fastly/api_sudo.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type SudoAPI interface { /* - RequestSudoAccess Request Sudo access + RequestSudoAccess Request Sudo access - Re-authenticate to allow the provided user to obtain sudo access. + Re-authenticate to allow the provided user to obtain sudo access. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIRequestSudoAccessRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIRequestSudoAccessRequest */ RequestSudoAccess(ctx context.Context) APIRequestSudoAccessRequest @@ -50,8 +49,8 @@ type SudoAPIService service // APIRequestSudoAccessRequest represents a request for the resource. type APIRequestSudoAccessRequest struct { - ctx context.Context - APIService SudoAPI + ctx context.Context + APIService SudoAPI sudoRequest *SudoRequest } @@ -77,7 +76,7 @@ Re-authenticate to allow the provided user to obtain sudo access. func (a *SudoAPIService) RequestSudoAccess(ctx context.Context) APIRequestSudoAccessRequest { return APIRequestSudoAccessRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -85,10 +84,10 @@ func (a *SudoAPIService) RequestSudoAccess(ctx context.Context) APIRequestSudoAc // @return SudoResponse func (a *SudoAPIService) RequestSudoAccessExecute(r APIRequestSudoAccessRequest) (*SudoResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *SudoResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SudoResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SudoAPIService.RequestSudoAccess") @@ -178,7 +177,6 @@ func (a *SudoAPIService) RequestSudoAccessExecute(r APIRequestSudoAccessRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_activations.go b/fastly/api_tls_activations.go index ce8b473..ec94c06 100644 --- a/fastly/api_tls_activations.go +++ b/fastly/api_tls_activations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type TLSActivationsAPI interface { /* - CreateTLSActivation Enable TLS for a domain using a custom certificate + CreateTLSActivation Enable TLS for a domain using a custom certificate - Enable TLS for a particular TLS domain and certificate combination. These relationships must be specified to create the TLS activation. + Enable TLS for a particular TLS domain and certificate combination. These relationships must be specified to create the TLS activation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateTLSActivationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTLSActivationRequest */ CreateTLSActivation(ctx context.Context) APICreateTLSActivationRequest @@ -46,13 +45,13 @@ type TLSActivationsAPI interface { CreateTLSActivationExecute(r APICreateTLSActivationRequest) (*TLSActivationResponse, *http.Response, error) /* - DeleteTLSActivation Disable TLS on a domain + DeleteTLSActivation Disable TLS on a domain - Disable TLS on the domain associated with this TLS activation. + Disable TLS on the domain associated with this TLS activation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsActivationID Alphanumeric string identifying a TLS activation. - @return APIDeleteTLSActivationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsActivationID Alphanumeric string identifying a TLS activation. + @return APIDeleteTLSActivationRequest */ DeleteTLSActivation(ctx context.Context, tlsActivationID string) APIDeleteTLSActivationRequest @@ -60,13 +59,13 @@ type TLSActivationsAPI interface { DeleteTLSActivationExecute(r APIDeleteTLSActivationRequest) (*http.Response, error) /* - GetTLSActivation Get a TLS activation + GetTLSActivation Get a TLS activation - Show a TLS activation. + Show a TLS activation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsActivationID Alphanumeric string identifying a TLS activation. - @return APIGetTLSActivationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsActivationID Alphanumeric string identifying a TLS activation. + @return APIGetTLSActivationRequest */ GetTLSActivation(ctx context.Context, tlsActivationID string) APIGetTLSActivationRequest @@ -75,12 +74,12 @@ type TLSActivationsAPI interface { GetTLSActivationExecute(r APIGetTLSActivationRequest) (*TLSActivationResponse, *http.Response, error) /* - ListTLSActivations List TLS activations + ListTLSActivations List TLS activations - List all TLS activations. + List all TLS activations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSActivationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSActivationsRequest */ ListTLSActivations(ctx context.Context) APIListTLSActivationsRequest @@ -89,13 +88,13 @@ type TLSActivationsAPI interface { ListTLSActivationsExecute(r APIListTLSActivationsRequest) (*TLSActivationsResponse, *http.Response, error) /* - UpdateTLSActivation Update a certificate + UpdateTLSActivation Update a certificate - Update the certificate used to terminate TLS traffic for the domain associated with this TLS activation. + Update the certificate used to terminate TLS traffic for the domain associated with this TLS activation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsActivationID Alphanumeric string identifying a TLS activation. - @return APIUpdateTLSActivationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsActivationID Alphanumeric string identifying a TLS activation. + @return APIUpdateTLSActivationRequest */ UpdateTLSActivation(ctx context.Context, tlsActivationID string) APIUpdateTLSActivationRequest @@ -109,8 +108,8 @@ type TLSActivationsAPIService service // APICreateTLSActivationRequest represents a request for the resource. type APICreateTLSActivationRequest struct { - ctx context.Context - APIService TLSActivationsAPI + ctx context.Context + APIService TLSActivationsAPI tlsActivation *TLSActivation } @@ -136,7 +135,7 @@ Enable TLS for a particular TLS domain and certificate combination. These relati func (a *TLSActivationsAPIService) CreateTLSActivation(ctx context.Context) APICreateTLSActivationRequest { return APICreateTLSActivationRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -144,10 +143,10 @@ func (a *TLSActivationsAPIService) CreateTLSActivation(ctx context.Context) APIC // @return TLSActivationResponse func (a *TLSActivationsAPIService) CreateTLSActivationExecute(r APICreateTLSActivationRequest) (*TLSActivationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSActivationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSActivationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSActivationsAPIService.CreateTLSActivation") @@ -228,7 +227,6 @@ func (a *TLSActivationsAPIService) CreateTLSActivationExecute(r APICreateTLSActi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -247,12 +245,11 @@ func (a *TLSActivationsAPIService) CreateTLSActivationExecute(r APICreateTLSActi // APIDeleteTLSActivationRequest represents a request for the resource. type APIDeleteTLSActivationRequest struct { - ctx context.Context - APIService TLSActivationsAPI + ctx context.Context + APIService TLSActivationsAPI tlsActivationID string } - // Execute calls the API using the request data configured. func (r APIDeleteTLSActivationRequest) Execute() (*http.Response, error) { return r.APIService.DeleteTLSActivationExecute(r) @@ -269,8 +266,8 @@ Disable TLS on the domain associated with this TLS activation. */ func (a *TLSActivationsAPIService) DeleteTLSActivation(ctx context.Context, tlsActivationID string) APIDeleteTLSActivationRequest { return APIDeleteTLSActivationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsActivationID: tlsActivationID, } } @@ -278,9 +275,9 @@ func (a *TLSActivationsAPIService) DeleteTLSActivation(ctx context.Context, tlsA // DeleteTLSActivationExecute executes the request func (a *TLSActivationsAPIService) DeleteTLSActivationExecute(r APIDeleteTLSActivationRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSActivationsAPIService.DeleteTLSActivation") @@ -351,7 +348,6 @@ func (a *TLSActivationsAPIService) DeleteTLSActivationExecute(r APIDeleteTLSActi return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -370,13 +366,13 @@ func (a *TLSActivationsAPIService) DeleteTLSActivationExecute(r APIDeleteTLSActi // APIGetTLSActivationRequest represents a request for the resource. type APIGetTLSActivationRequest struct { - ctx context.Context - APIService TLSActivationsAPI + ctx context.Context + APIService TLSActivationsAPI tlsActivationID string - include *string + include *string } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_certificate`, `tls_configuration`, and `tls_domain`. +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_certificate`, `tls_configuration`, and `tls_domain`. func (r *APIGetTLSActivationRequest) Include(include string) *APIGetTLSActivationRequest { r.include = &include return r @@ -398,8 +394,8 @@ Show a TLS activation. */ func (a *TLSActivationsAPIService) GetTLSActivation(ctx context.Context, tlsActivationID string) APIGetTLSActivationRequest { return APIGetTLSActivationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsActivationID: tlsActivationID, } } @@ -408,10 +404,10 @@ func (a *TLSActivationsAPIService) GetTLSActivation(ctx context.Context, tlsActi // @return TLSActivationResponse func (a *TLSActivationsAPIService) GetTLSActivationExecute(r APIGetTLSActivationRequest) (*TLSActivationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSActivationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSActivationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSActivationsAPIService.GetTLSActivation") @@ -494,7 +490,6 @@ func (a *TLSActivationsAPIService) GetTLSActivationExecute(r APIGetTLSActivation return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -513,14 +508,14 @@ func (a *TLSActivationsAPIService) GetTLSActivationExecute(r APIGetTLSActivation // APIListTLSActivationsRequest represents a request for the resource. type APIListTLSActivationsRequest struct { - ctx context.Context - APIService TLSActivationsAPI - filterTLSCertificateID *string + ctx context.Context + APIService TLSActivationsAPI + filterTLSCertificateID *string filterTLSConfigurationID *string - filterTLSDomainID *string - include *string - pageNumber *int32 - pageSize *int32 + filterTLSDomainID *string + include *string + pageNumber *int32 + pageSize *int32 } // FilterTLSCertificateID Limit the returned activations to a specific certificate. @@ -528,26 +523,31 @@ func (r *APIListTLSActivationsRequest) FilterTLSCertificateID(filterTLSCertifica r.filterTLSCertificateID = &filterTLSCertificateID return r } + // FilterTLSConfigurationID Limit the returned activations to a specific TLS configuration. func (r *APIListTLSActivationsRequest) FilterTLSConfigurationID(filterTLSConfigurationID string) *APIListTLSActivationsRequest { r.filterTLSConfigurationID = &filterTLSConfigurationID return r } + // FilterTLSDomainID Limit the returned rules to a specific domain name. func (r *APIListTLSActivationsRequest) FilterTLSDomainID(filterTLSDomainID string) *APIListTLSActivationsRequest { r.filterTLSDomainID = &filterTLSDomainID return r } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_certificate`, `tls_configuration`, and `tls_domain`. + +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_certificate`, `tls_configuration`, and `tls_domain`. func (r *APIListTLSActivationsRequest) Include(include string) *APIListTLSActivationsRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListTLSActivationsRequest) PageNumber(pageNumber int32) *APIListTLSActivationsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSActivationsRequest) PageSize(pageSize int32) *APIListTLSActivationsRequest { r.pageSize = &pageSize @@ -570,7 +570,7 @@ List all TLS activations. func (a *TLSActivationsAPIService) ListTLSActivations(ctx context.Context) APIListTLSActivationsRequest { return APIListTLSActivationsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -578,10 +578,10 @@ func (a *TLSActivationsAPIService) ListTLSActivations(ctx context.Context) APILi // @return TLSActivationsResponse func (a *TLSActivationsAPIService) ListTLSActivationsExecute(r APIListTLSActivationsRequest) (*TLSActivationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSActivationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSActivationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSActivationsAPIService.ListTLSActivations") @@ -678,7 +678,6 @@ func (a *TLSActivationsAPIService) ListTLSActivationsExecute(r APIListTLSActivat return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -697,10 +696,10 @@ func (a *TLSActivationsAPIService) ListTLSActivationsExecute(r APIListTLSActivat // APIUpdateTLSActivationRequest represents a request for the resource. type APIUpdateTLSActivationRequest struct { - ctx context.Context - APIService TLSActivationsAPI + ctx context.Context + APIService TLSActivationsAPI tlsActivationID string - tlsActivation *TLSActivation + tlsActivation *TLSActivation } // TLSActivation returns a pointer to a request. @@ -725,8 +724,8 @@ Update the certificate used to terminate TLS traffic for the domain associated w */ func (a *TLSActivationsAPIService) UpdateTLSActivation(ctx context.Context, tlsActivationID string) APIUpdateTLSActivationRequest { return APIUpdateTLSActivationRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsActivationID: tlsActivationID, } } @@ -735,10 +734,10 @@ func (a *TLSActivationsAPIService) UpdateTLSActivation(ctx context.Context, tlsA // @return TLSActivationResponse func (a *TLSActivationsAPIService) UpdateTLSActivationExecute(r APIUpdateTLSActivationRequest) (*TLSActivationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSActivationResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSActivationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSActivationsAPIService.UpdateTLSActivation") @@ -820,7 +819,6 @@ func (a *TLSActivationsAPIService) UpdateTLSActivationExecute(r APIUpdateTLSActi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_bulk_certificates.go b/fastly/api_tls_bulk_certificates.go index b16c100..9183f77 100644 --- a/fastly/api_tls_bulk_certificates.go +++ b/fastly/api_tls_bulk_certificates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type TLSBulkCertificatesAPI interface { /* - DeleteBulkTLSCert Delete a certificate + DeleteBulkTLSCert Delete a certificate - Destroy a certificate. This disables TLS for all domains listed as SAN entries. + Destroy a certificate. This disables TLS for all domains listed as SAN entries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certificateID Alphanumeric string identifying a TLS bulk certificate. - @return APIDeleteBulkTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certificateID Alphanumeric string identifying a TLS bulk certificate. + @return APIDeleteBulkTLSCertRequest */ DeleteBulkTLSCert(ctx context.Context, certificateID string) APIDeleteBulkTLSCertRequest @@ -46,13 +45,13 @@ type TLSBulkCertificatesAPI interface { DeleteBulkTLSCertExecute(r APIDeleteBulkTLSCertRequest) (*http.Response, error) /* - GetTLSBulkCert Get a certificate + GetTLSBulkCert Get a certificate - Retrieve a single certificate. + Retrieve a single certificate. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certificateID Alphanumeric string identifying a TLS bulk certificate. - @return APIGetTLSBulkCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certificateID Alphanumeric string identifying a TLS bulk certificate. + @return APIGetTLSBulkCertRequest */ GetTLSBulkCert(ctx context.Context, certificateID string) APIGetTLSBulkCertRequest @@ -61,12 +60,12 @@ type TLSBulkCertificatesAPI interface { GetTLSBulkCertExecute(r APIGetTLSBulkCertRequest) (*TLSBulkCertificateResponse, *http.Response, error) /* - ListTLSBulkCerts List certificates + ListTLSBulkCerts List certificates - List all certificates. + List all certificates. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSBulkCertsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSBulkCertsRequest */ ListTLSBulkCerts(ctx context.Context) APIListTLSBulkCertsRequest @@ -75,13 +74,13 @@ type TLSBulkCertificatesAPI interface { ListTLSBulkCertsExecute(r APIListTLSBulkCertsRequest) (*TLSBulkCertificatesResponse, *http.Response, error) /* - UpdateBulkTLSCert Update a certificate + UpdateBulkTLSCert Update a certificate - Replace a certificate with a newly reissued certificate. By using this endpoint, the original certificate will cease to be used for future TLS handshakes. Thus, only SAN entries that appear in the replacement certificate will become TLS enabled. Any SAN entries that are missing in the replacement certificate will become disabled. + Replace a certificate with a newly reissued certificate. By using this endpoint, the original certificate will cease to be used for future TLS handshakes. Thus, only SAN entries that appear in the replacement certificate will become TLS enabled. Any SAN entries that are missing in the replacement certificate will become disabled. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certificateID Alphanumeric string identifying a TLS bulk certificate. - @return APIUpdateBulkTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certificateID Alphanumeric string identifying a TLS bulk certificate. + @return APIUpdateBulkTLSCertRequest */ UpdateBulkTLSCert(ctx context.Context, certificateID string) APIUpdateBulkTLSCertRequest @@ -90,12 +89,12 @@ type TLSBulkCertificatesAPI interface { UpdateBulkTLSCertExecute(r APIUpdateBulkTLSCertRequest) (*TLSBulkCertificateResponse, *http.Response, error) /* - UploadTLSBulkCert Upload a certificate + UploadTLSBulkCert Upload a certificate - Upload a new certificate. TLS domains are automatically enabled upon certificate creation. If a domain is already enabled on a previously uploaded certificate, that domain will be updated to use the new certificate for all future TLS handshake requests. + Upload a new certificate. TLS domains are automatically enabled upon certificate creation. If a domain is already enabled on a previously uploaded certificate, that domain will be updated to use the new certificate for all future TLS handshake requests. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIUploadTLSBulkCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIUploadTLSBulkCertRequest */ UploadTLSBulkCert(ctx context.Context) APIUploadTLSBulkCertRequest @@ -109,12 +108,11 @@ type TLSBulkCertificatesAPIService service // APIDeleteBulkTLSCertRequest represents a request for the resource. type APIDeleteBulkTLSCertRequest struct { - ctx context.Context - APIService TLSBulkCertificatesAPI + ctx context.Context + APIService TLSBulkCertificatesAPI certificateID string } - // Execute calls the API using the request data configured. func (r APIDeleteBulkTLSCertRequest) Execute() (*http.Response, error) { return r.APIService.DeleteBulkTLSCertExecute(r) @@ -131,8 +129,8 @@ Destroy a certificate. This disables TLS for all domains listed as SAN entries. */ func (a *TLSBulkCertificatesAPIService) DeleteBulkTLSCert(ctx context.Context, certificateID string) APIDeleteBulkTLSCertRequest { return APIDeleteBulkTLSCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, certificateID: certificateID, } } @@ -140,9 +138,9 @@ func (a *TLSBulkCertificatesAPIService) DeleteBulkTLSCert(ctx context.Context, c // DeleteBulkTLSCertExecute executes the request func (a *TLSBulkCertificatesAPIService) DeleteBulkTLSCertExecute(r APIDeleteBulkTLSCertRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSBulkCertificatesAPIService.DeleteBulkTLSCert") @@ -213,7 +211,6 @@ func (a *TLSBulkCertificatesAPIService) DeleteBulkTLSCertExecute(r APIDeleteBulk return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -232,12 +229,11 @@ func (a *TLSBulkCertificatesAPIService) DeleteBulkTLSCertExecute(r APIDeleteBulk // APIGetTLSBulkCertRequest represents a request for the resource. type APIGetTLSBulkCertRequest struct { - ctx context.Context - APIService TLSBulkCertificatesAPI + ctx context.Context + APIService TLSBulkCertificatesAPI certificateID string } - // Execute calls the API using the request data configured. func (r APIGetTLSBulkCertRequest) Execute() (*TLSBulkCertificateResponse, *http.Response, error) { return r.APIService.GetTLSBulkCertExecute(r) @@ -254,8 +250,8 @@ Retrieve a single certificate. */ func (a *TLSBulkCertificatesAPIService) GetTLSBulkCert(ctx context.Context, certificateID string) APIGetTLSBulkCertRequest { return APIGetTLSBulkCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, certificateID: certificateID, } } @@ -264,10 +260,10 @@ func (a *TLSBulkCertificatesAPIService) GetTLSBulkCert(ctx context.Context, cert // @return TLSBulkCertificateResponse func (a *TLSBulkCertificatesAPIService) GetTLSBulkCertExecute(r APIGetTLSBulkCertRequest) (*TLSBulkCertificateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSBulkCertificateResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSBulkCertificateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSBulkCertificatesAPIService.GetTLSBulkCert") @@ -347,7 +343,6 @@ func (a *TLSBulkCertificatesAPIService) GetTLSBulkCertExecute(r APIGetTLSBulkCer return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -366,12 +361,12 @@ func (a *TLSBulkCertificatesAPIService) GetTLSBulkCertExecute(r APIGetTLSBulkCer // APIListTLSBulkCertsRequest represents a request for the resource. type APIListTLSBulkCertsRequest struct { - ctx context.Context - APIService TLSBulkCertificatesAPI + ctx context.Context + APIService TLSBulkCertificatesAPI filterTLSDomainID *string - pageNumber *int32 - pageSize *int32 - sort *string + pageNumber *int32 + pageSize *int32 + sort *string } // FilterTLSDomainID Filter certificates by their matching, fully-qualified domain name. @@ -379,16 +374,19 @@ func (r *APIListTLSBulkCertsRequest) FilterTLSDomainID(filterTLSDomainID string) r.filterTLSDomainID = &filterTLSDomainID return r } + // PageNumber Current page. func (r *APIListTLSBulkCertsRequest) PageNumber(pageNumber int32) *APIListTLSBulkCertsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSBulkCertsRequest) PageSize(pageSize int32) *APIListTLSBulkCertsRequest { r.pageSize = &pageSize return r } + // Sort The order in which to list the results by creation date. func (r *APIListTLSBulkCertsRequest) Sort(sort string) *APIListTLSBulkCertsRequest { r.sort = &sort @@ -411,7 +409,7 @@ List all certificates. func (a *TLSBulkCertificatesAPIService) ListTLSBulkCerts(ctx context.Context) APIListTLSBulkCertsRequest { return APIListTLSBulkCertsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -419,10 +417,10 @@ func (a *TLSBulkCertificatesAPIService) ListTLSBulkCerts(ctx context.Context) AP // @return TLSBulkCertificatesResponse func (a *TLSBulkCertificatesAPIService) ListTLSBulkCertsExecute(r APIListTLSBulkCertsRequest) (*TLSBulkCertificatesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSBulkCertificatesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSBulkCertificatesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSBulkCertificatesAPIService.ListTLSBulkCerts") @@ -513,7 +511,6 @@ func (a *TLSBulkCertificatesAPIService) ListTLSBulkCertsExecute(r APIListTLSBulk return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -532,9 +529,9 @@ func (a *TLSBulkCertificatesAPIService) ListTLSBulkCertsExecute(r APIListTLSBulk // APIUpdateBulkTLSCertRequest represents a request for the resource. type APIUpdateBulkTLSCertRequest struct { - ctx context.Context - APIService TLSBulkCertificatesAPI - certificateID string + ctx context.Context + APIService TLSBulkCertificatesAPI + certificateID string tlsBulkCertificate *TLSBulkCertificate } @@ -560,8 +557,8 @@ Replace a certificate with a newly reissued certificate. By using this endpoint, */ func (a *TLSBulkCertificatesAPIService) UpdateBulkTLSCert(ctx context.Context, certificateID string) APIUpdateBulkTLSCertRequest { return APIUpdateBulkTLSCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, certificateID: certificateID, } } @@ -570,10 +567,10 @@ func (a *TLSBulkCertificatesAPIService) UpdateBulkTLSCert(ctx context.Context, c // @return TLSBulkCertificateResponse func (a *TLSBulkCertificatesAPIService) UpdateBulkTLSCertExecute(r APIUpdateBulkTLSCertRequest) (*TLSBulkCertificateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSBulkCertificateResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSBulkCertificateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSBulkCertificatesAPIService.UpdateBulkTLSCert") @@ -655,7 +652,6 @@ func (a *TLSBulkCertificatesAPIService) UpdateBulkTLSCertExecute(r APIUpdateBulk return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -674,8 +670,8 @@ func (a *TLSBulkCertificatesAPIService) UpdateBulkTLSCertExecute(r APIUpdateBulk // APIUploadTLSBulkCertRequest represents a request for the resource. type APIUploadTLSBulkCertRequest struct { - ctx context.Context - APIService TLSBulkCertificatesAPI + ctx context.Context + APIService TLSBulkCertificatesAPI tlsBulkCertificate *TLSBulkCertificate } @@ -701,7 +697,7 @@ Upload a new certificate. TLS domains are automatically enabled upon certificate func (a *TLSBulkCertificatesAPIService) UploadTLSBulkCert(ctx context.Context) APIUploadTLSBulkCertRequest { return APIUploadTLSBulkCertRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -709,10 +705,10 @@ func (a *TLSBulkCertificatesAPIService) UploadTLSBulkCert(ctx context.Context) A // @return TLSBulkCertificateResponse func (a *TLSBulkCertificatesAPIService) UploadTLSBulkCertExecute(r APIUploadTLSBulkCertRequest) (*TLSBulkCertificateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSBulkCertificateResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSBulkCertificateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSBulkCertificatesAPIService.UploadTLSBulkCert") @@ -793,7 +789,6 @@ func (a *TLSBulkCertificatesAPIService) UploadTLSBulkCertExecute(r APIUploadTLSB return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_certificates.go b/fastly/api_tls_certificates.go index 2e18d15..03de9b3 100644 --- a/fastly/api_tls_certificates.go +++ b/fastly/api_tls_certificates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type TLSCertificatesAPI interface { /* - CreateTLSCert Create a TLS certificate + CreateTLSCert Create a TLS certificate - Create a TLS certificate. + Create a TLS certificate. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTLSCertRequest */ CreateTLSCert(ctx context.Context) APICreateTLSCertRequest @@ -46,13 +45,13 @@ type TLSCertificatesAPI interface { CreateTLSCertExecute(r APICreateTLSCertRequest) (map[string]any, *http.Response, error) /* - DeleteTLSCert Delete a TLS certificate + DeleteTLSCert Delete a TLS certificate - Destroy a TLS certificate. TLS certificates already enabled for a domain cannot be destroyed. + Destroy a TLS certificate. TLS certificates already enabled for a domain cannot be destroyed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsCertificateID Alphanumeric string identifying a TLS certificate. - @return APIDeleteTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsCertificateID Alphanumeric string identifying a TLS certificate. + @return APIDeleteTLSCertRequest */ DeleteTLSCert(ctx context.Context, tlsCertificateID string) APIDeleteTLSCertRequest @@ -60,13 +59,13 @@ type TLSCertificatesAPI interface { DeleteTLSCertExecute(r APIDeleteTLSCertRequest) (*http.Response, error) /* - GetTLSCert Get a TLS certificate + GetTLSCert Get a TLS certificate - Show a TLS certificate. + Show a TLS certificate. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsCertificateID Alphanumeric string identifying a TLS certificate. - @return APIGetTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsCertificateID Alphanumeric string identifying a TLS certificate. + @return APIGetTLSCertRequest */ GetTLSCert(ctx context.Context, tlsCertificateID string) APIGetTLSCertRequest @@ -75,13 +74,13 @@ type TLSCertificatesAPI interface { GetTLSCertExecute(r APIGetTLSCertRequest) (*TLSCertificateResponse, *http.Response, error) /* - GetTLSCertBlob Get a TLS certificate blob (Limited Availability) + GetTLSCertBlob Get a TLS certificate blob (Limited Availability) - Retrieve a TLS certificate blob. This feature is part of a [limited availability](https://docs.fastly.com/products/fastly-product-lifecycle#limited-availability) release. + Retrieve a TLS certificate blob. This feature is part of a [limited availability](https://docs.fastly.com/products/fastly-product-lifecycle#limited-availability) release. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsCertificateID Alphanumeric string identifying a TLS certificate. - @return APIGetTLSCertBlobRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsCertificateID Alphanumeric string identifying a TLS certificate. + @return APIGetTLSCertBlobRequest */ GetTLSCertBlob(ctx context.Context, tlsCertificateID string) APIGetTLSCertBlobRequest @@ -90,12 +89,12 @@ type TLSCertificatesAPI interface { GetTLSCertBlobExecute(r APIGetTLSCertBlobRequest) (*TLSCertificateBlobResponse, *http.Response, error) /* - ListTLSCerts List TLS certificates + ListTLSCerts List TLS certificates - List all TLS certificates. + List all TLS certificates. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSCertsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSCertsRequest */ ListTLSCerts(ctx context.Context) APIListTLSCertsRequest @@ -104,13 +103,13 @@ type TLSCertificatesAPI interface { ListTLSCertsExecute(r APIListTLSCertsRequest) (*TLSCertificatesResponse, *http.Response, error) /* - UpdateTLSCert Update a TLS certificate + UpdateTLSCert Update a TLS certificate - Replace a TLS certificate with a newly reissued TLS certificate, or update a TLS certificate's name. If replacing a TLS certificate, the new TLS certificate must contain all SAN entries as the current TLS certificate. It must either have an exact matching list or contain a superset. + Replace a TLS certificate with a newly reissued TLS certificate, or update a TLS certificate's name. If replacing a TLS certificate, the new TLS certificate must contain all SAN entries as the current TLS certificate. It must either have an exact matching list or contain a superset. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsCertificateID Alphanumeric string identifying a TLS certificate. - @return APIUpdateTLSCertRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsCertificateID Alphanumeric string identifying a TLS certificate. + @return APIUpdateTLSCertRequest */ UpdateTLSCert(ctx context.Context, tlsCertificateID string) APIUpdateTLSCertRequest @@ -124,8 +123,8 @@ type TLSCertificatesAPIService service // APICreateTLSCertRequest represents a request for the resource. type APICreateTLSCertRequest struct { - ctx context.Context - APIService TLSCertificatesAPI + ctx context.Context + APIService TLSCertificatesAPI tlsCertificate *TLSCertificate } @@ -151,7 +150,7 @@ Create a TLS certificate. func (a *TLSCertificatesAPIService) CreateTLSCert(ctx context.Context) APICreateTLSCertRequest { return APICreateTLSCertRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -159,10 +158,10 @@ func (a *TLSCertificatesAPIService) CreateTLSCert(ctx context.Context) APICreate // @return map[string]any func (a *TLSCertificatesAPIService) CreateTLSCertExecute(r APICreateTLSCertRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.CreateTLSCert") @@ -243,7 +242,6 @@ func (a *TLSCertificatesAPIService) CreateTLSCertExecute(r APICreateTLSCertReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -262,12 +260,11 @@ func (a *TLSCertificatesAPIService) CreateTLSCertExecute(r APICreateTLSCertReque // APIDeleteTLSCertRequest represents a request for the resource. type APIDeleteTLSCertRequest struct { - ctx context.Context - APIService TLSCertificatesAPI + ctx context.Context + APIService TLSCertificatesAPI tlsCertificateID string } - // Execute calls the API using the request data configured. func (r APIDeleteTLSCertRequest) Execute() (*http.Response, error) { return r.APIService.DeleteTLSCertExecute(r) @@ -284,8 +281,8 @@ Destroy a TLS certificate. TLS certificates already enabled for a domain cannot */ func (a *TLSCertificatesAPIService) DeleteTLSCert(ctx context.Context, tlsCertificateID string) APIDeleteTLSCertRequest { return APIDeleteTLSCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsCertificateID: tlsCertificateID, } } @@ -293,9 +290,9 @@ func (a *TLSCertificatesAPIService) DeleteTLSCert(ctx context.Context, tlsCertif // DeleteTLSCertExecute executes the request func (a *TLSCertificatesAPIService) DeleteTLSCertExecute(r APIDeleteTLSCertRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.DeleteTLSCert") @@ -366,7 +363,6 @@ func (a *TLSCertificatesAPIService) DeleteTLSCertExecute(r APIDeleteTLSCertReque return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -385,12 +381,11 @@ func (a *TLSCertificatesAPIService) DeleteTLSCertExecute(r APIDeleteTLSCertReque // APIGetTLSCertRequest represents a request for the resource. type APIGetTLSCertRequest struct { - ctx context.Context - APIService TLSCertificatesAPI + ctx context.Context + APIService TLSCertificatesAPI tlsCertificateID string } - // Execute calls the API using the request data configured. func (r APIGetTLSCertRequest) Execute() (*TLSCertificateResponse, *http.Response, error) { return r.APIService.GetTLSCertExecute(r) @@ -407,8 +402,8 @@ Show a TLS certificate. */ func (a *TLSCertificatesAPIService) GetTLSCert(ctx context.Context, tlsCertificateID string) APIGetTLSCertRequest { return APIGetTLSCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsCertificateID: tlsCertificateID, } } @@ -417,10 +412,10 @@ func (a *TLSCertificatesAPIService) GetTLSCert(ctx context.Context, tlsCertifica // @return TLSCertificateResponse func (a *TLSCertificatesAPIService) GetTLSCertExecute(r APIGetTLSCertRequest) (*TLSCertificateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSCertificateResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSCertificateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.GetTLSCert") @@ -500,7 +495,6 @@ func (a *TLSCertificatesAPIService) GetTLSCertExecute(r APIGetTLSCertRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -519,12 +513,11 @@ func (a *TLSCertificatesAPIService) GetTLSCertExecute(r APIGetTLSCertRequest) (* // APIGetTLSCertBlobRequest represents a request for the resource. type APIGetTLSCertBlobRequest struct { - ctx context.Context - APIService TLSCertificatesAPI + ctx context.Context + APIService TLSCertificatesAPI tlsCertificateID string } - // Execute calls the API using the request data configured. func (r APIGetTLSCertBlobRequest) Execute() (*TLSCertificateBlobResponse, *http.Response, error) { return r.APIService.GetTLSCertBlobExecute(r) @@ -541,8 +534,8 @@ Retrieve a TLS certificate blob. This feature is part of a [limited availability */ func (a *TLSCertificatesAPIService) GetTLSCertBlob(ctx context.Context, tlsCertificateID string) APIGetTLSCertBlobRequest { return APIGetTLSCertBlobRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsCertificateID: tlsCertificateID, } } @@ -551,10 +544,10 @@ func (a *TLSCertificatesAPIService) GetTLSCertBlob(ctx context.Context, tlsCerti // @return TLSCertificateBlobResponse func (a *TLSCertificatesAPIService) GetTLSCertBlobExecute(r APIGetTLSCertBlobRequest) (*TLSCertificateBlobResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSCertificateBlobResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSCertificateBlobResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.GetTLSCertBlob") @@ -634,7 +627,6 @@ func (a *TLSCertificatesAPIService) GetTLSCertBlobExecute(r APIGetTLSCertBlobReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -653,15 +645,15 @@ func (a *TLSCertificatesAPIService) GetTLSCertBlobExecute(r APIGetTLSCertBlobReq // APIListTLSCertsRequest represents a request for the resource. type APIListTLSCertsRequest struct { - ctx context.Context - APIService TLSCertificatesAPI - filterInUse *string - filterNotAfter *string + ctx context.Context + APIService TLSCertificatesAPI + filterInUse *string + filterNotAfter *string filterTLSDomainsID *string - include *string - sort *string - pageNumber *int32 - pageSize *int32 + include *string + sort *string + pageNumber *int32 + pageSize *int32 } // FilterInUse Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false. @@ -669,31 +661,37 @@ func (r *APIListTLSCertsRequest) FilterInUse(filterInUse string) *APIListTLSCert r.filterInUse = &filterInUse return r } -// FilterNotAfter Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]=2020-05-05). + +// FilterNotAfter Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]=2020-05-05). func (r *APIListTLSCertsRequest) FilterNotAfter(filterNotAfter string) *APIListTLSCertsRequest { r.filterNotAfter = &filterNotAfter return r } + // FilterTLSDomainsID Limit the returned certificates to those that include the specific domain. func (r *APIListTLSCertsRequest) FilterTLSDomainsID(filterTLSDomainsID string) *APIListTLSCertsRequest { r.filterTLSDomainsID = &filterTLSDomainsID return r } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`. + +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`. func (r *APIListTLSCertsRequest) Include(include string) *APIListTLSCertsRequest { r.include = &include return r } + // Sort The order in which to list the results. func (r *APIListTLSCertsRequest) Sort(sort string) *APIListTLSCertsRequest { r.sort = &sort return r } + // PageNumber Current page. func (r *APIListTLSCertsRequest) PageNumber(pageNumber int32) *APIListTLSCertsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSCertsRequest) PageSize(pageSize int32) *APIListTLSCertsRequest { r.pageSize = &pageSize @@ -716,7 +714,7 @@ List all TLS certificates. func (a *TLSCertificatesAPIService) ListTLSCerts(ctx context.Context) APIListTLSCertsRequest { return APIListTLSCertsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -724,10 +722,10 @@ func (a *TLSCertificatesAPIService) ListTLSCerts(ctx context.Context) APIListTLS // @return TLSCertificatesResponse func (a *TLSCertificatesAPIService) ListTLSCertsExecute(r APIListTLSCertsRequest) (*TLSCertificatesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSCertificatesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSCertificatesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.ListTLSCerts") @@ -827,7 +825,6 @@ func (a *TLSCertificatesAPIService) ListTLSCertsExecute(r APIListTLSCertsRequest return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -846,10 +843,10 @@ func (a *TLSCertificatesAPIService) ListTLSCertsExecute(r APIListTLSCertsRequest // APIUpdateTLSCertRequest represents a request for the resource. type APIUpdateTLSCertRequest struct { - ctx context.Context - APIService TLSCertificatesAPI + ctx context.Context + APIService TLSCertificatesAPI tlsCertificateID string - tlsCertificate *TLSCertificate + tlsCertificate *TLSCertificate } // TLSCertificate returns a pointer to a request. @@ -874,8 +871,8 @@ Replace a TLS certificate with a newly reissued TLS certificate, or update a TLS */ func (a *TLSCertificatesAPIService) UpdateTLSCert(ctx context.Context, tlsCertificateID string) APIUpdateTLSCertRequest { return APIUpdateTLSCertRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsCertificateID: tlsCertificateID, } } @@ -884,10 +881,10 @@ func (a *TLSCertificatesAPIService) UpdateTLSCert(ctx context.Context, tlsCertif // @return TLSCertificateResponse func (a *TLSCertificatesAPIService) UpdateTLSCertExecute(r APIUpdateTLSCertRequest) (*TLSCertificateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSCertificateResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSCertificateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCertificatesAPIService.UpdateTLSCert") @@ -969,7 +966,6 @@ func (a *TLSCertificatesAPIService) UpdateTLSCertExecute(r APIUpdateTLSCertReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_configurations.go b/fastly/api_tls_configurations.go index db06641..f77a3e3 100644 --- a/fastly/api_tls_configurations.go +++ b/fastly/api_tls_configurations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,13 +31,13 @@ var ( type TLSConfigurationsAPI interface { /* - GetTLSConfig Get a TLS configuration + GetTLSConfig Get a TLS configuration - Show a TLS configuration. + Show a TLS configuration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsConfigurationID Alphanumeric string identifying a TLS configuration. - @return APIGetTLSConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsConfigurationID Alphanumeric string identifying a TLS configuration. + @return APIGetTLSConfigRequest */ GetTLSConfig(ctx context.Context, tlsConfigurationID string) APIGetTLSConfigRequest @@ -47,12 +46,12 @@ type TLSConfigurationsAPI interface { GetTLSConfigExecute(r APIGetTLSConfigRequest) (*TLSConfigurationResponse, *http.Response, error) /* - ListTLSConfigs List TLS configurations + ListTLSConfigs List TLS configurations - List all TLS configurations. + List all TLS configurations. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSConfigsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSConfigsRequest */ ListTLSConfigs(ctx context.Context) APIListTLSConfigsRequest @@ -61,13 +60,13 @@ type TLSConfigurationsAPI interface { ListTLSConfigsExecute(r APIListTLSConfigsRequest) (*TLSConfigurationsResponse, *http.Response, error) /* - UpdateTLSConfig Update a TLS configuration + UpdateTLSConfig Update a TLS configuration - Update a TLS configuration. + Update a TLS configuration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsConfigurationID Alphanumeric string identifying a TLS configuration. - @return APIUpdateTLSConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsConfigurationID Alphanumeric string identifying a TLS configuration. + @return APIUpdateTLSConfigRequest */ UpdateTLSConfig(ctx context.Context, tlsConfigurationID string) APIUpdateTLSConfigRequest @@ -81,13 +80,13 @@ type TLSConfigurationsAPIService service // APIGetTLSConfigRequest represents a request for the resource. type APIGetTLSConfigRequest struct { - ctx context.Context - APIService TLSConfigurationsAPI + ctx context.Context + APIService TLSConfigurationsAPI tlsConfigurationID string - include *string + include *string } -// Include Include related objects. Optional, comma-separated values. Permitted values: `dns_records`. +// Include Include related objects. Optional, comma-separated values. Permitted values: `dns_records`. func (r *APIGetTLSConfigRequest) Include(include string) *APIGetTLSConfigRequest { r.include = &include return r @@ -109,8 +108,8 @@ Show a TLS configuration. */ func (a *TLSConfigurationsAPIService) GetTLSConfig(ctx context.Context, tlsConfigurationID string) APIGetTLSConfigRequest { return APIGetTLSConfigRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsConfigurationID: tlsConfigurationID, } } @@ -119,10 +118,10 @@ func (a *TLSConfigurationsAPIService) GetTLSConfig(ctx context.Context, tlsConfi // @return TLSConfigurationResponse func (a *TLSConfigurationsAPIService) GetTLSConfigExecute(r APIGetTLSConfigRequest) (*TLSConfigurationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSConfigurationResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSConfigurationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSConfigurationsAPIService.GetTLSConfig") @@ -205,7 +204,6 @@ func (a *TLSConfigurationsAPIService) GetTLSConfigExecute(r APIGetTLSConfigReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -224,12 +222,12 @@ func (a *TLSConfigurationsAPIService) GetTLSConfigExecute(r APIGetTLSConfigReque // APIListTLSConfigsRequest represents a request for the resource. type APIListTLSConfigsRequest struct { - ctx context.Context + ctx context.Context APIService TLSConfigurationsAPI filterBulk *string - include *string + include *string pageNumber *int32 - pageSize *int32 + pageSize *int32 } // FilterBulk Optionally filters by the bulk attribute. @@ -237,16 +235,19 @@ func (r *APIListTLSConfigsRequest) FilterBulk(filterBulk string) *APIListTLSConf r.filterBulk = &filterBulk return r } -// Include Include related objects. Optional, comma-separated values. Permitted values: `dns_records`. + +// Include Include related objects. Optional, comma-separated values. Permitted values: `dns_records`. func (r *APIListTLSConfigsRequest) Include(include string) *APIListTLSConfigsRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListTLSConfigsRequest) PageNumber(pageNumber int32) *APIListTLSConfigsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSConfigsRequest) PageSize(pageSize int32) *APIListTLSConfigsRequest { r.pageSize = &pageSize @@ -269,7 +270,7 @@ List all TLS configurations. func (a *TLSConfigurationsAPIService) ListTLSConfigs(ctx context.Context) APIListTLSConfigsRequest { return APIListTLSConfigsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -277,10 +278,10 @@ func (a *TLSConfigurationsAPIService) ListTLSConfigs(ctx context.Context) APILis // @return TLSConfigurationsResponse func (a *TLSConfigurationsAPIService) ListTLSConfigsExecute(r APIListTLSConfigsRequest) (*TLSConfigurationsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSConfigurationsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSConfigurationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSConfigurationsAPIService.ListTLSConfigs") @@ -371,7 +372,6 @@ func (a *TLSConfigurationsAPIService) ListTLSConfigsExecute(r APIListTLSConfigsR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -390,10 +390,10 @@ func (a *TLSConfigurationsAPIService) ListTLSConfigsExecute(r APIListTLSConfigsR // APIUpdateTLSConfigRequest represents a request for the resource. type APIUpdateTLSConfigRequest struct { - ctx context.Context - APIService TLSConfigurationsAPI + ctx context.Context + APIService TLSConfigurationsAPI tlsConfigurationID string - tlsConfiguration *TLSConfiguration + tlsConfiguration *TLSConfiguration } // TLSConfiguration returns a pointer to a request. @@ -418,8 +418,8 @@ Update a TLS configuration. */ func (a *TLSConfigurationsAPIService) UpdateTLSConfig(ctx context.Context, tlsConfigurationID string) APIUpdateTLSConfigRequest { return APIUpdateTLSConfigRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsConfigurationID: tlsConfigurationID, } } @@ -428,10 +428,10 @@ func (a *TLSConfigurationsAPIService) UpdateTLSConfig(ctx context.Context, tlsCo // @return TLSConfigurationResponse func (a *TLSConfigurationsAPIService) UpdateTLSConfigExecute(r APIUpdateTLSConfigRequest) (*TLSConfigurationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSConfigurationResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSConfigurationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSConfigurationsAPIService.UpdateTLSConfig") @@ -513,7 +513,6 @@ func (a *TLSConfigurationsAPIService) UpdateTLSConfigExecute(r APIUpdateTLSConfi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_csrs.go b/fastly/api_tls_csrs.go index b1c3d18..dd9b1b8 100644 --- a/fastly/api_tls_csrs.go +++ b/fastly/api_tls_csrs.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type TLSCsrsAPI interface { /* - CreateCsr Create CSR + CreateCsr Create CSR - Creates a certificate signing request (CSR). + Creates a certificate signing request (CSR). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateCsrRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateCsrRequest */ CreateCsr(ctx context.Context) APICreateCsrRequest @@ -50,9 +49,9 @@ type TLSCsrsAPIService service // APICreateCsrRequest represents a request for the resource. type APICreateCsrRequest struct { - ctx context.Context + ctx context.Context APIService TLSCsrsAPI - tlsCsr *TLSCsr + tlsCsr *TLSCsr } // TLSCsr returns a pointer to a request. @@ -77,7 +76,7 @@ Creates a certificate signing request (CSR). func (a *TLSCsrsAPIService) CreateCsr(ctx context.Context) APICreateCsrRequest { return APICreateCsrRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -85,10 +84,10 @@ func (a *TLSCsrsAPIService) CreateCsr(ctx context.Context) APICreateCsrRequest { // @return TLSCsrResponse func (a *TLSCsrsAPIService) CreateCsrExecute(r APICreateCsrRequest) (*TLSCsrResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSCsrResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSCsrResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSCsrsAPIService.CreateCsr") @@ -169,7 +168,6 @@ func (a *TLSCsrsAPIService) CreateCsrExecute(r APICreateCsrRequest) (*TLSCsrResp return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_domains.go b/fastly/api_tls_domains.go index 01865d5..860209b 100644 --- a/fastly/api_tls_domains.go +++ b/fastly/api_tls_domains.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type TLSDomainsAPI interface { /* - ListTLSDomains List TLS domains + ListTLSDomains List TLS domains - List all TLS domains. + List all TLS domains. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSDomainsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSDomainsRequest */ ListTLSDomains(ctx context.Context) APIListTLSDomainsRequest @@ -50,15 +49,15 @@ type TLSDomainsAPIService service // APIListTLSDomainsRequest represents a request for the resource. type APIListTLSDomainsRequest struct { - ctx context.Context - APIService TLSDomainsAPI - filterInUse *string - filterTLSCertificatesID *string + ctx context.Context + APIService TLSDomainsAPI + filterInUse *string + filterTLSCertificatesID *string filterTLSSubscriptionsID *string - include *string - sort *string - pageNumber *int32 - pageSize *int32 + include *string + sort *string + pageNumber *int32 + pageSize *int32 } // FilterInUse Optional. Limit the returned domains to those currently using Fastly to terminate TLS with SNI (that is, domains considered \"in use\") Permitted values: true, false. @@ -66,31 +65,37 @@ func (r *APIListTLSDomainsRequest) FilterInUse(filterInUse string) *APIListTLSDo r.filterInUse = &filterInUse return r } + // FilterTLSCertificatesID Optional. Limit the returned domains to those listed in the given TLS certificate's SAN list. func (r *APIListTLSDomainsRequest) FilterTLSCertificatesID(filterTLSCertificatesID string) *APIListTLSDomainsRequest { r.filterTLSCertificatesID = &filterTLSCertificatesID return r } + // FilterTLSSubscriptionsID Optional. Limit the returned domains to those for a given TLS subscription. func (r *APIListTLSDomainsRequest) FilterTLSSubscriptionsID(filterTLSSubscriptionsID string) *APIListTLSDomainsRequest { r.filterTLSSubscriptionsID = &filterTLSSubscriptionsID return r } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`, `tls_certificates`, `tls_subscriptions`, `tls_subscriptions.tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, and `tls_authorizations.self_managed_http_challenge`. + +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`, `tls_certificates`, `tls_subscriptions`, `tls_subscriptions.tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, and `tls_authorizations.self_managed_http_challenge`. func (r *APIListTLSDomainsRequest) Include(include string) *APIListTLSDomainsRequest { r.include = &include return r } + // Sort The order in which to list the results. func (r *APIListTLSDomainsRequest) Sort(sort string) *APIListTLSDomainsRequest { r.sort = &sort return r } + // PageNumber Current page. func (r *APIListTLSDomainsRequest) PageNumber(pageNumber int32) *APIListTLSDomainsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSDomainsRequest) PageSize(pageSize int32) *APIListTLSDomainsRequest { r.pageSize = &pageSize @@ -113,7 +118,7 @@ List all TLS domains. func (a *TLSDomainsAPIService) ListTLSDomains(ctx context.Context) APIListTLSDomainsRequest { return APIListTLSDomainsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -121,10 +126,10 @@ func (a *TLSDomainsAPIService) ListTLSDomains(ctx context.Context) APIListTLSDom // @return TLSDomainsResponse func (a *TLSDomainsAPIService) ListTLSDomainsExecute(r APIListTLSDomainsRequest) (*TLSDomainsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSDomainsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSDomainsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSDomainsAPIService.ListTLSDomains") @@ -224,7 +229,6 @@ func (a *TLSDomainsAPIService) ListTLSDomainsExecute(r APIListTLSDomainsRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_private_keys.go b/fastly/api_tls_private_keys.go index 0799a28..b541beb 100644 --- a/fastly/api_tls_private_keys.go +++ b/fastly/api_tls_private_keys.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type TLSPrivateKeysAPI interface { /* - CreateTLSKey Create a TLS private key + CreateTLSKey Create a TLS private key - Create a TLS private key. + Create a TLS private key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateTLSKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTLSKeyRequest */ CreateTLSKey(ctx context.Context) APICreateTLSKeyRequest @@ -46,13 +45,13 @@ type TLSPrivateKeysAPI interface { CreateTLSKeyExecute(r APICreateTLSKeyRequest) (*TLSPrivateKeyResponse, *http.Response, error) /* - DeleteTLSKey Delete a TLS private key + DeleteTLSKey Delete a TLS private key - Destroy a TLS private key. Only private keys not already matched to any certificates can be deleted. + Destroy a TLS private key. Only private keys not already matched to any certificates can be deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsPrivateKeyID Alphanumeric string identifying a private Key. - @return APIDeleteTLSKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsPrivateKeyID Alphanumeric string identifying a private Key. + @return APIDeleteTLSKeyRequest */ DeleteTLSKey(ctx context.Context, tlsPrivateKeyID string) APIDeleteTLSKeyRequest @@ -60,13 +59,13 @@ type TLSPrivateKeysAPI interface { DeleteTLSKeyExecute(r APIDeleteTLSKeyRequest) (*http.Response, error) /* - GetTLSKey Get a TLS private key + GetTLSKey Get a TLS private key - Show a TLS private key. + Show a TLS private key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsPrivateKeyID Alphanumeric string identifying a private Key. - @return APIGetTLSKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsPrivateKeyID Alphanumeric string identifying a private Key. + @return APIGetTLSKeyRequest */ GetTLSKey(ctx context.Context, tlsPrivateKeyID string) APIGetTLSKeyRequest @@ -75,12 +74,12 @@ type TLSPrivateKeysAPI interface { GetTLSKeyExecute(r APIGetTLSKeyRequest) (*TLSPrivateKeyResponse, *http.Response, error) /* - ListTLSKeys List TLS private keys + ListTLSKeys List TLS private keys - List all TLS private keys. + List all TLS private keys. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSKeysRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSKeysRequest */ ListTLSKeys(ctx context.Context) APIListTLSKeysRequest @@ -94,8 +93,8 @@ type TLSPrivateKeysAPIService service // APICreateTLSKeyRequest represents a request for the resource. type APICreateTLSKeyRequest struct { - ctx context.Context - APIService TLSPrivateKeysAPI + ctx context.Context + APIService TLSPrivateKeysAPI tlsPrivateKey *TLSPrivateKey } @@ -121,7 +120,7 @@ Create a TLS private key. func (a *TLSPrivateKeysAPIService) CreateTLSKey(ctx context.Context) APICreateTLSKeyRequest { return APICreateTLSKeyRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -129,10 +128,10 @@ func (a *TLSPrivateKeysAPIService) CreateTLSKey(ctx context.Context) APICreateTL // @return TLSPrivateKeyResponse func (a *TLSPrivateKeysAPIService) CreateTLSKeyExecute(r APICreateTLSKeyRequest) (*TLSPrivateKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSPrivateKeyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSPrivateKeyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSPrivateKeysAPIService.CreateTLSKey") @@ -213,7 +212,6 @@ func (a *TLSPrivateKeysAPIService) CreateTLSKeyExecute(r APICreateTLSKeyRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -232,12 +230,11 @@ func (a *TLSPrivateKeysAPIService) CreateTLSKeyExecute(r APICreateTLSKeyRequest) // APIDeleteTLSKeyRequest represents a request for the resource. type APIDeleteTLSKeyRequest struct { - ctx context.Context - APIService TLSPrivateKeysAPI + ctx context.Context + APIService TLSPrivateKeysAPI tlsPrivateKeyID string } - // Execute calls the API using the request data configured. func (r APIDeleteTLSKeyRequest) Execute() (*http.Response, error) { return r.APIService.DeleteTLSKeyExecute(r) @@ -254,8 +251,8 @@ Destroy a TLS private key. Only private keys not already matched to any certific */ func (a *TLSPrivateKeysAPIService) DeleteTLSKey(ctx context.Context, tlsPrivateKeyID string) APIDeleteTLSKeyRequest { return APIDeleteTLSKeyRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsPrivateKeyID: tlsPrivateKeyID, } } @@ -263,9 +260,9 @@ func (a *TLSPrivateKeysAPIService) DeleteTLSKey(ctx context.Context, tlsPrivateK // DeleteTLSKeyExecute executes the request func (a *TLSPrivateKeysAPIService) DeleteTLSKeyExecute(r APIDeleteTLSKeyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSPrivateKeysAPIService.DeleteTLSKey") @@ -336,7 +333,6 @@ func (a *TLSPrivateKeysAPIService) DeleteTLSKeyExecute(r APIDeleteTLSKeyRequest) return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -355,12 +351,11 @@ func (a *TLSPrivateKeysAPIService) DeleteTLSKeyExecute(r APIDeleteTLSKeyRequest) // APIGetTLSKeyRequest represents a request for the resource. type APIGetTLSKeyRequest struct { - ctx context.Context - APIService TLSPrivateKeysAPI + ctx context.Context + APIService TLSPrivateKeysAPI tlsPrivateKeyID string } - // Execute calls the API using the request data configured. func (r APIGetTLSKeyRequest) Execute() (*TLSPrivateKeyResponse, *http.Response, error) { return r.APIService.GetTLSKeyExecute(r) @@ -377,8 +372,8 @@ Show a TLS private key. */ func (a *TLSPrivateKeysAPIService) GetTLSKey(ctx context.Context, tlsPrivateKeyID string) APIGetTLSKeyRequest { return APIGetTLSKeyRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsPrivateKeyID: tlsPrivateKeyID, } } @@ -387,10 +382,10 @@ func (a *TLSPrivateKeysAPIService) GetTLSKey(ctx context.Context, tlsPrivateKeyI // @return TLSPrivateKeyResponse func (a *TLSPrivateKeysAPIService) GetTLSKeyExecute(r APIGetTLSKeyRequest) (*TLSPrivateKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSPrivateKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSPrivateKeyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSPrivateKeysAPIService.GetTLSKey") @@ -470,7 +465,6 @@ func (a *TLSPrivateKeysAPIService) GetTLSKeyExecute(r APIGetTLSKeyRequest) (*TLS return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -489,11 +483,11 @@ func (a *TLSPrivateKeysAPIService) GetTLSKeyExecute(r APIGetTLSKeyRequest) (*TLS // APIListTLSKeysRequest represents a request for the resource. type APIListTLSKeysRequest struct { - ctx context.Context - APIService TLSPrivateKeysAPI + ctx context.Context + APIService TLSPrivateKeysAPI filterInUse *string - pageNumber *int32 - pageSize *int32 + pageNumber *int32 + pageSize *int32 } // FilterInUse Limit the returned keys to those without any matching TLS certificates. The only valid value is false. @@ -501,11 +495,13 @@ func (r *APIListTLSKeysRequest) FilterInUse(filterInUse string) *APIListTLSKeysR r.filterInUse = &filterInUse return r } + // PageNumber Current page. func (r *APIListTLSKeysRequest) PageNumber(pageNumber int32) *APIListTLSKeysRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSKeysRequest) PageSize(pageSize int32) *APIListTLSKeysRequest { r.pageSize = &pageSize @@ -528,7 +524,7 @@ List all TLS private keys. func (a *TLSPrivateKeysAPIService) ListTLSKeys(ctx context.Context) APIListTLSKeysRequest { return APIListTLSKeysRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -536,10 +532,10 @@ func (a *TLSPrivateKeysAPIService) ListTLSKeys(ctx context.Context) APIListTLSKe // @return TLSPrivateKeysResponse func (a *TLSPrivateKeysAPIService) ListTLSKeysExecute(r APIListTLSKeysRequest) (*TLSPrivateKeysResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSPrivateKeysResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSPrivateKeysResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSPrivateKeysAPIService.ListTLSKeys") @@ -627,7 +623,6 @@ func (a *TLSPrivateKeysAPIService) ListTLSKeysExecute(r APIListTLSKeysRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tls_subscriptions.go b/fastly/api_tls_subscriptions.go index d4465f3..b1d2b3f 100644 --- a/fastly/api_tls_subscriptions.go +++ b/fastly/api_tls_subscriptions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type TLSSubscriptionsAPI interface { /* - CreateGlobalsignEmailChallenge Creates a GlobalSign email challenge. + CreateGlobalsignEmailChallenge Creates a GlobalSign email challenge. - Creates an email challenge for a domain on a GlobalSign subscription. An email challenge will generate an email that can be used to validate domain ownership. If this challenge is created, then the domain can only be validated using email for the given subscription. + Creates an email challenge for a domain on a GlobalSign subscription. An email challenge will generate an email that can be used to validate domain ownership. If this challenge is created, then the domain can only be validated using email for the given subscription. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. - @param tlsAuthorizationID Alphanumeric string identifying a TLS subscription. - @return APICreateGlobalsignEmailChallengeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. + @param tlsAuthorizationID Alphanumeric string identifying a TLS subscription. + @return APICreateGlobalsignEmailChallengeRequest */ CreateGlobalsignEmailChallenge(ctx context.Context, tlsSubscriptionID string, tlsAuthorizationID string) APICreateGlobalsignEmailChallengeRequest @@ -49,12 +48,12 @@ type TLSSubscriptionsAPI interface { CreateGlobalsignEmailChallengeExecute(r APICreateGlobalsignEmailChallengeRequest) (map[string]any, *http.Response, error) /* - CreateTLSSub Create a TLS subscription + CreateTLSSub Create a TLS subscription - Create a new TLS subscription. This response includes a list of possible challenges to verify domain ownership. + Create a new TLS subscription. This response includes a list of possible challenges to verify domain ownership. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateTLSSubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTLSSubRequest */ CreateTLSSub(ctx context.Context) APICreateTLSSubRequest @@ -63,15 +62,15 @@ type TLSSubscriptionsAPI interface { CreateTLSSubExecute(r APICreateTLSSubRequest) (*TLSSubscriptionResponse, *http.Response, error) /* - DeleteGlobalsignEmailChallenge Delete a GlobalSign email challenge + DeleteGlobalsignEmailChallenge Delete a GlobalSign email challenge - Deletes a GlobalSign email challenge. After a GlobalSign email challenge is deleted, the domain can use HTTP and DNS validation methods again. + Deletes a GlobalSign email challenge. After a GlobalSign email challenge is deleted, the domain can use HTTP and DNS validation methods again. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. - @param tlsAuthorizationID Alphanumeric string identifying a TLS subscription. - @param globalsignEmailChallengeID Alphanumeric string identifying a GlobalSign email challenge. - @return APIDeleteGlobalsignEmailChallengeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. + @param tlsAuthorizationID Alphanumeric string identifying a TLS subscription. + @param globalsignEmailChallengeID Alphanumeric string identifying a GlobalSign email challenge. + @return APIDeleteGlobalsignEmailChallengeRequest */ DeleteGlobalsignEmailChallenge(ctx context.Context, tlsSubscriptionID string, tlsAuthorizationID string, globalsignEmailChallengeID string) APIDeleteGlobalsignEmailChallengeRequest @@ -79,13 +78,13 @@ type TLSSubscriptionsAPI interface { DeleteGlobalsignEmailChallengeExecute(r APIDeleteGlobalsignEmailChallengeRequest) (*http.Response, error) /* - DeleteTLSSub Delete a TLS subscription + DeleteTLSSub Delete a TLS subscription - Destroy a TLS subscription. A subscription cannot be destroyed if there are domains in the TLS enabled state. + Destroy a TLS subscription. A subscription cannot be destroyed if there are domains in the TLS enabled state. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. - @return APIDeleteTLSSubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. + @return APIDeleteTLSSubRequest */ DeleteTLSSub(ctx context.Context, tlsSubscriptionID string) APIDeleteTLSSubRequest @@ -93,13 +92,13 @@ type TLSSubscriptionsAPI interface { DeleteTLSSubExecute(r APIDeleteTLSSubRequest) (*http.Response, error) /* - GetTLSSub Get a TLS subscription + GetTLSSub Get a TLS subscription - Show a TLS subscription. + Show a TLS subscription. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. - @return APIGetTLSSubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. + @return APIGetTLSSubRequest */ GetTLSSub(ctx context.Context, tlsSubscriptionID string) APIGetTLSSubRequest @@ -108,12 +107,12 @@ type TLSSubscriptionsAPI interface { GetTLSSubExecute(r APIGetTLSSubRequest) (*TLSSubscriptionResponse, *http.Response, error) /* - ListTLSSubs List TLS subscriptions + ListTLSSubs List TLS subscriptions - List all TLS subscriptions. + List all TLS subscriptions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTLSSubsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTLSSubsRequest */ ListTLSSubs(ctx context.Context) APIListTLSSubsRequest @@ -122,13 +121,13 @@ type TLSSubscriptionsAPI interface { ListTLSSubsExecute(r APIListTLSSubsRequest) (*TLSSubscriptionsResponse, *http.Response, error) /* - PatchTLSSub Update a TLS subscription + PatchTLSSub Update a TLS subscription - Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`. + Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. - @return APIPatchTLSSubRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tlsSubscriptionID Alphanumeric string identifying a TLS subscription. + @return APIPatchTLSSubRequest */ PatchTLSSub(ctx context.Context, tlsSubscriptionID string) APIPatchTLSSubRequest @@ -142,11 +141,11 @@ type TLSSubscriptionsAPIService service // APICreateGlobalsignEmailChallengeRequest represents a request for the resource. type APICreateGlobalsignEmailChallengeRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI - tlsSubscriptionID string + ctx context.Context + APIService TLSSubscriptionsAPI + tlsSubscriptionID string tlsAuthorizationID string - requestBody *map[string]map[string]any + requestBody *map[string]map[string]any } // RequestBody returns a pointer to a request. @@ -173,9 +172,9 @@ Creates an email challenge for a domain on a GlobalSign subscription. An email c */ func (a *TLSSubscriptionsAPIService) CreateGlobalsignEmailChallenge(ctx context.Context, tlsSubscriptionID string, tlsAuthorizationID string) APICreateGlobalsignEmailChallengeRequest { return APICreateGlobalsignEmailChallengeRequest{ - APIService: a, - ctx: ctx, - tlsSubscriptionID: tlsSubscriptionID, + APIService: a, + ctx: ctx, + tlsSubscriptionID: tlsSubscriptionID, tlsAuthorizationID: tlsAuthorizationID, } } @@ -184,10 +183,10 @@ func (a *TLSSubscriptionsAPIService) CreateGlobalsignEmailChallenge(ctx context. // @return map[string]any func (a *TLSSubscriptionsAPIService) CreateGlobalsignEmailChallengeExecute(r APICreateGlobalsignEmailChallengeRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.CreateGlobalsignEmailChallenge") @@ -270,7 +269,6 @@ func (a *TLSSubscriptionsAPIService) CreateGlobalsignEmailChallengeExecute(r API return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -289,17 +287,18 @@ func (a *TLSSubscriptionsAPIService) CreateGlobalsignEmailChallengeExecute(r API // APICreateTLSSubRequest represents a request for the resource. type APICreateTLSSubRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI - force *bool + ctx context.Context + APIService TLSSubscriptionsAPI + force *bool tlsSubscription *TLSSubscription } -// Force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. +// Force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. func (r *APICreateTLSSubRequest) Force(force bool) *APICreateTLSSubRequest { r.force = &force return r } + // TLSSubscription returns a pointer to a request. func (r *APICreateTLSSubRequest) TLSSubscription(tlsSubscription TLSSubscription) *APICreateTLSSubRequest { r.tlsSubscription = &tlsSubscription @@ -322,7 +321,7 @@ Create a new TLS subscription. This response includes a list of possible challen func (a *TLSSubscriptionsAPIService) CreateTLSSub(ctx context.Context) APICreateTLSSubRequest { return APICreateTLSSubRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -330,10 +329,10 @@ func (a *TLSSubscriptionsAPIService) CreateTLSSub(ctx context.Context) APICreate // @return TLSSubscriptionResponse func (a *TLSSubscriptionsAPIService) CreateTLSSubExecute(r APICreateTLSSubRequest) (*TLSSubscriptionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSSubscriptionResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSSubscriptionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.CreateTLSSub") @@ -417,7 +416,6 @@ func (a *TLSSubscriptionsAPIService) CreateTLSSubExecute(r APICreateTLSSubReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -436,14 +434,13 @@ func (a *TLSSubscriptionsAPIService) CreateTLSSubExecute(r APICreateTLSSubReques // APIDeleteGlobalsignEmailChallengeRequest represents a request for the resource. type APIDeleteGlobalsignEmailChallengeRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI - tlsSubscriptionID string - tlsAuthorizationID string + ctx context.Context + APIService TLSSubscriptionsAPI + tlsSubscriptionID string + tlsAuthorizationID string globalsignEmailChallengeID string } - // Execute calls the API using the request data configured. func (r APIDeleteGlobalsignEmailChallengeRequest) Execute() (*http.Response, error) { return r.APIService.DeleteGlobalsignEmailChallengeExecute(r) @@ -462,10 +459,10 @@ Deletes a GlobalSign email challenge. After a GlobalSign email challenge is dele */ func (a *TLSSubscriptionsAPIService) DeleteGlobalsignEmailChallenge(ctx context.Context, tlsSubscriptionID string, tlsAuthorizationID string, globalsignEmailChallengeID string) APIDeleteGlobalsignEmailChallengeRequest { return APIDeleteGlobalsignEmailChallengeRequest{ - APIService: a, - ctx: ctx, - tlsSubscriptionID: tlsSubscriptionID, - tlsAuthorizationID: tlsAuthorizationID, + APIService: a, + ctx: ctx, + tlsSubscriptionID: tlsSubscriptionID, + tlsAuthorizationID: tlsAuthorizationID, globalsignEmailChallengeID: globalsignEmailChallengeID, } } @@ -473,9 +470,9 @@ func (a *TLSSubscriptionsAPIService) DeleteGlobalsignEmailChallenge(ctx context. // DeleteGlobalsignEmailChallengeExecute executes the request func (a *TLSSubscriptionsAPIService) DeleteGlobalsignEmailChallengeExecute(r APIDeleteGlobalsignEmailChallengeRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.DeleteGlobalsignEmailChallenge") @@ -548,7 +545,6 @@ func (a *TLSSubscriptionsAPIService) DeleteGlobalsignEmailChallengeExecute(r API return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -567,12 +563,11 @@ func (a *TLSSubscriptionsAPIService) DeleteGlobalsignEmailChallengeExecute(r API // APIDeleteTLSSubRequest represents a request for the resource. type APIDeleteTLSSubRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI + ctx context.Context + APIService TLSSubscriptionsAPI tlsSubscriptionID string } - // Execute calls the API using the request data configured. func (r APIDeleteTLSSubRequest) Execute() (*http.Response, error) { return r.APIService.DeleteTLSSubExecute(r) @@ -589,8 +584,8 @@ Destroy a TLS subscription. A subscription cannot be destroyed if there are doma */ func (a *TLSSubscriptionsAPIService) DeleteTLSSub(ctx context.Context, tlsSubscriptionID string) APIDeleteTLSSubRequest { return APIDeleteTLSSubRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsSubscriptionID: tlsSubscriptionID, } } @@ -598,9 +593,9 @@ func (a *TLSSubscriptionsAPIService) DeleteTLSSub(ctx context.Context, tlsSubscr // DeleteTLSSubExecute executes the request func (a *TLSSubscriptionsAPIService) DeleteTLSSubExecute(r APIDeleteTLSSubRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.DeleteTLSSub") @@ -671,7 +666,6 @@ func (a *TLSSubscriptionsAPIService) DeleteTLSSubExecute(r APIDeleteTLSSubReques return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -690,13 +684,13 @@ func (a *TLSSubscriptionsAPIService) DeleteTLSSubExecute(r APIDeleteTLSSubReques // APIGetTLSSubRequest represents a request for the resource. type APIGetTLSSubRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI + ctx context.Context + APIService TLSSubscriptionsAPI tlsSubscriptionID string - include *string + include *string } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. func (r *APIGetTLSSubRequest) Include(include string) *APIGetTLSSubRequest { r.include = &include return r @@ -718,8 +712,8 @@ Show a TLS subscription. */ func (a *TLSSubscriptionsAPIService) GetTLSSub(ctx context.Context, tlsSubscriptionID string) APIGetTLSSubRequest { return APIGetTLSSubRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsSubscriptionID: tlsSubscriptionID, } } @@ -728,10 +722,10 @@ func (a *TLSSubscriptionsAPIService) GetTLSSub(ctx context.Context, tlsSubscript // @return TLSSubscriptionResponse func (a *TLSSubscriptionsAPIService) GetTLSSubExecute(r APIGetTLSSubRequest) (*TLSSubscriptionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSSubscriptionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSSubscriptionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.GetTLSSub") @@ -814,7 +808,6 @@ func (a *TLSSubscriptionsAPIService) GetTLSSubExecute(r APIGetTLSSubRequest) (*T return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -833,53 +826,60 @@ func (a *TLSSubscriptionsAPIService) GetTLSSubExecute(r APIGetTLSSubRequest) (*T // APIListTLSSubsRequest represents a request for the resource. type APIListTLSSubsRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI - filterState *string - filterTLSDomainsID *string - filterHasActiveOrder *bool + ctx context.Context + APIService TLSSubscriptionsAPI + filterState *string + filterTLSDomainsID *string + filterHasActiveOrder *bool filterCertificateAuthority *string - sort *string - include *string - pageNumber *int32 - pageSize *int32 + sort *string + include *string + pageNumber *int32 + pageSize *int32 } -// FilterState Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). +// FilterState Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). func (r *APIListTLSSubsRequest) FilterState(filterState string) *APIListTLSSubsRequest { r.filterState = &filterState return r } + // FilterTLSDomainsID Limit the returned subscriptions to those that include the specific domain. func (r *APIListTLSSubsRequest) FilterTLSDomainsID(filterTLSDomainsID string) *APIListTLSSubsRequest { r.filterTLSDomainsID = &filterTLSDomainsID return r } -// FilterHasActiveOrder Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. + +// FilterHasActiveOrder Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. func (r *APIListTLSSubsRequest) FilterHasActiveOrder(filterHasActiveOrder bool) *APIListTLSSubsRequest { r.filterHasActiveOrder = &filterHasActiveOrder return r } -// FilterCertificateAuthority Limit the returned subscriptions to a specific certification authority. Values may include `certainly`, `lets-encrypt`, or `globalsign`. + +// FilterCertificateAuthority Limit the returned subscriptions to a specific certification authority. Values may include `certainly`, `lets-encrypt`, or `globalsign`. func (r *APIListTLSSubsRequest) FilterCertificateAuthority(filterCertificateAuthority string) *APIListTLSSubsRequest { r.filterCertificateAuthority = &filterCertificateAuthority return r } + // Sort The order in which to list the results. func (r *APIListTLSSubsRequest) Sort(sort string) *APIListTLSSubsRequest { r.sort = &sort return r } -// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. + +// Include Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations`, `tls_authorizations.globalsign_email_challenge`, `tls_authorizations.self_managed_http_challenge`, and `tls_certificates`. func (r *APIListTLSSubsRequest) Include(include string) *APIListTLSSubsRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListTLSSubsRequest) PageNumber(pageNumber int32) *APIListTLSSubsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListTLSSubsRequest) PageSize(pageSize int32) *APIListTLSSubsRequest { r.pageSize = &pageSize @@ -902,7 +902,7 @@ List all TLS subscriptions. func (a *TLSSubscriptionsAPIService) ListTLSSubs(ctx context.Context) APIListTLSSubsRequest { return APIListTLSSubsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -910,10 +910,10 @@ func (a *TLSSubscriptionsAPIService) ListTLSSubs(ctx context.Context) APIListTLS // @return TLSSubscriptionsResponse func (a *TLSSubscriptionsAPIService) ListTLSSubsExecute(r APIListTLSSubsRequest) (*TLSSubscriptionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSSubscriptionsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSSubscriptionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.ListTLSSubs") @@ -1016,7 +1016,6 @@ func (a *TLSSubscriptionsAPIService) ListTLSSubsExecute(r APIListTLSSubsRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1035,18 +1034,19 @@ func (a *TLSSubscriptionsAPIService) ListTLSSubsExecute(r APIListTLSSubsRequest) // APIPatchTLSSubRequest represents a request for the resource. type APIPatchTLSSubRequest struct { - ctx context.Context - APIService TLSSubscriptionsAPI + ctx context.Context + APIService TLSSubscriptionsAPI tlsSubscriptionID string - force *bool - tlsSubscription *TLSSubscription + force *bool + tlsSubscription *TLSSubscription } -// Force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. +// Force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain. func (r *APIPatchTLSSubRequest) Force(force bool) *APIPatchTLSSubRequest { r.force = &force return r } + // TLSSubscription returns a pointer to a request. func (r *APIPatchTLSSubRequest) TLSSubscription(tlsSubscription TLSSubscription) *APIPatchTLSSubRequest { r.tlsSubscription = &tlsSubscription @@ -1069,8 +1069,8 @@ Change the TLS domains or common name associated with this subscription, update */ func (a *TLSSubscriptionsAPIService) PatchTLSSub(ctx context.Context, tlsSubscriptionID string) APIPatchTLSSubRequest { return APIPatchTLSSubRequest{ - APIService: a, - ctx: ctx, + APIService: a, + ctx: ctx, tlsSubscriptionID: tlsSubscriptionID, } } @@ -1079,10 +1079,10 @@ func (a *TLSSubscriptionsAPIService) PatchTLSSub(ctx context.Context, tlsSubscri // @return TLSSubscriptionResponse func (a *TLSSubscriptionsAPIService) PatchTLSSubExecute(r APIPatchTLSSubRequest) (*TLSSubscriptionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *TLSSubscriptionResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *TLSSubscriptionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TLSSubscriptionsAPIService.PatchTLSSub") @@ -1167,7 +1167,6 @@ func (a *TLSSubscriptionsAPIService) PatchTLSSubExecute(r APIPatchTLSSubRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_tokens.go b/fastly/api_tokens.go index 4198fd9..c08826e 100644 --- a/fastly/api_tokens.go +++ b/fastly/api_tokens.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type TokensAPI interface { /* - BulkRevokeTokens Revoke multiple tokens + BulkRevokeTokens Revoke multiple tokens - Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers may revoke tokens of others. + Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers may revoke tokens of others. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIBulkRevokeTokensRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIBulkRevokeTokensRequest */ BulkRevokeTokens(ctx context.Context) APIBulkRevokeTokensRequest @@ -45,13 +44,13 @@ type TokensAPI interface { BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) (*http.Response, error) /* - CreateToken Create a token + CreateToken Create a token - Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request. + Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTokenRequest */ CreateToken(ctx context.Context) APICreateTokenRequest @@ -60,13 +59,13 @@ type TokensAPI interface { CreateTokenExecute(r APICreateTokenRequest) (*TokenCreatedResponse, *http.Response, error) /* - GetToken Get a token + GetToken Get a token - Get a single token by its id. + Get a single token by its id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tokenID Alphanumeric string identifying a token. - @return APIGetTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tokenID Alphanumeric string identifying a token. + @return APIGetTokenRequest */ GetToken(ctx context.Context, tokenID string) APIGetTokenRequest @@ -75,12 +74,12 @@ type TokensAPI interface { GetTokenExecute(r APIGetTokenRequest) (*TokenResponse, *http.Response, error) /* - GetTokenCurrent Get the current token + GetTokenCurrent Get the current token - Get a single token based on the access_token used in the request. + Get a single token based on the access_token used in the request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetTokenCurrentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetTokenCurrentRequest */ GetTokenCurrent(ctx context.Context) APIGetTokenCurrentRequest @@ -89,13 +88,13 @@ type TokensAPI interface { GetTokenCurrentExecute(r APIGetTokenCurrentRequest) (*TokenResponse, *http.Response, error) /* - ListTokensCustomer List tokens for a customer + ListTokensCustomer List tokens for a customer - List all tokens belonging to a specific customer. + List all tokens belonging to a specific customer. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerID Alphanumeric string identifying the customer. - @return APIListTokensCustomerRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APIListTokensCustomerRequest */ ListTokensCustomer(ctx context.Context, customerID string) APIListTokensCustomerRequest @@ -104,12 +103,12 @@ type TokensAPI interface { ListTokensCustomerExecute(r APIListTokensCustomerRequest) ([]TokenResponse, *http.Response, error) /* - ListTokensUser List tokens for the authenticated user + ListTokensUser List tokens for the authenticated user - List all tokens belonging to the authenticated user. + List all tokens belonging to the authenticated user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListTokensUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListTokensUserRequest */ ListTokensUser(ctx context.Context) APIListTokensUserRequest @@ -118,13 +117,13 @@ type TokensAPI interface { ListTokensUserExecute(r APIListTokensUserRequest) ([]TokenResponse, *http.Response, error) /* - RevokeToken Revoke a token + RevokeToken Revoke a token - Revoke a specific token by its id. + Revoke a specific token by its id. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tokenID Alphanumeric string identifying a token. - @return APIRevokeTokenRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tokenID Alphanumeric string identifying a token. + @return APIRevokeTokenRequest */ RevokeToken(ctx context.Context, tokenID string) APIRevokeTokenRequest @@ -132,12 +131,12 @@ type TokensAPI interface { RevokeTokenExecute(r APIRevokeTokenRequest) (*http.Response, error) /* - RevokeTokenCurrent Revoke the current token + RevokeTokenCurrent Revoke the current token - Revoke a token that is used to authenticate the request. + Revoke a token that is used to authenticate the request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIRevokeTokenCurrentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIRevokeTokenCurrentRequest */ RevokeTokenCurrent(ctx context.Context) APIRevokeTokenCurrentRequest @@ -150,8 +149,8 @@ type TokensAPIService service // APIBulkRevokeTokensRequest represents a request for the resource. type APIBulkRevokeTokensRequest struct { - ctx context.Context - APIService TokensAPI + ctx context.Context + APIService TokensAPI requestBody *map[string]map[string]any } @@ -177,16 +176,16 @@ Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers func (a *TokensAPIService) BulkRevokeTokens(ctx context.Context) APIBulkRevokeTokensRequest { return APIBulkRevokeTokensRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } // BulkRevokeTokensExecute executes the request func (a *TokensAPIService) BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.BulkRevokeTokens") @@ -258,7 +257,6 @@ func (a *TokensAPIService) BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -277,11 +275,10 @@ func (a *TokensAPIService) BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) // APICreateTokenRequest represents a request for the resource. type APICreateTokenRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI } - // Execute calls the API using the request data configured. func (r APICreateTokenRequest) Execute() (*TokenCreatedResponse, *http.Response, error) { return r.APIService.CreateTokenExecute(r) @@ -299,7 +296,7 @@ Create an API token. If two-factor authentication is enabled for your account, r func (a *TokensAPIService) CreateToken(ctx context.Context) APICreateTokenRequest { return APICreateTokenRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -307,10 +304,10 @@ func (a *TokensAPIService) CreateToken(ctx context.Context) APICreateTokenReques // @return TokenCreatedResponse func (a *TokensAPIService) CreateTokenExecute(r APICreateTokenRequest) (*TokenCreatedResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *TokenCreatedResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TokenCreatedResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.CreateToken") @@ -399,7 +396,6 @@ func (a *TokensAPIService) CreateTokenExecute(r APICreateTokenRequest) (*TokenCr return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -418,12 +414,11 @@ func (a *TokensAPIService) CreateTokenExecute(r APICreateTokenRequest) (*TokenCr // APIGetTokenRequest represents a request for the resource. type APIGetTokenRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI - tokenID string + tokenID string } - // Execute calls the API using the request data configured. func (r APIGetTokenRequest) Execute() (*TokenResponse, *http.Response, error) { return r.APIService.GetTokenExecute(r) @@ -441,8 +436,8 @@ Get a single token by its id. func (a *TokensAPIService) GetToken(ctx context.Context, tokenID string) APIGetTokenRequest { return APIGetTokenRequest{ APIService: a, - ctx: ctx, - tokenID: tokenID, + ctx: ctx, + tokenID: tokenID, } } @@ -450,10 +445,10 @@ func (a *TokensAPIService) GetToken(ctx context.Context, tokenID string) APIGetT // @return TokenResponse func (a *TokensAPIService) GetTokenExecute(r APIGetTokenRequest) (*TokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.GetToken") @@ -562,7 +557,6 @@ func (a *TokensAPIService) GetTokenExecute(r APIGetTokenRequest) (*TokenResponse return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -581,11 +575,10 @@ func (a *TokensAPIService) GetTokenExecute(r APIGetTokenRequest) (*TokenResponse // APIGetTokenCurrentRequest represents a request for the resource. type APIGetTokenCurrentRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI } - // Execute calls the API using the request data configured. func (r APIGetTokenCurrentRequest) Execute() (*TokenResponse, *http.Response, error) { return r.APIService.GetTokenCurrentExecute(r) @@ -602,7 +595,7 @@ Get a single token based on the access_token used in the request. func (a *TokensAPIService) GetTokenCurrent(ctx context.Context) APIGetTokenCurrentRequest { return APIGetTokenCurrentRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -610,10 +603,10 @@ func (a *TokensAPIService) GetTokenCurrent(ctx context.Context) APIGetTokenCurre // @return TokenResponse func (a *TokensAPIService) GetTokenCurrentExecute(r APIGetTokenCurrentRequest) (*TokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *TokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *TokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.GetTokenCurrent") @@ -711,7 +704,6 @@ func (a *TokensAPIService) GetTokenCurrentExecute(r APIGetTokenCurrentRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -730,12 +722,11 @@ func (a *TokensAPIService) GetTokenCurrentExecute(r APIGetTokenCurrentRequest) ( // APIListTokensCustomerRequest represents a request for the resource. type APIListTokensCustomerRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI customerID string } - // Execute calls the API using the request data configured. func (r APIListTokensCustomerRequest) Execute() ([]TokenResponse, *http.Response, error) { return r.APIService.ListTokensCustomerExecute(r) @@ -753,7 +744,7 @@ List all tokens belonging to a specific customer. func (a *TokensAPIService) ListTokensCustomer(ctx context.Context, customerID string) APIListTokensCustomerRequest { return APIListTokensCustomerRequest{ APIService: a, - ctx: ctx, + ctx: ctx, customerID: customerID, } } @@ -762,10 +753,10 @@ func (a *TokensAPIService) ListTokensCustomer(ctx context.Context, customerID st // @return []TokenResponse func (a *TokensAPIService) ListTokensCustomerExecute(r APIListTokensCustomerRequest) ([]TokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []TokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []TokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.ListTokensCustomer") @@ -845,7 +836,6 @@ func (a *TokensAPIService) ListTokensCustomerExecute(r APIListTokensCustomerRequ return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -864,11 +854,10 @@ func (a *TokensAPIService) ListTokensCustomerExecute(r APIListTokensCustomerRequ // APIListTokensUserRequest represents a request for the resource. type APIListTokensUserRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI } - // Execute calls the API using the request data configured. func (r APIListTokensUserRequest) Execute() ([]TokenResponse, *http.Response, error) { return r.APIService.ListTokensUserExecute(r) @@ -885,7 +874,7 @@ List all tokens belonging to the authenticated user. func (a *TokensAPIService) ListTokensUser(ctx context.Context) APIListTokensUserRequest { return APIListTokensUserRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -893,10 +882,10 @@ func (a *TokensAPIService) ListTokensUser(ctx context.Context) APIListTokensUser // @return []TokenResponse func (a *TokensAPIService) ListTokensUserExecute(r APIListTokensUserRequest) ([]TokenResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []TokenResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []TokenResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.ListTokensUser") @@ -994,7 +983,6 @@ func (a *TokensAPIService) ListTokensUserExecute(r APIListTokensUserRequest) ([] return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1013,12 +1001,11 @@ func (a *TokensAPIService) ListTokensUserExecute(r APIListTokensUserRequest) ([] // APIRevokeTokenRequest represents a request for the resource. type APIRevokeTokenRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI - tokenID string + tokenID string } - // Execute calls the API using the request data configured. func (r APIRevokeTokenRequest) Execute() (*http.Response, error) { return r.APIService.RevokeTokenExecute(r) @@ -1036,17 +1023,17 @@ Revoke a specific token by its id. func (a *TokensAPIService) RevokeToken(ctx context.Context, tokenID string) APIRevokeTokenRequest { return APIRevokeTokenRequest{ APIService: a, - ctx: ctx, - tokenID: tokenID, + ctx: ctx, + tokenID: tokenID, } } // RevokeTokenExecute executes the request func (a *TokensAPIService) RevokeTokenExecute(r APIRevokeTokenRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.RevokeToken") @@ -1156,7 +1143,6 @@ func (a *TokensAPIService) RevokeTokenExecute(r APIRevokeTokenRequest) (*http.Re return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1175,11 +1161,10 @@ func (a *TokensAPIService) RevokeTokenExecute(r APIRevokeTokenRequest) (*http.Re // APIRevokeTokenCurrentRequest represents a request for the resource. type APIRevokeTokenCurrentRequest struct { - ctx context.Context + ctx context.Context APIService TokensAPI } - // Execute calls the API using the request data configured. func (r APIRevokeTokenCurrentRequest) Execute() (*http.Response, error) { return r.APIService.RevokeTokenCurrentExecute(r) @@ -1196,16 +1181,16 @@ Revoke a token that is used to authenticate the request. func (a *TokensAPIService) RevokeTokenCurrent(ctx context.Context) APIRevokeTokenCurrentRequest { return APIRevokeTokenCurrentRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } // RevokeTokenCurrentExecute executes the request func (a *TokensAPIService) RevokeTokenCurrentExecute(r APIRevokeTokenCurrentRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.RevokeTokenCurrent") @@ -1304,7 +1289,6 @@ func (a *TokensAPIService) RevokeTokenCurrentExecute(r APIRevokeTokenCurrentRequ return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_user.go b/fastly/api_user.go index 81b975d..2316bbd 100644 --- a/fastly/api_user.go +++ b/fastly/api_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,12 +31,12 @@ var ( type UserAPI interface { /* - CreateUser Create a user + CreateUser Create a user - Create a user. + Create a user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateUserRequest */ CreateUser(ctx context.Context) APICreateUserRequest @@ -46,13 +45,13 @@ type UserAPI interface { CreateUserExecute(r APICreateUserRequest) (*UserResponse, *http.Response, error) /* - DeleteUser Delete a user + DeleteUser Delete a user - Delete a user. + Delete a user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userID Alphanumeric string identifying the user. - @return APIDeleteUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userID Alphanumeric string identifying the user. + @return APIDeleteUserRequest */ DeleteUser(ctx context.Context, userID string) APIDeleteUserRequest @@ -61,12 +60,12 @@ type UserAPI interface { DeleteUserExecute(r APIDeleteUserRequest) (*InlineResponse200, *http.Response, error) /* - GetCurrentUser Get the current user + GetCurrentUser Get the current user - Get the logged in user. + Get the logged in user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetCurrentUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetCurrentUserRequest */ GetCurrentUser(ctx context.Context) APIGetCurrentUserRequest @@ -75,13 +74,13 @@ type UserAPI interface { GetCurrentUserExecute(r APIGetCurrentUserRequest) (*UserResponse, *http.Response, error) /* - GetUser Get a user + GetUser Get a user - Get a specific user. + Get a specific user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userID Alphanumeric string identifying the user. - @return APIGetUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userID Alphanumeric string identifying the user. + @return APIGetUserRequest */ GetUser(ctx context.Context, userID string) APIGetUserRequest @@ -90,13 +89,13 @@ type UserAPI interface { GetUserExecute(r APIGetUserRequest) (*UserResponse, *http.Response, error) /* - RequestPasswordReset Request a password reset + RequestPasswordReset Request a password reset - Requests a password reset for the specified user. + Requests a password reset for the specified user. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userLogin The login associated with the user (typically, an email address). - @return APIRequestPasswordResetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userLogin The login associated with the user (typically, an email address). + @return APIRequestPasswordResetRequest */ RequestPasswordReset(ctx context.Context, userLogin string) APIRequestPasswordResetRequest @@ -105,13 +104,13 @@ type UserAPI interface { RequestPasswordResetExecute(r APIRequestPasswordResetRequest) (*InlineResponse200, *http.Response, error) /* - UpdateUser Update a user + UpdateUser Update a user - Update a user. Only users with the role of `superuser` can make changes to other users on the account. Non-superusers may use this endpoint to make changes to their own account. Two-factor attributes are not editable via this endpoint. + Update a user. Only users with the role of `superuser` can make changes to other users on the account. Non-superusers may use this endpoint to make changes to their own account. Two-factor attributes are not editable via this endpoint. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userID Alphanumeric string identifying the user. - @return APIUpdateUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userID Alphanumeric string identifying the user. + @return APIUpdateUserRequest */ UpdateUser(ctx context.Context, userID string) APIUpdateUserRequest @@ -120,12 +119,12 @@ type UserAPI interface { UpdateUserExecute(r APIUpdateUserRequest) (*UserResponse, *http.Response, error) /* - UpdateUserPassword Update the user's password + UpdateUserPassword Update the user's password - Update the user's password to a new one. + Update the user's password to a new one. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIUpdateUserPasswordRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIUpdateUserPasswordRequest */ UpdateUserPassword(ctx context.Context) APIUpdateUserPasswordRequest @@ -139,15 +138,15 @@ type UserAPIService service // APICreateUserRequest represents a request for the resource. type APICreateUserRequest struct { - ctx context.Context - APIService UserAPI - login *string - name *string - limitServices *bool - locked *bool - requireNewPassword *bool - role *RoleUser - twoFactorAuthEnabled *bool + ctx context.Context + APIService UserAPI + login *string + name *string + limitServices *bool + locked *bool + requireNewPassword *bool + role *RoleUser + twoFactorAuthEnabled *bool twoFactorSetupRequired *bool } @@ -156,36 +155,43 @@ func (r *APICreateUserRequest) Login(login string) *APICreateUserRequest { r.login = &login return r } + // Name The real life name of the user. func (r *APICreateUserRequest) Name(name string) *APICreateUserRequest { r.name = &name return r } + // LimitServices Indicates that the user has limited access to the customer's services. func (r *APICreateUserRequest) LimitServices(limitServices bool) *APICreateUserRequest { r.limitServices = &limitServices return r } + // Locked Indicates whether the is account is locked for editing or not. func (r *APICreateUserRequest) Locked(locked bool) *APICreateUserRequest { r.locked = &locked return r } + // RequireNewPassword Indicates if a new password is required at next login. func (r *APICreateUserRequest) RequireNewPassword(requireNewPassword bool) *APICreateUserRequest { r.requireNewPassword = &requireNewPassword return r } + // Role returns a pointer to a request. func (r *APICreateUserRequest) Role(role RoleUser) *APICreateUserRequest { r.role = &role return r } + // TwoFactorAuthEnabled Indicates if 2FA is enabled on the user. func (r *APICreateUserRequest) TwoFactorAuthEnabled(twoFactorAuthEnabled bool) *APICreateUserRequest { r.twoFactorAuthEnabled = &twoFactorAuthEnabled return r } + // TwoFactorSetupRequired Indicates if 2FA is required by the user's customer account. func (r *APICreateUserRequest) TwoFactorSetupRequired(twoFactorSetupRequired bool) *APICreateUserRequest { r.twoFactorSetupRequired = &twoFactorSetupRequired @@ -208,7 +214,7 @@ Create a user. func (a *UserAPIService) CreateUser(ctx context.Context) APICreateUserRequest { return APICreateUserRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -216,10 +222,10 @@ func (a *UserAPIService) CreateUser(ctx context.Context) APICreateUserRequest { // @return UserResponse func (a *UserAPIService) CreateUserExecute(r APICreateUserRequest) (*UserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *UserResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *UserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.CreateUser") @@ -326,7 +332,6 @@ func (a *UserAPIService) CreateUserExecute(r APICreateUserRequest) (*UserRespons return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -345,12 +350,11 @@ func (a *UserAPIService) CreateUserExecute(r APICreateUserRequest) (*UserRespons // APIDeleteUserRequest represents a request for the resource. type APIDeleteUserRequest struct { - ctx context.Context + ctx context.Context APIService UserAPI - userID string + userID string } - // Execute calls the API using the request data configured. func (r APIDeleteUserRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteUserExecute(r) @@ -368,8 +372,8 @@ Delete a user. func (a *UserAPIService) DeleteUser(ctx context.Context, userID string) APIDeleteUserRequest { return APIDeleteUserRequest{ APIService: a, - ctx: ctx, - userID: userID, + ctx: ctx, + userID: userID, } } @@ -377,10 +381,10 @@ func (a *UserAPIService) DeleteUser(ctx context.Context, userID string) APIDelet // @return InlineResponse200 func (a *UserAPIService) DeleteUserExecute(r APIDeleteUserRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.DeleteUser") @@ -460,7 +464,6 @@ func (a *UserAPIService) DeleteUserExecute(r APIDeleteUserRequest) (*InlineRespo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -479,11 +482,10 @@ func (a *UserAPIService) DeleteUserExecute(r APIDeleteUserRequest) (*InlineRespo // APIGetCurrentUserRequest represents a request for the resource. type APIGetCurrentUserRequest struct { - ctx context.Context + ctx context.Context APIService UserAPI } - // Execute calls the API using the request data configured. func (r APIGetCurrentUserRequest) Execute() (*UserResponse, *http.Response, error) { return r.APIService.GetCurrentUserExecute(r) @@ -500,7 +502,7 @@ Get the logged in user. func (a *UserAPIService) GetCurrentUser(ctx context.Context) APIGetCurrentUserRequest { return APIGetCurrentUserRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -508,10 +510,10 @@ func (a *UserAPIService) GetCurrentUser(ctx context.Context) APIGetCurrentUserRe // @return UserResponse func (a *UserAPIService) GetCurrentUserExecute(r APIGetCurrentUserRequest) (*UserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *UserResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *UserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.GetCurrentUser") @@ -590,7 +592,6 @@ func (a *UserAPIService) GetCurrentUserExecute(r APIGetCurrentUserRequest) (*Use return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -609,12 +610,11 @@ func (a *UserAPIService) GetCurrentUserExecute(r APIGetCurrentUserRequest) (*Use // APIGetUserRequest represents a request for the resource. type APIGetUserRequest struct { - ctx context.Context + ctx context.Context APIService UserAPI - userID string + userID string } - // Execute calls the API using the request data configured. func (r APIGetUserRequest) Execute() (*UserResponse, *http.Response, error) { return r.APIService.GetUserExecute(r) @@ -632,8 +632,8 @@ Get a specific user. func (a *UserAPIService) GetUser(ctx context.Context, userID string) APIGetUserRequest { return APIGetUserRequest{ APIService: a, - ctx: ctx, - userID: userID, + ctx: ctx, + userID: userID, } } @@ -641,10 +641,10 @@ func (a *UserAPIService) GetUser(ctx context.Context, userID string) APIGetUserR // @return UserResponse func (a *UserAPIService) GetUserExecute(r APIGetUserRequest) (*UserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *UserResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *UserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.GetUser") @@ -724,7 +724,6 @@ func (a *UserAPIService) GetUserExecute(r APIGetUserRequest) (*UserResponse, *ht return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -743,12 +742,11 @@ func (a *UserAPIService) GetUserExecute(r APIGetUserRequest) (*UserResponse, *ht // APIRequestPasswordResetRequest represents a request for the resource. type APIRequestPasswordResetRequest struct { - ctx context.Context + ctx context.Context APIService UserAPI - userLogin string + userLogin string } - // Execute calls the API using the request data configured. func (r APIRequestPasswordResetRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.RequestPasswordResetExecute(r) @@ -766,8 +764,8 @@ Requests a password reset for the specified user. func (a *UserAPIService) RequestPasswordReset(ctx context.Context, userLogin string) APIRequestPasswordResetRequest { return APIRequestPasswordResetRequest{ APIService: a, - ctx: ctx, - userLogin: userLogin, + ctx: ctx, + userLogin: userLogin, } } @@ -775,10 +773,10 @@ func (a *UserAPIService) RequestPasswordReset(ctx context.Context, userLogin str // @return InlineResponse200 func (a *UserAPIService) RequestPasswordResetExecute(r APIRequestPasswordResetRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.RequestPasswordReset") @@ -858,7 +856,6 @@ func (a *UserAPIService) RequestPasswordResetExecute(r APIRequestPasswordResetRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -877,16 +874,16 @@ func (a *UserAPIService) RequestPasswordResetExecute(r APIRequestPasswordResetRe // APIUpdateUserRequest represents a request for the resource. type APIUpdateUserRequest struct { - ctx context.Context - APIService UserAPI - userID string - login *string - name *string - limitServices *bool - locked *bool - requireNewPassword *bool - role *RoleUser - twoFactorAuthEnabled *bool + ctx context.Context + APIService UserAPI + userID string + login *string + name *string + limitServices *bool + locked *bool + requireNewPassword *bool + role *RoleUser + twoFactorAuthEnabled *bool twoFactorSetupRequired *bool } @@ -895,36 +892,43 @@ func (r *APIUpdateUserRequest) Login(login string) *APIUpdateUserRequest { r.login = &login return r } + // Name The real life name of the user. func (r *APIUpdateUserRequest) Name(name string) *APIUpdateUserRequest { r.name = &name return r } + // LimitServices Indicates that the user has limited access to the customer's services. func (r *APIUpdateUserRequest) LimitServices(limitServices bool) *APIUpdateUserRequest { r.limitServices = &limitServices return r } + // Locked Indicates whether the is account is locked for editing or not. func (r *APIUpdateUserRequest) Locked(locked bool) *APIUpdateUserRequest { r.locked = &locked return r } + // RequireNewPassword Indicates if a new password is required at next login. func (r *APIUpdateUserRequest) RequireNewPassword(requireNewPassword bool) *APIUpdateUserRequest { r.requireNewPassword = &requireNewPassword return r } + // Role returns a pointer to a request. func (r *APIUpdateUserRequest) Role(role RoleUser) *APIUpdateUserRequest { r.role = &role return r } + // TwoFactorAuthEnabled Indicates if 2FA is enabled on the user. func (r *APIUpdateUserRequest) TwoFactorAuthEnabled(twoFactorAuthEnabled bool) *APIUpdateUserRequest { r.twoFactorAuthEnabled = &twoFactorAuthEnabled return r } + // TwoFactorSetupRequired Indicates if 2FA is required by the user's customer account. func (r *APIUpdateUserRequest) TwoFactorSetupRequired(twoFactorSetupRequired bool) *APIUpdateUserRequest { r.twoFactorSetupRequired = &twoFactorSetupRequired @@ -948,8 +952,8 @@ Update a user. Only users with the role of `superuser` can make changes to other func (a *UserAPIService) UpdateUser(ctx context.Context, userID string) APIUpdateUserRequest { return APIUpdateUserRequest{ APIService: a, - ctx: ctx, - userID: userID, + ctx: ctx, + userID: userID, } } @@ -957,10 +961,10 @@ func (a *UserAPIService) UpdateUser(ctx context.Context, userID string) APIUpdat // @return UserResponse func (a *UserAPIService) UpdateUserExecute(r APIUpdateUserRequest) (*UserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *UserResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *UserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UpdateUser") @@ -1068,7 +1072,6 @@ func (a *UserAPIService) UpdateUserExecute(r APIUpdateUserRequest) (*UserRespons return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1087,8 +1090,8 @@ func (a *UserAPIService) UpdateUserExecute(r APIUpdateUserRequest) (*UserRespons // APIUpdateUserPasswordRequest represents a request for the resource. type APIUpdateUserPasswordRequest struct { - ctx context.Context - APIService UserAPI + ctx context.Context + APIService UserAPI oldPassword *string newPassword *string } @@ -1098,6 +1101,7 @@ func (r *APIUpdateUserPasswordRequest) OldPassword(oldPassword string) *APIUpdat r.oldPassword = &oldPassword return r } + // NewPassword The user's new password. func (r *APIUpdateUserPasswordRequest) NewPassword(newPassword string) *APIUpdateUserPasswordRequest { r.newPassword = &newPassword @@ -1120,7 +1124,7 @@ Update the user's password to a new one. func (a *UserAPIService) UpdateUserPassword(ctx context.Context) APIUpdateUserPasswordRequest { return APIUpdateUserPasswordRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1128,10 +1132,10 @@ func (a *UserAPIService) UpdateUserPassword(ctx context.Context) APIUpdateUserPa // @return UserResponse func (a *UserAPIService) UpdateUserPasswordExecute(r APIUpdateUserPasswordRequest) (*UserResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *UserResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *UserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UpdateUserPassword") @@ -1202,7 +1206,6 @@ func (a *UserAPIService) UpdateUserPasswordExecute(r APIUpdateUserPasswordReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_vcl.go b/fastly/api_vcl.go index e333ed7..eb36039 100644 --- a/fastly/api_vcl.go +++ b/fastly/api_vcl.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type VclAPI interface { /* - CreateCustomVcl Create a custom VCL file + CreateCustomVcl Create a custom VCL file - Upload a VCL for a particular service and version. + Upload a VCL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICreateCustomVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateCustomVclRequest */ CreateCustomVcl(ctx context.Context, serviceID string, versionID int32) APICreateCustomVclRequest @@ -48,15 +47,15 @@ type VclAPI interface { CreateCustomVclExecute(r APICreateCustomVclRequest) (*VclResponse, *http.Response, error) /* - DeleteCustomVcl Delete a custom VCL file + DeleteCustomVcl Delete a custom VCL file - Delete the uploaded VCL for a particular service and version. + Delete the uploaded VCL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APIDeleteCustomVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APIDeleteCustomVclRequest */ DeleteCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIDeleteCustomVclRequest @@ -65,15 +64,15 @@ type VclAPI interface { DeleteCustomVclExecute(r APIDeleteCustomVclRequest) (*InlineResponse200, *http.Response, error) /* - GetCustomVcl Get a custom VCL file + GetCustomVcl Get a custom VCL file - Get the uploaded VCL for a particular service and version. + Get the uploaded VCL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APIGetCustomVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APIGetCustomVclRequest */ GetCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclRequest @@ -82,14 +81,14 @@ type VclAPI interface { GetCustomVclExecute(r APIGetCustomVclRequest) (*VclResponse, *http.Response, error) /* - GetCustomVclBoilerplate Get boilerplate VCL + GetCustomVclBoilerplate Get boilerplate VCL - Return boilerplate VCL with the service's TTL from the [settings](https://www.fastly.com/documentation/reference/api/vcl-services/settings/). + Return boilerplate VCL with the service's TTL from the [settings](https://www.fastly.com/documentation/reference/api/vcl-services/settings/). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetCustomVclBoilerplateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetCustomVclBoilerplateRequest */ GetCustomVclBoilerplate(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclBoilerplateRequest @@ -98,14 +97,14 @@ type VclAPI interface { GetCustomVclBoilerplateExecute(r APIGetCustomVclBoilerplateRequest) (string, *http.Response, error) /* - GetCustomVclGenerated Get the generated VCL for a service + GetCustomVclGenerated Get the generated VCL for a service - Display the generated VCL for a particular service and version. + Display the generated VCL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetCustomVclGeneratedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetCustomVclGeneratedRequest */ GetCustomVclGenerated(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclGeneratedRequest @@ -114,14 +113,14 @@ type VclAPI interface { GetCustomVclGeneratedExecute(r APIGetCustomVclGeneratedRequest) (*VclResponse, *http.Response, error) /* - GetCustomVclGeneratedHighlighted Get the generated VCL with syntax highlighting + GetCustomVclGeneratedHighlighted Get the generated VCL with syntax highlighting - Display the content of generated VCL with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. + Display the content of generated VCL with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetCustomVclGeneratedHighlightedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetCustomVclGeneratedHighlightedRequest */ GetCustomVclGeneratedHighlighted(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclGeneratedHighlightedRequest @@ -130,15 +129,15 @@ type VclAPI interface { GetCustomVclGeneratedHighlightedExecute(r APIGetCustomVclGeneratedHighlightedRequest) (*VclSyntaxHighlightingResponse, *http.Response, error) /* - GetCustomVclHighlighted Get a custom VCL file with syntax highlighting + GetCustomVclHighlighted Get a custom VCL file with syntax highlighting - Get the uploaded VCL for a particular service and version with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. + Get the uploaded VCL for a particular service and version with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APIGetCustomVclHighlightedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APIGetCustomVclHighlightedRequest */ GetCustomVclHighlighted(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclHighlightedRequest @@ -147,15 +146,15 @@ type VclAPI interface { GetCustomVclHighlightedExecute(r APIGetCustomVclHighlightedRequest) (*VclSyntaxHighlightingResponse, *http.Response, error) /* - GetCustomVclRaw Download a custom VCL file + GetCustomVclRaw Download a custom VCL file - Download the specified VCL. + Download the specified VCL. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APIGetCustomVclRawRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APIGetCustomVclRawRequest */ GetCustomVclRaw(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclRawRequest @@ -164,12 +163,12 @@ type VclAPI interface { GetCustomVclRawExecute(r APIGetCustomVclRawRequest) (string, *http.Response, error) /* - LintVclDefault Lint (validate) VCL using a default set of flags. + LintVclDefault Lint (validate) VCL using a default set of flags. - This endpoint validates the submitted VCL against a default set of enabled flags. Consider using the `/service/{service_id}/lint` operation to validate VCL in the context of a specific service. + This endpoint validates the submitted VCL against a default set of enabled flags. Consider using the `/service/{service_id}/lint` operation to validate VCL in the context of a specific service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APILintVclDefaultRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APILintVclDefaultRequest */ LintVclDefault(ctx context.Context) APILintVclDefaultRequest @@ -178,13 +177,13 @@ type VclAPI interface { LintVclDefaultExecute(r APILintVclDefaultRequest) (*ValidatorResult, *http.Response, error) /* - LintVclForService Lint (validate) VCL using flags set for the service. + LintVclForService Lint (validate) VCL using flags set for the service. - Services may have flags set by a Fastly employee or by the purchase of products as addons to the service, which modify the way VCL is interpreted by that service. This endpoint validates the submitted VCL in the context of the specified service. + Services may have flags set by a Fastly employee or by the purchase of products as addons to the service, which modify the way VCL is interpreted by that service. This endpoint validates the submitted VCL in the context of the specified service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APILintVclForServiceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APILintVclForServiceRequest */ LintVclForService(ctx context.Context, serviceID string) APILintVclForServiceRequest @@ -193,14 +192,14 @@ type VclAPI interface { LintVclForServiceExecute(r APILintVclForServiceRequest) (*ValidatorResult, *http.Response, error) /* - ListCustomVcl List custom VCL files + ListCustomVcl List custom VCL files - List the uploaded VCLs for a particular service and version. + List the uploaded VCLs for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIListCustomVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListCustomVclRequest */ ListCustomVcl(ctx context.Context, serviceID string, versionID int32) APIListCustomVclRequest @@ -209,15 +208,15 @@ type VclAPI interface { ListCustomVclExecute(r APIListCustomVclRequest) ([]VclResponse, *http.Response, error) /* - SetCustomVclMain Set a custom VCL file as main + SetCustomVclMain Set a custom VCL file as main - Set the specified VCL as the main. + Set the specified VCL as the main. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APISetCustomVclMainRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APISetCustomVclMainRequest */ SetCustomVclMain(ctx context.Context, serviceID string, versionID int32, vclName string) APISetCustomVclMainRequest @@ -226,15 +225,15 @@ type VclAPI interface { SetCustomVclMainExecute(r APISetCustomVclMainRequest) (*VclResponse, *http.Response, error) /* - UpdateCustomVcl Update a custom VCL file + UpdateCustomVcl Update a custom VCL file - Update the uploaded VCL for a particular service and version. + Update the uploaded VCL for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param vclName The name of this VCL. - @return APIUpdateCustomVclRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param vclName The name of this VCL. + @return APIUpdateCustomVclRequest */ UpdateCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIUpdateCustomVclRequest @@ -248,13 +247,13 @@ type VclAPIService service // APICreateCustomVclRequest represents a request for the resource. type APICreateCustomVclRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - content *string - main *bool - name *string + serviceID string + versionID int32 + content *string + main *bool + name *string } // Content The VCL code to be included. @@ -262,11 +261,13 @@ func (r *APICreateCustomVclRequest) Content(content string) *APICreateCustomVclR r.content = &content return r } + // Main Set to `true` when this is the main VCL, otherwise `false`. func (r *APICreateCustomVclRequest) Main(main bool) *APICreateCustomVclRequest { r.main = &main return r } + // Name The name of this VCL. func (r *APICreateCustomVclRequest) Name(name string) *APICreateCustomVclRequest { r.name = &name @@ -291,9 +292,9 @@ Upload a VCL for a particular service and version. func (a *VclAPIService) CreateCustomVcl(ctx context.Context, serviceID string, versionID int32) APICreateCustomVclRequest { return APICreateCustomVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -301,10 +302,10 @@ func (a *VclAPIService) CreateCustomVcl(ctx context.Context, serviceID string, v // @return VclResponse func (a *VclAPIService) CreateCustomVclExecute(r APICreateCustomVclRequest) (*VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.CreateCustomVcl") @@ -394,7 +395,6 @@ func (a *VclAPIService) CreateCustomVclExecute(r APICreateCustomVclRequest) (*Vc return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -413,14 +413,13 @@ func (a *VclAPIService) CreateCustomVclExecute(r APICreateCustomVclRequest) (*Vc // APIDeleteCustomVclRequest represents a request for the resource. type APIDeleteCustomVclRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string + serviceID string + versionID int32 + vclName string } - // Execute calls the API using the request data configured. func (r APIDeleteCustomVclRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.DeleteCustomVclExecute(r) @@ -440,10 +439,10 @@ Delete the uploaded VCL for a particular service and version. func (a *VclAPIService) DeleteCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIDeleteCustomVclRequest { return APIDeleteCustomVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -451,10 +450,10 @@ func (a *VclAPIService) DeleteCustomVcl(ctx context.Context, serviceID string, v // @return InlineResponse200 func (a *VclAPIService) DeleteCustomVclExecute(r APIDeleteCustomVclRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.DeleteCustomVcl") @@ -536,7 +535,6 @@ func (a *VclAPIService) DeleteCustomVclExecute(r APIDeleteCustomVclRequest) (*In return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -555,12 +553,12 @@ func (a *VclAPIService) DeleteCustomVclExecute(r APIDeleteCustomVclRequest) (*In // APIGetCustomVclRequest represents a request for the resource. type APIGetCustomVclRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string - noContent *string + serviceID string + versionID int32 + vclName string + noContent *string } // NoContent Omit VCL content. @@ -588,10 +586,10 @@ Get the uploaded VCL for a particular service and version. func (a *VclAPIService) GetCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclRequest { return APIGetCustomVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -599,10 +597,10 @@ func (a *VclAPIService) GetCustomVcl(ctx context.Context, serviceID string, vers // @return VclResponse func (a *VclAPIService) GetCustomVclExecute(r APIGetCustomVclRequest) (*VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVcl") @@ -687,7 +685,6 @@ func (a *VclAPIService) GetCustomVclExecute(r APIGetCustomVclRequest) (*VclRespo return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -706,13 +703,12 @@ func (a *VclAPIService) GetCustomVclExecute(r APIGetCustomVclRequest) (*VclRespo // APIGetCustomVclBoilerplateRequest represents a request for the resource. type APIGetCustomVclBoilerplateRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetCustomVclBoilerplateRequest) Execute() (string, *http.Response, error) { return r.APIService.GetCustomVclBoilerplateExecute(r) @@ -731,9 +727,9 @@ Return boilerplate VCL with the service's TTL from the [settings](https://www.fa func (a *VclAPIService) GetCustomVclBoilerplate(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclBoilerplateRequest { return APIGetCustomVclBoilerplateRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -741,10 +737,10 @@ func (a *VclAPIService) GetCustomVclBoilerplate(ctx context.Context, serviceID s // @return string func (a *VclAPIService) GetCustomVclBoilerplateExecute(r APIGetCustomVclBoilerplateRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVclBoilerplate") @@ -825,7 +821,6 @@ func (a *VclAPIService) GetCustomVclBoilerplateExecute(r APIGetCustomVclBoilerpl return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -844,13 +839,12 @@ func (a *VclAPIService) GetCustomVclBoilerplateExecute(r APIGetCustomVclBoilerpl // APIGetCustomVclGeneratedRequest represents a request for the resource. type APIGetCustomVclGeneratedRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetCustomVclGeneratedRequest) Execute() (*VclResponse, *http.Response, error) { return r.APIService.GetCustomVclGeneratedExecute(r) @@ -869,9 +863,9 @@ Display the generated VCL for a particular service and version. func (a *VclAPIService) GetCustomVclGenerated(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclGeneratedRequest { return APIGetCustomVclGeneratedRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -879,10 +873,10 @@ func (a *VclAPIService) GetCustomVclGenerated(ctx context.Context, serviceID str // @return VclResponse func (a *VclAPIService) GetCustomVclGeneratedExecute(r APIGetCustomVclGeneratedRequest) (*VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVclGenerated") @@ -963,7 +957,6 @@ func (a *VclAPIService) GetCustomVclGeneratedExecute(r APIGetCustomVclGeneratedR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -982,13 +975,12 @@ func (a *VclAPIService) GetCustomVclGeneratedExecute(r APIGetCustomVclGeneratedR // APIGetCustomVclGeneratedHighlightedRequest represents a request for the resource. type APIGetCustomVclGeneratedHighlightedRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetCustomVclGeneratedHighlightedRequest) Execute() (*VclSyntaxHighlightingResponse, *http.Response, error) { return r.APIService.GetCustomVclGeneratedHighlightedExecute(r) @@ -1007,9 +999,9 @@ Display the content of generated VCL with HTML syntax highlighting. Include line func (a *VclAPIService) GetCustomVclGeneratedHighlighted(ctx context.Context, serviceID string, versionID int32) APIGetCustomVclGeneratedHighlightedRequest { return APIGetCustomVclGeneratedHighlightedRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1017,10 +1009,10 @@ func (a *VclAPIService) GetCustomVclGeneratedHighlighted(ctx context.Context, se // @return VclSyntaxHighlightingResponse func (a *VclAPIService) GetCustomVclGeneratedHighlightedExecute(r APIGetCustomVclGeneratedHighlightedRequest) (*VclSyntaxHighlightingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclSyntaxHighlightingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclSyntaxHighlightingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVclGeneratedHighlighted") @@ -1101,7 +1093,6 @@ func (a *VclAPIService) GetCustomVclGeneratedHighlightedExecute(r APIGetCustomVc return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1120,14 +1111,13 @@ func (a *VclAPIService) GetCustomVclGeneratedHighlightedExecute(r APIGetCustomVc // APIGetCustomVclHighlightedRequest represents a request for the resource. type APIGetCustomVclHighlightedRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string + serviceID string + versionID int32 + vclName string } - // Execute calls the API using the request data configured. func (r APIGetCustomVclHighlightedRequest) Execute() (*VclSyntaxHighlightingResponse, *http.Response, error) { return r.APIService.GetCustomVclHighlightedExecute(r) @@ -1147,10 +1137,10 @@ Get the uploaded VCL for a particular service and version with HTML syntax highl func (a *VclAPIService) GetCustomVclHighlighted(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclHighlightedRequest { return APIGetCustomVclHighlightedRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -1158,10 +1148,10 @@ func (a *VclAPIService) GetCustomVclHighlighted(ctx context.Context, serviceID s // @return VclSyntaxHighlightingResponse func (a *VclAPIService) GetCustomVclHighlightedExecute(r APIGetCustomVclHighlightedRequest) (*VclSyntaxHighlightingResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclSyntaxHighlightingResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclSyntaxHighlightingResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVclHighlighted") @@ -1243,7 +1233,6 @@ func (a *VclAPIService) GetCustomVclHighlightedExecute(r APIGetCustomVclHighligh return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1262,14 +1251,13 @@ func (a *VclAPIService) GetCustomVclHighlightedExecute(r APIGetCustomVclHighligh // APIGetCustomVclRawRequest represents a request for the resource. type APIGetCustomVclRawRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string + serviceID string + versionID int32 + vclName string } - // Execute calls the API using the request data configured. func (r APIGetCustomVclRawRequest) Execute() (string, *http.Response, error) { return r.APIService.GetCustomVclRawExecute(r) @@ -1289,10 +1277,10 @@ Download the specified VCL. func (a *VclAPIService) GetCustomVclRaw(ctx context.Context, serviceID string, versionID int32, vclName string) APIGetCustomVclRawRequest { return APIGetCustomVclRawRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -1300,10 +1288,10 @@ func (a *VclAPIService) GetCustomVclRaw(ctx context.Context, serviceID string, v // @return string func (a *VclAPIService) GetCustomVclRawExecute(r APIGetCustomVclRawRequest) (string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue string + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.GetCustomVclRaw") @@ -1385,7 +1373,6 @@ func (a *VclAPIService) GetCustomVclRawExecute(r APIGetCustomVclRawRequest) (str return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1404,8 +1391,8 @@ func (a *VclAPIService) GetCustomVclRawExecute(r APIGetCustomVclRawRequest) (str // APILintVclDefaultRequest represents a request for the resource. type APILintVclDefaultRequest struct { - ctx context.Context - APIService VclAPI + ctx context.Context + APIService VclAPI inlineObject1 *InlineObject1 } @@ -1431,7 +1418,7 @@ This endpoint validates the submitted VCL against a default set of enabled flags func (a *VclAPIService) LintVclDefault(ctx context.Context) APILintVclDefaultRequest { return APILintVclDefaultRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -1439,10 +1426,10 @@ func (a *VclAPIService) LintVclDefault(ctx context.Context) APILintVclDefaultReq // @return ValidatorResult func (a *VclAPIService) LintVclDefaultExecute(r APILintVclDefaultRequest) (*ValidatorResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ValidatorResult + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ValidatorResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.LintVclDefault") @@ -1526,7 +1513,6 @@ func (a *VclAPIService) LintVclDefaultExecute(r APILintVclDefaultRequest) (*Vali return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1545,9 +1531,9 @@ func (a *VclAPIService) LintVclDefaultExecute(r APILintVclDefaultRequest) (*Vali // APILintVclForServiceRequest represents a request for the resource. type APILintVclForServiceRequest struct { - ctx context.Context - APIService VclAPI - serviceID string + ctx context.Context + APIService VclAPI + serviceID string inlineObject *InlineObject } @@ -1574,8 +1560,8 @@ Services may have flags set by a Fastly employee or by the purchase of products func (a *VclAPIService) LintVclForService(ctx context.Context, serviceID string) APILintVclForServiceRequest { return APILintVclForServiceRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -1583,10 +1569,10 @@ func (a *VclAPIService) LintVclForService(ctx context.Context, serviceID string) // @return ValidatorResult func (a *VclAPIService) LintVclForServiceExecute(r APILintVclForServiceRequest) (*ValidatorResult, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *ValidatorResult + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ValidatorResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.LintVclForService") @@ -1671,7 +1657,6 @@ func (a *VclAPIService) LintVclForServiceExecute(r APILintVclForServiceRequest) return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1690,13 +1675,12 @@ func (a *VclAPIService) LintVclForServiceExecute(r APILintVclForServiceRequest) // APIListCustomVclRequest represents a request for the resource. type APIListCustomVclRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIListCustomVclRequest) Execute() ([]VclResponse, *http.Response, error) { return r.APIService.ListCustomVclExecute(r) @@ -1715,9 +1699,9 @@ List the uploaded VCLs for a particular service and version. func (a *VclAPIService) ListCustomVcl(ctx context.Context, serviceID string, versionID int32) APIListCustomVclRequest { return APIListCustomVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1725,10 +1709,10 @@ func (a *VclAPIService) ListCustomVcl(ctx context.Context, serviceID string, ver // @return []VclResponse func (a *VclAPIService) ListCustomVclExecute(r APIListCustomVclRequest) ([]VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []VclResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.ListCustomVcl") @@ -1809,7 +1793,6 @@ func (a *VclAPIService) ListCustomVclExecute(r APIListCustomVclRequest) ([]VclRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1828,14 +1811,13 @@ func (a *VclAPIService) ListCustomVclExecute(r APIListCustomVclRequest) ([]VclRe // APISetCustomVclMainRequest represents a request for the resource. type APISetCustomVclMainRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string + serviceID string + versionID int32 + vclName string } - // Execute calls the API using the request data configured. func (r APISetCustomVclMainRequest) Execute() (*VclResponse, *http.Response, error) { return r.APIService.SetCustomVclMainExecute(r) @@ -1855,10 +1837,10 @@ Set the specified VCL as the main. func (a *VclAPIService) SetCustomVclMain(ctx context.Context, serviceID string, versionID int32, vclName string) APISetCustomVclMainRequest { return APISetCustomVclMainRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -1866,10 +1848,10 @@ func (a *VclAPIService) SetCustomVclMain(ctx context.Context, serviceID string, // @return VclResponse func (a *VclAPIService) SetCustomVclMainExecute(r APISetCustomVclMainRequest) (*VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.SetCustomVclMain") @@ -1951,7 +1933,6 @@ func (a *VclAPIService) SetCustomVclMainExecute(r APISetCustomVclMainRequest) (* return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1970,14 +1951,14 @@ func (a *VclAPIService) SetCustomVclMainExecute(r APISetCustomVclMainRequest) (* // APIUpdateCustomVclRequest represents a request for the resource. type APIUpdateCustomVclRequest struct { - ctx context.Context + ctx context.Context APIService VclAPI - serviceID string - versionID int32 - vclName string - content *string - main *bool - name *string + serviceID string + versionID int32 + vclName string + content *string + main *bool + name *string } // Content The VCL code to be included. @@ -1985,11 +1966,13 @@ func (r *APIUpdateCustomVclRequest) Content(content string) *APIUpdateCustomVclR r.content = &content return r } + // Main Set to `true` when this is the main VCL, otherwise `false`. func (r *APIUpdateCustomVclRequest) Main(main bool) *APIUpdateCustomVclRequest { r.main = &main return r } + // Name The name of this VCL. func (r *APIUpdateCustomVclRequest) Name(name string) *APIUpdateCustomVclRequest { r.name = &name @@ -2015,10 +1998,10 @@ Update the uploaded VCL for a particular service and version. func (a *VclAPIService) UpdateCustomVcl(ctx context.Context, serviceID string, versionID int32, vclName string) APIUpdateCustomVclRequest { return APIUpdateCustomVclRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, - vclName: vclName, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + vclName: vclName, } } @@ -2026,10 +2009,10 @@ func (a *VclAPIService) UpdateCustomVcl(ctx context.Context, serviceID string, v // @return VclResponse func (a *VclAPIService) UpdateCustomVclExecute(r APIUpdateCustomVclRequest) (*VclResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclAPIService.UpdateCustomVcl") @@ -2120,7 +2103,6 @@ func (a *VclAPIService) UpdateCustomVclExecute(r APIUpdateCustomVclRequest) (*Vc return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_vcl_diff.go b/fastly/api_vcl_diff.go index a7fcc1c..326bda0 100644 --- a/fastly/api_vcl_diff.go +++ b/fastly/api_vcl_diff.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type VclDiffAPI interface { /* - VclDiffServiceVersions Get a comparison of the VCL changes between two service versions + VclDiffServiceVersions Get a comparison of the VCL changes between two service versions - Get a comparison of the VCL changes between two service versions. + Get a comparison of the VCL changes between two service versions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param fromVersionID The version number of the service to which changes in the generated VCL are being compared. Can either be a positive number from 1 to your maximum version or a negative number from -1 down (-1 is latest version etc). - @param toVersionID The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as `from`. - @return APIVclDiffServiceVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param fromVersionID The version number of the service to which changes in the generated VCL are being compared. Can either be a positive number from 1 to your maximum version or a negative number from -1 down (-1 is latest version etc). + @param toVersionID The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as `from`. + @return APIVclDiffServiceVersionsRequest */ VclDiffServiceVersions(ctx context.Context, serviceID string, fromVersionID int32, toVersionID int32) APIVclDiffServiceVersionsRequest @@ -54,12 +53,12 @@ type VclDiffAPIService service // APIVclDiffServiceVersionsRequest represents a request for the resource. type APIVclDiffServiceVersionsRequest struct { - ctx context.Context - APIService VclDiffAPI - serviceID string + ctx context.Context + APIService VclDiffAPI + serviceID string fromVersionID int32 - toVersionID int32 - format *string + toVersionID int32 + format *string } // Format Optional method to format the diff field. @@ -86,11 +85,11 @@ Get a comparison of the VCL changes between two service versions. */ func (a *VclDiffAPIService) VclDiffServiceVersions(ctx context.Context, serviceID string, fromVersionID int32, toVersionID int32) APIVclDiffServiceVersionsRequest { return APIVclDiffServiceVersionsRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, + APIService: a, + ctx: ctx, + serviceID: serviceID, fromVersionID: fromVersionID, - toVersionID: toVersionID, + toVersionID: toVersionID, } } @@ -98,10 +97,10 @@ func (a *VclDiffAPIService) VclDiffServiceVersions(ctx context.Context, serviceI // @return VclDiff func (a *VclDiffAPIService) VclDiffServiceVersionsExecute(r APIVclDiffServiceVersionsRequest) (*VclDiff, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VclDiff + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VclDiff ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VclDiffAPIService.VclDiffServiceVersions") @@ -186,7 +185,6 @@ func (a *VclDiffAPIService) VclDiffServiceVersionsExecute(r APIVclDiffServiceVer return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_version.go b/fastly/api_version.go index 5c40619..e60c1cf 100644 --- a/fastly/api_version.go +++ b/fastly/api_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,14 +31,14 @@ var ( type VersionAPI interface { /* - ActivateServiceVersion Activate a service version + ActivateServiceVersion Activate a service version - Activate the current version. + Activate the current version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIActivateServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIActivateServiceVersionRequest */ ActivateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIActivateServiceVersionRequest @@ -48,15 +47,15 @@ type VersionAPI interface { ActivateServiceVersionExecute(r APIActivateServiceVersionRequest) (*VersionResponse, *http.Response, error) /* - ActivateServiceVersionEnvironment Activate a service version on the specified environment + ActivateServiceVersionEnvironment Activate a service version on the specified environment - Activate a version on a given environment, i.e. "staging" + Activate a version on a given environment, i.e. "staging" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param environmentName - @return APIActivateServiceVersionEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param environmentName + @return APIActivateServiceVersionEnvironmentRequest */ ActivateServiceVersionEnvironment(ctx context.Context, serviceID string, versionID int32, environmentName EnvironmentName) APIActivateServiceVersionEnvironmentRequest @@ -65,14 +64,14 @@ type VersionAPI interface { ActivateServiceVersionEnvironmentExecute(r APIActivateServiceVersionEnvironmentRequest) (*VersionResponse, *http.Response, error) /* - CloneServiceVersion Clone a service version + CloneServiceVersion Clone a service version - Clone the current configuration into a new version. + Clone the current configuration into a new version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APICloneServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICloneServiceVersionRequest */ CloneServiceVersion(ctx context.Context, serviceID string, versionID int32) APICloneServiceVersionRequest @@ -81,13 +80,13 @@ type VersionAPI interface { CloneServiceVersionExecute(r APICloneServiceVersionRequest) (*Version, *http.Response, error) /* - CreateServiceVersion Create a service version + CreateServiceVersion Create a service version - Create a version for a particular service. + Create a version for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APICreateServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APICreateServiceVersionRequest */ CreateServiceVersion(ctx context.Context, serviceID string) APICreateServiceVersionRequest @@ -96,14 +95,14 @@ type VersionAPI interface { CreateServiceVersionExecute(r APICreateServiceVersionRequest) (*VersionCreateResponse, *http.Response, error) /* - DeactivateServiceVersion Deactivate a service version + DeactivateServiceVersion Deactivate a service version - Deactivate the current version. + Deactivate the current version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIDeactivateServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIDeactivateServiceVersionRequest */ DeactivateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIDeactivateServiceVersionRequest @@ -112,15 +111,15 @@ type VersionAPI interface { DeactivateServiceVersionExecute(r APIDeactivateServiceVersionRequest) (*VersionResponse, *http.Response, error) /* - DeactivateServiceVersionEnvironment Deactivate a service version on an environment + DeactivateServiceVersionEnvironment Deactivate a service version on an environment - Deactivate the current version on a given environment, i.e. "staging" + Deactivate the current version on a given environment, i.e. "staging" - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @param environmentName - @return APIDeactivateServiceVersionEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param environmentName + @return APIDeactivateServiceVersionEnvironmentRequest */ DeactivateServiceVersionEnvironment(ctx context.Context, serviceID string, versionID int32, environmentName EnvironmentName) APIDeactivateServiceVersionEnvironmentRequest @@ -129,14 +128,14 @@ type VersionAPI interface { DeactivateServiceVersionEnvironmentExecute(r APIDeactivateServiceVersionEnvironmentRequest) (*VersionResponse, *http.Response, error) /* - GetServiceVersion Get a version of a service + GetServiceVersion Get a version of a service - Get the version for a particular service. + Get the version for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIGetServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIGetServiceVersionRequest */ GetServiceVersion(ctx context.Context, serviceID string, versionID int32) APIGetServiceVersionRequest @@ -145,13 +144,13 @@ type VersionAPI interface { GetServiceVersionExecute(r APIGetServiceVersionRequest) (*VersionResponse, *http.Response, error) /* - ListServiceVersions List versions of a service + ListServiceVersions List versions of a service - List the versions for a particular service. + List the versions for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @return APIListServiceVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIListServiceVersionsRequest */ ListServiceVersions(ctx context.Context, serviceID string) APIListServiceVersionsRequest @@ -160,14 +159,14 @@ type VersionAPI interface { ListServiceVersionsExecute(r APIListServiceVersionsRequest) ([]VersionResponse, *http.Response, error) /* - LockServiceVersion Lock a service version + LockServiceVersion Lock a service version - Locks the specified version. + Locks the specified version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APILockServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APILockServiceVersionRequest */ LockServiceVersion(ctx context.Context, serviceID string, versionID int32) APILockServiceVersionRequest @@ -176,14 +175,14 @@ type VersionAPI interface { LockServiceVersionExecute(r APILockServiceVersionRequest) (*Version, *http.Response, error) /* - UpdateServiceVersion Update a service version + UpdateServiceVersion Update a service version - Update a particular version for a particular service. + Update a particular version for a particular service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIUpdateServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIUpdateServiceVersionRequest */ UpdateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIUpdateServiceVersionRequest @@ -192,14 +191,14 @@ type VersionAPI interface { UpdateServiceVersionExecute(r APIUpdateServiceVersionRequest) (*VersionResponse, *http.Response, error) /* - ValidateServiceVersion Validate a service version + ValidateServiceVersion Validate a service version - Validate the version for a particular service and version. + Validate the version for a particular service and version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param serviceID Alphanumeric string identifying the service. - @param versionID Integer identifying a service version. - @return APIValidateServiceVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIValidateServiceVersionRequest */ ValidateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIValidateServiceVersionRequest @@ -213,13 +212,12 @@ type VersionAPIService service // APIActivateServiceVersionRequest represents a request for the resource. type APIActivateServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIActivateServiceVersionRequest) Execute() (*VersionResponse, *http.Response, error) { return r.APIService.ActivateServiceVersionExecute(r) @@ -238,9 +236,9 @@ Activate the current version. func (a *VersionAPIService) ActivateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIActivateServiceVersionRequest { return APIActivateServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -248,10 +246,10 @@ func (a *VersionAPIService) ActivateServiceVersion(ctx context.Context, serviceI // @return VersionResponse func (a *VersionAPIService) ActivateServiceVersionExecute(r APIActivateServiceVersionRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.ActivateServiceVersion") @@ -332,7 +330,6 @@ func (a *VersionAPIService) ActivateServiceVersionExecute(r APIActivateServiceVe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -351,14 +348,13 @@ func (a *VersionAPIService) ActivateServiceVersionExecute(r APIActivateServiceVe // APIActivateServiceVersionEnvironmentRequest represents a request for the resource. type APIActivateServiceVersionEnvironmentRequest struct { - ctx context.Context - APIService VersionAPI - serviceID string - versionID int32 + ctx context.Context + APIService VersionAPI + serviceID string + versionID int32 environmentName EnvironmentName } - // Execute calls the API using the request data configured. func (r APIActivateServiceVersionEnvironmentRequest) Execute() (*VersionResponse, *http.Response, error) { return r.APIService.ActivateServiceVersionEnvironmentExecute(r) @@ -377,10 +373,10 @@ Activate a version on a given environment, i.e. "staging" */ func (a *VersionAPIService) ActivateServiceVersionEnvironment(ctx context.Context, serviceID string, versionID int32, environmentName EnvironmentName) APIActivateServiceVersionEnvironmentRequest { return APIActivateServiceVersionEnvironmentRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, environmentName: environmentName, } } @@ -389,10 +385,10 @@ func (a *VersionAPIService) ActivateServiceVersionEnvironment(ctx context.Contex // @return VersionResponse func (a *VersionAPIService) ActivateServiceVersionEnvironmentExecute(r APIActivateServiceVersionEnvironmentRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.ActivateServiceVersionEnvironment") @@ -474,7 +470,6 @@ func (a *VersionAPIService) ActivateServiceVersionEnvironmentExecute(r APIActiva return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -493,13 +488,12 @@ func (a *VersionAPIService) ActivateServiceVersionEnvironmentExecute(r APIActiva // APICloneServiceVersionRequest represents a request for the resource. type APICloneServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APICloneServiceVersionRequest) Execute() (*Version, *http.Response, error) { return r.APIService.CloneServiceVersionExecute(r) @@ -518,9 +512,9 @@ Clone the current configuration into a new version. func (a *VersionAPIService) CloneServiceVersion(ctx context.Context, serviceID string, versionID int32) APICloneServiceVersionRequest { return APICloneServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -528,10 +522,10 @@ func (a *VersionAPIService) CloneServiceVersion(ctx context.Context, serviceID s // @return Version func (a *VersionAPIService) CloneServiceVersionExecute(r APICloneServiceVersionRequest) (*Version, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *Version + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *Version ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.CloneServiceVersion") @@ -612,7 +606,6 @@ func (a *VersionAPIService) CloneServiceVersionExecute(r APICloneServiceVersionR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -631,12 +624,11 @@ func (a *VersionAPIService) CloneServiceVersionExecute(r APICloneServiceVersionR // APICreateServiceVersionRequest represents a request for the resource. type APICreateServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APICreateServiceVersionRequest) Execute() (*VersionCreateResponse, *http.Response, error) { return r.APIService.CreateServiceVersionExecute(r) @@ -654,8 +646,8 @@ Create a version for a particular service. func (a *VersionAPIService) CreateServiceVersion(ctx context.Context, serviceID string) APICreateServiceVersionRequest { return APICreateServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -663,10 +655,10 @@ func (a *VersionAPIService) CreateServiceVersion(ctx context.Context, serviceID // @return VersionCreateResponse func (a *VersionAPIService) CreateServiceVersionExecute(r APICreateServiceVersionRequest) (*VersionCreateResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionCreateResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionCreateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.CreateServiceVersion") @@ -746,7 +738,6 @@ func (a *VersionAPIService) CreateServiceVersionExecute(r APICreateServiceVersio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -765,13 +756,12 @@ func (a *VersionAPIService) CreateServiceVersionExecute(r APICreateServiceVersio // APIDeactivateServiceVersionRequest represents a request for the resource. type APIDeactivateServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIDeactivateServiceVersionRequest) Execute() (*VersionResponse, *http.Response, error) { return r.APIService.DeactivateServiceVersionExecute(r) @@ -790,9 +780,9 @@ Deactivate the current version. func (a *VersionAPIService) DeactivateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIDeactivateServiceVersionRequest { return APIDeactivateServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -800,10 +790,10 @@ func (a *VersionAPIService) DeactivateServiceVersion(ctx context.Context, servic // @return VersionResponse func (a *VersionAPIService) DeactivateServiceVersionExecute(r APIDeactivateServiceVersionRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.DeactivateServiceVersion") @@ -884,7 +874,6 @@ func (a *VersionAPIService) DeactivateServiceVersionExecute(r APIDeactivateServi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -903,14 +892,13 @@ func (a *VersionAPIService) DeactivateServiceVersionExecute(r APIDeactivateServi // APIDeactivateServiceVersionEnvironmentRequest represents a request for the resource. type APIDeactivateServiceVersionEnvironmentRequest struct { - ctx context.Context - APIService VersionAPI - serviceID string - versionID int32 + ctx context.Context + APIService VersionAPI + serviceID string + versionID int32 environmentName EnvironmentName } - // Execute calls the API using the request data configured. func (r APIDeactivateServiceVersionEnvironmentRequest) Execute() (*VersionResponse, *http.Response, error) { return r.APIService.DeactivateServiceVersionEnvironmentExecute(r) @@ -929,10 +917,10 @@ Deactivate the current version on a given environment, i.e. "staging" */ func (a *VersionAPIService) DeactivateServiceVersionEnvironment(ctx context.Context, serviceID string, versionID int32, environmentName EnvironmentName) APIDeactivateServiceVersionEnvironmentRequest { return APIDeactivateServiceVersionEnvironmentRequest{ - APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, environmentName: environmentName, } } @@ -941,10 +929,10 @@ func (a *VersionAPIService) DeactivateServiceVersionEnvironment(ctx context.Cont // @return VersionResponse func (a *VersionAPIService) DeactivateServiceVersionEnvironmentExecute(r APIDeactivateServiceVersionEnvironmentRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.DeactivateServiceVersionEnvironment") @@ -1026,7 +1014,6 @@ func (a *VersionAPIService) DeactivateServiceVersionEnvironmentExecute(r APIDeac return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1045,13 +1032,12 @@ func (a *VersionAPIService) DeactivateServiceVersionEnvironmentExecute(r APIDeac // APIGetServiceVersionRequest represents a request for the resource. type APIGetServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIGetServiceVersionRequest) Execute() (*VersionResponse, *http.Response, error) { return r.APIService.GetServiceVersionExecute(r) @@ -1070,9 +1056,9 @@ Get the version for a particular service. func (a *VersionAPIService) GetServiceVersion(ctx context.Context, serviceID string, versionID int32) APIGetServiceVersionRequest { return APIGetServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1080,10 +1066,10 @@ func (a *VersionAPIService) GetServiceVersion(ctx context.Context, serviceID str // @return VersionResponse func (a *VersionAPIService) GetServiceVersionExecute(r APIGetServiceVersionRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.GetServiceVersion") @@ -1164,7 +1150,6 @@ func (a *VersionAPIService) GetServiceVersionExecute(r APIGetServiceVersionReque return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1183,12 +1168,11 @@ func (a *VersionAPIService) GetServiceVersionExecute(r APIGetServiceVersionReque // APIListServiceVersionsRequest represents a request for the resource. type APIListServiceVersionsRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string + serviceID string } - // Execute calls the API using the request data configured. func (r APIListServiceVersionsRequest) Execute() ([]VersionResponse, *http.Response, error) { return r.APIService.ListServiceVersionsExecute(r) @@ -1206,8 +1190,8 @@ List the versions for a particular service. func (a *VersionAPIService) ListServiceVersions(ctx context.Context, serviceID string) APIListServiceVersionsRequest { return APIListServiceVersionsRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, + ctx: ctx, + serviceID: serviceID, } } @@ -1215,10 +1199,10 @@ func (a *VersionAPIService) ListServiceVersions(ctx context.Context, serviceID s // @return []VersionResponse func (a *VersionAPIService) ListServiceVersionsExecute(r APIListServiceVersionsRequest) ([]VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue []VersionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.ListServiceVersions") @@ -1298,7 +1282,6 @@ func (a *VersionAPIService) ListServiceVersionsExecute(r APIListServiceVersionsR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1317,13 +1300,12 @@ func (a *VersionAPIService) ListServiceVersionsExecute(r APIListServiceVersionsR // APILockServiceVersionRequest represents a request for the resource. type APILockServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APILockServiceVersionRequest) Execute() (*Version, *http.Response, error) { return r.APIService.LockServiceVersionExecute(r) @@ -1342,9 +1324,9 @@ Locks the specified version. func (a *VersionAPIService) LockServiceVersion(ctx context.Context, serviceID string, versionID int32) APILockServiceVersionRequest { return APILockServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1352,10 +1334,10 @@ func (a *VersionAPIService) LockServiceVersion(ctx context.Context, serviceID st // @return Version func (a *VersionAPIService) LockServiceVersionExecute(r APILockServiceVersionRequest) (*Version, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *Version + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *Version ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.LockServiceVersion") @@ -1436,7 +1418,6 @@ func (a *VersionAPIService) LockServiceVersionExecute(r APILockServiceVersionReq return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1455,17 +1436,17 @@ func (a *VersionAPIService) LockServiceVersionExecute(r APILockServiceVersionReq // APIUpdateServiceVersionRequest represents a request for the resource. type APIUpdateServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 - active *bool - comment *string - deployed *bool - locked *bool - number *int32 - staging *bool - testing *bool + serviceID string + versionID int32 + active *bool + comment *string + deployed *bool + locked *bool + number *int32 + staging *bool + testing *bool } // Active Whether this is the active version or not. @@ -1473,31 +1454,37 @@ func (r *APIUpdateServiceVersionRequest) Active(active bool) *APIUpdateServiceVe r.active = &active return r } + // Comment A freeform descriptive note. func (r *APIUpdateServiceVersionRequest) Comment(comment string) *APIUpdateServiceVersionRequest { r.comment = &comment return r } + // Deployed Unused at this time. func (r *APIUpdateServiceVersionRequest) Deployed(deployed bool) *APIUpdateServiceVersionRequest { r.deployed = &deployed return r } + // Locked Whether this version is locked or not. Objects can not be added or edited on locked versions. func (r *APIUpdateServiceVersionRequest) Locked(locked bool) *APIUpdateServiceVersionRequest { r.locked = &locked return r } + // Number The number of this version. func (r *APIUpdateServiceVersionRequest) Number(number int32) *APIUpdateServiceVersionRequest { r.number = &number return r } + // Staging Unused at this time. func (r *APIUpdateServiceVersionRequest) Staging(staging bool) *APIUpdateServiceVersionRequest { r.staging = &staging return r } + // Testing Unused at this time. func (r *APIUpdateServiceVersionRequest) Testing(testing bool) *APIUpdateServiceVersionRequest { r.testing = &testing @@ -1522,9 +1509,9 @@ Update a particular version for a particular service. func (a *VersionAPIService) UpdateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIUpdateServiceVersionRequest { return APIUpdateServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1532,10 +1519,10 @@ func (a *VersionAPIService) UpdateServiceVersion(ctx context.Context, serviceID // @return VersionResponse func (a *VersionAPIService) UpdateServiceVersionExecute(r APIUpdateServiceVersionRequest) (*VersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *VersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *VersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.UpdateServiceVersion") @@ -1637,7 +1624,6 @@ func (a *VersionAPIService) UpdateServiceVersionExecute(r APIUpdateServiceVersio return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1656,13 +1642,12 @@ func (a *VersionAPIService) UpdateServiceVersionExecute(r APIUpdateServiceVersio // APIValidateServiceVersionRequest represents a request for the resource. type APIValidateServiceVersionRequest struct { - ctx context.Context + ctx context.Context APIService VersionAPI - serviceID string - versionID int32 + serviceID string + versionID int32 } - // Execute calls the API using the request data configured. func (r APIValidateServiceVersionRequest) Execute() (*InlineResponse200, *http.Response, error) { return r.APIService.ValidateServiceVersionExecute(r) @@ -1681,9 +1666,9 @@ Validate the version for a particular service and version. func (a *VersionAPIService) ValidateServiceVersion(ctx context.Context, serviceID string, versionID int32) APIValidateServiceVersionRequest { return APIValidateServiceVersionRequest{ APIService: a, - ctx: ctx, - serviceID: serviceID, - versionID: versionID, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, } } @@ -1691,10 +1676,10 @@ func (a *VersionAPIService) ValidateServiceVersion(ctx context.Context, serviceI // @return InlineResponse200 func (a *VersionAPIService) ValidateServiceVersionExecute(r APIValidateServiceVersionRequest) (*InlineResponse200, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *InlineResponse200 + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse200 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionAPIService.ValidateServiceVersion") @@ -1775,7 +1760,6 @@ func (a *VersionAPIService) ValidateServiceVersionExecute(r APIValidateServiceVe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_active_rules.go b/fastly/api_waf_active_rules.go index 2ea7073..02ecb0b 100644 --- a/fastly/api_waf_active_rules.go +++ b/fastly/api_waf_active_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type WafActiveRulesAPI interface { /* - BulkDeleteWafActiveRules Delete multiple active rules from a WAF + BulkDeleteWafActiveRules Delete multiple active rules from a WAF - Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request. + Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @return APIBulkDeleteWafActiveRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APIBulkDeleteWafActiveRulesRequest - Deprecated + Deprecated */ BulkDeleteWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkDeleteWafActiveRulesRequest @@ -50,16 +49,16 @@ type WafActiveRulesAPI interface { BulkDeleteWafActiveRulesExecute(r APIBulkDeleteWafActiveRulesRequest) (*http.Response, error) /* - BulkUpdateWafActiveRules Update multiple active rules + BulkUpdateWafActiveRules Update multiple active rules - Bulk update all active rules on a [firewall version](https://www.fastly.com/documentation/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules. + Bulk update all active rules on a [firewall version](https://www.fastly.com/documentation/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @return APIBulkUpdateWafActiveRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APIBulkUpdateWafActiveRulesRequest - Deprecated + Deprecated */ BulkUpdateWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkUpdateWafActiveRulesRequest @@ -68,16 +67,16 @@ type WafActiveRulesAPI interface { BulkUpdateWafActiveRulesExecute(r APIBulkUpdateWafActiveRulesRequest) (*http.Response, error) /* - CreateWafActiveRule Add a rule to a WAF as an active rule + CreateWafActiveRule Add a rule to a WAF as an active rule - Create an active rule for a particular firewall version. + Create an active rule for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @return APICreateWafActiveRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APICreateWafActiveRuleRequest - Deprecated + Deprecated */ CreateWafActiveRule(ctx context.Context, firewallID string, versionID int32) APICreateWafActiveRuleRequest @@ -87,17 +86,17 @@ type WafActiveRulesAPI interface { CreateWafActiveRuleExecute(r APICreateWafActiveRuleRequest) (*WafActiveRuleCreationResponse, *http.Response, error) /* - CreateWafActiveRulesTag Create active rules by tag + CreateWafActiveRulesTag Create active rules by tag - Create active rules by tag. This endpoint will create active rules using the latest revision available for each rule. + Create active rules by tag. This endpoint will create active rules using the latest revision available for each rule. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @param wafTagName Name of the tag. - @return APICreateWafActiveRulesTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @param wafTagName Name of the tag. + @return APICreateWafActiveRulesTagRequest - Deprecated + Deprecated */ CreateWafActiveRulesTag(ctx context.Context, firewallID string, versionID int32, wafTagName string) APICreateWafActiveRulesTagRequest @@ -106,17 +105,17 @@ type WafActiveRulesAPI interface { CreateWafActiveRulesTagExecute(r APICreateWafActiveRulesTagRequest) (*http.Response, error) /* - DeleteWafActiveRule Delete an active rule + DeleteWafActiveRule Delete an active rule - Delete an active rule for a particular firewall version. + Delete an active rule for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIDeleteWafActiveRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIDeleteWafActiveRuleRequest - Deprecated + Deprecated */ DeleteWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIDeleteWafActiveRuleRequest @@ -125,17 +124,17 @@ type WafActiveRulesAPI interface { DeleteWafActiveRuleExecute(r APIDeleteWafActiveRuleRequest) (*http.Response, error) /* - GetWafActiveRule Get an active WAF rule object + GetWafActiveRule Get an active WAF rule object - Get a specific active rule object. Includes details of the rule revision associated with the active rule object by default. + Get a specific active rule object. Includes details of the rule revision associated with the active rule object by default. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetWafActiveRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetWafActiveRuleRequest - Deprecated + Deprecated */ GetWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIGetWafActiveRuleRequest @@ -145,16 +144,16 @@ type WafActiveRulesAPI interface { GetWafActiveRuleExecute(r APIGetWafActiveRuleRequest) (*WafActiveRuleResponse, *http.Response, error) /* - ListWafActiveRules List active rules on a WAF + ListWafActiveRules List active rules on a WAF - List all active rules for a particular firewall version. + List all active rules for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @return APIListWafActiveRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APIListWafActiveRulesRequest - Deprecated + Deprecated */ ListWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIListWafActiveRulesRequest @@ -164,17 +163,17 @@ type WafActiveRulesAPI interface { ListWafActiveRulesExecute(r APIListWafActiveRulesRequest) (*WafActiveRulesResponse, *http.Response, error) /* - UpdateWafActiveRule Update an active rule + UpdateWafActiveRule Update an active rule - Update an active rule's status for a particular firewall version. + Update an active rule's status for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param versionID Integer identifying a service version. - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIUpdateWafActiveRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIUpdateWafActiveRuleRequest - Deprecated + Deprecated */ UpdateWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIUpdateWafActiveRuleRequest @@ -189,10 +188,10 @@ type WafActiveRulesAPIService service // APIBulkDeleteWafActiveRulesRequest represents a request for the resource. type APIBulkDeleteWafActiveRulesRequest struct { - ctx context.Context - APIService WafActiveRulesAPI - firewallID string - versionID int32 + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 requestBody *map[string]map[string]any } @@ -222,9 +221,9 @@ Deprecated func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkDeleteWafActiveRulesRequest { return APIBulkDeleteWafActiveRulesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, + versionID: versionID, } } @@ -232,9 +231,9 @@ func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRules(ctx context.Context, // Deprecated func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRulesExecute(r APIBulkDeleteWafActiveRulesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.BulkDeleteWafActiveRules") @@ -308,7 +307,6 @@ func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRulesExecute(r APIBulkDele return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -327,11 +325,11 @@ func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRulesExecute(r APIBulkDele // APIBulkUpdateWafActiveRulesRequest represents a request for the resource. type APIBulkUpdateWafActiveRulesRequest struct { - ctx context.Context + ctx context.Context APIService WafActiveRulesAPI firewallID string - versionID int32 - body *WafActiveRuleData + versionID int32 + body *WafActiveRuleData } // Body returns a pointer to a request. @@ -360,9 +358,9 @@ Deprecated func (a *WafActiveRulesAPIService) BulkUpdateWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkUpdateWafActiveRulesRequest { return APIBulkUpdateWafActiveRulesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, + versionID: versionID, } } @@ -370,9 +368,9 @@ func (a *WafActiveRulesAPIService) BulkUpdateWafActiveRules(ctx context.Context, // Deprecated func (a *WafActiveRulesAPIService) BulkUpdateWafActiveRulesExecute(r APIBulkUpdateWafActiveRulesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.BulkUpdateWafActiveRules") @@ -446,7 +444,6 @@ func (a *WafActiveRulesAPIService) BulkUpdateWafActiveRulesExecute(r APIBulkUpda return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -465,10 +462,10 @@ func (a *WafActiveRulesAPIService) BulkUpdateWafActiveRulesExecute(r APIBulkUpda // APICreateWafActiveRuleRequest represents a request for the resource. type APICreateWafActiveRuleRequest struct { - ctx context.Context - APIService WafActiveRulesAPI - firewallID string - versionID int32 + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 wafActiveRule *WafActiveRule } @@ -498,9 +495,9 @@ Deprecated func (a *WafActiveRulesAPIService) CreateWafActiveRule(ctx context.Context, firewallID string, versionID int32) APICreateWafActiveRuleRequest { return APICreateWafActiveRuleRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, + versionID: versionID, } } @@ -509,10 +506,10 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRule(ctx context.Context, fire // Deprecated func (a *WafActiveRulesAPIService) CreateWafActiveRuleExecute(r APICreateWafActiveRuleRequest) (*WafActiveRuleCreationResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafActiveRuleCreationResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafActiveRuleCreationResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.CreateWafActiveRule") @@ -595,7 +592,6 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRuleExecute(r APICreateWafActi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -614,11 +610,11 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRuleExecute(r APICreateWafActi // APICreateWafActiveRulesTagRequest represents a request for the resource. type APICreateWafActiveRulesTagRequest struct { - ctx context.Context - APIService WafActiveRulesAPI - firewallID string - versionID int32 - wafTagName string + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 + wafTagName string wafActiveRule *WafActiveRule } @@ -649,9 +645,9 @@ Deprecated func (a *WafActiveRulesAPIService) CreateWafActiveRulesTag(ctx context.Context, firewallID string, versionID int32, wafTagName string) APICreateWafActiveRulesTagRequest { return APICreateWafActiveRulesTagRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, + versionID: versionID, wafTagName: wafTagName, } } @@ -660,9 +656,9 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRulesTag(ctx context.Context, // Deprecated func (a *WafActiveRulesAPIService) CreateWafActiveRulesTagExecute(r APICreateWafActiveRulesTagRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.CreateWafActiveRulesTag") @@ -737,7 +733,6 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRulesTagExecute(r APICreateWaf return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -756,14 +751,13 @@ func (a *WafActiveRulesAPIService) CreateWafActiveRulesTagExecute(r APICreateWaf // APIDeleteWafActiveRuleRequest represents a request for the resource. type APIDeleteWafActiveRuleRequest struct { - ctx context.Context + ctx context.Context APIService WafActiveRulesAPI firewallID string - versionID int32 - wafRuleID string + versionID int32 + wafRuleID string } - // Execute calls the API using the request data configured. func (r APIDeleteWafActiveRuleRequest) Execute() (*http.Response, error) { return r.APIService.DeleteWafActiveRuleExecute(r) @@ -785,10 +779,10 @@ Deprecated func (a *WafActiveRulesAPIService) DeleteWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIDeleteWafActiveRuleRequest { return APIDeleteWafActiveRuleRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, - wafRuleID: wafRuleID, + versionID: versionID, + wafRuleID: wafRuleID, } } @@ -796,9 +790,9 @@ func (a *WafActiveRulesAPIService) DeleteWafActiveRule(ctx context.Context, fire // Deprecated func (a *WafActiveRulesAPIService) DeleteWafActiveRuleExecute(r APIDeleteWafActiveRuleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.DeleteWafActiveRule") @@ -871,7 +865,6 @@ func (a *WafActiveRulesAPIService) DeleteWafActiveRuleExecute(r APIDeleteWafActi return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -890,15 +883,15 @@ func (a *WafActiveRulesAPIService) DeleteWafActiveRuleExecute(r APIDeleteWafActi // APIGetWafActiveRuleRequest represents a request for the resource. type APIGetWafActiveRuleRequest struct { - ctx context.Context + ctx context.Context APIService WafActiveRulesAPI firewallID string - versionID int32 - wafRuleID string - include *string + versionID int32 + wafRuleID string + include *string } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule_revision` and `waf_firewall_version`. +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule_revision` and `waf_firewall_version`. func (r *APIGetWafActiveRuleRequest) Include(include string) *APIGetWafActiveRuleRequest { r.include = &include return r @@ -925,10 +918,10 @@ Deprecated func (a *WafActiveRulesAPIService) GetWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIGetWafActiveRuleRequest { return APIGetWafActiveRuleRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, - wafRuleID: wafRuleID, + versionID: versionID, + wafRuleID: wafRuleID, } } @@ -937,10 +930,10 @@ func (a *WafActiveRulesAPIService) GetWafActiveRule(ctx context.Context, firewal // Deprecated func (a *WafActiveRulesAPIService) GetWafActiveRuleExecute(r APIGetWafActiveRuleRequest) (*WafActiveRuleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafActiveRuleResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafActiveRuleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.GetWafActiveRule") @@ -1025,7 +1018,6 @@ func (a *WafActiveRulesAPIService) GetWafActiveRuleExecute(r APIGetWafActiveRule return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1044,17 +1036,17 @@ func (a *WafActiveRulesAPIService) GetWafActiveRuleExecute(r APIGetWafActiveRule // APIListWafActiveRulesRequest represents a request for the resource. type APIListWafActiveRulesRequest struct { - ctx context.Context - APIService WafActiveRulesAPI - firewallID string - versionID int32 - filterStatus *string - filterWafRuleRevisionMessage *string + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 + filterStatus *string + filterWafRuleRevisionMessage *string filterWafRuleRevisionModsecRuleID *string - filterOutdated *string - include *string - pageNumber *int32 - pageSize *int32 + filterOutdated *string + include *string + pageNumber *int32 + pageSize *int32 } // FilterStatus Limit results to active rules with the specified status. @@ -1062,31 +1054,37 @@ func (r *APIListWafActiveRulesRequest) FilterStatus(filterStatus string) *APILis r.filterStatus = &filterStatus return r } + // FilterWafRuleRevisionMessage Limit results to active rules with the specified message. func (r *APIListWafActiveRulesRequest) FilterWafRuleRevisionMessage(filterWafRuleRevisionMessage string) *APIListWafActiveRulesRequest { r.filterWafRuleRevisionMessage = &filterWafRuleRevisionMessage return r } + // FilterWafRuleRevisionModsecRuleID Limit results to active rules that represent the specified ModSecurity modsec_rule_id. func (r *APIListWafActiveRulesRequest) FilterWafRuleRevisionModsecRuleID(filterWafRuleRevisionModsecRuleID string) *APIListWafActiveRulesRequest { r.filterWafRuleRevisionModsecRuleID = &filterWafRuleRevisionModsecRuleID return r } + // FilterOutdated Limit results to active rules referencing an outdated rule revision. func (r *APIListWafActiveRulesRequest) FilterOutdated(filterOutdated string) *APIListWafActiveRulesRequest { r.filterOutdated = &filterOutdated return r } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule_revision` and `waf_firewall_version`. + +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule_revision` and `waf_firewall_version`. func (r *APIListWafActiveRulesRequest) Include(include string) *APIListWafActiveRulesRequest { r.include = &include return r } + // PageNumber Current page. func (r *APIListWafActiveRulesRequest) PageNumber(pageNumber int32) *APIListWafActiveRulesRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafActiveRulesRequest) PageSize(pageSize int32) *APIListWafActiveRulesRequest { r.pageSize = &pageSize @@ -1113,9 +1111,9 @@ Deprecated func (a *WafActiveRulesAPIService) ListWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIListWafActiveRulesRequest { return APIListWafActiveRulesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, + versionID: versionID, } } @@ -1124,10 +1122,10 @@ func (a *WafActiveRulesAPIService) ListWafActiveRules(ctx context.Context, firew // Deprecated func (a *WafActiveRulesAPIService) ListWafActiveRulesExecute(r APIListWafActiveRulesRequest) (*WafActiveRulesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafActiveRulesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafActiveRulesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.ListWafActiveRules") @@ -1229,7 +1227,6 @@ func (a *WafActiveRulesAPIService) ListWafActiveRulesExecute(r APIListWafActiveR return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -1248,11 +1245,11 @@ func (a *WafActiveRulesAPIService) ListWafActiveRulesExecute(r APIListWafActiveR // APIUpdateWafActiveRuleRequest represents a request for the resource. type APIUpdateWafActiveRuleRequest struct { - ctx context.Context - APIService WafActiveRulesAPI - firewallID string - versionID int32 - wafRuleID string + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 + wafRuleID string wafActiveRule *WafActiveRule } @@ -1283,10 +1280,10 @@ Deprecated func (a *WafActiveRulesAPIService) UpdateWafActiveRule(ctx context.Context, firewallID string, versionID int32, wafRuleID string) APIUpdateWafActiveRuleRequest { return APIUpdateWafActiveRuleRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, - versionID: versionID, - wafRuleID: wafRuleID, + versionID: versionID, + wafRuleID: wafRuleID, } } @@ -1295,10 +1292,10 @@ func (a *WafActiveRulesAPIService) UpdateWafActiveRule(ctx context.Context, fire // Deprecated func (a *WafActiveRulesAPIService) UpdateWafActiveRuleExecute(r APIUpdateWafActiveRuleRequest) (*WafActiveRuleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafActiveRuleResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafActiveRuleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.UpdateWafActiveRule") @@ -1382,7 +1379,6 @@ func (a *WafActiveRulesAPIService) UpdateWafActiveRuleExecute(r APIUpdateWafActi return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_exclusions.go b/fastly/api_waf_exclusions.go index b95805e..4787767 100644 --- a/fastly/api_waf_exclusions.go +++ b/fastly/api_waf_exclusions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type WafExclusionsAPI interface { /* - CreateWafRuleExclusion Create a WAF rule exclusion + CreateWafRuleExclusion Create a WAF rule exclusion - Create a WAF exclusion for a particular firewall version. + Create a WAF exclusion for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APICreateWafRuleExclusionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APICreateWafRuleExclusionRequest - Deprecated + Deprecated */ CreateWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32) APICreateWafRuleExclusionRequest @@ -51,17 +50,17 @@ type WafExclusionsAPI interface { CreateWafRuleExclusionExecute(r APICreateWafRuleExclusionRequest) (*WafExclusionResponse, *http.Response, error) /* - DeleteWafRuleExclusion Delete a WAF rule exclusion + DeleteWafRuleExclusion Delete a WAF rule exclusion - Delete a WAF exclusion for a particular firewall version. + Delete a WAF exclusion for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @param exclusionNumber A numeric ID identifying a WAF exclusion. - @return APIDeleteWafRuleExclusionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @param exclusionNumber A numeric ID identifying a WAF exclusion. + @return APIDeleteWafRuleExclusionRequest - Deprecated + Deprecated */ DeleteWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIDeleteWafRuleExclusionRequest @@ -70,17 +69,17 @@ type WafExclusionsAPI interface { DeleteWafRuleExclusionExecute(r APIDeleteWafRuleExclusionRequest) (*http.Response, error) /* - GetWafRuleExclusion Get a WAF rule exclusion + GetWafRuleExclusion Get a WAF rule exclusion - Get a specific WAF exclusion object. + Get a specific WAF exclusion object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @param exclusionNumber A numeric ID identifying a WAF exclusion. - @return APIGetWafRuleExclusionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @param exclusionNumber A numeric ID identifying a WAF exclusion. + @return APIGetWafRuleExclusionRequest - Deprecated + Deprecated */ GetWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIGetWafRuleExclusionRequest @@ -90,16 +89,16 @@ type WafExclusionsAPI interface { GetWafRuleExclusionExecute(r APIGetWafRuleExclusionRequest) (*WafExclusionResponse, *http.Response, error) /* - ListWafRuleExclusions List WAF rule exclusions + ListWafRuleExclusions List WAF rule exclusions - List all exclusions for a particular firewall version. + List all exclusions for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APIListWafRuleExclusionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APIListWafRuleExclusionsRequest - Deprecated + Deprecated */ ListWafRuleExclusions(ctx context.Context, firewallID string, firewallVersionNumber int32) APIListWafRuleExclusionsRequest @@ -109,17 +108,17 @@ type WafExclusionsAPI interface { ListWafRuleExclusionsExecute(r APIListWafRuleExclusionsRequest) (*WafExclusionsResponse, *http.Response, error) /* - UpdateWafRuleExclusion Update a WAF rule exclusion + UpdateWafRuleExclusion Update a WAF rule exclusion - Update a WAF exclusion for a particular firewall version. + Update a WAF exclusion for a particular firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @param exclusionNumber A numeric ID identifying a WAF exclusion. - @return APIUpdateWafRuleExclusionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @param exclusionNumber A numeric ID identifying a WAF exclusion. + @return APIUpdateWafRuleExclusionRequest - Deprecated + Deprecated */ UpdateWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIUpdateWafRuleExclusionRequest @@ -134,11 +133,11 @@ type WafExclusionsAPIService service // APICreateWafRuleExclusionRequest represents a request for the resource. type APICreateWafRuleExclusionRequest struct { - ctx context.Context - APIService WafExclusionsAPI - firewallID string + ctx context.Context + APIService WafExclusionsAPI + firewallID string firewallVersionNumber int32 - wafExclusion *WafExclusion + wafExclusion *WafExclusion } // WafExclusion returns a pointer to a request. @@ -166,9 +165,9 @@ Deprecated */ func (a *WafExclusionsAPIService) CreateWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32) APICreateWafRuleExclusionRequest { return APICreateWafRuleExclusionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -178,10 +177,10 @@ func (a *WafExclusionsAPIService) CreateWafRuleExclusion(ctx context.Context, fi // Deprecated func (a *WafExclusionsAPIService) CreateWafRuleExclusionExecute(r APICreateWafRuleExclusionRequest) (*WafExclusionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafExclusionResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafExclusionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafExclusionsAPIService.CreateWafRuleExclusion") @@ -264,7 +263,6 @@ func (a *WafExclusionsAPIService) CreateWafRuleExclusionExecute(r APICreateWafRu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -283,14 +281,13 @@ func (a *WafExclusionsAPIService) CreateWafRuleExclusionExecute(r APICreateWafRu // APIDeleteWafRuleExclusionRequest represents a request for the resource. type APIDeleteWafRuleExclusionRequest struct { - ctx context.Context - APIService WafExclusionsAPI - firewallID string + ctx context.Context + APIService WafExclusionsAPI + firewallID string firewallVersionNumber int32 - exclusionNumber int32 + exclusionNumber int32 } - // Execute calls the API using the request data configured. func (r APIDeleteWafRuleExclusionRequest) Execute() (*http.Response, error) { return r.APIService.DeleteWafRuleExclusionExecute(r) @@ -311,11 +308,11 @@ Deprecated */ func (a *WafExclusionsAPIService) DeleteWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIDeleteWafRuleExclusionRequest { return APIDeleteWafRuleExclusionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, - exclusionNumber: exclusionNumber, + exclusionNumber: exclusionNumber, } } @@ -323,9 +320,9 @@ func (a *WafExclusionsAPIService) DeleteWafRuleExclusion(ctx context.Context, fi // Deprecated func (a *WafExclusionsAPIService) DeleteWafRuleExclusionExecute(r APIDeleteWafRuleExclusionRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafExclusionsAPIService.DeleteWafRuleExclusion") @@ -398,7 +395,6 @@ func (a *WafExclusionsAPIService) DeleteWafRuleExclusionExecute(r APIDeleteWafRu return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -417,14 +413,13 @@ func (a *WafExclusionsAPIService) DeleteWafRuleExclusionExecute(r APIDeleteWafRu // APIGetWafRuleExclusionRequest represents a request for the resource. type APIGetWafRuleExclusionRequest struct { - ctx context.Context - APIService WafExclusionsAPI - firewallID string + ctx context.Context + APIService WafExclusionsAPI + firewallID string firewallVersionNumber int32 - exclusionNumber int32 + exclusionNumber int32 } - // Execute calls the API using the request data configured. func (r APIGetWafRuleExclusionRequest) Execute() (*WafExclusionResponse, *http.Response, error) { return r.APIService.GetWafRuleExclusionExecute(r) @@ -445,11 +440,11 @@ Deprecated */ func (a *WafExclusionsAPIService) GetWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIGetWafRuleExclusionRequest { return APIGetWafRuleExclusionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, - exclusionNumber: exclusionNumber, + exclusionNumber: exclusionNumber, } } @@ -458,10 +453,10 @@ func (a *WafExclusionsAPIService) GetWafRuleExclusion(ctx context.Context, firew // Deprecated func (a *WafExclusionsAPIService) GetWafRuleExclusionExecute(r APIGetWafRuleExclusionRequest) (*WafExclusionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafExclusionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafExclusionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafExclusionsAPIService.GetWafRuleExclusion") @@ -543,7 +538,6 @@ func (a *WafExclusionsAPIService) GetWafRuleExclusionExecute(r APIGetWafRuleExcl return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -562,16 +556,16 @@ func (a *WafExclusionsAPIService) GetWafRuleExclusionExecute(r APIGetWafRuleExcl // APIListWafRuleExclusionsRequest represents a request for the resource. type APIListWafRuleExclusionsRequest struct { - ctx context.Context - APIService WafExclusionsAPI - firewallID string - firewallVersionNumber int32 - filterExclusionType *string - filterName *string + ctx context.Context + APIService WafExclusionsAPI + firewallID string + firewallVersionNumber int32 + filterExclusionType *string + filterName *string filterWafRulesModsecRuleID *int32 - pageNumber *int32 - pageSize *int32 - include *string + pageNumber *int32 + pageSize *int32 + include *string } // FilterExclusionType Filters the results based on this exclusion type. @@ -579,27 +573,32 @@ func (r *APIListWafRuleExclusionsRequest) FilterExclusionType(filterExclusionTyp r.filterExclusionType = &filterExclusionType return r } + // FilterName Filters the results based on name. func (r *APIListWafRuleExclusionsRequest) FilterName(filterName string) *APIListWafRuleExclusionsRequest { r.filterName = &filterName return r } + // FilterWafRulesModsecRuleID Filters the results based on this ModSecurity rule ID. func (r *APIListWafRuleExclusionsRequest) FilterWafRulesModsecRuleID(filterWafRulesModsecRuleID int32) *APIListWafRuleExclusionsRequest { r.filterWafRulesModsecRuleID = &filterWafRulesModsecRuleID return r } + // PageNumber Current page. func (r *APIListWafRuleExclusionsRequest) PageNumber(pageNumber int32) *APIListWafRuleExclusionsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafRuleExclusionsRequest) PageSize(pageSize int32) *APIListWafRuleExclusionsRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rules` and `waf_rule_revisions`. + +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rules` and `waf_rule_revisions`. func (r *APIListWafRuleExclusionsRequest) Include(include string) *APIListWafRuleExclusionsRequest { r.include = &include return r @@ -624,9 +623,9 @@ Deprecated */ func (a *WafExclusionsAPIService) ListWafRuleExclusions(ctx context.Context, firewallID string, firewallVersionNumber int32) APIListWafRuleExclusionsRequest { return APIListWafRuleExclusionsRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -636,10 +635,10 @@ func (a *WafExclusionsAPIService) ListWafRuleExclusions(ctx context.Context, fir // Deprecated func (a *WafExclusionsAPIService) ListWafRuleExclusionsExecute(r APIListWafRuleExclusionsRequest) (*WafExclusionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafExclusionsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafExclusionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafExclusionsAPIService.ListWafRuleExclusions") @@ -738,7 +737,6 @@ func (a *WafExclusionsAPIService) ListWafRuleExclusionsExecute(r APIListWafRuleE return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -757,12 +755,12 @@ func (a *WafExclusionsAPIService) ListWafRuleExclusionsExecute(r APIListWafRuleE // APIUpdateWafRuleExclusionRequest represents a request for the resource. type APIUpdateWafRuleExclusionRequest struct { - ctx context.Context - APIService WafExclusionsAPI - firewallID string + ctx context.Context + APIService WafExclusionsAPI + firewallID string firewallVersionNumber int32 - exclusionNumber int32 - wafExclusion *WafExclusion + exclusionNumber int32 + wafExclusion *WafExclusion } // WafExclusion returns a pointer to a request. @@ -791,11 +789,11 @@ Deprecated */ func (a *WafExclusionsAPIService) UpdateWafRuleExclusion(ctx context.Context, firewallID string, firewallVersionNumber int32, exclusionNumber int32) APIUpdateWafRuleExclusionRequest { return APIUpdateWafRuleExclusionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, - exclusionNumber: exclusionNumber, + exclusionNumber: exclusionNumber, } } @@ -804,10 +802,10 @@ func (a *WafExclusionsAPIService) UpdateWafRuleExclusion(ctx context.Context, fi // Deprecated func (a *WafExclusionsAPIService) UpdateWafRuleExclusionExecute(r APIUpdateWafRuleExclusionRequest) (*WafExclusionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafExclusionResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafExclusionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafExclusionsAPIService.UpdateWafRuleExclusion") @@ -891,7 +889,6 @@ func (a *WafExclusionsAPIService) UpdateWafRuleExclusionExecute(r APIUpdateWafRu return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_firewall_versions.go b/fastly/api_waf_firewall_versions.go index 8d241ef..c0e9238 100644 --- a/fastly/api_waf_firewall_versions.go +++ b/fastly/api_waf_firewall_versions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type WafFirewallVersionsAPI interface { /* - CloneWafFirewallVersion Clone a firewall version + CloneWafFirewallVersion Clone a firewall version - Clone a specific, existing firewall version into a new, draft firewall version. + Clone a specific, existing firewall version into a new, draft firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APICloneWafFirewallVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APICloneWafFirewallVersionRequest - Deprecated + Deprecated */ CloneWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APICloneWafFirewallVersionRequest @@ -51,15 +50,15 @@ type WafFirewallVersionsAPI interface { CloneWafFirewallVersionExecute(r APICloneWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) /* - CreateWafFirewallVersion Create a firewall version + CreateWafFirewallVersion Create a firewall version - Create a new, draft firewall version. + Create a new, draft firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @return APICreateWafFirewallVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @return APICreateWafFirewallVersionRequest - Deprecated + Deprecated */ CreateWafFirewallVersion(ctx context.Context, firewallID string) APICreateWafFirewallVersionRequest @@ -69,16 +68,16 @@ type WafFirewallVersionsAPI interface { CreateWafFirewallVersionExecute(r APICreateWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) /* - DeployActivateWafFirewallVersion Deploy or activate a firewall version + DeployActivateWafFirewallVersion Deploy or activate a firewall version - Deploy or activate a specific firewall version. If a firewall has been disabled, deploying a firewall version will automatically enable the firewall again. + Deploy or activate a specific firewall version. If a firewall has been disabled, deploying a firewall version will automatically enable the firewall again. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APIDeployActivateWafFirewallVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APIDeployActivateWafFirewallVersionRequest - Deprecated + Deprecated */ DeployActivateWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIDeployActivateWafFirewallVersionRequest @@ -88,16 +87,16 @@ type WafFirewallVersionsAPI interface { DeployActivateWafFirewallVersionExecute(r APIDeployActivateWafFirewallVersionRequest) (map[string]any, *http.Response, error) /* - GetWafFirewallVersion Get a firewall version + GetWafFirewallVersion Get a firewall version - Get details about a specific firewall version. + Get details about a specific firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APIGetWafFirewallVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APIGetWafFirewallVersionRequest - Deprecated + Deprecated */ GetWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIGetWafFirewallVersionRequest @@ -107,15 +106,15 @@ type WafFirewallVersionsAPI interface { GetWafFirewallVersionExecute(r APIGetWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) /* - ListWafFirewallVersions List firewall versions + ListWafFirewallVersions List firewall versions - Get a list of firewall versions associated with a specific firewall. + Get a list of firewall versions associated with a specific firewall. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @return APIListWafFirewallVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @return APIListWafFirewallVersionsRequest - Deprecated + Deprecated */ ListWafFirewallVersions(ctx context.Context, firewallID string) APIListWafFirewallVersionsRequest @@ -125,16 +124,16 @@ type WafFirewallVersionsAPI interface { ListWafFirewallVersionsExecute(r APIListWafFirewallVersionsRequest) (*WafFirewallVersionsResponse, *http.Response, error) /* - UpdateWafFirewallVersion Update a firewall version + UpdateWafFirewallVersion Update a firewall version - Update a specific firewall version. + Update a specific firewall version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @param firewallVersionNumber Integer identifying a WAF firewall version. - @return APIUpdateWafFirewallVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param firewallVersionNumber Integer identifying a WAF firewall version. + @return APIUpdateWafFirewallVersionRequest - Deprecated + Deprecated */ UpdateWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIUpdateWafFirewallVersionRequest @@ -149,13 +148,12 @@ type WafFirewallVersionsAPIService service // APICloneWafFirewallVersionRequest represents a request for the resource. type APICloneWafFirewallVersionRequest struct { - ctx context.Context - APIService WafFirewallVersionsAPI - firewallID string + ctx context.Context + APIService WafFirewallVersionsAPI + firewallID string firewallVersionNumber int32 } - // Execute calls the API using the request data configured. func (r APICloneWafFirewallVersionRequest) Execute() (*WafFirewallVersionResponse, *http.Response, error) { return r.APIService.CloneWafFirewallVersionExecute(r) @@ -175,9 +173,9 @@ Deprecated */ func (a *WafFirewallVersionsAPIService) CloneWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APICloneWafFirewallVersionRequest { return APICloneWafFirewallVersionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -187,10 +185,10 @@ func (a *WafFirewallVersionsAPIService) CloneWafFirewallVersion(ctx context.Cont // Deprecated func (a *WafFirewallVersionsAPIService) CloneWafFirewallVersionExecute(r APICloneWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallVersionResponse + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallVersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.CloneWafFirewallVersion") @@ -271,7 +269,6 @@ func (a *WafFirewallVersionsAPIService) CloneWafFirewallVersionExecute(r APIClon return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -290,9 +287,9 @@ func (a *WafFirewallVersionsAPIService) CloneWafFirewallVersionExecute(r APIClon // APICreateWafFirewallVersionRequest represents a request for the resource. type APICreateWafFirewallVersionRequest struct { - ctx context.Context - APIService WafFirewallVersionsAPI - firewallID string + ctx context.Context + APIService WafFirewallVersionsAPI + firewallID string wafFirewallVersion *WafFirewallVersion } @@ -321,7 +318,7 @@ Deprecated func (a *WafFirewallVersionsAPIService) CreateWafFirewallVersion(ctx context.Context, firewallID string) APICreateWafFirewallVersionRequest { return APICreateWafFirewallVersionRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -331,10 +328,10 @@ func (a *WafFirewallVersionsAPIService) CreateWafFirewallVersion(ctx context.Con // Deprecated func (a *WafFirewallVersionsAPIService) CreateWafFirewallVersionExecute(r APICreateWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallVersionResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallVersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.CreateWafFirewallVersion") @@ -416,7 +413,6 @@ func (a *WafFirewallVersionsAPIService) CreateWafFirewallVersionExecute(r APICre return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -435,13 +431,12 @@ func (a *WafFirewallVersionsAPIService) CreateWafFirewallVersionExecute(r APICre // APIDeployActivateWafFirewallVersionRequest represents a request for the resource. type APIDeployActivateWafFirewallVersionRequest struct { - ctx context.Context - APIService WafFirewallVersionsAPI - firewallID string + ctx context.Context + APIService WafFirewallVersionsAPI + firewallID string firewallVersionNumber int32 } - // Execute calls the API using the request data configured. func (r APIDeployActivateWafFirewallVersionRequest) Execute() (map[string]any, *http.Response, error) { return r.APIService.DeployActivateWafFirewallVersionExecute(r) @@ -461,9 +456,9 @@ Deprecated */ func (a *WafFirewallVersionsAPIService) DeployActivateWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIDeployActivateWafFirewallVersionRequest { return APIDeployActivateWafFirewallVersionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -473,10 +468,10 @@ func (a *WafFirewallVersionsAPIService) DeployActivateWafFirewallVersion(ctx con // Deprecated func (a *WafFirewallVersionsAPIService) DeployActivateWafFirewallVersionExecute(r APIDeployActivateWafFirewallVersionRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody any - formFiles []formFile - localVarReturnValue map[string]any + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.DeployActivateWafFirewallVersion") @@ -557,7 +552,6 @@ func (a *WafFirewallVersionsAPIService) DeployActivateWafFirewallVersionExecute( return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -576,14 +570,14 @@ func (a *WafFirewallVersionsAPIService) DeployActivateWafFirewallVersionExecute( // APIGetWafFirewallVersionRequest represents a request for the resource. type APIGetWafFirewallVersionRequest struct { - ctx context.Context - APIService WafFirewallVersionsAPI - firewallID string + ctx context.Context + APIService WafFirewallVersionsAPI + firewallID string firewallVersionNumber int32 - include *string + include *string } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_firewall` and `waf_active_rules`. +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_firewall` and `waf_active_rules`. func (r *APIGetWafFirewallVersionRequest) Include(include string) *APIGetWafFirewallVersionRequest { r.include = &include return r @@ -608,9 +602,9 @@ Deprecated */ func (a *WafFirewallVersionsAPIService) GetWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIGetWafFirewallVersionRequest { return APIGetWafFirewallVersionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -620,10 +614,10 @@ func (a *WafFirewallVersionsAPIService) GetWafFirewallVersion(ctx context.Contex // Deprecated func (a *WafFirewallVersionsAPIService) GetWafFirewallVersionExecute(r APIGetWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallVersionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallVersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.GetWafFirewallVersion") @@ -707,7 +701,6 @@ func (a *WafFirewallVersionsAPIService) GetWafFirewallVersionExecute(r APIGetWaf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -726,12 +719,12 @@ func (a *WafFirewallVersionsAPIService) GetWafFirewallVersionExecute(r APIGetWaf // APIListWafFirewallVersionsRequest represents a request for the resource. type APIListWafFirewallVersionsRequest struct { - ctx context.Context + ctx context.Context APIService WafFirewallVersionsAPI firewallID string - include *string + include *string pageNumber *int32 - pageSize *int32 + pageSize *int32 } // Include Include relationships. Optional. @@ -739,11 +732,13 @@ func (r *APIListWafFirewallVersionsRequest) Include(include string) *APIListWafF r.include = &include return r } + // PageNumber Current page. func (r *APIListWafFirewallVersionsRequest) PageNumber(pageNumber int32) *APIListWafFirewallVersionsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafFirewallVersionsRequest) PageSize(pageSize int32) *APIListWafFirewallVersionsRequest { r.pageSize = &pageSize @@ -769,7 +764,7 @@ Deprecated func (a *WafFirewallVersionsAPIService) ListWafFirewallVersions(ctx context.Context, firewallID string) APIListWafFirewallVersionsRequest { return APIListWafFirewallVersionsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -779,10 +774,10 @@ func (a *WafFirewallVersionsAPIService) ListWafFirewallVersions(ctx context.Cont // Deprecated func (a *WafFirewallVersionsAPIService) ListWafFirewallVersionsExecute(r APIListWafFirewallVersionsRequest) (*WafFirewallVersionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallVersionsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallVersionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.ListWafFirewallVersions") @@ -871,7 +866,6 @@ func (a *WafFirewallVersionsAPIService) ListWafFirewallVersionsExecute(r APIList return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -890,11 +884,11 @@ func (a *WafFirewallVersionsAPIService) ListWafFirewallVersionsExecute(r APIList // APIUpdateWafFirewallVersionRequest represents a request for the resource. type APIUpdateWafFirewallVersionRequest struct { - ctx context.Context - APIService WafFirewallVersionsAPI - firewallID string + ctx context.Context + APIService WafFirewallVersionsAPI + firewallID string firewallVersionNumber int32 - wafFirewallVersion *WafFirewallVersion + wafFirewallVersion *WafFirewallVersion } // WafFirewallVersion returns a pointer to a request. @@ -922,9 +916,9 @@ Deprecated */ func (a *WafFirewallVersionsAPIService) UpdateWafFirewallVersion(ctx context.Context, firewallID string, firewallVersionNumber int32) APIUpdateWafFirewallVersionRequest { return APIUpdateWafFirewallVersionRequest{ - APIService: a, - ctx: ctx, - firewallID: firewallID, + APIService: a, + ctx: ctx, + firewallID: firewallID, firewallVersionNumber: firewallVersionNumber, } } @@ -934,10 +928,10 @@ func (a *WafFirewallVersionsAPIService) UpdateWafFirewallVersion(ctx context.Con // Deprecated func (a *WafFirewallVersionsAPIService) UpdateWafFirewallVersionExecute(r APIUpdateWafFirewallVersionRequest) (*WafFirewallVersionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallVersionResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallVersionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallVersionsAPIService.UpdateWafFirewallVersion") @@ -1020,7 +1014,6 @@ func (a *WafFirewallVersionsAPIService) UpdateWafFirewallVersionExecute(r APIUpd return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_firewalls.go b/fastly/api_waf_firewalls.go index a35b8d7..50145db 100644 --- a/fastly/api_waf_firewalls.go +++ b/fastly/api_waf_firewalls.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type WafFirewallsAPI interface { /* - CreateWafFirewall Create a firewall + CreateWafFirewall Create a firewall - Create a firewall object for a particular service and service version using a defined `prefetch_condition` and `response`. If the `prefetch_condition` or the `response` is missing from the request body, Fastly will generate a default object on your service. + Create a firewall object for a particular service and service version using a defined `prefetch_condition` and `response`. If the `prefetch_condition` or the `response` is missing from the request body, Fastly will generate a default object on your service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APICreateWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateWafFirewallRequest - Deprecated + Deprecated */ CreateWafFirewall(ctx context.Context) APICreateWafFirewallRequest @@ -50,16 +49,16 @@ type WafFirewallsAPI interface { CreateWafFirewallExecute(r APICreateWafFirewallRequest) (*WafFirewallResponse, *http.Response, error) /* - DeleteWafFirewall Delete a firewall + DeleteWafFirewall Delete a firewall - Delete the firewall object for a particular service and service version. + Delete the firewall object for a particular service and service version. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @return APIDeleteWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @return APIDeleteWafFirewallRequest - Deprecated + Deprecated */ DeleteWafFirewall(ctx context.Context, firewallID string) APIDeleteWafFirewallRequest @@ -68,15 +67,15 @@ type WafFirewallsAPI interface { DeleteWafFirewallExecute(r APIDeleteWafFirewallRequest) (*http.Response, error) /* - GetWafFirewall Get a firewall + GetWafFirewall Get a firewall - Get a specific firewall object. + Get a specific firewall object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @return APIGetWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @return APIGetWafFirewallRequest - Deprecated + Deprecated */ GetWafFirewall(ctx context.Context, firewallID string) APIGetWafFirewallRequest @@ -86,14 +85,14 @@ type WafFirewallsAPI interface { GetWafFirewallExecute(r APIGetWafFirewallRequest) (*WafFirewallResponse, *http.Response, error) /* - ListWafFirewalls List firewalls + ListWafFirewalls List firewalls - List all firewall objects. + List all firewall objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListWafFirewallsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafFirewallsRequest - Deprecated + Deprecated */ ListWafFirewalls(ctx context.Context) APIListWafFirewallsRequest @@ -103,16 +102,16 @@ type WafFirewallsAPI interface { ListWafFirewallsExecute(r APIListWafFirewallsRequest) (*WafFirewallsResponse, *http.Response, error) /* - UpdateWafFirewall Update a firewall + UpdateWafFirewall Update a firewall - Update a firewall object for a particular service and service version. Specifying a `service_version_number` is required. + Update a firewall object for a particular service and service version. Specifying a `service_version_number` is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param firewallID Alphanumeric string identifying a WAF Firewall. - @return APIUpdateWafFirewallRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @return APIUpdateWafFirewallRequest - Deprecated + Deprecated */ UpdateWafFirewall(ctx context.Context, firewallID string) APIUpdateWafFirewallRequest @@ -127,8 +126,8 @@ type WafFirewallsAPIService service // APICreateWafFirewallRequest represents a request for the resource. type APICreateWafFirewallRequest struct { - ctx context.Context - APIService WafFirewallsAPI + ctx context.Context + APIService WafFirewallsAPI wafFirewall *WafFirewall } @@ -157,7 +156,7 @@ Deprecated func (a *WafFirewallsAPIService) CreateWafFirewall(ctx context.Context) APICreateWafFirewallRequest { return APICreateWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -166,10 +165,10 @@ func (a *WafFirewallsAPIService) CreateWafFirewall(ctx context.Context) APICreat // Deprecated func (a *WafFirewallsAPIService) CreateWafFirewallExecute(r APICreateWafFirewallRequest) (*WafFirewallResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallsAPIService.CreateWafFirewall") @@ -250,7 +249,6 @@ func (a *WafFirewallsAPIService) CreateWafFirewallExecute(r APICreateWafFirewall return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -269,9 +267,9 @@ func (a *WafFirewallsAPIService) CreateWafFirewallExecute(r APICreateWafFirewall // APIDeleteWafFirewallRequest represents a request for the resource. type APIDeleteWafFirewallRequest struct { - ctx context.Context - APIService WafFirewallsAPI - firewallID string + ctx context.Context + APIService WafFirewallsAPI + firewallID string wafFirewall *WafFirewall } @@ -301,7 +299,7 @@ Deprecated func (a *WafFirewallsAPIService) DeleteWafFirewall(ctx context.Context, firewallID string) APIDeleteWafFirewallRequest { return APIDeleteWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -310,9 +308,9 @@ func (a *WafFirewallsAPIService) DeleteWafFirewall(ctx context.Context, firewall // Deprecated func (a *WafFirewallsAPIService) DeleteWafFirewallExecute(r APIDeleteWafFirewallRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody any - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallsAPIService.DeleteWafFirewall") @@ -385,7 +383,6 @@ func (a *WafFirewallsAPIService) DeleteWafFirewallExecute(r APIDeleteWafFirewall return localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -404,11 +401,11 @@ func (a *WafFirewallsAPIService) DeleteWafFirewallExecute(r APIDeleteWafFirewall // APIGetWafFirewallRequest represents a request for the resource. type APIGetWafFirewallRequest struct { - ctx context.Context - APIService WafFirewallsAPI - firewallID string + ctx context.Context + APIService WafFirewallsAPI + firewallID string filterServiceVersionNumber *string - include *string + include *string } // FilterServiceVersionNumber Limit the results returned to a specific service version. @@ -416,6 +413,7 @@ func (r *APIGetWafFirewallRequest) FilterServiceVersionNumber(filterServiceVersi r.filterServiceVersionNumber = &filterServiceVersionNumber return r } + // Include Include related objects. Optional. func (r *APIGetWafFirewallRequest) Include(include string) *APIGetWafFirewallRequest { r.include = &include @@ -441,7 +439,7 @@ Deprecated func (a *WafFirewallsAPIService) GetWafFirewall(ctx context.Context, firewallID string) APIGetWafFirewallRequest { return APIGetWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -451,10 +449,10 @@ func (a *WafFirewallsAPIService) GetWafFirewall(ctx context.Context, firewallID // Deprecated func (a *WafFirewallsAPIService) GetWafFirewallExecute(r APIGetWafFirewallRequest) (*WafFirewallResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallsAPIService.GetWafFirewall") @@ -540,7 +538,6 @@ func (a *WafFirewallsAPIService) GetWafFirewallExecute(r APIGetWafFirewallReques return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -559,13 +556,13 @@ func (a *WafFirewallsAPIService) GetWafFirewallExecute(r APIGetWafFirewallReques // APIListWafFirewallsRequest represents a request for the resource. type APIListWafFirewallsRequest struct { - ctx context.Context - APIService WafFirewallsAPI - pageNumber *int32 - pageSize *int32 - filterServiceID *string + ctx context.Context + APIService WafFirewallsAPI + pageNumber *int32 + pageSize *int32 + filterServiceID *string filterServiceVersionNumber *string - include *string + include *string } // PageNumber Current page. @@ -573,21 +570,25 @@ func (r *APIListWafFirewallsRequest) PageNumber(pageNumber int32) *APIListWafFir r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafFirewallsRequest) PageSize(pageSize int32) *APIListWafFirewallsRequest { r.pageSize = &pageSize return r } + // FilterServiceID Limit the results returned to a specific service. func (r *APIListWafFirewallsRequest) FilterServiceID(filterServiceID string) *APIListWafFirewallsRequest { r.filterServiceID = &filterServiceID return r } + // FilterServiceVersionNumber Limit the results returned to a specific service version. func (r *APIListWafFirewallsRequest) FilterServiceVersionNumber(filterServiceVersionNumber string) *APIListWafFirewallsRequest { r.filterServiceVersionNumber = &filterServiceVersionNumber return r } + // Include Include related objects. Optional. func (r *APIListWafFirewallsRequest) Include(include string) *APIListWafFirewallsRequest { r.include = &include @@ -612,7 +613,7 @@ Deprecated func (a *WafFirewallsAPIService) ListWafFirewalls(ctx context.Context) APIListWafFirewallsRequest { return APIListWafFirewallsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -621,10 +622,10 @@ func (a *WafFirewallsAPIService) ListWafFirewalls(ctx context.Context) APIListWa // Deprecated func (a *WafFirewallsAPIService) ListWafFirewallsExecute(r APIListWafFirewallsRequest) (*WafFirewallsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallsAPIService.ListWafFirewalls") @@ -718,7 +719,6 @@ func (a *WafFirewallsAPIService) ListWafFirewallsExecute(r APIListWafFirewallsRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -737,9 +737,9 @@ func (a *WafFirewallsAPIService) ListWafFirewallsExecute(r APIListWafFirewallsRe // APIUpdateWafFirewallRequest represents a request for the resource. type APIUpdateWafFirewallRequest struct { - ctx context.Context - APIService WafFirewallsAPI - firewallID string + ctx context.Context + APIService WafFirewallsAPI + firewallID string wafFirewall *WafFirewall } @@ -769,7 +769,7 @@ Deprecated func (a *WafFirewallsAPIService) UpdateWafFirewall(ctx context.Context, firewallID string) APIUpdateWafFirewallRequest { return APIUpdateWafFirewallRequest{ APIService: a, - ctx: ctx, + ctx: ctx, firewallID: firewallID, } } @@ -779,10 +779,10 @@ func (a *WafFirewallsAPIService) UpdateWafFirewall(ctx context.Context, firewall // Deprecated func (a *WafFirewallsAPIService) UpdateWafFirewallExecute(r APIUpdateWafFirewallRequest) (*WafFirewallResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafFirewallResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafFirewallResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafFirewallsAPIService.UpdateWafFirewall") @@ -864,7 +864,6 @@ func (a *WafFirewallsAPIService) UpdateWafFirewallExecute(r APIUpdateWafFirewall return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_rule_revisions.go b/fastly/api_waf_rule_revisions.go index 446bc39..f25a10a 100644 --- a/fastly/api_waf_rule_revisions.go +++ b/fastly/api_waf_rule_revisions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,16 +31,16 @@ var ( type WafRuleRevisionsAPI interface { /* - GetWafRuleRevision Get a revision of a rule + GetWafRuleRevision Get a revision of a rule - Get a specific rule revision. + Get a specific rule revision. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param wafRuleID Alphanumeric string identifying a WAF rule. - @param wafRuleRevisionNumber Revision number. - @return APIGetWafRuleRevisionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @param wafRuleRevisionNumber Revision number. + @return APIGetWafRuleRevisionRequest - Deprecated + Deprecated */ GetWafRuleRevision(ctx context.Context, wafRuleID string, wafRuleRevisionNumber int32) APIGetWafRuleRevisionRequest @@ -51,15 +50,15 @@ type WafRuleRevisionsAPI interface { GetWafRuleRevisionExecute(r APIGetWafRuleRevisionRequest) (*WafRuleRevisionResponse, *http.Response, error) /* - ListWafRuleRevisions List revisions for a rule + ListWafRuleRevisions List revisions for a rule - List all revisions for a specific rule. The `rule_id` provided can be the ModSecurity Rule ID or the Fastly generated rule ID. + List all revisions for a specific rule. The `rule_id` provided can be the ModSecurity Rule ID or the Fastly generated rule ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIListWafRuleRevisionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIListWafRuleRevisionsRequest - Deprecated + Deprecated */ ListWafRuleRevisions(ctx context.Context, wafRuleID string) APIListWafRuleRevisionsRequest @@ -74,14 +73,14 @@ type WafRuleRevisionsAPIService service // APIGetWafRuleRevisionRequest represents a request for the resource. type APIGetWafRuleRevisionRequest struct { - ctx context.Context - APIService WafRuleRevisionsAPI - wafRuleID string + ctx context.Context + APIService WafRuleRevisionsAPI + wafRuleID string wafRuleRevisionNumber int32 - include *string + include *string } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule`, `vcl`, and `source`. The `vcl` and `source` relationships show the WAF VCL and corresponding ModSecurity source. These fields are blank unless the relationship is included. +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_rule`, `vcl`, and `source`. The `vcl` and `source` relationships show the WAF VCL and corresponding ModSecurity source. These fields are blank unless the relationship is included. func (r *APIGetWafRuleRevisionRequest) Include(include string) *APIGetWafRuleRevisionRequest { r.include = &include return r @@ -106,9 +105,9 @@ Deprecated */ func (a *WafRuleRevisionsAPIService) GetWafRuleRevision(ctx context.Context, wafRuleID string, wafRuleRevisionNumber int32) APIGetWafRuleRevisionRequest { return APIGetWafRuleRevisionRequest{ - APIService: a, - ctx: ctx, - wafRuleID: wafRuleID, + APIService: a, + ctx: ctx, + wafRuleID: wafRuleID, wafRuleRevisionNumber: wafRuleRevisionNumber, } } @@ -118,10 +117,10 @@ func (a *WafRuleRevisionsAPIService) GetWafRuleRevision(ctx context.Context, waf // Deprecated func (a *WafRuleRevisionsAPIService) GetWafRuleRevisionExecute(r APIGetWafRuleRevisionRequest) (*WafRuleRevisionResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafRuleRevisionResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafRuleRevisionResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafRuleRevisionsAPIService.GetWafRuleRevision") @@ -205,7 +204,6 @@ func (a *WafRuleRevisionsAPIService) GetWafRuleRevisionExecute(r APIGetWafRuleRe return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -224,12 +222,12 @@ func (a *WafRuleRevisionsAPIService) GetWafRuleRevisionExecute(r APIGetWafRuleRe // APIListWafRuleRevisionsRequest represents a request for the resource. type APIListWafRuleRevisionsRequest struct { - ctx context.Context + ctx context.Context APIService WafRuleRevisionsAPI - wafRuleID string + wafRuleID string pageNumber *int32 - pageSize *int32 - include *string + pageSize *int32 + include *string } // PageNumber Current page. @@ -237,11 +235,13 @@ func (r *APIListWafRuleRevisionsRequest) PageNumber(pageNumber int32) *APIListWa r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafRuleRevisionsRequest) PageSize(pageSize int32) *APIListWafRuleRevisionsRequest { r.pageSize = &pageSize return r } + // Include Include relationships. Optional. func (r *APIListWafRuleRevisionsRequest) Include(include string) *APIListWafRuleRevisionsRequest { r.include = &include @@ -267,8 +267,8 @@ Deprecated func (a *WafRuleRevisionsAPIService) ListWafRuleRevisions(ctx context.Context, wafRuleID string) APIListWafRuleRevisionsRequest { return APIListWafRuleRevisionsRequest{ APIService: a, - ctx: ctx, - wafRuleID: wafRuleID, + ctx: ctx, + wafRuleID: wafRuleID, } } @@ -277,10 +277,10 @@ func (a *WafRuleRevisionsAPIService) ListWafRuleRevisions(ctx context.Context, w // Deprecated func (a *WafRuleRevisionsAPIService) ListWafRuleRevisionsExecute(r APIListWafRuleRevisionsRequest) (*WafRuleRevisionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafRuleRevisionsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafRuleRevisionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafRuleRevisionsAPIService.ListWafRuleRevisions") @@ -369,7 +369,6 @@ func (a *WafRuleRevisionsAPIService) ListWafRuleRevisionsExecute(r APIListWafRul return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_rules.go b/fastly/api_waf_rules.go index f54690e..17c0bc9 100644 --- a/fastly/api_waf_rules.go +++ b/fastly/api_waf_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -32,15 +31,15 @@ var ( type WafRulesAPI interface { /* - GetWafRule Get a rule + GetWafRule Get a rule - Get a specific rule. The `id` provided can be the ModSecurity Rule ID or the Fastly generated rule ID. + Get a specific rule. The `id` provided can be the ModSecurity Rule ID or the Fastly generated rule ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param wafRuleID Alphanumeric string identifying a WAF rule. - @return APIGetWafRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetWafRuleRequest - Deprecated + Deprecated */ GetWafRule(ctx context.Context, wafRuleID string) APIGetWafRuleRequest @@ -50,14 +49,14 @@ type WafRulesAPI interface { GetWafRuleExecute(r APIGetWafRuleRequest) (*WafRuleResponse, *http.Response, error) /* - ListWafRules List available WAF rules + ListWafRules List available WAF rules - List all available WAF rules. + List all available WAF rules. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListWafRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafRulesRequest - Deprecated + Deprecated */ ListWafRules(ctx context.Context) APIListWafRulesRequest @@ -72,13 +71,13 @@ type WafRulesAPIService service // APIGetWafRuleRequest represents a request for the resource. type APIGetWafRuleRequest struct { - ctx context.Context + ctx context.Context APIService WafRulesAPI - wafRuleID string - include *string + wafRuleID string + include *string } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_tags` and `waf_rule_revisions`. +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_tags` and `waf_rule_revisions`. func (r *APIGetWafRuleRequest) Include(include string) *APIGetWafRuleRequest { r.include = &include return r @@ -103,8 +102,8 @@ Deprecated func (a *WafRulesAPIService) GetWafRule(ctx context.Context, wafRuleID string) APIGetWafRuleRequest { return APIGetWafRuleRequest{ APIService: a, - ctx: ctx, - wafRuleID: wafRuleID, + ctx: ctx, + wafRuleID: wafRuleID, } } @@ -113,10 +112,10 @@ func (a *WafRulesAPIService) GetWafRule(ctx context.Context, wafRuleID string) A // Deprecated func (a *WafRulesAPIService) GetWafRuleExecute(r APIGetWafRuleRequest) (*WafRuleResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafRuleResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafRuleResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafRulesAPIService.GetWafRule") @@ -199,7 +198,6 @@ func (a *WafRulesAPIService) GetWafRuleExecute(r APIGetWafRuleRequest) (*WafRule return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { @@ -218,15 +216,15 @@ func (a *WafRulesAPIService) GetWafRuleExecute(r APIGetWafRuleRequest) (*WafRule // APIListWafRulesRequest represents a request for the resource. type APIListWafRulesRequest struct { - ctx context.Context - APIService WafRulesAPI - filterModsecRuleID *string - filterWafTagsName *string + ctx context.Context + APIService WafRulesAPI + filterModsecRuleID *string + filterWafTagsName *string filterWafRuleRevisionsSource *string - filterWafFirewallIDNotMatch *string - pageNumber *int32 - pageSize *int32 - include *string + filterWafFirewallIDNotMatch *string + pageNumber *int32 + pageSize *int32 + include *string } // FilterModsecRuleID Limit the returned rules to a specific ModSecurity rule ID. @@ -234,32 +232,38 @@ func (r *APIListWafRulesRequest) FilterModsecRuleID(filterModsecRuleID string) * r.filterModsecRuleID = &filterModsecRuleID return r } + // FilterWafTagsName Limit the returned rules to a set linked to a tag by name. func (r *APIListWafRulesRequest) FilterWafTagsName(filterWafTagsName string) *APIListWafRulesRequest { r.filterWafTagsName = &filterWafTagsName return r } + // FilterWafRuleRevisionsSource Limit the returned rules to a set linked to a source. func (r *APIListWafRulesRequest) FilterWafRuleRevisionsSource(filterWafRuleRevisionsSource string) *APIListWafRulesRequest { r.filterWafRuleRevisionsSource = &filterWafRuleRevisionsSource return r } + // FilterWafFirewallIDNotMatch Limit the returned rules to a set not included in the active firewall version for a firewall. func (r *APIListWafRulesRequest) FilterWafFirewallIDNotMatch(filterWafFirewallIDNotMatch string) *APIListWafRulesRequest { r.filterWafFirewallIDNotMatch = &filterWafFirewallIDNotMatch return r } + // PageNumber Current page. func (r *APIListWafRulesRequest) PageNumber(pageNumber int32) *APIListWafRulesRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafRulesRequest) PageSize(pageSize int32) *APIListWafRulesRequest { r.pageSize = &pageSize return r } -// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_tags` and `waf_rule_revisions`. + +// Include Include relationships. Optional, comma-separated values. Permitted values: `waf_tags` and `waf_rule_revisions`. func (r *APIListWafRulesRequest) Include(include string) *APIListWafRulesRequest { r.include = &include return r @@ -283,7 +287,7 @@ Deprecated func (a *WafRulesAPIService) ListWafRules(ctx context.Context) APIListWafRulesRequest { return APIListWafRulesRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -292,10 +296,10 @@ func (a *WafRulesAPIService) ListWafRules(ctx context.Context) APIListWafRulesRe // Deprecated func (a *WafRulesAPIService) ListWafRulesExecute(r APIListWafRulesRequest) (*WafRulesResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafRulesResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafRulesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafRulesAPIService.ListWafRules") @@ -395,7 +399,6 @@ func (a *WafRulesAPIService) ListWafRulesExecute(r APIListWafRulesRequest) (*Waf return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_waf_tags.go b/fastly/api_waf_tags.go index f01979c..f8d8c7c 100644 --- a/fastly/api_waf_tags.go +++ b/fastly/api_waf_tags.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,14 +30,14 @@ var ( type WafTagsAPI interface { /* - ListWafTags List tags + ListWafTags List tags - List all tags. + List all tags. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListWafTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafTagsRequest - Deprecated + Deprecated */ ListWafTags(ctx context.Context) APIListWafTagsRequest @@ -53,12 +52,12 @@ type WafTagsAPIService service // APIListWafTagsRequest represents a request for the resource. type APIListWafTagsRequest struct { - ctx context.Context + ctx context.Context APIService WafTagsAPI filterName *string pageNumber *int32 - pageSize *int32 - include *string + pageSize *int32 + include *string } // FilterName Limit the returned tags to a specific name. @@ -66,16 +65,19 @@ func (r *APIListWafTagsRequest) FilterName(filterName string) *APIListWafTagsReq r.filterName = &filterName return r } + // PageNumber Current page. func (r *APIListWafTagsRequest) PageNumber(pageNumber int32) *APIListWafTagsRequest { r.pageNumber = &pageNumber return r } + // PageSize Number of records per page. func (r *APIListWafTagsRequest) PageSize(pageSize int32) *APIListWafTagsRequest { r.pageSize = &pageSize return r } + // Include Include relationships. Optional. func (r *APIListWafTagsRequest) Include(include string) *APIListWafTagsRequest { r.include = &include @@ -100,7 +102,7 @@ Deprecated func (a *WafTagsAPIService) ListWafTags(ctx context.Context) APIListWafTagsRequest { return APIListWafTagsRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -109,10 +111,10 @@ func (a *WafTagsAPIService) ListWafTags(ctx context.Context) APIListWafTagsReque // Deprecated func (a *WafTagsAPIService) ListWafTagsExecute(r APIListWafTagsRequest) (*WafTagsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *WafTagsResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *WafTagsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafTagsAPIService.ListWafTags") @@ -203,7 +205,6 @@ func (a *WafTagsAPIService) ListWafTagsExecute(r APIListWafTagsRequest) (*WafTag return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_whole_platform_ddos_historical.go b/fastly/api_whole_platform_ddos_historical.go index 3b98025..522540e 100644 --- a/fastly/api_whole_platform_ddos_historical.go +++ b/fastly/api_whole_platform_ddos_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -31,12 +30,12 @@ var ( type WholePlatformDdosHistoricalAPI interface { /* - GetPlatformDdosHistorical Get historical DDoS metrics for the entire Fastly platform + GetPlatformDdosHistorical Get historical DDoS metrics for the entire Fastly platform - Fetches historical DDoS metrics for the entire Fastly platform. + Fetches historical DDoS metrics for the entire Fastly platform. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIGetPlatformDdosHistoricalRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetPlatformDdosHistoricalRequest */ GetPlatformDdosHistorical(ctx context.Context) APIGetPlatformDdosHistoricalRequest @@ -50,10 +49,10 @@ type WholePlatformDdosHistoricalAPIService service // APIGetPlatformDdosHistoricalRequest represents a request for the resource. type APIGetPlatformDdosHistoricalRequest struct { - ctx context.Context + ctx context.Context APIService WholePlatformDdosHistoricalAPI - start *string - end *string + start *string + end *string downsample *string } @@ -62,11 +61,13 @@ func (r *APIGetPlatformDdosHistoricalRequest) Start(start string) *APIGetPlatfor r.start = &start return r } + // End A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. func (r *APIGetPlatformDdosHistoricalRequest) End(end string) *APIGetPlatformDdosHistoricalRequest { r.end = &end return r } + // Downsample Duration of sample windows. func (r *APIGetPlatformDdosHistoricalRequest) Downsample(downsample string) *APIGetPlatformDdosHistoricalRequest { r.downsample = &downsample @@ -89,7 +90,7 @@ Fetches historical DDoS metrics for the entire Fastly platform. func (a *WholePlatformDdosHistoricalAPIService) GetPlatformDdosHistorical(ctx context.Context) APIGetPlatformDdosHistoricalRequest { return APIGetPlatformDdosHistoricalRequest{ APIService: a, - ctx: ctx, + ctx: ctx, } } @@ -97,10 +98,10 @@ func (a *WholePlatformDdosHistoricalAPIService) GetPlatformDdosHistorical(ctx co // @return PlatformDdosResponse func (a *WholePlatformDdosHistoricalAPIService) GetPlatformDdosHistoricalExecute(r APIGetPlatformDdosHistoricalRequest) (*PlatformDdosResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody any - formFiles []formFile - localVarReturnValue *PlatformDdosResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *PlatformDdosResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WholePlatformDdosHistoricalAPIService.GetPlatformDdosHistorical") @@ -188,7 +189,6 @@ func (a *WholePlatformDdosHistoricalAPIService) GetPlatformDdosHistoricalExecute return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/client.go b/fastly/client.go index 0b07d6b..9941aa2 100644 --- a/fastly/client.go +++ b/fastly/client.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "bytes" "context" @@ -53,12 +52,12 @@ type APIClient struct { cfg *Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. - // RateLimitRemaining is the last observed value of http header + // RateLimitRemaining is the last observed value of http header // Fastly-RateLimit-Remaining // https://www.fastly.com/documentation/reference/api/#rate-limiting RateLimitRemaining int - - // RateLimitReset is the last observed value of http header + + // RateLimitReset is the last observed value of http header // Fastly-RateLimit-Reset RateLimitReset int @@ -568,19 +567,19 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { return resp, err } -// GetConfig allows modification of underlying config for alternate -// implementations and testing. +// GetConfig allows modification of underlying config for alternate +// implementations and testing. // -// Caution: modifying the configuration while live can cause data races and +// Caution: modifying the configuration while live can cause data races and // potentially unwanted behavior func (c *APIClient) GetConfig() *Configuration { return c.cfg } type formFile struct { - fileBytes []byte - fileName string - formFileName string + fileBytes []byte + fileName string + formFileName string } // prepareRequest build the request @@ -633,11 +632,11 @@ func (c *APIClient) prepareRequest( w.Boundary() part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) if err != nil { - return nil, err + return nil, err } _, err = part.Write(formFile.fileBytes) if err != nil { - return nil, err + return nil, err } } } @@ -768,14 +767,14 @@ func (c *APIClient) decode(v any, b []byte, contentType string) (err error) { } if jsonCheck.MatchString(contentType) { if actualObj, ok := v.(interface{ GetActualInstance() any }); ok { // oneOf, anyOf schemas - // make sure UnmarshalJSON is defined on the type - unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }) + // make sure UnmarshalJSON is defined on the type + unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }) if !ok { return errors.New("unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } + } + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } } else if err = json.Unmarshal(b, v); err != nil { // simple model return err } diff --git a/fastly/configuration.go b/fastly/configuration.go index 5a61f13..468869d 100644 --- a/fastly/configuration.go +++ b/fastly/configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "context" "fmt" @@ -81,9 +80,9 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string + URL string Description string - Variables map[string]ServerVariable + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -104,3353 +103,3353 @@ type Configuration struct { // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "fastly-go/1.0.0-beta.35", - Debug: false, - Servers: ServerConfigurations{ + DefaultHeader: make(map[string]string), + UserAgent: "fastly-go/1.0.0-beta.36", + Debug: false, + Servers: ServerConfigurations{ { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, OperationServers: map[string]ServerConfigurations{ "ACLAPIService.CreateACL": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLAPIService.DeleteACL": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLAPIService.GetACL": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLAPIService.ListACLs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLAPIService.UpdateACL": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.BulkUpdateACLEntries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.CreateACLEntry": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.DeleteACLEntry": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.GetACLEntry": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.ListACLEntries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLEntryAPIService.UpdateACLEntry": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLCreateAcls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLDeleteSAclID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLListAclEntries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLListAcls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLListAclsSAclID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLLookupAcls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ACLsInComputeAPIService.ComputeACLUpdateAcls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ApexRedirectAPIService.CreateApexRedirect": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ApexRedirectAPIService.DeleteApexRedirect": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ApexRedirectAPIService.GetApexRedirect": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ApexRedirectAPIService.ListApexRedirects": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ApexRedirectAPIService.UpdateApexRedirect": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "AutomationTokensAPIService.CreateAutomationToken": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "AutomationTokensAPIService.GetAutomationTokenID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "AutomationTokensAPIService.GetAutomationTokensIDServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "AutomationTokensAPIService.ListAutomationTokens": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "AutomationTokensAPIService.RevokeAutomationTokenID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BackendAPIService.CreateBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BackendAPIService.DeleteBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BackendAPIService.GetBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BackendAPIService.ListBackends": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BackendAPIService.UpdateBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAPIService.GetInvoice": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAPIService.GetInvoiceByID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAPIService.GetInvoiceMtd": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAddressAPIService.AddBillingAddr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAddressAPIService.DeleteBillingAddr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAddressAPIService.GetBillingAddr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingAddressAPIService.UpdateBillingAddr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingInvoicesAPIService.GetInvoiceByInvoiceID": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingInvoicesAPIService.GetMonthToDateInvoice": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingInvoicesAPIService.ListInvoices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingUsageMetricsAPIService.GetServiceLevelUsage": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "BillingUsageMetricsAPIService.GetServiceLevelUsageTypes": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CacheSettingsAPIService.CreateCacheSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CacheSettingsAPIService.DeleteCacheSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CacheSettingsAPIService.GetCacheSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CacheSettingsAPIService.ListCacheSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CacheSettingsAPIService.UpdateCacheSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConditionAPIService.CreateCondition": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConditionAPIService.DeleteCondition": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConditionAPIService.GetCondition": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConditionAPIService.ListConditions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConditionAPIService.UpdateCondition": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.CreateConfigStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.DeleteConfigStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.GetConfigStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.GetConfigStoreInfo": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.ListConfigStoreServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.ListConfigStores": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreAPIService.UpdateConfigStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.BulkUpdateConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.CreateConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.DeleteConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.GetConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.ListConfigStoreItems": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.UpdateConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ConfigStoreItemAPIService.UpsertConfigStoreItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ContactAPIService.CreateContacts": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ContactAPIService.DeleteContact": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ContactAPIService.ListContacts": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ContentAPIService.ContentCheck": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAPIService.DeleteCustomer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAPIService.GetCustomer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAPIService.GetLoggedInCustomer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAPIService.ListUsers": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAPIService.UpdateCustomer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAddressesAPIService.CreateCustomerAddress": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAddressesAPIService.ListCustomerAddresses": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "CustomerAddressesAPIService.UpdateCustomerAddress": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryAPIService.CreateDictionary": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryAPIService.DeleteDictionary": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryAPIService.GetDictionary": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryAPIService.ListDictionaries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryAPIService.UpdateDictionary": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryInfoAPIService.GetDictionaryInfo": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.BulkUpdateDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.CreateDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.DeleteDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.GetDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.ListDictionaryItems": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.UpdateDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DictionaryItemAPIService.UpsertDictionaryItem": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DiffAPIService.DiffServiceVersions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorAPIService.CreateDirector": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorAPIService.DeleteDirector": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorAPIService.GetDirector": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorAPIService.ListDirectors": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorAPIService.UpdateDirector": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorBackendAPIService.CreateDirectorBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorBackendAPIService.DeleteDirectorBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DirectorBackendAPIService.GetDirectorBackend": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.CheckDomain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.CheckDomains": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.CreateDomain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.DeleteDomain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.GetDomain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.ListDomains": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainAPIService.UpdateDomain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainInspectorHistoricalAPIService.GetDomainInspectorHistorical": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "DomainInspectorRealtimeAPIService.GetDomainInspectorLast120Seconds": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastMaxEntries": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastSecond": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "DomainOwnershipsAPIService.ListDomainOwnerships": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EnabledProductsAPIService.DisableProduct": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EnabledProductsAPIService.EnableProduct": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EnabledProductsAPIService.GetEnabledProduct": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EnabledProductsAPIService.GetProductConfiguration": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EnabledProductsAPIService.SetProductConfiguration": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EventsAPIService.GetEvent": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "EventsAPIService.ListEvents": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "GzipAPIService.CreateGzipConfig": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "GzipAPIService.DeleteGzipConfig": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "GzipAPIService.GetGzipConfigs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "GzipAPIService.ListGzipConfigs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "GzipAPIService.UpdateGzipConfig": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HeaderAPIService.CreateHeaderObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HeaderAPIService.DeleteHeaderObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HeaderAPIService.GetHeaderObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HeaderAPIService.ListHeaderObjects": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HeaderAPIService.UpdateHeaderObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HealthcheckAPIService.CreateHealthcheck": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HealthcheckAPIService.DeleteHealthcheck": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HealthcheckAPIService.GetHealthcheck": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HealthcheckAPIService.ListHealthchecks": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HealthcheckAPIService.UpdateHealthcheck": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetHistStats": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetHistStatsAggregated": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetHistStatsField": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetHistStatsService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetHistStatsServiceField": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetRegions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetUsage": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetUsageMonth": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HistoricalAPIService.GetUsageService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HTTP3APIService.CreateHTTP3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HTTP3APIService.DeleteHTTP3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "HTTP3APIService.GetHTTP3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamPermissionsAPIService.ListPermissions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.AddRolePermissions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.CreateARole": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.DeleteARole": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.GetARole": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.ListRolePermissions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.ListRoles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.RemoveRolePermissions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamRolesAPIService.UpdateARole": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.AddServiceGroupServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.CreateAServiceGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.DeleteAServiceGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.GetAServiceGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.ListServiceGroupServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.ListServiceGroups": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.RemoveServiceGroupServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamServiceGroupsAPIService.UpdateAServiceGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.AddUserGroupMembers": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.AddUserGroupRoles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.AddUserGroupServiceGroups": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.CreateAUserGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.DeleteAUserGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.GetAUserGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.ListUserGroupMembers": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.ListUserGroupRoles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.ListUserGroupServiceGroups": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.ListUserGroups": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.RemoveUserGroupMembers": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.RemoveUserGroupRoles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.RemoveUserGroupServiceGroups": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "IamUserGroupsAPIService.UpdateAUserGroup": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ImageOptimizerDefaultSettingsAPIService.GetDefaultSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ImageOptimizerDefaultSettingsAPIService.UpdateDefaultSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "InvitationsAPIService.CreateInvitation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "InvitationsAPIService.DeleteInvitation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "InvitationsAPIService.ListInvitations": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreAPIService.CreateStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreAPIService.DeleteStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreAPIService.GetStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreAPIService.GetStores": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreItemAPIService.DeleteKeyFromStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreItemAPIService.GetKeys": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreItemAPIService.GetValueForKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "KvStoreItemAPIService.SetValueForKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafConfigurationSetsAPIService.ListWafConfigSets": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafConfigurationSetsAPIService.ListWafsConfigSet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafConfigurationSetsAPIService.UseWafConfigSet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.CreateLegacyWafFirewallService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.DisableLegacyWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.EnableLegacyWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.GetLegacyWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.GetLegacyWafFirewallService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.ListLegacyWafFirewalls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.ListLegacyWafFirewallsService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafFirewallAPIService.UpdateLegacyWafFirewallService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafOwaspAPIService.CreateOwaspSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafOwaspAPIService.GetOwaspSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafOwaspAPIService.UpdateOwaspSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleAPIService.GetLegacyWafFirewallRuleVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleAPIService.GetLegacyWafRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleAPIService.GetLegacyWafRuleVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleAPIService.ListLegacyWafRules": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleStatusAPIService.GetWafFirewallRuleStatus": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleStatusAPIService.ListWafFirewallRuleStatuses": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatus": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatusesTag": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRulesetAPIService.GetWafRuleset": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRulesetAPIService.GetWafRulesetVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafRulesetAPIService.UpdateWafRuleset": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafTagAPIService.ListLegacyWafTags": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafUpdateStatusAPIService.GetWafUpdateStatus": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LegacyWafUpdateStatusAPIService.ListWafUpdateStatuses": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingAzureblobAPIService.CreateLogAzure": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingAzureblobAPIService.DeleteLogAzure": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingAzureblobAPIService.GetLogAzure": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingAzureblobAPIService.ListLogAzure": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingAzureblobAPIService.UpdateLogAzure": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingBigqueryAPIService.CreateLogBigquery": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingBigqueryAPIService.DeleteLogBigquery": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingBigqueryAPIService.GetLogBigquery": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingBigqueryAPIService.ListLogBigquery": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingBigqueryAPIService.UpdateLogBigquery": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingCloudfilesAPIService.CreateLogCloudfiles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingCloudfilesAPIService.DeleteLogCloudfiles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingCloudfilesAPIService.GetLogCloudfiles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingCloudfilesAPIService.ListLogCloudfiles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingCloudfilesAPIService.UpdateLogCloudfiles": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDatadogAPIService.CreateLogDatadog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDatadogAPIService.DeleteLogDatadog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDatadogAPIService.GetLogDatadog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDatadogAPIService.ListLogDatadog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDatadogAPIService.UpdateLogDatadog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDigitaloceanAPIService.CreateLogDigocean": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDigitaloceanAPIService.DeleteLogDigocean": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDigitaloceanAPIService.GetLogDigocean": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDigitaloceanAPIService.ListLogDigocean": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingDigitaloceanAPIService.UpdateLogDigocean": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingElasticsearchAPIService.CreateLogElasticsearch": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingElasticsearchAPIService.DeleteLogElasticsearch": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingElasticsearchAPIService.GetLogElasticsearch": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingElasticsearchAPIService.ListLogElasticsearch": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingElasticsearchAPIService.UpdateLogElasticsearch": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingFtpAPIService.CreateLogFtp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingFtpAPIService.DeleteLogFtp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingFtpAPIService.GetLogFtp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingFtpAPIService.ListLogFtp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingFtpAPIService.UpdateLogFtp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingGcsAPIService.CreateLogGcs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingGcsAPIService.DeleteLogGcs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingGcsAPIService.GetLogGcs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingGcsAPIService.ListLogGcs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingGcsAPIService.UpdateLogGcs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHerokuAPIService.CreateLogHeroku": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHerokuAPIService.DeleteLogHeroku": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHerokuAPIService.GetLogHeroku": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHerokuAPIService.ListLogHeroku": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHerokuAPIService.UpdateLogHeroku": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHoneycombAPIService.CreateLogHoneycomb": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHoneycombAPIService.DeleteLogHoneycomb": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHoneycombAPIService.GetLogHoneycomb": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHoneycombAPIService.ListLogHoneycomb": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHoneycombAPIService.UpdateLogHoneycomb": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHTTPSAPIService.CreateLogHTTPS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHTTPSAPIService.DeleteLogHTTPS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHTTPSAPIService.GetLogHTTPS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHTTPSAPIService.ListLogHTTPS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingHTTPSAPIService.UpdateLogHTTPS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKafkaAPIService.CreateLogKafka": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKafkaAPIService.DeleteLogKafka": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKafkaAPIService.GetLogKafka": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKafkaAPIService.ListLogKafka": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKafkaAPIService.UpdateLogKafka": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKinesisAPIService.CreateLogKinesis": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKinesisAPIService.DeleteLogKinesis": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKinesisAPIService.GetLogKinesis": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKinesisAPIService.ListLogKinesis": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingKinesisAPIService.UpdateLogKinesis": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogentriesAPIService.CreateLogLogentries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogentriesAPIService.DeleteLogLogentries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogentriesAPIService.GetLogLogentries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogentriesAPIService.ListLogLogentries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogentriesAPIService.UpdateLogLogentries": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogglyAPIService.CreateLogLoggly": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogglyAPIService.DeleteLogLoggly": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogglyAPIService.GetLogLoggly": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogglyAPIService.ListLogLoggly": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogglyAPIService.UpdateLogLoggly": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogshuttleAPIService.CreateLogLogshuttle": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogshuttleAPIService.DeleteLogLogshuttle": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogshuttleAPIService.GetLogLogshuttle": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogshuttleAPIService.ListLogLogshuttle": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingLogshuttleAPIService.UpdateLogLogshuttle": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicAPIService.CreateLogNewrelic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicAPIService.DeleteLogNewrelic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicAPIService.GetLogNewrelic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicAPIService.ListLogNewrelic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicAPIService.UpdateLogNewrelic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicotlpAPIService.CreateLogNewrelicotlp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicotlpAPIService.DeleteLogNewrelicotlp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicotlpAPIService.GetLogNewrelicotlp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicotlpAPIService.ListLogNewrelicotlp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingNewrelicotlpAPIService.UpdateLogNewrelicotlp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingOpenstackAPIService.CreateLogOpenstack": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingOpenstackAPIService.DeleteLogOpenstack": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingOpenstackAPIService.GetLogOpenstack": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingOpenstackAPIService.ListLogOpenstack": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingOpenstackAPIService.UpdateLogOpenstack": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPapertrailAPIService.CreateLogPapertrail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPapertrailAPIService.DeleteLogPapertrail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPapertrailAPIService.GetLogPapertrail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPapertrailAPIService.ListLogPapertrail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPapertrailAPIService.UpdateLogPapertrail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPubsubAPIService.CreateLogGcpPubsub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPubsubAPIService.DeleteLogGcpPubsub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPubsubAPIService.GetLogGcpPubsub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPubsubAPIService.ListLogGcpPubsub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingPubsubAPIService.UpdateLogGcpPubsub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingS3APIService.CreateLogAwsS3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingS3APIService.DeleteLogAwsS3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingS3APIService.GetLogAwsS3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingS3APIService.ListLogAwsS3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingS3APIService.UpdateLogAwsS3": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingScalyrAPIService.CreateLogScalyr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingScalyrAPIService.DeleteLogScalyr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingScalyrAPIService.GetLogScalyr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingScalyrAPIService.ListLogScalyr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingScalyrAPIService.UpdateLogScalyr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSftpAPIService.CreateLogSftp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSftpAPIService.DeleteLogSftp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSftpAPIService.GetLogSftp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSftpAPIService.ListLogSftp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSftpAPIService.UpdateLogSftp": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSplunkAPIService.CreateLogSplunk": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSplunkAPIService.DeleteLogSplunk": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSplunkAPIService.GetLogSplunk": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSplunkAPIService.ListLogSplunk": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSplunkAPIService.UpdateLogSplunk": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSumologicAPIService.CreateLogSumologic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSumologicAPIService.DeleteLogSumologic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSumologicAPIService.GetLogSumologic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSumologicAPIService.ListLogSumologic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSumologicAPIService.UpdateLogSumologic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSyslogAPIService.CreateLogSyslog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSyslogAPIService.DeleteLogSyslog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSyslogAPIService.GetLogSyslog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSyslogAPIService.ListLogSyslog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "LoggingSyslogAPIService.UpdateLogSyslog": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "MutualAuthenticationAPIService.CreateMutualTLSAuthentication": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "MutualAuthenticationAPIService.DeleteMutualTLS": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "MutualAuthenticationAPIService.GetMutualAuthentication": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "MutualAuthenticationAPIService.ListMutualAuthentications": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "MutualAuthenticationAPIService.PatchMutualAuthentication": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ObservabilityCustomDashboardsAPIService.CreateDashboard": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ObservabilityCustomDashboardsAPIService.DeleteDashboard": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ObservabilityCustomDashboardsAPIService.GetDashboard": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ObservabilityCustomDashboardsAPIService.ListDashboards": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ObservabilityCustomDashboardsAPIService.UpdateDashboard": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "OriginInspectorHistoricalAPIService.GetOriginInspectorHistorical": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "OriginInspectorRealtimeAPIService.GetOriginInspectorLast120Seconds": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastMaxEntries": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastSecond": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "PackageAPIService.GetPackage": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PackageAPIService.PutPackage": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PoolAPIService.CreateServerPool": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PoolAPIService.DeleteServerPool": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PoolAPIService.GetServerPool": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PoolAPIService.ListServerPools": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PoolAPIService.UpdateServerPool": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PopAPIService.ListPops": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PublicIPListAPIService.ListFastlyIps": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PublishAPIService.Publish": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PurgeAPIService.BulkPurgeTag": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PurgeAPIService.PurgeAll": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PurgeAPIService.PurgeSingleURL": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "PurgeAPIService.PurgeTag": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RateLimiterAPIService.CreateRateLimiter": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RateLimiterAPIService.DeleteRateLimiter": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RateLimiterAPIService.GetRateLimiter": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RateLimiterAPIService.ListRateLimiters": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RateLimiterAPIService.UpdateRateLimiter": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RealtimeAPIService.GetStatsLast120Seconds": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "RealtimeAPIService.GetStatsLast120SecondsLimitEntries": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "RealtimeAPIService.GetStatsLastSecond": { { - URL: "https://rt.fastly.com", + URL: "https://rt.fastly.com", Description: "No description provided", }, }, "RequestSettingsAPIService.CreateRequestSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RequestSettingsAPIService.DeleteRequestSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RequestSettingsAPIService.GetRequestSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RequestSettingsAPIService.ListRequestSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "RequestSettingsAPIService.UpdateRequestSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResourceAPIService.CreateResource": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResourceAPIService.DeleteResource": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResourceAPIService.GetResource": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResourceAPIService.ListResources": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResourceAPIService.UpdateResource": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResponseObjectAPIService.CreateResponseObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResponseObjectAPIService.DeleteResponseObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResponseObjectAPIService.GetResponseObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResponseObjectAPIService.ListResponseObjects": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ResponseObjectAPIService.UpdateResponseObject": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.ClientKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.CreateSecretStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.DeleteSecretStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.GetSecretStore": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.GetSecretStores": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreAPIService.SigningKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.CreateSecret": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.DeleteSecret": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.GetSecret": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.GetSecrets": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.MustRecreateSecret": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SecretStoreItemAPIService.RecreateSecret": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServerAPIService.CreatePoolServer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServerAPIService.DeletePoolServer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServerAPIService.GetPoolServer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServerAPIService.ListPoolServers": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServerAPIService.UpdatePoolServer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.CreateService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.DeleteService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.GetService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.GetServiceDetail": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.ListServiceDomains": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.ListServices": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.SearchService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAPIService.UpdateService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.CreateServiceAuthorization": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.DeleteServiceAuthorization": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.DeleteServiceAuthorization2": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.ListServiceAuthorization": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.ShowServiceAuthorization": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.UpdateServiceAuthorization": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "ServiceAuthorizationsAPIService.UpdateServiceAuthorization2": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SettingsAPIService.GetServiceSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SettingsAPIService.UpdateServiceSettings": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.CreateSnippet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.DeleteSnippet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.GetSnippet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.GetSnippetDynamic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.ListSnippets": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.UpdateSnippet": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SnippetAPIService.UpdateSnippetDynamic": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "StarAPIService.CreateServiceStar": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "StarAPIService.DeleteServiceStar": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "StarAPIService.GetServiceStar": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "StarAPIService.ListServiceStars": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "StatsAPIService.GetServiceStats": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "SudoAPIService.RequestSudoAccess": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSActivationsAPIService.CreateTLSActivation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSActivationsAPIService.DeleteTLSActivation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSActivationsAPIService.GetTLSActivation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSActivationsAPIService.ListTLSActivations": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSActivationsAPIService.UpdateTLSActivation": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSBulkCertificatesAPIService.DeleteBulkTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSBulkCertificatesAPIService.GetTLSBulkCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSBulkCertificatesAPIService.ListTLSBulkCerts": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSBulkCertificatesAPIService.UpdateBulkTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSBulkCertificatesAPIService.UploadTLSBulkCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.CreateTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.DeleteTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.GetTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.GetTLSCertBlob": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.ListTLSCerts": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCertificatesAPIService.UpdateTLSCert": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSConfigurationsAPIService.GetTLSConfig": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSConfigurationsAPIService.ListTLSConfigs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSConfigurationsAPIService.UpdateTLSConfig": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSCsrsAPIService.CreateCsr": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSDomainsAPIService.ListTLSDomains": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSPrivateKeysAPIService.CreateTLSKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSPrivateKeysAPIService.DeleteTLSKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSPrivateKeysAPIService.GetTLSKey": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSPrivateKeysAPIService.ListTLSKeys": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.CreateGlobalsignEmailChallenge": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.CreateTLSSub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.DeleteGlobalsignEmailChallenge": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.DeleteTLSSub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.GetTLSSub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.ListTLSSubs": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TLSSubscriptionsAPIService.PatchTLSSub": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.BulkRevokeTokens": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.CreateToken": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.GetToken": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.GetTokenCurrent": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.ListTokensCustomer": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.ListTokensUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.RevokeToken": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "TokensAPIService.RevokeTokenCurrent": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.CreateUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.DeleteUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.GetCurrentUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.GetUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.RequestPasswordReset": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.UpdateUser": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "UserAPIService.UpdateUserPassword": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.CreateCustomVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.DeleteCustomVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVclBoilerplate": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVclGenerated": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVclGeneratedHighlighted": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVclHighlighted": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.GetCustomVclRaw": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.LintVclDefault": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.LintVclForService": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.ListCustomVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.SetCustomVclMain": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclAPIService.UpdateCustomVcl": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VclDiffAPIService.VclDiffServiceVersions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.ActivateServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.ActivateServiceVersionEnvironment": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.CloneServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.CreateServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.DeactivateServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.DeactivateServiceVersionEnvironment": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.GetServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.ListServiceVersions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.LockServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.UpdateServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "VersionAPIService.ValidateServiceVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.BulkDeleteWafActiveRules": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.BulkUpdateWafActiveRules": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.CreateWafActiveRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.CreateWafActiveRulesTag": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.DeleteWafActiveRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.GetWafActiveRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.ListWafActiveRules": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafActiveRulesAPIService.UpdateWafActiveRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafExclusionsAPIService.CreateWafRuleExclusion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafExclusionsAPIService.DeleteWafRuleExclusion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafExclusionsAPIService.GetWafRuleExclusion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafExclusionsAPIService.ListWafRuleExclusions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafExclusionsAPIService.UpdateWafRuleExclusion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.CloneWafFirewallVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.CreateWafFirewallVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.DeployActivateWafFirewallVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.GetWafFirewallVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.ListWafFirewallVersions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallVersionsAPIService.UpdateWafFirewallVersion": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallsAPIService.CreateWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallsAPIService.DeleteWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallsAPIService.GetWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallsAPIService.ListWafFirewalls": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafFirewallsAPIService.UpdateWafFirewall": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafRuleRevisionsAPIService.GetWafRuleRevision": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafRuleRevisionsAPIService.ListWafRuleRevisions": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafRulesAPIService.GetWafRule": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafRulesAPIService.ListWafRules": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WafTagsAPIService.ListWafTags": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, "WholePlatformDdosHistoricalAPIService.GetPlatformDdosHistorical": { { - URL: "https://api.fastly.com", + URL: "https://api.fastly.com", Description: "No description provided", }, }, diff --git a/fastly/model_acl.go b/fastly/model_acl.go index b5fb062..d59b0da 100644 --- a/fastly/model_acl.go +++ b/fastly/model_acl.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ACL struct for ACL type ACL struct { // Name for the ACL. Must start with an alphanumeric character and contain only alphanumeric characters, underscores, and whitespace. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ACL) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACL) UnmarshalJSON(bytes []byte) (err error) { varACL := _ACL{} @@ -109,7 +108,7 @@ func (o *ACL) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACL is a helper abstraction for handling nullable acl types. +// NullableACL is a helper abstraction for handling nullable acl types. type NullableACL struct { value *ACL isSet bool @@ -149,7 +148,7 @@ func (v NullableACL) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACL) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_acl_entry.go b/fastly/model_acl_entry.go index 40dc714..de9e3e5 100644 --- a/fastly/model_acl_entry.go +++ b/fastly/model_acl_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type ACLEntry struct { // An IP address. IP *string `json:"ip,omitempty"` // Number of bits for the subnet mask applied to the IP address. For IPv4 addresses, a value of 32 represents the smallest subnet mask (1 address), 24 represents a class C subnet mask (256 addresses), 16 represents a class B subnet mask (65k addresses), and 8 is class A subnet mask (16m addresses). If not provided, no mask is applied. - Subnet NullableInt32 `json:"subnet,omitempty"` + Subnet NullableInt32 `json:"subnet,omitempty"` AdditionalProperties map[string]any } @@ -98,7 +97,7 @@ func (o *ACLEntry) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntry) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -117,6 +116,7 @@ func (o *ACLEntry) HasComment() bool { func (o *ACLEntry) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ACLEntry) SetCommentNil() { o.Comment.Set(nil) @@ -172,7 +172,7 @@ func (o *ACLEntry) GetSubnet() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntry) GetSubnetOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Subnet.Get(), o.Subnet.IsSet() @@ -191,6 +191,7 @@ func (o *ACLEntry) HasSubnet() bool { func (o *ACLEntry) SetSubnet(v int32) { o.Subnet.Set(&v) } + // SetSubnetNil sets the value for Subnet to be an explicit nil func (o *ACLEntry) SetSubnetNil() { o.Subnet.Set(nil) @@ -226,7 +227,7 @@ func (o ACLEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACLEntry) UnmarshalJSON(bytes []byte) (err error) { varACLEntry := _ACLEntry{} @@ -247,7 +248,7 @@ func (o *ACLEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACLEntry is a helper abstraction for handling nullable aclentry types. +// NullableACLEntry is a helper abstraction for handling nullable aclentry types. type NullableACLEntry struct { value *ACLEntry isSet bool @@ -287,7 +288,7 @@ func (v NullableACLEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACLEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_acl_entry_response.go b/fastly/model_acl_entry_response.go index bc7809d..d093af1 100644 --- a/fastly/model_acl_entry_response.go +++ b/fastly/model_acl_entry_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -33,10 +32,10 @@ type ACLEntryResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ACLID *string `json:"acl_id,omitempty"` - ID *string `json:"id,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ACLID *string `json:"acl_id,omitempty"` + ID *string `json:"id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` AdditionalProperties map[string]any } @@ -108,7 +107,7 @@ func (o *ACLEntryResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntryResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -127,6 +126,7 @@ func (o *ACLEntryResponse) HasComment() bool { func (o *ACLEntryResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ACLEntryResponse) SetCommentNil() { o.Comment.Set(nil) @@ -182,7 +182,7 @@ func (o *ACLEntryResponse) GetSubnet() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntryResponse) GetSubnetOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Subnet.Get(), o.Subnet.IsSet() @@ -201,6 +201,7 @@ func (o *ACLEntryResponse) HasSubnet() bool { func (o *ACLEntryResponse) SetSubnet(v int32) { o.Subnet.Set(&v) } + // SetSubnetNil sets the value for Subnet to be an explicit nil func (o *ACLEntryResponse) SetSubnetNil() { o.Subnet.Set(nil) @@ -224,7 +225,7 @@ func (o *ACLEntryResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntryResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -243,6 +244,7 @@ func (o *ACLEntryResponse) HasCreatedAt() bool { func (o *ACLEntryResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ACLEntryResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -266,7 +268,7 @@ func (o *ACLEntryResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntryResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -285,6 +287,7 @@ func (o *ACLEntryResponse) HasDeletedAt() bool { func (o *ACLEntryResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ACLEntryResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -308,7 +311,7 @@ func (o *ACLEntryResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLEntryResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -327,6 +330,7 @@ func (o *ACLEntryResponse) HasUpdatedAt() bool { func (o *ACLEntryResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ACLEntryResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -476,7 +480,7 @@ func (o ACLEntryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACLEntryResponse) UnmarshalJSON(bytes []byte) (err error) { varACLEntryResponse := _ACLEntryResponse{} @@ -503,7 +507,7 @@ func (o *ACLEntryResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACLEntryResponse is a helper abstraction for handling nullable aclentryresponse types. +// NullableACLEntryResponse is a helper abstraction for handling nullable aclentryresponse types. type NullableACLEntryResponse struct { value *ACLEntryResponse isSet bool @@ -543,7 +547,7 @@ func (v NullableACLEntryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACLEntryResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_acl_entry_response_all_of.go b/fastly/model_acl_entry_response_all_of.go index 030b26e..bd17f4e 100644 --- a/fastly/model_acl_entry_response_all_of.go +++ b/fastly/model_acl_entry_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ACLEntryResponseAllOf struct for ACLEntryResponseAllOf type ACLEntryResponseAllOf struct { - ACLID *string `json:"acl_id,omitempty"` - ID *string `json:"id,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ACLID *string `json:"acl_id,omitempty"` + ID *string `json:"id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o ACLEntryResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACLEntryResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varACLEntryResponseAllOf := _ACLEntryResponseAllOf{} @@ -182,7 +181,7 @@ func (o *ACLEntryResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACLEntryResponseAllOf is a helper abstraction for handling nullable aclentryresponseallof types. +// NullableACLEntryResponseAllOf is a helper abstraction for handling nullable aclentryresponseallof types. type NullableACLEntryResponseAllOf struct { value *ACLEntryResponseAllOf isSet bool @@ -222,7 +221,7 @@ func (v NullableACLEntryResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACLEntryResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_acl_response.go b/fastly/model_acl_response.go index 6432492..a4e4219 100644 --- a/fastly/model_acl_response.go +++ b/fastly/model_acl_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -28,10 +27,10 @@ type ACLResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -99,7 +98,7 @@ func (o *ACLResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -118,6 +117,7 @@ func (o *ACLResponse) HasCreatedAt() bool { func (o *ACLResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ACLResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -141,7 +141,7 @@ func (o *ACLResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -160,6 +160,7 @@ func (o *ACLResponse) HasDeletedAt() bool { func (o *ACLResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ACLResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -183,7 +184,7 @@ func (o *ACLResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ACLResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -202,6 +203,7 @@ func (o *ACLResponse) HasUpdatedAt() bool { func (o *ACLResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ACLResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -342,7 +344,7 @@ func (o ACLResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACLResponse) UnmarshalJSON(bytes []byte) (err error) { varACLResponse := _ACLResponse{} @@ -366,7 +368,7 @@ func (o *ACLResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACLResponse is a helper abstraction for handling nullable aclresponse types. +// NullableACLResponse is a helper abstraction for handling nullable aclresponse types. type NullableACLResponse struct { value *ACLResponse isSet bool @@ -406,7 +408,7 @@ func (v NullableACLResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACLResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_acl_response_all_of.go b/fastly/model_acl_response_all_of.go index 85ab8e1..d2571bf 100644 --- a/fastly/model_acl_response_all_of.go +++ b/fastly/model_acl_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type ACLResponseAllOf struct { ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o ACLResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ACLResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varACLResponseAllOf := _ACLResponseAllOf{} @@ -183,7 +182,7 @@ func (o *ACLResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableACLResponseAllOf is a helper abstraction for handling nullable aclresponseallof types. +// NullableACLResponseAllOf is a helper abstraction for handling nullable aclresponseallof types. type NullableACLResponseAllOf struct { value *ACLResponseAllOf isSet bool @@ -223,7 +222,7 @@ func (v NullableACLResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableACLResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_apex_redirect.go b/fastly/model_apex_redirect.go index 7d0562e..93344f6 100644 --- a/fastly/model_apex_redirect.go +++ b/fastly/model_apex_redirect.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -21,7 +20,7 @@ import ( // ApexRedirect struct for ApexRedirect type ApexRedirect struct { ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -33,7 +32,7 @@ type ApexRedirect struct { // Array of apex domains that should redirect to their WWW subdomain. Domains []string `json:"domains,omitempty"` // Revision number of the apex redirect feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` AdditionalProperties map[string]any } @@ -133,7 +132,7 @@ func (o *ApexRedirect) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ApexRedirect) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -152,6 +151,7 @@ func (o *ApexRedirect) HasCreatedAt() bool { func (o *ApexRedirect) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ApexRedirect) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -175,7 +175,7 @@ func (o *ApexRedirect) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ApexRedirect) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -194,6 +194,7 @@ func (o *ApexRedirect) HasDeletedAt() bool { func (o *ApexRedirect) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ApexRedirect) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -217,7 +218,7 @@ func (o *ApexRedirect) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ApexRedirect) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -236,6 +237,7 @@ func (o *ApexRedirect) HasUpdatedAt() bool { func (o *ApexRedirect) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ApexRedirect) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -379,7 +381,7 @@ func (o ApexRedirect) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ApexRedirect) UnmarshalJSON(bytes []byte) (err error) { varApexRedirect := _ApexRedirect{} @@ -404,7 +406,7 @@ func (o *ApexRedirect) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableApexRedirect is a helper abstraction for handling nullable apexredirect types. +// NullableApexRedirect is a helper abstraction for handling nullable apexredirect types. type NullableApexRedirect struct { value *ApexRedirect isSet bool @@ -444,7 +446,7 @@ func (v NullableApexRedirect) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableApexRedirect) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_apex_redirect_all_of.go b/fastly/model_apex_redirect_all_of.go index 381264d..4458c9f 100644 --- a/fastly/model_apex_redirect_all_of.go +++ b/fastly/model_apex_redirect_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type ApexRedirectAllOf struct { // Array of apex domains that should redirect to their WWW subdomain. Domains []string `json:"domains,omitempty"` // Revision number of the apex redirect feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o ApexRedirectAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ApexRedirectAllOf) UnmarshalJSON(bytes []byte) (err error) { varApexRedirectAllOf := _ApexRedirectAllOf{} @@ -185,7 +184,7 @@ func (o *ApexRedirectAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableApexRedirectAllOf is a helper abstraction for handling nullable apexredirectallof types. +// NullableApexRedirectAllOf is a helper abstraction for handling nullable apexredirectallof types. type NullableApexRedirectAllOf struct { value *ApexRedirectAllOf isSet bool @@ -225,7 +224,7 @@ func (v NullableApexRedirectAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableApexRedirectAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_async_response.go b/fastly/model_async_response.go index 68c337f..8558273 100644 --- a/fastly/model_async_response.go +++ b/fastly/model_async_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // AsyncResponse struct for AsyncResponse type AsyncResponse struct { - Title *string `json:"title,omitempty"` - Status *string `json:"status,omitempty"` + Title *string `json:"title,omitempty"` + Status *string `json:"status,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o AsyncResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AsyncResponse) UnmarshalJSON(bytes []byte) (err error) { varAsyncResponse := _AsyncResponse{} @@ -145,7 +144,7 @@ func (o *AsyncResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAsyncResponse is a helper abstraction for handling nullable asyncresponse types. +// NullableAsyncResponse is a helper abstraction for handling nullable asyncresponse types. type NullableAsyncResponse struct { value *AsyncResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableAsyncResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAsyncResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token.go b/fastly/model_automation_token.go index d077bb8..1f6e8b8 100644 --- a/fastly/model_automation_token.go +++ b/fastly/model_automation_token.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -23,12 +22,12 @@ type AutomationToken struct { Name *string `json:"name,omitempty"` // The role on the token. Role *string `json:"role,omitempty"` - // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. + // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // A space-delimited list of authorization scope. Scope *string `json:"scope,omitempty"` // A UTC time-stamp of when the token expires. - ExpiresAt *string `json:"expires_at,omitempty"` + ExpiresAt *string `json:"expires_at,omitempty"` AdditionalProperties map[string]any } @@ -243,7 +242,7 @@ func (o AutomationToken) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationToken) UnmarshalJSON(bytes []byte) (err error) { varAutomationToken := _AutomationToken{} @@ -265,7 +264,7 @@ func (o *AutomationToken) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAutomationToken is a helper abstraction for handling nullable automationtoken types. +// NullableAutomationToken is a helper abstraction for handling nullable automationtoken types. type NullableAutomationToken struct { value *AutomationToken isSet bool @@ -305,7 +304,7 @@ func (v NullableAutomationToken) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationToken) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_create_request.go b/fastly/model_automation_token_create_request.go index 7873ae7..60ad80f 100644 --- a/fastly/model_automation_token_create_request.go +++ b/fastly/model_automation_token_create_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // AutomationTokenCreateRequest struct for AutomationTokenCreateRequest type AutomationTokenCreateRequest struct { - Attributes *AutomationTokenCreateRequestAttributes `json:"attributes,omitempty"` + Attributes *AutomationTokenCreateRequestAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o AutomationTokenCreateRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenCreateRequest) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenCreateRequest := _AutomationTokenCreateRequest{} @@ -108,7 +107,7 @@ func (o *AutomationTokenCreateRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAutomationTokenCreateRequest is a helper abstraction for handling nullable automationtokencreaterequest types. +// NullableAutomationTokenCreateRequest is a helper abstraction for handling nullable automationtokencreaterequest types. type NullableAutomationTokenCreateRequest struct { value *AutomationTokenCreateRequest isSet bool @@ -148,7 +147,7 @@ func (v NullableAutomationTokenCreateRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_create_request_attributes.go b/fastly/model_automation_token_create_request_attributes.go index a8049eb..97dde31 100644 --- a/fastly/model_automation_token_create_request_attributes.go +++ b/fastly/model_automation_token_create_request_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,11 +24,11 @@ type AutomationTokenCreateRequestAttributes struct { Role *string `json:"role,omitempty"` // List of service ids to limit the token Services []string `json:"services,omitempty"` - Scope *string `json:"scope,omitempty"` + Scope *string `json:"scope,omitempty"` // A UTC time-stamp of when the token will expire. ExpiresAt NullableTime `json:"expires_at,omitempty"` // Indicates whether TLS access is enabled for the token. - TLSAccess *bool `json:"tls_access,omitempty"` + TLSAccess *bool `json:"tls_access,omitempty"` AdditionalProperties map[string]any } @@ -197,7 +196,7 @@ func (o *AutomationTokenCreateRequestAttributes) GetExpiresAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AutomationTokenCreateRequestAttributes) GetExpiresAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() @@ -216,6 +215,7 @@ func (o *AutomationTokenCreateRequestAttributes) HasExpiresAt() bool { func (o *AutomationTokenCreateRequestAttributes) SetExpiresAt(v time.Time) { o.ExpiresAt.Set(&v) } + // SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil func (o *AutomationTokenCreateRequestAttributes) SetExpiresAtNil() { o.ExpiresAt.Set(nil) @@ -289,7 +289,7 @@ func (o AutomationTokenCreateRequestAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenCreateRequestAttributes := _AutomationTokenCreateRequestAttributes{} @@ -312,7 +312,7 @@ func (o *AutomationTokenCreateRequestAttributes) UnmarshalJSON(bytes []byte) (er return err } -// NullableAutomationTokenCreateRequestAttributes is a helper abstraction for handling nullable automationtokencreaterequestattributes types. +// NullableAutomationTokenCreateRequestAttributes is a helper abstraction for handling nullable automationtokencreaterequestattributes types. type NullableAutomationTokenCreateRequestAttributes struct { value *AutomationTokenCreateRequestAttributes isSet bool @@ -352,7 +352,7 @@ func (v NullableAutomationTokenCreateRequestAttributes) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenCreateRequestAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_create_response.go b/fastly/model_automation_token_create_response.go index b6b570f..289df8f 100644 --- a/fastly/model_automation_token_create_response.go +++ b/fastly/model_automation_token_create_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -24,27 +23,27 @@ type AutomationTokenCreateResponse struct { Name *string `json:"name,omitempty"` // The role on the token. Role *string `json:"role,omitempty"` - // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. + // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // A space-delimited list of authorization scope. Scope *string `json:"scope,omitempty"` // A UTC time-stamp of when the token expires. ExpiresAt *string `json:"expires_at,omitempty"` - // A UTC time-stamp of when the token was created. + // A UTC time-stamp of when the token was created. CreatedAt *time.Time `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *ReadOnlyID `json:"id,omitempty"` - UserID *ReadOnlyUserID `json:"user_id,omitempty"` - CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` - SudoExpiresAt *time.Time `json:"sudo_expires_at,omitempty"` - AccessToken *string `json:"access_token,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ID *ReadOnlyID `json:"id,omitempty"` + UserID *ReadOnlyUserID `json:"user_id,omitempty"` + CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` + SudoExpiresAt *time.Time `json:"sudo_expires_at,omitempty"` + AccessToken *string `json:"access_token,omitempty"` // A UTC time-stamp of when the token was last used. LastUsedAt *time.Time `json:"last_used_at,omitempty"` // The User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` AdditionalProperties map[string]any } @@ -276,7 +275,7 @@ func (o *AutomationTokenCreateResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AutomationTokenCreateResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -295,6 +294,7 @@ func (o *AutomationTokenCreateResponse) HasDeletedAt() bool { func (o *AutomationTokenCreateResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *AutomationTokenCreateResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -318,7 +318,7 @@ func (o *AutomationTokenCreateResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AutomationTokenCreateResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -337,6 +337,7 @@ func (o *AutomationTokenCreateResponse) HasUpdatedAt() bool { func (o *AutomationTokenCreateResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *AutomationTokenCreateResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -629,7 +630,7 @@ func (o AutomationTokenCreateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenCreateResponse) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenCreateResponse := _AutomationTokenCreateResponse{} @@ -661,7 +662,7 @@ func (o *AutomationTokenCreateResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableAutomationTokenCreateResponse is a helper abstraction for handling nullable automationtokencreateresponse types. +// NullableAutomationTokenCreateResponse is a helper abstraction for handling nullable automationtokencreateresponse types. type NullableAutomationTokenCreateResponse struct { value *AutomationTokenCreateResponse isSet bool @@ -701,7 +702,7 @@ func (v NullableAutomationTokenCreateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenCreateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_create_response_all_of.go b/fastly/model_automation_token_create_response_all_of.go index f3a730b..43c8b9c 100644 --- a/fastly/model_automation_token_create_response_all_of.go +++ b/fastly/model_automation_token_create_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,17 +19,17 @@ import ( // AutomationTokenCreateResponseAllOf struct for AutomationTokenCreateResponseAllOf type AutomationTokenCreateResponseAllOf struct { - ID *ReadOnlyID `json:"id,omitempty"` - UserID *ReadOnlyUserID `json:"user_id,omitempty"` - CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` - SudoExpiresAt *time.Time `json:"sudo_expires_at,omitempty"` - // A UTC time-stamp of when the token was created. - CreatedAt *time.Time `json:"created_at,omitempty"` - AccessToken *string `json:"access_token,omitempty"` + ID *ReadOnlyID `json:"id,omitempty"` + UserID *ReadOnlyUserID `json:"user_id,omitempty"` + CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` + SudoExpiresAt *time.Time `json:"sudo_expires_at,omitempty"` + // A UTC time-stamp of when the token was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + AccessToken *string `json:"access_token,omitempty"` // A UTC time-stamp of when the token was last used. LastUsedAt *time.Time `json:"last_used_at,omitempty"` // The User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` AdditionalProperties map[string]any } @@ -346,7 +345,7 @@ func (o AutomationTokenCreateResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenCreateResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenCreateResponseAllOf := _AutomationTokenCreateResponseAllOf{} @@ -371,7 +370,7 @@ func (o *AutomationTokenCreateResponseAllOf) UnmarshalJSON(bytes []byte) (err er return err } -// NullableAutomationTokenCreateResponseAllOf is a helper abstraction for handling nullable automationtokencreateresponseallof types. +// NullableAutomationTokenCreateResponseAllOf is a helper abstraction for handling nullable automationtokencreateresponseallof types. type NullableAutomationTokenCreateResponseAllOf struct { value *AutomationTokenCreateResponseAllOf isSet bool @@ -411,7 +410,7 @@ func (v NullableAutomationTokenCreateResponseAllOf) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenCreateResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_error_response.go b/fastly/model_automation_token_error_response.go index 9273180..9672c3b 100644 --- a/fastly/model_automation_token_error_response.go +++ b/fastly/model_automation_token_error_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // AutomationTokenErrorResponse struct for AutomationTokenErrorResponse type AutomationTokenErrorResponse struct { - Detail *string `json:"detail,omitempty"` - Errors []any `json:"errors,omitempty"` - Status *int32 `json:"status,omitempty"` - Title *string `json:"title,omitempty"` + Detail *string `json:"detail,omitempty"` + Errors []any `json:"errors,omitempty"` + Status *int32 `json:"status,omitempty"` + Title *string `json:"title,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o AutomationTokenErrorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenErrorResponse) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenErrorResponse := _AutomationTokenErrorResponse{} @@ -219,7 +218,7 @@ func (o *AutomationTokenErrorResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAutomationTokenErrorResponse is a helper abstraction for handling nullable automationtokenerrorresponse types. +// NullableAutomationTokenErrorResponse is a helper abstraction for handling nullable automationtokenerrorresponse types. type NullableAutomationTokenErrorResponse struct { value *AutomationTokenErrorResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableAutomationTokenErrorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenErrorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_response.go b/fastly/model_automation_token_response.go index 2ac8047..9237a29 100644 --- a/fastly/model_automation_token_response.go +++ b/fastly/model_automation_token_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,7 +22,7 @@ type AutomationTokenResponse struct { // The name of the token. Name *string `json:"name,omitempty"` Role *string `json:"role,omitempty"` - // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. + // (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // A space-delimited list of authorization scope. Scope *string `json:"scope,omitempty"` @@ -34,16 +33,16 @@ type AutomationTokenResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *ReadOnlyID `json:"id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ID *ReadOnlyID `json:"id,omitempty"` CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` // The IP address of the client that last used the token. IP *string `json:"ip,omitempty"` // The User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` SudoExpiresAt *string `json:"sudo_expires_at,omitempty"` // A UTC time-stamp of when the token was last used. - LastUsedAt *time.Time `json:"last_used_at,omitempty"` + LastUsedAt *time.Time `json:"last_used_at,omitempty"` AdditionalProperties map[string]any } @@ -275,7 +274,7 @@ func (o *AutomationTokenResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AutomationTokenResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -294,6 +293,7 @@ func (o *AutomationTokenResponse) HasDeletedAt() bool { func (o *AutomationTokenResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *AutomationTokenResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -317,7 +317,7 @@ func (o *AutomationTokenResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *AutomationTokenResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -336,6 +336,7 @@ func (o *AutomationTokenResponse) HasUpdatedAt() bool { func (o *AutomationTokenResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *AutomationTokenResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -593,7 +594,7 @@ func (o AutomationTokenResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenResponse) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenResponse := _AutomationTokenResponse{} @@ -624,7 +625,7 @@ func (o *AutomationTokenResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAutomationTokenResponse is a helper abstraction for handling nullable automationtokenresponse types. +// NullableAutomationTokenResponse is a helper abstraction for handling nullable automationtokenresponse types. type NullableAutomationTokenResponse struct { value *AutomationTokenResponse isSet bool @@ -664,7 +665,7 @@ func (v NullableAutomationTokenResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_automation_token_response_all_of.go b/fastly/model_automation_token_response_all_of.go index f3aacb5..3a36cec 100644 --- a/fastly/model_automation_token_response_all_of.go +++ b/fastly/model_automation_token_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,20 +19,20 @@ import ( // AutomationTokenResponseAllOf struct for AutomationTokenResponseAllOf type AutomationTokenResponseAllOf struct { - ID *ReadOnlyID `json:"id,omitempty"` + ID *ReadOnlyID `json:"id,omitempty"` CustomerID *ReadOnlyCustomerID `json:"customer_id,omitempty"` - Role *string `json:"role,omitempty"` + Role *string `json:"role,omitempty"` // The IP address of the client that last used the token. IP *string `json:"ip,omitempty"` // The User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` SudoExpiresAt *string `json:"sudo_expires_at,omitempty"` // A UTC time-stamp of when the token was last used. LastUsedAt *time.Time `json:"last_used_at,omitempty"` // A UTC time-stamp of when the token was created. CreatedAt *string `json:"created_at,omitempty"` // (optional) A UTC time-stamp of when the token will expire. - ExpiresAt *string `json:"expires_at,omitempty"` + ExpiresAt *string `json:"expires_at,omitempty"` AdditionalProperties map[string]any } @@ -384,7 +383,7 @@ func (o AutomationTokenResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *AutomationTokenResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varAutomationTokenResponseAllOf := _AutomationTokenResponseAllOf{} @@ -410,7 +409,7 @@ func (o *AutomationTokenResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableAutomationTokenResponseAllOf is a helper abstraction for handling nullable automationtokenresponseallof types. +// NullableAutomationTokenResponseAllOf is a helper abstraction for handling nullable automationtokenresponseallof types. type NullableAutomationTokenResponseAllOf struct { value *AutomationTokenResponseAllOf isSet bool @@ -450,7 +449,7 @@ func (v NullableAutomationTokenResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAutomationTokenResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_aws_region.go b/fastly/model_aws_region.go index 3e3bb78..eebb5d0 100644 --- a/fastly/model_aws_region.go +++ b/fastly/model_aws_region.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -23,29 +22,29 @@ type AwsRegion string // List of aws_region const ( - AWSREGION_US_EAST_1 AwsRegion = "us-east-1" - AWSREGION_US_EAST_2 AwsRegion = "us-east-2" - AWSREGION_US_WEST_1 AwsRegion = "us-west-1" - AWSREGION_US_WEST_2 AwsRegion = "us-west-2" - AWSREGION_AF_SOUTH_1 AwsRegion = "af-south-1" - AWSREGION_AP_EAST_1 AwsRegion = "ap-east-1" - AWSREGION_AP_SOUTH_1 AwsRegion = "ap-south-1" + AWSREGION_US_EAST_1 AwsRegion = "us-east-1" + AWSREGION_US_EAST_2 AwsRegion = "us-east-2" + AWSREGION_US_WEST_1 AwsRegion = "us-west-1" + AWSREGION_US_WEST_2 AwsRegion = "us-west-2" + AWSREGION_AF_SOUTH_1 AwsRegion = "af-south-1" + AWSREGION_AP_EAST_1 AwsRegion = "ap-east-1" + AWSREGION_AP_SOUTH_1 AwsRegion = "ap-south-1" AWSREGION_AP_NORTHEAST_3 AwsRegion = "ap-northeast-3" AWSREGION_AP_NORTHEAST_2 AwsRegion = "ap-northeast-2" AWSREGION_AP_SOUTHEAST_1 AwsRegion = "ap-southeast-1" AWSREGION_AP_SOUTHEAST_2 AwsRegion = "ap-southeast-2" AWSREGION_AP_NORTHEAST_1 AwsRegion = "ap-northeast-1" - AWSREGION_CA_CENTRAL_1 AwsRegion = "ca-central-1" - AWSREGION_CN_NORTH_1 AwsRegion = "cn-north-1" + AWSREGION_CA_CENTRAL_1 AwsRegion = "ca-central-1" + AWSREGION_CN_NORTH_1 AwsRegion = "cn-north-1" AWSREGION_CN_NORTHWEST_1 AwsRegion = "cn-northwest-1" - AWSREGION_EU_CENTRAL_1 AwsRegion = "eu-central-1" - AWSREGION_EU_WEST_1 AwsRegion = "eu-west-1" - AWSREGION_EU_WEST_2 AwsRegion = "eu-west-2" - AWSREGION_EU_SOUTH_1 AwsRegion = "eu-south-1" - AWSREGION_EU_WEST_3 AwsRegion = "eu-west-3" - AWSREGION_EU_NORTH_1 AwsRegion = "eu-north-1" - AWSREGION_ME_SOUTH_1 AwsRegion = "me-south-1" - AWSREGION_SA_EAST_1 AwsRegion = "sa-east-1" + AWSREGION_EU_CENTRAL_1 AwsRegion = "eu-central-1" + AWSREGION_EU_WEST_1 AwsRegion = "eu-west-1" + AWSREGION_EU_WEST_2 AwsRegion = "eu-west-2" + AWSREGION_EU_SOUTH_1 AwsRegion = "eu-south-1" + AWSREGION_EU_WEST_3 AwsRegion = "eu-west-3" + AWSREGION_EU_NORTH_1 AwsRegion = "eu-north-1" + AWSREGION_ME_SOUTH_1 AwsRegion = "me-south-1" + AWSREGION_SA_EAST_1 AwsRegion = "sa-east-1" ) // AllowedAwsRegionEnumValues All allowed values of AwsRegion enum @@ -76,7 +75,7 @@ var AllowedAwsRegionEnumValues = []AwsRegion{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *AwsRegion) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -101,7 +100,7 @@ func NewAwsRegionFromValue(v string) (*AwsRegion, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for AwsRegion: valid values are %v", v, AllowedAwsRegionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for AwsRegion: valid values are %v", v, AllowedAwsRegionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -119,7 +118,7 @@ func (v AwsRegion) Ptr() *AwsRegion { return &v } -// NullableAwsRegion is a helper abstraction for handling nullable awsregion types. +// NullableAwsRegion is a helper abstraction for handling nullable awsregion types. type NullableAwsRegion struct { value *AwsRegion isSet bool @@ -159,7 +158,7 @@ func (v NullableAwsRegion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableAwsRegion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_backend.go b/fastly/model_backend.go index 0df48f3..82bd62c 100644 --- a/fastly/model_backend.go +++ b/fastly/model_backend.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -29,9 +28,9 @@ type Backend struct { ClientCert NullableString `json:"client_cert,omitempty"` // A freeform descriptive note. Comment NullableString `json:"comment,omitempty"` - // Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. + // Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. ConnectTimeout *int32 `json:"connect_timeout,omitempty"` - // Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. + // Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. FirstByteTimeout *int32 `json:"first_byte_timeout,omitempty"` // The name of the healthcheck to use with this backend. Healthcheck NullableString `json:"healthcheck,omitempty"` @@ -89,7 +88,7 @@ type Backend struct { // Whether or not to require TLS for connections to this backend. UseSsl *bool `json:"use_ssl,omitempty"` // Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true. - Weight *int32 `json:"weight,omitempty"` + Weight *int32 `json:"weight,omitempty"` AdditionalProperties map[string]any } @@ -225,7 +224,7 @@ func (o *Backend) GetClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ClientCert.Get(), o.ClientCert.IsSet() @@ -244,6 +243,7 @@ func (o *Backend) HasClientCert() bool { func (o *Backend) SetClientCert(v string) { o.ClientCert.Set(&v) } + // SetClientCertNil sets the value for ClientCert to be an explicit nil func (o *Backend) SetClientCertNil() { o.ClientCert.Set(nil) @@ -267,7 +267,7 @@ func (o *Backend) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -286,6 +286,7 @@ func (o *Backend) HasComment() bool { func (o *Backend) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Backend) SetCommentNil() { o.Comment.Set(nil) @@ -373,7 +374,7 @@ func (o *Backend) GetHealthcheck() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetHealthcheckOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Healthcheck.Get(), o.Healthcheck.IsSet() @@ -392,6 +393,7 @@ func (o *Backend) HasHealthcheck() bool { func (o *Backend) SetHealthcheck(v string) { o.Healthcheck.Set(&v) } + // SetHealthcheckNil sets the value for Healthcheck to be an explicit nil func (o *Backend) SetHealthcheckNil() { o.Healthcheck.Set(nil) @@ -415,7 +417,7 @@ func (o *Backend) GetHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Hostname.Get(), o.Hostname.IsSet() @@ -434,6 +436,7 @@ func (o *Backend) HasHostname() bool { func (o *Backend) SetHostname(v string) { o.Hostname.Set(&v) } + // SetHostnameNil sets the value for Hostname to be an explicit nil func (o *Backend) SetHostnameNil() { o.Hostname.Set(nil) @@ -457,7 +460,7 @@ func (o *Backend) GetIpv4() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetIpv4Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv4.Get(), o.Ipv4.IsSet() @@ -476,6 +479,7 @@ func (o *Backend) HasIpv4() bool { func (o *Backend) SetIpv4(v string) { o.Ipv4.Set(&v) } + // SetIpv4Nil sets the value for Ipv4 to be an explicit nil func (o *Backend) SetIpv4Nil() { o.Ipv4.Set(nil) @@ -499,7 +503,7 @@ func (o *Backend) GetIpv6() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetIpv6Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv6.Get(), o.Ipv6.IsSet() @@ -518,6 +522,7 @@ func (o *Backend) HasIpv6() bool { func (o *Backend) SetIpv6(v string) { o.Ipv6.Set(&v) } + // SetIpv6Nil sets the value for Ipv6 to be an explicit nil func (o *Backend) SetIpv6Nil() { o.Ipv6.Set(nil) @@ -541,7 +546,7 @@ func (o *Backend) GetKeepaliveTime() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetKeepaliveTimeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.KeepaliveTime.Get(), o.KeepaliveTime.IsSet() @@ -560,6 +565,7 @@ func (o *Backend) HasKeepaliveTime() bool { func (o *Backend) SetKeepaliveTime(v int32) { o.KeepaliveTime.Set(&v) } + // SetKeepaliveTimeNil sets the value for KeepaliveTime to be an explicit nil func (o *Backend) SetKeepaliveTimeNil() { o.KeepaliveTime.Set(nil) @@ -615,7 +621,7 @@ func (o *Backend) GetMaxTLSVersion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetMaxTLSVersionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet() @@ -634,6 +640,7 @@ func (o *Backend) HasMaxTLSVersion() bool { func (o *Backend) SetMaxTLSVersion(v string) { o.MaxTLSVersion.Set(&v) } + // SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil func (o *Backend) SetMaxTLSVersionNil() { o.MaxTLSVersion.Set(nil) @@ -657,7 +664,7 @@ func (o *Backend) GetMinTLSVersion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetMinTLSVersionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet() @@ -676,6 +683,7 @@ func (o *Backend) HasMinTLSVersion() bool { func (o *Backend) SetMinTLSVersion(v string) { o.MinTLSVersion.Set(&v) } + // SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil func (o *Backend) SetMinTLSVersionNil() { o.MinTLSVersion.Set(nil) @@ -731,7 +739,7 @@ func (o *Backend) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -750,6 +758,7 @@ func (o *Backend) HasOverrideHost() bool { func (o *Backend) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *Backend) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -837,7 +846,7 @@ func (o *Backend) GetShareKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetShareKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ShareKey.Get(), o.ShareKey.IsSet() @@ -856,6 +865,7 @@ func (o *Backend) HasShareKey() bool { func (o *Backend) SetShareKey(v string) { o.ShareKey.Set(&v) } + // SetShareKeyNil sets the value for ShareKey to be an explicit nil func (o *Backend) SetShareKeyNil() { o.ShareKey.Set(nil) @@ -879,7 +889,7 @@ func (o *Backend) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -898,6 +908,7 @@ func (o *Backend) HasShield() bool { func (o *Backend) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *Backend) SetShieldNil() { o.Shield.Set(nil) @@ -921,7 +932,7 @@ func (o *Backend) GetSslCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCaCert.Get(), o.SslCaCert.IsSet() @@ -940,6 +951,7 @@ func (o *Backend) HasSslCaCert() bool { func (o *Backend) SetSslCaCert(v string) { o.SslCaCert.Set(&v) } + // SetSslCaCertNil sets the value for SslCaCert to be an explicit nil func (o *Backend) SetSslCaCertNil() { o.SslCaCert.Set(nil) @@ -963,7 +975,7 @@ func (o *Backend) GetSslCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCertHostname.Get(), o.SslCertHostname.IsSet() @@ -982,6 +994,7 @@ func (o *Backend) HasSslCertHostname() bool { func (o *Backend) SetSslCertHostname(v string) { o.SslCertHostname.Set(&v) } + // SetSslCertHostnameNil sets the value for SslCertHostname to be an explicit nil func (o *Backend) SetSslCertHostnameNil() { o.SslCertHostname.Set(nil) @@ -1005,7 +1018,7 @@ func (o *Backend) GetSslCheckCert() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslCheckCertOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCheckCert.Get(), o.SslCheckCert.IsSet() @@ -1024,6 +1037,7 @@ func (o *Backend) HasSslCheckCert() bool { func (o *Backend) SetSslCheckCert(v bool) { o.SslCheckCert.Set(&v) } + // SetSslCheckCertNil sets the value for SslCheckCert to be an explicit nil func (o *Backend) SetSslCheckCertNil() { o.SslCheckCert.Set(nil) @@ -1047,7 +1061,7 @@ func (o *Backend) GetSslCiphers() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslCiphersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCiphers.Get(), o.SslCiphers.IsSet() @@ -1066,6 +1080,7 @@ func (o *Backend) HasSslCiphers() bool { func (o *Backend) SetSslCiphers(v string) { o.SslCiphers.Set(&v) } + // SetSslCiphersNil sets the value for SslCiphers to be an explicit nil func (o *Backend) SetSslCiphersNil() { o.SslCiphers.Set(nil) @@ -1089,7 +1104,7 @@ func (o *Backend) GetSslClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslClientCert.Get(), o.SslClientCert.IsSet() @@ -1108,6 +1123,7 @@ func (o *Backend) HasSslClientCert() bool { func (o *Backend) SetSslClientCert(v string) { o.SslClientCert.Set(&v) } + // SetSslClientCertNil sets the value for SslClientCert to be an explicit nil func (o *Backend) SetSslClientCertNil() { o.SslClientCert.Set(nil) @@ -1131,7 +1147,7 @@ func (o *Backend) GetSslClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslClientKey.Get(), o.SslClientKey.IsSet() @@ -1150,6 +1166,7 @@ func (o *Backend) HasSslClientKey() bool { func (o *Backend) SetSslClientKey(v string) { o.SslClientKey.Set(&v) } + // SetSslClientKeyNil sets the value for SslClientKey to be an explicit nil func (o *Backend) SetSslClientKeyNil() { o.SslClientKey.Set(nil) @@ -1175,7 +1192,7 @@ func (o *Backend) GetSslHostname() string { // NOTE: If the value is an explicit nil, `nil, true` will be returned // Deprecated func (o *Backend) GetSslHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslHostname.Get(), o.SslHostname.IsSet() @@ -1195,6 +1212,7 @@ func (o *Backend) HasSslHostname() bool { func (o *Backend) SetSslHostname(v string) { o.SslHostname.Set(&v) } + // SetSslHostnameNil sets the value for SslHostname to be an explicit nil func (o *Backend) SetSslHostnameNil() { o.SslHostname.Set(nil) @@ -1218,7 +1236,7 @@ func (o *Backend) GetSslSniHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetSslSniHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslSniHostname.Get(), o.SslSniHostname.IsSet() @@ -1237,6 +1255,7 @@ func (o *Backend) HasSslSniHostname() bool { func (o *Backend) SetSslSniHostname(v string) { o.SslSniHostname.Set(&v) } + // SetSslSniHostnameNil sets the value for SslSniHostname to be an explicit nil func (o *Backend) SetSslSniHostnameNil() { o.SslSniHostname.Set(nil) @@ -1260,7 +1279,7 @@ func (o *Backend) GetTcpKeepaliveEnable() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetTcpKeepaliveEnableOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveEnable.Get(), o.TcpKeepaliveEnable.IsSet() @@ -1279,6 +1298,7 @@ func (o *Backend) HasTcpKeepaliveEnable() bool { func (o *Backend) SetTcpKeepaliveEnable(v bool) { o.TcpKeepaliveEnable.Set(&v) } + // SetTcpKeepaliveEnableNil sets the value for TcpKeepaliveEnable to be an explicit nil func (o *Backend) SetTcpKeepaliveEnableNil() { o.TcpKeepaliveEnable.Set(nil) @@ -1302,7 +1322,7 @@ func (o *Backend) GetTcpKeepaliveInterval() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetTcpKeepaliveIntervalOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveInterval.Get(), o.TcpKeepaliveInterval.IsSet() @@ -1321,6 +1341,7 @@ func (o *Backend) HasTcpKeepaliveInterval() bool { func (o *Backend) SetTcpKeepaliveInterval(v int32) { o.TcpKeepaliveInterval.Set(&v) } + // SetTcpKeepaliveIntervalNil sets the value for TcpKeepaliveInterval to be an explicit nil func (o *Backend) SetTcpKeepaliveIntervalNil() { o.TcpKeepaliveInterval.Set(nil) @@ -1344,7 +1365,7 @@ func (o *Backend) GetTcpKeepaliveProbes() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetTcpKeepaliveProbesOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveProbes.Get(), o.TcpKeepaliveProbes.IsSet() @@ -1363,6 +1384,7 @@ func (o *Backend) HasTcpKeepaliveProbes() bool { func (o *Backend) SetTcpKeepaliveProbes(v int32) { o.TcpKeepaliveProbes.Set(&v) } + // SetTcpKeepaliveProbesNil sets the value for TcpKeepaliveProbes to be an explicit nil func (o *Backend) SetTcpKeepaliveProbesNil() { o.TcpKeepaliveProbes.Set(nil) @@ -1386,7 +1408,7 @@ func (o *Backend) GetTcpKeepaliveTime() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Backend) GetTcpKeepaliveTimeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveTime.Get(), o.TcpKeepaliveTime.IsSet() @@ -1405,6 +1427,7 @@ func (o *Backend) HasTcpKeepaliveTime() bool { func (o *Backend) SetTcpKeepaliveTime(v int32) { o.TcpKeepaliveTime.Set(&v) } + // SetTcpKeepaliveTimeNil sets the value for TcpKeepaliveTime to be an explicit nil func (o *Backend) SetTcpKeepaliveTimeNil() { o.TcpKeepaliveTime.Set(nil) @@ -1597,7 +1620,7 @@ func (o Backend) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Backend) UnmarshalJSON(bytes []byte) (err error) { varBackend := _Backend{} @@ -1649,7 +1672,7 @@ func (o *Backend) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBackend is a helper abstraction for handling nullable backend types. +// NullableBackend is a helper abstraction for handling nullable backend types. type NullableBackend struct { value *Backend isSet bool @@ -1689,7 +1712,7 @@ func (v NullableBackend) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBackend) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_backend_response.go b/fastly/model_backend_response.go index 1ca2d13..0f4adf9 100644 --- a/fastly/model_backend_response.go +++ b/fastly/model_backend_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -30,9 +29,9 @@ type BackendResponse struct { ClientCert NullableString `json:"client_cert,omitempty"` // A freeform descriptive note. Comment NullableString `json:"comment,omitempty"` - // Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. + // Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`. ConnectTimeout *int32 `json:"connect_timeout,omitempty"` - // Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. + // Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`. FirstByteTimeout *int32 `json:"first_byte_timeout,omitempty"` // The name of the healthcheck to use with this backend. Healthcheck NullableString `json:"healthcheck,omitempty"` @@ -97,10 +96,10 @@ type BackendResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` // Indicates whether the version of the service this backend is attached to accepts edits. - Locked *bool `json:"locked,omitempty"` + Locked *bool `json:"locked,omitempty"` AdditionalProperties map[string]any } @@ -236,7 +235,7 @@ func (o *BackendResponse) GetClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ClientCert.Get(), o.ClientCert.IsSet() @@ -255,6 +254,7 @@ func (o *BackendResponse) HasClientCert() bool { func (o *BackendResponse) SetClientCert(v string) { o.ClientCert.Set(&v) } + // SetClientCertNil sets the value for ClientCert to be an explicit nil func (o *BackendResponse) SetClientCertNil() { o.ClientCert.Set(nil) @@ -278,7 +278,7 @@ func (o *BackendResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -297,6 +297,7 @@ func (o *BackendResponse) HasComment() bool { func (o *BackendResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *BackendResponse) SetCommentNil() { o.Comment.Set(nil) @@ -384,7 +385,7 @@ func (o *BackendResponse) GetHealthcheck() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetHealthcheckOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Healthcheck.Get(), o.Healthcheck.IsSet() @@ -403,6 +404,7 @@ func (o *BackendResponse) HasHealthcheck() bool { func (o *BackendResponse) SetHealthcheck(v string) { o.Healthcheck.Set(&v) } + // SetHealthcheckNil sets the value for Healthcheck to be an explicit nil func (o *BackendResponse) SetHealthcheckNil() { o.Healthcheck.Set(nil) @@ -426,7 +428,7 @@ func (o *BackendResponse) GetHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Hostname.Get(), o.Hostname.IsSet() @@ -445,6 +447,7 @@ func (o *BackendResponse) HasHostname() bool { func (o *BackendResponse) SetHostname(v string) { o.Hostname.Set(&v) } + // SetHostnameNil sets the value for Hostname to be an explicit nil func (o *BackendResponse) SetHostnameNil() { o.Hostname.Set(nil) @@ -468,7 +471,7 @@ func (o *BackendResponse) GetIpv4() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetIpv4Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv4.Get(), o.Ipv4.IsSet() @@ -487,6 +490,7 @@ func (o *BackendResponse) HasIpv4() bool { func (o *BackendResponse) SetIpv4(v string) { o.Ipv4.Set(&v) } + // SetIpv4Nil sets the value for Ipv4 to be an explicit nil func (o *BackendResponse) SetIpv4Nil() { o.Ipv4.Set(nil) @@ -510,7 +514,7 @@ func (o *BackendResponse) GetIpv6() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetIpv6Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv6.Get(), o.Ipv6.IsSet() @@ -529,6 +533,7 @@ func (o *BackendResponse) HasIpv6() bool { func (o *BackendResponse) SetIpv6(v string) { o.Ipv6.Set(&v) } + // SetIpv6Nil sets the value for Ipv6 to be an explicit nil func (o *BackendResponse) SetIpv6Nil() { o.Ipv6.Set(nil) @@ -552,7 +557,7 @@ func (o *BackendResponse) GetKeepaliveTime() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetKeepaliveTimeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.KeepaliveTime.Get(), o.KeepaliveTime.IsSet() @@ -571,6 +576,7 @@ func (o *BackendResponse) HasKeepaliveTime() bool { func (o *BackendResponse) SetKeepaliveTime(v int32) { o.KeepaliveTime.Set(&v) } + // SetKeepaliveTimeNil sets the value for KeepaliveTime to be an explicit nil func (o *BackendResponse) SetKeepaliveTimeNil() { o.KeepaliveTime.Set(nil) @@ -626,7 +632,7 @@ func (o *BackendResponse) GetMaxTLSVersion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetMaxTLSVersionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet() @@ -645,6 +651,7 @@ func (o *BackendResponse) HasMaxTLSVersion() bool { func (o *BackendResponse) SetMaxTLSVersion(v string) { o.MaxTLSVersion.Set(&v) } + // SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil func (o *BackendResponse) SetMaxTLSVersionNil() { o.MaxTLSVersion.Set(nil) @@ -668,7 +675,7 @@ func (o *BackendResponse) GetMinTLSVersion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetMinTLSVersionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet() @@ -687,6 +694,7 @@ func (o *BackendResponse) HasMinTLSVersion() bool { func (o *BackendResponse) SetMinTLSVersion(v string) { o.MinTLSVersion.Set(&v) } + // SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil func (o *BackendResponse) SetMinTLSVersionNil() { o.MinTLSVersion.Set(nil) @@ -742,7 +750,7 @@ func (o *BackendResponse) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -761,6 +769,7 @@ func (o *BackendResponse) HasOverrideHost() bool { func (o *BackendResponse) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *BackendResponse) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -848,7 +857,7 @@ func (o *BackendResponse) GetShareKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetShareKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ShareKey.Get(), o.ShareKey.IsSet() @@ -867,6 +876,7 @@ func (o *BackendResponse) HasShareKey() bool { func (o *BackendResponse) SetShareKey(v string) { o.ShareKey.Set(&v) } + // SetShareKeyNil sets the value for ShareKey to be an explicit nil func (o *BackendResponse) SetShareKeyNil() { o.ShareKey.Set(nil) @@ -890,7 +900,7 @@ func (o *BackendResponse) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -909,6 +919,7 @@ func (o *BackendResponse) HasShield() bool { func (o *BackendResponse) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *BackendResponse) SetShieldNil() { o.Shield.Set(nil) @@ -932,7 +943,7 @@ func (o *BackendResponse) GetSslCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCaCert.Get(), o.SslCaCert.IsSet() @@ -951,6 +962,7 @@ func (o *BackendResponse) HasSslCaCert() bool { func (o *BackendResponse) SetSslCaCert(v string) { o.SslCaCert.Set(&v) } + // SetSslCaCertNil sets the value for SslCaCert to be an explicit nil func (o *BackendResponse) SetSslCaCertNil() { o.SslCaCert.Set(nil) @@ -974,7 +986,7 @@ func (o *BackendResponse) GetSslCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCertHostname.Get(), o.SslCertHostname.IsSet() @@ -993,6 +1005,7 @@ func (o *BackendResponse) HasSslCertHostname() bool { func (o *BackendResponse) SetSslCertHostname(v string) { o.SslCertHostname.Set(&v) } + // SetSslCertHostnameNil sets the value for SslCertHostname to be an explicit nil func (o *BackendResponse) SetSslCertHostnameNil() { o.SslCertHostname.Set(nil) @@ -1016,7 +1029,7 @@ func (o *BackendResponse) GetSslCheckCert() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslCheckCertOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCheckCert.Get(), o.SslCheckCert.IsSet() @@ -1035,6 +1048,7 @@ func (o *BackendResponse) HasSslCheckCert() bool { func (o *BackendResponse) SetSslCheckCert(v bool) { o.SslCheckCert.Set(&v) } + // SetSslCheckCertNil sets the value for SslCheckCert to be an explicit nil func (o *BackendResponse) SetSslCheckCertNil() { o.SslCheckCert.Set(nil) @@ -1058,7 +1072,7 @@ func (o *BackendResponse) GetSslCiphers() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslCiphersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslCiphers.Get(), o.SslCiphers.IsSet() @@ -1077,6 +1091,7 @@ func (o *BackendResponse) HasSslCiphers() bool { func (o *BackendResponse) SetSslCiphers(v string) { o.SslCiphers.Set(&v) } + // SetSslCiphersNil sets the value for SslCiphers to be an explicit nil func (o *BackendResponse) SetSslCiphersNil() { o.SslCiphers.Set(nil) @@ -1100,7 +1115,7 @@ func (o *BackendResponse) GetSslClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslClientCert.Get(), o.SslClientCert.IsSet() @@ -1119,6 +1134,7 @@ func (o *BackendResponse) HasSslClientCert() bool { func (o *BackendResponse) SetSslClientCert(v string) { o.SslClientCert.Set(&v) } + // SetSslClientCertNil sets the value for SslClientCert to be an explicit nil func (o *BackendResponse) SetSslClientCertNil() { o.SslClientCert.Set(nil) @@ -1142,7 +1158,7 @@ func (o *BackendResponse) GetSslClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslClientKey.Get(), o.SslClientKey.IsSet() @@ -1161,6 +1177,7 @@ func (o *BackendResponse) HasSslClientKey() bool { func (o *BackendResponse) SetSslClientKey(v string) { o.SslClientKey.Set(&v) } + // SetSslClientKeyNil sets the value for SslClientKey to be an explicit nil func (o *BackendResponse) SetSslClientKeyNil() { o.SslClientKey.Set(nil) @@ -1186,7 +1203,7 @@ func (o *BackendResponse) GetSslHostname() string { // NOTE: If the value is an explicit nil, `nil, true` will be returned // Deprecated func (o *BackendResponse) GetSslHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslHostname.Get(), o.SslHostname.IsSet() @@ -1206,6 +1223,7 @@ func (o *BackendResponse) HasSslHostname() bool { func (o *BackendResponse) SetSslHostname(v string) { o.SslHostname.Set(&v) } + // SetSslHostnameNil sets the value for SslHostname to be an explicit nil func (o *BackendResponse) SetSslHostnameNil() { o.SslHostname.Set(nil) @@ -1229,7 +1247,7 @@ func (o *BackendResponse) GetSslSniHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetSslSniHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SslSniHostname.Get(), o.SslSniHostname.IsSet() @@ -1248,6 +1266,7 @@ func (o *BackendResponse) HasSslSniHostname() bool { func (o *BackendResponse) SetSslSniHostname(v string) { o.SslSniHostname.Set(&v) } + // SetSslSniHostnameNil sets the value for SslSniHostname to be an explicit nil func (o *BackendResponse) SetSslSniHostnameNil() { o.SslSniHostname.Set(nil) @@ -1271,7 +1290,7 @@ func (o *BackendResponse) GetTcpKeepaliveEnable() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetTcpKeepaliveEnableOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveEnable.Get(), o.TcpKeepaliveEnable.IsSet() @@ -1290,6 +1309,7 @@ func (o *BackendResponse) HasTcpKeepaliveEnable() bool { func (o *BackendResponse) SetTcpKeepaliveEnable(v bool) { o.TcpKeepaliveEnable.Set(&v) } + // SetTcpKeepaliveEnableNil sets the value for TcpKeepaliveEnable to be an explicit nil func (o *BackendResponse) SetTcpKeepaliveEnableNil() { o.TcpKeepaliveEnable.Set(nil) @@ -1313,7 +1333,7 @@ func (o *BackendResponse) GetTcpKeepaliveInterval() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetTcpKeepaliveIntervalOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveInterval.Get(), o.TcpKeepaliveInterval.IsSet() @@ -1332,6 +1352,7 @@ func (o *BackendResponse) HasTcpKeepaliveInterval() bool { func (o *BackendResponse) SetTcpKeepaliveInterval(v int32) { o.TcpKeepaliveInterval.Set(&v) } + // SetTcpKeepaliveIntervalNil sets the value for TcpKeepaliveInterval to be an explicit nil func (o *BackendResponse) SetTcpKeepaliveIntervalNil() { o.TcpKeepaliveInterval.Set(nil) @@ -1355,7 +1376,7 @@ func (o *BackendResponse) GetTcpKeepaliveProbes() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetTcpKeepaliveProbesOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveProbes.Get(), o.TcpKeepaliveProbes.IsSet() @@ -1374,6 +1395,7 @@ func (o *BackendResponse) HasTcpKeepaliveProbes() bool { func (o *BackendResponse) SetTcpKeepaliveProbes(v int32) { o.TcpKeepaliveProbes.Set(&v) } + // SetTcpKeepaliveProbesNil sets the value for TcpKeepaliveProbes to be an explicit nil func (o *BackendResponse) SetTcpKeepaliveProbesNil() { o.TcpKeepaliveProbes.Set(nil) @@ -1397,7 +1419,7 @@ func (o *BackendResponse) GetTcpKeepaliveTime() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetTcpKeepaliveTimeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.TcpKeepaliveTime.Get(), o.TcpKeepaliveTime.IsSet() @@ -1416,6 +1438,7 @@ func (o *BackendResponse) HasTcpKeepaliveTime() bool { func (o *BackendResponse) SetTcpKeepaliveTime(v int32) { o.TcpKeepaliveTime.Set(&v) } + // SetTcpKeepaliveTimeNil sets the value for TcpKeepaliveTime to be an explicit nil func (o *BackendResponse) SetTcpKeepaliveTimeNil() { o.TcpKeepaliveTime.Set(nil) @@ -1503,7 +1526,7 @@ func (o *BackendResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -1522,6 +1545,7 @@ func (o *BackendResponse) HasCreatedAt() bool { func (o *BackendResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *BackendResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -1545,7 +1569,7 @@ func (o *BackendResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -1564,6 +1588,7 @@ func (o *BackendResponse) HasDeletedAt() bool { func (o *BackendResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *BackendResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -1587,7 +1612,7 @@ func (o *BackendResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BackendResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -1606,6 +1631,7 @@ func (o *BackendResponse) HasUpdatedAt() bool { func (o *BackendResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *BackendResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -1848,7 +1874,7 @@ func (o BackendResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BackendResponse) UnmarshalJSON(bytes []byte) (err error) { varBackendResponse := _BackendResponse{} @@ -1906,7 +1932,7 @@ func (o *BackendResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBackendResponse is a helper abstraction for handling nullable backendresponse types. +// NullableBackendResponse is a helper abstraction for handling nullable backendresponse types. type NullableBackendResponse struct { value *BackendResponse isSet bool @@ -1946,7 +1972,7 @@ func (v NullableBackendResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBackendResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_backend_response_all_of.go b/fastly/model_backend_response_all_of.go index 4d7f4ed..38ce346 100644 --- a/fastly/model_backend_response_all_of.go +++ b/fastly/model_backend_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // BackendResponseAllOf struct for BackendResponseAllOf type BackendResponseAllOf struct { // Indicates whether the version of the service this backend is attached to accepts edits. - Locked *bool `json:"locked,omitempty"` + Locked *bool `json:"locked,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o BackendResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BackendResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varBackendResponseAllOf := _BackendResponseAllOf{} @@ -109,7 +108,7 @@ func (o *BackendResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBackendResponseAllOf is a helper abstraction for handling nullable backendresponseallof types. +// NullableBackendResponseAllOf is a helper abstraction for handling nullable backendresponseallof types. type NullableBackendResponseAllOf struct { value *BackendResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableBackendResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBackendResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_batch.go b/fastly/model_batch.go index b15386a..5136888 100644 --- a/fastly/model_batch.go +++ b/fastly/model_batch.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type Batch struct { // If an error is present in any of the requests, this field will describe that error Type *string `json:"type,omitempty"` // Per-key errors which failed to parse, validate, or otherwise transmit - Errors []BatchErrors `json:"errors,omitempty"` + Errors []BatchErrors `json:"errors,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o Batch) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Batch) UnmarshalJSON(bytes []byte) (err error) { varBatch := _Batch{} @@ -185,7 +184,7 @@ func (o *Batch) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBatch is a helper abstraction for handling nullable batch types. +// NullableBatch is a helper abstraction for handling nullable batch types. type NullableBatch struct { value *Batch isSet bool @@ -225,7 +224,7 @@ func (v NullableBatch) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBatch) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_batch_errors.go b/fastly/model_batch_errors.go index 2c2ed64..e84de61 100644 --- a/fastly/model_batch_errors.go +++ b/fastly/model_batch_errors.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type BatchErrors struct { // The HTTP response code for the request, or a 400 if the request was not able to be completed. Code *string `json:"code,omitempty"` // A descriptor of this particular item's error. - Reason *string `json:"reason,omitempty"` + Reason *string `json:"reason,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o BatchErrors) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BatchErrors) UnmarshalJSON(bytes []byte) (err error) { varBatchErrors := _BatchErrors{} @@ -223,7 +222,7 @@ func (o *BatchErrors) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBatchErrors is a helper abstraction for handling nullable batcherrors types. +// NullableBatchErrors is a helper abstraction for handling nullable batcherrors types. type NullableBatchErrors struct { value *BatchErrors isSet bool @@ -263,7 +262,7 @@ func (v NullableBatchErrors) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBatchErrors) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing.go b/fastly/model_billing.go index 6a8aba7..cc1d64b 100644 --- a/fastly/model_billing.go +++ b/fastly/model_billing.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,14 +22,14 @@ type Billing struct { // Date and time in ISO 8601 format. EndTime NullableTime `json:"end_time,omitempty"` // Date and time in ISO 8601 format. - StartTime NullableTime `json:"start_time,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + StartTime NullableTime `json:"start_time,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` // The current state of our third-party billing vendor. One of `up` or `down`. - VendorState *string `json:"vendor_state,omitempty"` - Status *BillingStatus `json:"status,omitempty"` - Total *BillingTotal `json:"total,omitempty"` + VendorState *string `json:"vendor_state,omitempty"` + Status *BillingStatus `json:"status,omitempty"` + Total *BillingTotal `json:"total,omitempty"` // Breakdown of regional data for products that are region based. - Regions *map[string]BillingRegions `json:"regions,omitempty"` + Regions *map[string]BillingRegions `json:"regions,omitempty"` AdditionalProperties map[string]any } @@ -66,7 +65,7 @@ func (o *Billing) GetEndTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Billing) GetEndTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.EndTime.Get(), o.EndTime.IsSet() @@ -85,6 +84,7 @@ func (o *Billing) HasEndTime() bool { func (o *Billing) SetEndTime(v time.Time) { o.EndTime.Set(&v) } + // SetEndTimeNil sets the value for EndTime to be an explicit nil func (o *Billing) SetEndTimeNil() { o.EndTime.Set(nil) @@ -108,7 +108,7 @@ func (o *Billing) GetStartTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Billing) GetStartTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.StartTime.Get(), o.StartTime.IsSet() @@ -127,6 +127,7 @@ func (o *Billing) HasStartTime() bool { func (o *Billing) SetStartTime(v time.Time) { o.StartTime.Set(&v) } + // SetStartTimeNil sets the value for StartTime to be an explicit nil func (o *Billing) SetStartTimeNil() { o.StartTime.Set(nil) @@ -331,7 +332,7 @@ func (o Billing) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Billing) UnmarshalJSON(bytes []byte) (err error) { varBilling := _Billing{} @@ -355,7 +356,7 @@ func (o *Billing) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBilling is a helper abstraction for handling nullable billing types. +// NullableBilling is a helper abstraction for handling nullable billing types. type NullableBilling struct { value *Billing isSet bool @@ -395,7 +396,7 @@ func (v NullableBilling) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBilling) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_attributes.go b/fastly/model_billing_address_attributes.go index 3e733d4..55fcf6c 100644 --- a/fastly/model_billing_address_attributes.go +++ b/fastly/model_billing_address_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,8 +31,8 @@ type BillingAddressAttributes struct { // Postal code (ZIP code for US addresses). PostalCode *string `json:"postal_code,omitempty"` // The state or province name. - State NullableString `json:"state,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + State NullableString `json:"state,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -101,7 +100,7 @@ func (o *BillingAddressAttributes) GetAddress2() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingAddressAttributes) GetAddress2Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Address2.Get(), o.Address2.IsSet() @@ -120,6 +119,7 @@ func (o *BillingAddressAttributes) HasAddress2() bool { func (o *BillingAddressAttributes) SetAddress2(v string) { o.Address2.Set(&v) } + // SetAddress2Nil sets the value for Address2 to be an explicit nil func (o *BillingAddressAttributes) SetAddress2Nil() { o.Address2.Set(nil) @@ -143,7 +143,7 @@ func (o *BillingAddressAttributes) GetCity() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingAddressAttributes) GetCityOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.City.Get(), o.City.IsSet() @@ -162,6 +162,7 @@ func (o *BillingAddressAttributes) HasCity() bool { func (o *BillingAddressAttributes) SetCity(v string) { o.City.Set(&v) } + // SetCityNil sets the value for City to be an explicit nil func (o *BillingAddressAttributes) SetCityNil() { o.City.Set(nil) @@ -217,7 +218,7 @@ func (o *BillingAddressAttributes) GetLocality() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingAddressAttributes) GetLocalityOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Locality.Get(), o.Locality.IsSet() @@ -236,6 +237,7 @@ func (o *BillingAddressAttributes) HasLocality() bool { func (o *BillingAddressAttributes) SetLocality(v string) { o.Locality.Set(&v) } + // SetLocalityNil sets the value for Locality to be an explicit nil func (o *BillingAddressAttributes) SetLocalityNil() { o.Locality.Set(nil) @@ -291,7 +293,7 @@ func (o *BillingAddressAttributes) GetState() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingAddressAttributes) GetStateOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.State.Get(), o.State.IsSet() @@ -310,6 +312,7 @@ func (o *BillingAddressAttributes) HasState() bool { func (o *BillingAddressAttributes) SetState(v string) { o.State.Set(&v) } + // SetStateNil sets the value for State to be an explicit nil func (o *BillingAddressAttributes) SetStateNil() { o.State.Set(nil) @@ -389,7 +392,7 @@ func (o BillingAddressAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressAttributes) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressAttributes := _BillingAddressAttributes{} @@ -414,7 +417,7 @@ func (o *BillingAddressAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingAddressAttributes is a helper abstraction for handling nullable billingaddressattributes types. +// NullableBillingAddressAttributes is a helper abstraction for handling nullable billingaddressattributes types. type NullableBillingAddressAttributes struct { value *BillingAddressAttributes isSet bool @@ -454,7 +457,7 @@ func (v NullableBillingAddressAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_request.go b/fastly/model_billing_address_request.go index 2112487..40a903a 100644 --- a/fastly/model_billing_address_request.go +++ b/fastly/model_billing_address_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // BillingAddressRequest struct for BillingAddressRequest type BillingAddressRequest struct { // When set to true, the address will be saved without verification - SkipVerification *bool `json:"skip_verification,omitempty"` - Data *BillingAddressRequestData `json:"data,omitempty"` + SkipVerification *bool `json:"skip_verification,omitempty"` + Data *BillingAddressRequestData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o BillingAddressRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressRequest := _BillingAddressRequest{} @@ -146,7 +145,7 @@ func (o *BillingAddressRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingAddressRequest is a helper abstraction for handling nullable billingaddressrequest types. +// NullableBillingAddressRequest is a helper abstraction for handling nullable billingaddressrequest types. type NullableBillingAddressRequest struct { value *BillingAddressRequest isSet bool @@ -186,7 +185,7 @@ func (v NullableBillingAddressRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_request_data.go b/fastly/model_billing_address_request_data.go index 2ea921a..75b955f 100644 --- a/fastly/model_billing_address_request_data.go +++ b/fastly/model_billing_address_request_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingAddressRequestData struct for BillingAddressRequestData type BillingAddressRequestData struct { - Type *TypeBillingAddress `json:"type,omitempty"` - Attributes *BillingAddressAttributes `json:"attributes,omitempty"` + Type *TypeBillingAddress `json:"type,omitempty"` + Attributes *BillingAddressAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o BillingAddressRequestData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressRequestData) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressRequestData := _BillingAddressRequestData{} @@ -149,7 +148,7 @@ func (o *BillingAddressRequestData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingAddressRequestData is a helper abstraction for handling nullable billingaddressrequestdata types. +// NullableBillingAddressRequestData is a helper abstraction for handling nullable billingaddressrequestdata types. type NullableBillingAddressRequestData struct { value *BillingAddressRequestData isSet bool @@ -189,7 +188,7 @@ func (v NullableBillingAddressRequestData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressRequestData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_response.go b/fastly/model_billing_address_response.go index b4f5675..947a9a2 100644 --- a/fastly/model_billing_address_response.go +++ b/fastly/model_billing_address_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingAddressResponse struct for BillingAddressResponse type BillingAddressResponse struct { - Data *BillingAddressResponseData `json:"data,omitempty"` + Data *BillingAddressResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingAddressResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressResponse) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressResponse := _BillingAddressResponse{} @@ -108,7 +107,7 @@ func (o *BillingAddressResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingAddressResponse is a helper abstraction for handling nullable billingaddressresponse types. +// NullableBillingAddressResponse is a helper abstraction for handling nullable billingaddressresponse types. type NullableBillingAddressResponse struct { value *BillingAddressResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingAddressResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_response_data.go b/fastly/model_billing_address_response_data.go index 1f7cf2f..2ed6204 100644 --- a/fastly/model_billing_address_response_data.go +++ b/fastly/model_billing_address_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,10 +19,10 @@ import ( // BillingAddressResponseData struct for BillingAddressResponseData type BillingAddressResponseData struct { // Alphanumeric string identifying the billing address. - ID *string `json:"id,omitempty"` - Attributes *BillingAddressAttributes `json:"attributes,omitempty"` - Type *TypeBillingAddress `json:"type,omitempty"` - Relationships *RelationshipCustomer `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *BillingAddressAttributes `json:"attributes,omitempty"` + Type *TypeBillingAddress `json:"type,omitempty"` + Relationships *RelationshipCustomer `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -203,7 +202,7 @@ func (o BillingAddressResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressResponseData) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressResponseData := _BillingAddressResponseData{} @@ -224,7 +223,7 @@ func (o *BillingAddressResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingAddressResponseData is a helper abstraction for handling nullable billingaddressresponsedata types. +// NullableBillingAddressResponseData is a helper abstraction for handling nullable billingaddressresponsedata types. type NullableBillingAddressResponseData struct { value *BillingAddressResponseData isSet bool @@ -264,7 +263,7 @@ func (v NullableBillingAddressResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_verification_error_response.go b/fastly/model_billing_address_verification_error_response.go index 4b85675..566eadc 100644 --- a/fastly/model_billing_address_verification_error_response.go +++ b/fastly/model_billing_address_verification_error_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingAddressVerificationErrorResponse struct for BillingAddressVerificationErrorResponse type BillingAddressVerificationErrorResponse struct { - Errors []BillingAddressVerificationErrorResponseErrors `json:"errors,omitempty"` + Errors []BillingAddressVerificationErrorResponseErrors `json:"errors,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingAddressVerificationErrorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressVerificationErrorResponse) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressVerificationErrorResponse := _BillingAddressVerificationErrorResponse{} @@ -108,7 +107,7 @@ func (o *BillingAddressVerificationErrorResponse) UnmarshalJSON(bytes []byte) (e return err } -// NullableBillingAddressVerificationErrorResponse is a helper abstraction for handling nullable billingaddressverificationerrorresponse types. +// NullableBillingAddressVerificationErrorResponse is a helper abstraction for handling nullable billingaddressverificationerrorresponse types. type NullableBillingAddressVerificationErrorResponse struct { value *BillingAddressVerificationErrorResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingAddressVerificationErrorResponse) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressVerificationErrorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_address_verification_error_response_errors.go b/fastly/model_billing_address_verification_error_response_errors.go index 4b54dab..bf45f40 100644 --- a/fastly/model_billing_address_verification_error_response_errors.go +++ b/fastly/model_billing_address_verification_error_response_errors.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,11 +19,11 @@ import ( // BillingAddressVerificationErrorResponseErrors struct for BillingAddressVerificationErrorResponseErrors type BillingAddressVerificationErrorResponseErrors struct { // The error type. - Type string `json:"type"` - Title string `json:"title"` - Detail string `json:"detail"` - Status float32 `json:"status"` - Candidates []BillingAddressAttributes `json:"candidates,omitempty"` + Type string `json:"type"` + Title string `json:"title"` + Detail string `json:"detail"` + Status float32 `json:"status"` + Candidates []BillingAddressAttributes `json:"candidates,omitempty"` AdditionalProperties map[string]any } @@ -64,7 +63,7 @@ func (o *BillingAddressVerificationErrorResponseErrors) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *BillingAddressVerificationErrorResponseErrors) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -88,7 +87,7 @@ func (o *BillingAddressVerificationErrorResponseErrors) GetTitle() string { // GetTitleOk returns a tuple with the Title field value // and a boolean to check if the value has been set. func (o *BillingAddressVerificationErrorResponseErrors) GetTitleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Title, true @@ -112,7 +111,7 @@ func (o *BillingAddressVerificationErrorResponseErrors) GetDetail() string { // GetDetailOk returns a tuple with the Detail field value // and a boolean to check if the value has been set. func (o *BillingAddressVerificationErrorResponseErrors) GetDetailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Detail, true @@ -136,7 +135,7 @@ func (o *BillingAddressVerificationErrorResponseErrors) GetStatus() float32 { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *BillingAddressVerificationErrorResponseErrors) GetStatusOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Status, true @@ -207,7 +206,7 @@ func (o BillingAddressVerificationErrorResponseErrors) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingAddressVerificationErrorResponseErrors) UnmarshalJSON(bytes []byte) (err error) { varBillingAddressVerificationErrorResponseErrors := _BillingAddressVerificationErrorResponseErrors{} @@ -229,7 +228,7 @@ func (o *BillingAddressVerificationErrorResponseErrors) UnmarshalJSON(bytes []by return err } -// NullableBillingAddressVerificationErrorResponseErrors is a helper abstraction for handling nullable billingaddressverificationerrorresponseerrors types. +// NullableBillingAddressVerificationErrorResponseErrors is a helper abstraction for handling nullable billingaddressverificationerrorresponseerrors types. type NullableBillingAddressVerificationErrorResponseErrors struct { value *BillingAddressVerificationErrorResponseErrors isSet bool @@ -269,7 +268,7 @@ func (v NullableBillingAddressVerificationErrorResponseErrors) MarshalJSON() ([] } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingAddressVerificationErrorResponseErrors) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_bandwidth.go b/fastly/model_billing_bandwidth.go index 1a6960e..fc412d6 100644 --- a/fastly/model_billing_bandwidth.go +++ b/fastly/model_billing_bandwidth.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingBandwidth struct for BillingBandwidth type BillingBandwidth struct { - Total *float32 `json:"total,omitempty"` - Tiers []BillingBandwidthTiers `json:"tiers,omitempty"` + Total *float32 `json:"total,omitempty"` + Tiers []BillingBandwidthTiers `json:"tiers,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o BillingBandwidth) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingBandwidth) UnmarshalJSON(bytes []byte) (err error) { varBillingBandwidth := _BillingBandwidth{} @@ -145,7 +144,7 @@ func (o *BillingBandwidth) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingBandwidth is a helper abstraction for handling nullable billingbandwidth types. +// NullableBillingBandwidth is a helper abstraction for handling nullable billingbandwidth types. type NullableBillingBandwidth struct { value *BillingBandwidth isSet bool @@ -185,7 +184,7 @@ func (v NullableBillingBandwidth) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingBandwidth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_bandwidth_tiers.go b/fastly/model_billing_bandwidth_tiers.go index 110804b..953aef0 100644 --- a/fastly/model_billing_bandwidth_tiers.go +++ b/fastly/model_billing_bandwidth_tiers.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,18 +12,17 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingBandwidthTiers struct for BillingBandwidthTiers type BillingBandwidthTiers struct { - Name *string `json:"name,omitempty"` - Units *float32 `json:"units,omitempty"` - Price *float32 `json:"price,omitempty"` - DiscountedPrice *float32 `json:"discounted_price,omitempty"` - Total *float32 `json:"total,omitempty"` + Name *string `json:"name,omitempty"` + Units *float32 `json:"units,omitempty"` + Price *float32 `json:"price,omitempty"` + DiscountedPrice *float32 `json:"discounted_price,omitempty"` + Total *float32 `json:"total,omitempty"` AdditionalProperties map[string]any } @@ -234,7 +233,7 @@ func (o BillingBandwidthTiers) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingBandwidthTiers) UnmarshalJSON(bytes []byte) (err error) { varBillingBandwidthTiers := _BillingBandwidthTiers{} @@ -256,7 +255,7 @@ func (o *BillingBandwidthTiers) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingBandwidthTiers is a helper abstraction for handling nullable billingbandwidthtiers types. +// NullableBillingBandwidthTiers is a helper abstraction for handling nullable billingbandwidthtiers types. type NullableBillingBandwidthTiers struct { value *BillingBandwidthTiers isSet bool @@ -296,7 +295,7 @@ func (v NullableBillingBandwidthTiers) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingBandwidthTiers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_estimate_invoice_id.go b/fastly/model_billing_estimate_invoice_id.go index c28bafb..aad37cb 100644 --- a/fastly/model_billing_estimate_invoice_id.go +++ b/fastly/model_billing_estimate_invoice_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingEstimateInvoiceID struct for BillingEstimateInvoiceID type BillingEstimateInvoiceID struct { - InvoiceID *string `json:"invoice_id,omitempty"` + InvoiceID *string `json:"invoice_id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingEstimateInvoiceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingEstimateInvoiceID) UnmarshalJSON(bytes []byte) (err error) { varBillingEstimateInvoiceID := _BillingEstimateInvoiceID{} @@ -108,7 +107,7 @@ func (o *BillingEstimateInvoiceID) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingEstimateInvoiceID is a helper abstraction for handling nullable billingestimateinvoiceid types. +// NullableBillingEstimateInvoiceID is a helper abstraction for handling nullable billingestimateinvoiceid types. type NullableBillingEstimateInvoiceID struct { value *BillingEstimateInvoiceID isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingEstimateInvoiceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingEstimateInvoiceID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_estimate_lines.go b/fastly/model_billing_estimate_lines.go index 46c7df1..eab3ac6 100644 --- a/fastly/model_billing_estimate_lines.go +++ b/fastly/model_billing_estimate_lines.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingEstimateLines struct for BillingEstimateLines type BillingEstimateLines struct { - LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` + LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingEstimateLines) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingEstimateLines) UnmarshalJSON(bytes []byte) (err error) { varBillingEstimateLines := _BillingEstimateLines{} @@ -108,7 +107,7 @@ func (o *BillingEstimateLines) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingEstimateLines is a helper abstraction for handling nullable billingestimatelines types. +// NullableBillingEstimateLines is a helper abstraction for handling nullable billingestimatelines types. type NullableBillingEstimateLines struct { value *BillingEstimateLines isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingEstimateLines) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingEstimateLines) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_estimate_lines_line_items.go b/fastly/model_billing_estimate_lines_line_items.go index c99de2d..3fee514 100644 --- a/fastly/model_billing_estimate_lines_line_items.go +++ b/fastly/model_billing_estimate_lines_line_items.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,22 +12,21 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingEstimateLinesLineItems struct for BillingEstimateLinesLineItems type BillingEstimateLinesLineItems struct { - PlanNo *int32 `json:"plan_no,omitempty"` - Description *string `json:"description,omitempty"` - Units *float32 `json:"units,omitempty"` - PerUnitCost *float32 `json:"per_unit_cost,omitempty"` - ServiceNo *float32 `json:"service_no,omitempty"` - ServiceType *string `json:"service_type,omitempty"` - Amount *float32 `json:"amount,omitempty"` - ClientServiceID *string `json:"client_service_id,omitempty"` - ClientPlanID *string `json:"client_plan_id,omitempty"` + PlanNo *int32 `json:"plan_no,omitempty"` + Description *string `json:"description,omitempty"` + Units *float32 `json:"units,omitempty"` + PerUnitCost *float32 `json:"per_unit_cost,omitempty"` + ServiceNo *float32 `json:"service_no,omitempty"` + ServiceType *string `json:"service_type,omitempty"` + Amount *float32 `json:"amount,omitempty"` + ClientServiceID *string `json:"client_service_id,omitempty"` + ClientPlanID *string `json:"client_plan_id,omitempty"` AdditionalProperties map[string]any } @@ -378,7 +377,7 @@ func (o BillingEstimateLinesLineItems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingEstimateLinesLineItems) UnmarshalJSON(bytes []byte) (err error) { varBillingEstimateLinesLineItems := _BillingEstimateLinesLineItems{} @@ -404,7 +403,7 @@ func (o *BillingEstimateLinesLineItems) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableBillingEstimateLinesLineItems is a helper abstraction for handling nullable billingestimatelineslineitems types. +// NullableBillingEstimateLinesLineItems is a helper abstraction for handling nullable billingestimatelineslineitems types. type NullableBillingEstimateLinesLineItems struct { value *BillingEstimateLinesLineItems isSet bool @@ -444,7 +443,7 @@ func (v NullableBillingEstimateLinesLineItems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingEstimateLinesLineItems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_estimate_response.go b/fastly/model_billing_estimate_response.go index d096e9e..8db8a9f 100644 --- a/fastly/model_billing_estimate_response.go +++ b/fastly/model_billing_estimate_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,16 +22,16 @@ type BillingEstimateResponse struct { // Date and time in ISO 8601 format. EndTime NullableTime `json:"end_time,omitempty"` // Date and time in ISO 8601 format. - StartTime NullableTime `json:"start_time,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + StartTime NullableTime `json:"start_time,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` // The current state of our third-party billing vendor. One of `up` or `down`. - VendorState *string `json:"vendor_state,omitempty"` - Status *BillingStatus `json:"status,omitempty"` - Total *BillingTotal `json:"total,omitempty"` + VendorState *string `json:"vendor_state,omitempty"` + Status *BillingStatus `json:"status,omitempty"` + Total *BillingTotal `json:"total,omitempty"` // Breakdown of regional data for products that are region based. - Regions *map[string]BillingRegions `json:"regions,omitempty"` - InvoiceID *string `json:"invoice_id,omitempty"` - LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` + Regions *map[string]BillingRegions `json:"regions,omitempty"` + InvoiceID *string `json:"invoice_id,omitempty"` + LineItems []BillingEstimateLinesLineItems `json:"line_items,omitempty"` AdditionalProperties map[string]any } @@ -68,7 +67,7 @@ func (o *BillingEstimateResponse) GetEndTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingEstimateResponse) GetEndTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.EndTime.Get(), o.EndTime.IsSet() @@ -87,6 +86,7 @@ func (o *BillingEstimateResponse) HasEndTime() bool { func (o *BillingEstimateResponse) SetEndTime(v time.Time) { o.EndTime.Set(&v) } + // SetEndTimeNil sets the value for EndTime to be an explicit nil func (o *BillingEstimateResponse) SetEndTimeNil() { o.EndTime.Set(nil) @@ -110,7 +110,7 @@ func (o *BillingEstimateResponse) GetStartTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingEstimateResponse) GetStartTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.StartTime.Get(), o.StartTime.IsSet() @@ -129,6 +129,7 @@ func (o *BillingEstimateResponse) HasStartTime() bool { func (o *BillingEstimateResponse) SetStartTime(v time.Time) { o.StartTime.Set(&v) } + // SetStartTimeNil sets the value for StartTime to be an explicit nil func (o *BillingEstimateResponse) SetStartTimeNil() { o.StartTime.Set(nil) @@ -403,7 +404,7 @@ func (o BillingEstimateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingEstimateResponse) UnmarshalJSON(bytes []byte) (err error) { varBillingEstimateResponse := _BillingEstimateResponse{} @@ -429,7 +430,7 @@ func (o *BillingEstimateResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingEstimateResponse is a helper abstraction for handling nullable billingestimateresponse types. +// NullableBillingEstimateResponse is a helper abstraction for handling nullable billingestimateresponse types. type NullableBillingEstimateResponse struct { value *BillingEstimateResponse isSet bool @@ -469,7 +470,7 @@ func (v NullableBillingEstimateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingEstimateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_invoice_id.go b/fastly/model_billing_invoice_id.go index 98cf5f2..1214f2b 100644 --- a/fastly/model_billing_invoice_id.go +++ b/fastly/model_billing_invoice_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingInvoiceID struct for BillingInvoiceID type BillingInvoiceID struct { - InvoiceID *int32 `json:"invoice_id,omitempty"` + InvoiceID *int32 `json:"invoice_id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingInvoiceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingInvoiceID) UnmarshalJSON(bytes []byte) (err error) { varBillingInvoiceID := _BillingInvoiceID{} @@ -108,7 +107,7 @@ func (o *BillingInvoiceID) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingInvoiceID is a helper abstraction for handling nullable billinginvoiceid types. +// NullableBillingInvoiceID is a helper abstraction for handling nullable billinginvoiceid types. type NullableBillingInvoiceID struct { value *BillingInvoiceID isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingInvoiceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingInvoiceID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_regions.go b/fastly/model_billing_regions.go index 1b69a47..90f878b 100644 --- a/fastly/model_billing_regions.go +++ b/fastly/model_billing_regions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingRegions struct for BillingRegions type BillingRegions struct { - Cost *float32 `json:"cost,omitempty"` - Bandwidth *BillingBandwidth `json:"bandwidth,omitempty"` - Percentile *BillingBandwidth `json:"percentile,omitempty"` - Requests *BillingBandwidth `json:"requests,omitempty"` + Cost *float32 `json:"cost,omitempty"` + Bandwidth *BillingBandwidth `json:"bandwidth,omitempty"` + Percentile *BillingBandwidth `json:"percentile,omitempty"` + Requests *BillingBandwidth `json:"requests,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o BillingRegions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingRegions) UnmarshalJSON(bytes []byte) (err error) { varBillingRegions := _BillingRegions{} @@ -219,7 +218,7 @@ func (o *BillingRegions) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingRegions is a helper abstraction for handling nullable billingregions types. +// NullableBillingRegions is a helper abstraction for handling nullable billingregions types. type NullableBillingRegions struct { value *BillingRegions isSet bool @@ -259,7 +258,7 @@ func (v NullableBillingRegions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingRegions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_response.go b/fastly/model_billing_response.go index 3c0f2c2..cb66a00 100644 --- a/fastly/model_billing_response.go +++ b/fastly/model_billing_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,16 +22,16 @@ type BillingResponse struct { // Date and time in ISO 8601 format. EndTime NullableTime `json:"end_time,omitempty"` // Date and time in ISO 8601 format. - StartTime NullableTime `json:"start_time,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + StartTime NullableTime `json:"start_time,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` // The current state of our third-party billing vendor. One of `up` or `down`. - VendorState *string `json:"vendor_state,omitempty"` - Status *BillingStatus `json:"status,omitempty"` - Total *BillingTotal `json:"total,omitempty"` + VendorState *string `json:"vendor_state,omitempty"` + Status *BillingStatus `json:"status,omitempty"` + Total *BillingTotal `json:"total,omitempty"` // Breakdown of regional data for products that are region based. - Regions *map[string]BillingRegions `json:"regions,omitempty"` - InvoiceID *int32 `json:"invoice_id,omitempty"` - LineItems []BillingResponseLineItem `json:"line_items,omitempty"` + Regions *map[string]BillingRegions `json:"regions,omitempty"` + InvoiceID *int32 `json:"invoice_id,omitempty"` + LineItems []BillingResponseLineItem `json:"line_items,omitempty"` AdditionalProperties map[string]any } @@ -68,7 +67,7 @@ func (o *BillingResponse) GetEndTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponse) GetEndTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.EndTime.Get(), o.EndTime.IsSet() @@ -87,6 +86,7 @@ func (o *BillingResponse) HasEndTime() bool { func (o *BillingResponse) SetEndTime(v time.Time) { o.EndTime.Set(&v) } + // SetEndTimeNil sets the value for EndTime to be an explicit nil func (o *BillingResponse) SetEndTimeNil() { o.EndTime.Set(nil) @@ -110,7 +110,7 @@ func (o *BillingResponse) GetStartTime() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponse) GetStartTimeOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.StartTime.Get(), o.StartTime.IsSet() @@ -129,6 +129,7 @@ func (o *BillingResponse) HasStartTime() bool { func (o *BillingResponse) SetStartTime(v time.Time) { o.StartTime.Set(&v) } + // SetStartTimeNil sets the value for StartTime to be an explicit nil func (o *BillingResponse) SetStartTimeNil() { o.StartTime.Set(nil) @@ -403,7 +404,7 @@ func (o BillingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingResponse) UnmarshalJSON(bytes []byte) (err error) { varBillingResponse := _BillingResponse{} @@ -429,7 +430,7 @@ func (o *BillingResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingResponse is a helper abstraction for handling nullable billingresponse types. +// NullableBillingResponse is a helper abstraction for handling nullable billingresponse types. type NullableBillingResponse struct { value *BillingResponse isSet bool @@ -469,7 +470,7 @@ func (v NullableBillingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_response_item_items_data.go b/fastly/model_billing_response_item_items_data.go index 27da118..4a57d2b 100644 --- a/fastly/model_billing_response_item_items_data.go +++ b/fastly/model_billing_response_item_items_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BillingResponseItemItemsData struct for BillingResponseItemItemsData type BillingResponseItemItemsData struct { - LineItems []BillingResponseLineItem `json:"line_items,omitempty"` + LineItems []BillingResponseLineItem `json:"line_items,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BillingResponseItemItemsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingResponseItemItemsData) UnmarshalJSON(bytes []byte) (err error) { varBillingResponseItemItemsData := _BillingResponseItemItemsData{} @@ -108,7 +107,7 @@ func (o *BillingResponseItemItemsData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingResponseItemItemsData is a helper abstraction for handling nullable billingresponseitemitemsdata types. +// NullableBillingResponseItemItemsData is a helper abstraction for handling nullable billingresponseitemitemsdata types. type NullableBillingResponseItemItemsData struct { value *BillingResponseItemItemsData isSet bool @@ -148,7 +147,7 @@ func (v NullableBillingResponseItemItemsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingResponseItemItemsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_response_line_item.go b/fastly/model_billing_response_line_item.go index 8be2b56..f03f1ea 100644 --- a/fastly/model_billing_response_line_item.go +++ b/fastly/model_billing_response_line_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,25 +24,25 @@ type BillingResponseLineItem struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - Amount NullableFloat32 `json:"amount,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + Amount NullableFloat32 `json:"amount,omitempty"` // An alphanumeric string identifying the invoice. - AriaInvoiceID NullableString `json:"aria_invoice_id,omitempty"` - ClientServiceID NullableString `json:"client_service_id,omitempty"` - CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` - Description NullableString `json:"description,omitempty"` - ID *string `json:"id,omitempty"` - LineNumber NullableInt32 `json:"line_number,omitempty"` - PlanName NullableString `json:"plan_name,omitempty"` - PlanNo NullableFloat32 `json:"plan_no,omitempty"` - RatePerUnit NullableFloat32 `json:"rate_per_unit,omitempty"` - RateScheduleNo NullableFloat32 `json:"rate_schedule_no,omitempty"` - RateScheduleTierNo NullableFloat32 `json:"rate_schedule_tier_no,omitempty"` - ServiceName NullableString `json:"service_name,omitempty"` - ServiceNo NullableFloat32 `json:"service_no,omitempty"` - Units NullableFloat32 `json:"units,omitempty"` - UsageTypeCd NullableString `json:"usage_type_cd,omitempty"` - UsageTypeNo NullableFloat32 `json:"usage_type_no,omitempty"` + AriaInvoiceID NullableString `json:"aria_invoice_id,omitempty"` + ClientServiceID NullableString `json:"client_service_id,omitempty"` + CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` + Description NullableString `json:"description,omitempty"` + ID *string `json:"id,omitempty"` + LineNumber NullableInt32 `json:"line_number,omitempty"` + PlanName NullableString `json:"plan_name,omitempty"` + PlanNo NullableFloat32 `json:"plan_no,omitempty"` + RatePerUnit NullableFloat32 `json:"rate_per_unit,omitempty"` + RateScheduleNo NullableFloat32 `json:"rate_schedule_no,omitempty"` + RateScheduleTierNo NullableFloat32 `json:"rate_schedule_tier_no,omitempty"` + ServiceName NullableString `json:"service_name,omitempty"` + ServiceNo NullableFloat32 `json:"service_no,omitempty"` + Units NullableFloat32 `json:"units,omitempty"` + UsageTypeCd NullableString `json:"usage_type_cd,omitempty"` + UsageTypeNo NullableFloat32 `json:"usage_type_no,omitempty"` AdditionalProperties map[string]any } @@ -79,7 +78,7 @@ func (o *BillingResponseLineItem) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -98,6 +97,7 @@ func (o *BillingResponseLineItem) HasCreatedAt() bool { func (o *BillingResponseLineItem) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *BillingResponseLineItem) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -121,7 +121,7 @@ func (o *BillingResponseLineItem) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -140,6 +140,7 @@ func (o *BillingResponseLineItem) HasDeletedAt() bool { func (o *BillingResponseLineItem) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *BillingResponseLineItem) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -163,7 +164,7 @@ func (o *BillingResponseLineItem) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -182,6 +183,7 @@ func (o *BillingResponseLineItem) HasUpdatedAt() bool { func (o *BillingResponseLineItem) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *BillingResponseLineItem) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -205,7 +207,7 @@ func (o *BillingResponseLineItem) GetAmount() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetAmountOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Amount.Get(), o.Amount.IsSet() @@ -224,6 +226,7 @@ func (o *BillingResponseLineItem) HasAmount() bool { func (o *BillingResponseLineItem) SetAmount(v float32) { o.Amount.Set(&v) } + // SetAmountNil sets the value for Amount to be an explicit nil func (o *BillingResponseLineItem) SetAmountNil() { o.Amount.Set(nil) @@ -247,7 +250,7 @@ func (o *BillingResponseLineItem) GetAriaInvoiceID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetAriaInvoiceIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AriaInvoiceID.Get(), o.AriaInvoiceID.IsSet() @@ -266,6 +269,7 @@ func (o *BillingResponseLineItem) HasAriaInvoiceID() bool { func (o *BillingResponseLineItem) SetAriaInvoiceID(v string) { o.AriaInvoiceID.Set(&v) } + // SetAriaInvoiceIDNil sets the value for AriaInvoiceID to be an explicit nil func (o *BillingResponseLineItem) SetAriaInvoiceIDNil() { o.AriaInvoiceID.Set(nil) @@ -289,7 +293,7 @@ func (o *BillingResponseLineItem) GetClientServiceID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetClientServiceIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ClientServiceID.Get(), o.ClientServiceID.IsSet() @@ -308,6 +312,7 @@ func (o *BillingResponseLineItem) HasClientServiceID() bool { func (o *BillingResponseLineItem) SetClientServiceID(v string) { o.ClientServiceID.Set(&v) } + // SetClientServiceIDNil sets the value for ClientServiceID to be an explicit nil func (o *BillingResponseLineItem) SetClientServiceIDNil() { o.ClientServiceID.Set(nil) @@ -331,7 +336,7 @@ func (o *BillingResponseLineItem) GetCreditCouponCode() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetCreditCouponCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreditCouponCode.Get(), o.CreditCouponCode.IsSet() @@ -350,6 +355,7 @@ func (o *BillingResponseLineItem) HasCreditCouponCode() bool { func (o *BillingResponseLineItem) SetCreditCouponCode(v string) { o.CreditCouponCode.Set(&v) } + // SetCreditCouponCodeNil sets the value for CreditCouponCode to be an explicit nil func (o *BillingResponseLineItem) SetCreditCouponCodeNil() { o.CreditCouponCode.Set(nil) @@ -373,7 +379,7 @@ func (o *BillingResponseLineItem) GetDescription() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetDescriptionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Description.Get(), o.Description.IsSet() @@ -392,6 +398,7 @@ func (o *BillingResponseLineItem) HasDescription() bool { func (o *BillingResponseLineItem) SetDescription(v string) { o.Description.Set(&v) } + // SetDescriptionNil sets the value for Description to be an explicit nil func (o *BillingResponseLineItem) SetDescriptionNil() { o.Description.Set(nil) @@ -447,7 +454,7 @@ func (o *BillingResponseLineItem) GetLineNumber() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetLineNumberOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.LineNumber.Get(), o.LineNumber.IsSet() @@ -466,6 +473,7 @@ func (o *BillingResponseLineItem) HasLineNumber() bool { func (o *BillingResponseLineItem) SetLineNumber(v int32) { o.LineNumber.Set(&v) } + // SetLineNumberNil sets the value for LineNumber to be an explicit nil func (o *BillingResponseLineItem) SetLineNumberNil() { o.LineNumber.Set(nil) @@ -489,7 +497,7 @@ func (o *BillingResponseLineItem) GetPlanName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetPlanNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PlanName.Get(), o.PlanName.IsSet() @@ -508,6 +516,7 @@ func (o *BillingResponseLineItem) HasPlanName() bool { func (o *BillingResponseLineItem) SetPlanName(v string) { o.PlanName.Set(&v) } + // SetPlanNameNil sets the value for PlanName to be an explicit nil func (o *BillingResponseLineItem) SetPlanNameNil() { o.PlanName.Set(nil) @@ -531,7 +540,7 @@ func (o *BillingResponseLineItem) GetPlanNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetPlanNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.PlanNo.Get(), o.PlanNo.IsSet() @@ -550,6 +559,7 @@ func (o *BillingResponseLineItem) HasPlanNo() bool { func (o *BillingResponseLineItem) SetPlanNo(v float32) { o.PlanNo.Set(&v) } + // SetPlanNoNil sets the value for PlanNo to be an explicit nil func (o *BillingResponseLineItem) SetPlanNoNil() { o.PlanNo.Set(nil) @@ -573,7 +583,7 @@ func (o *BillingResponseLineItem) GetRatePerUnit() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetRatePerUnitOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RatePerUnit.Get(), o.RatePerUnit.IsSet() @@ -592,6 +602,7 @@ func (o *BillingResponseLineItem) HasRatePerUnit() bool { func (o *BillingResponseLineItem) SetRatePerUnit(v float32) { o.RatePerUnit.Set(&v) } + // SetRatePerUnitNil sets the value for RatePerUnit to be an explicit nil func (o *BillingResponseLineItem) SetRatePerUnitNil() { o.RatePerUnit.Set(nil) @@ -615,7 +626,7 @@ func (o *BillingResponseLineItem) GetRateScheduleNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetRateScheduleNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RateScheduleNo.Get(), o.RateScheduleNo.IsSet() @@ -634,6 +645,7 @@ func (o *BillingResponseLineItem) HasRateScheduleNo() bool { func (o *BillingResponseLineItem) SetRateScheduleNo(v float32) { o.RateScheduleNo.Set(&v) } + // SetRateScheduleNoNil sets the value for RateScheduleNo to be an explicit nil func (o *BillingResponseLineItem) SetRateScheduleNoNil() { o.RateScheduleNo.Set(nil) @@ -657,7 +669,7 @@ func (o *BillingResponseLineItem) GetRateScheduleTierNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetRateScheduleTierNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RateScheduleTierNo.Get(), o.RateScheduleTierNo.IsSet() @@ -676,6 +688,7 @@ func (o *BillingResponseLineItem) HasRateScheduleTierNo() bool { func (o *BillingResponseLineItem) SetRateScheduleTierNo(v float32) { o.RateScheduleTierNo.Set(&v) } + // SetRateScheduleTierNoNil sets the value for RateScheduleTierNo to be an explicit nil func (o *BillingResponseLineItem) SetRateScheduleTierNoNil() { o.RateScheduleTierNo.Set(nil) @@ -699,7 +712,7 @@ func (o *BillingResponseLineItem) GetServiceName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetServiceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServiceName.Get(), o.ServiceName.IsSet() @@ -718,6 +731,7 @@ func (o *BillingResponseLineItem) HasServiceName() bool { func (o *BillingResponseLineItem) SetServiceName(v string) { o.ServiceName.Set(&v) } + // SetServiceNameNil sets the value for ServiceName to be an explicit nil func (o *BillingResponseLineItem) SetServiceNameNil() { o.ServiceName.Set(nil) @@ -741,7 +755,7 @@ func (o *BillingResponseLineItem) GetServiceNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetServiceNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServiceNo.Get(), o.ServiceNo.IsSet() @@ -760,6 +774,7 @@ func (o *BillingResponseLineItem) HasServiceNo() bool { func (o *BillingResponseLineItem) SetServiceNo(v float32) { o.ServiceNo.Set(&v) } + // SetServiceNoNil sets the value for ServiceNo to be an explicit nil func (o *BillingResponseLineItem) SetServiceNoNil() { o.ServiceNo.Set(nil) @@ -783,7 +798,7 @@ func (o *BillingResponseLineItem) GetUnits() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetUnitsOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Units.Get(), o.Units.IsSet() @@ -802,6 +817,7 @@ func (o *BillingResponseLineItem) HasUnits() bool { func (o *BillingResponseLineItem) SetUnits(v float32) { o.Units.Set(&v) } + // SetUnitsNil sets the value for Units to be an explicit nil func (o *BillingResponseLineItem) SetUnitsNil() { o.Units.Set(nil) @@ -825,7 +841,7 @@ func (o *BillingResponseLineItem) GetUsageTypeCd() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetUsageTypeCdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.UsageTypeCd.Get(), o.UsageTypeCd.IsSet() @@ -844,6 +860,7 @@ func (o *BillingResponseLineItem) HasUsageTypeCd() bool { func (o *BillingResponseLineItem) SetUsageTypeCd(v string) { o.UsageTypeCd.Set(&v) } + // SetUsageTypeCdNil sets the value for UsageTypeCd to be an explicit nil func (o *BillingResponseLineItem) SetUsageTypeCdNil() { o.UsageTypeCd.Set(nil) @@ -867,7 +884,7 @@ func (o *BillingResponseLineItem) GetUsageTypeNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingResponseLineItem) GetUsageTypeNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.UsageTypeNo.Get(), o.UsageTypeNo.IsSet() @@ -886,6 +903,7 @@ func (o *BillingResponseLineItem) HasUsageTypeNo() bool { func (o *BillingResponseLineItem) SetUsageTypeNo(v float32) { o.UsageTypeNo.Set(&v) } + // SetUsageTypeNoNil sets the value for UsageTypeNo to be an explicit nil func (o *BillingResponseLineItem) SetUsageTypeNoNil() { o.UsageTypeNo.Set(nil) @@ -969,7 +987,7 @@ func (o BillingResponseLineItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingResponseLineItem) UnmarshalJSON(bytes []byte) (err error) { varBillingResponseLineItem := _BillingResponseLineItem{} @@ -1006,7 +1024,7 @@ func (o *BillingResponseLineItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingResponseLineItem is a helper abstraction for handling nullable billingresponselineitem types. +// NullableBillingResponseLineItem is a helper abstraction for handling nullable billingresponselineitem types. type NullableBillingResponseLineItem struct { value *BillingResponseLineItem isSet bool @@ -1046,7 +1064,7 @@ func (v NullableBillingResponseLineItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingResponseLineItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_status.go b/fastly/model_billing_status.go index 13f29e6..2d23bdb 100644 --- a/fastly/model_billing_status.go +++ b/fastly/model_billing_status.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -24,7 +23,7 @@ type BillingStatus struct { Status *string `json:"status,omitempty"` // Date and time in ISO 8601 format. // Deprecated - SentAt NullableTime `json:"sent_at,omitempty"` + SentAt NullableTime `json:"sent_at,omitempty"` AdditionalProperties map[string]any } @@ -94,7 +93,7 @@ func (o *BillingStatus) GetSentAt() time.Time { // NOTE: If the value is an explicit nil, `nil, true` will be returned // Deprecated func (o *BillingStatus) GetSentAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.SentAt.Get(), o.SentAt.IsSet() @@ -114,6 +113,7 @@ func (o *BillingStatus) HasSentAt() bool { func (o *BillingStatus) SetSentAt(v time.Time) { o.SentAt.Set(&v) } + // SetSentAtNil sets the value for SentAt to be an explicit nil func (o *BillingStatus) SetSentAtNil() { o.SentAt.Set(nil) @@ -143,7 +143,7 @@ func (o BillingStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingStatus) UnmarshalJSON(bytes []byte) (err error) { varBillingStatus := _BillingStatus{} @@ -162,7 +162,7 @@ func (o *BillingStatus) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingStatus is a helper abstraction for handling nullable billingstatus types. +// NullableBillingStatus is a helper abstraction for handling nullable billingstatus types. type NullableBillingStatus struct { value *BillingStatus isSet bool @@ -202,7 +202,7 @@ func (v NullableBillingStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_total.go b/fastly/model_billing_total.go index 6fa0eed..e874c77 100644 --- a/fastly/model_billing_total.go +++ b/fastly/model_billing_total.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -50,7 +49,7 @@ type BillingTotal struct { // The cost of the requests used this month. RequestsCost *float32 `json:"requests_cost,omitempty"` // Payment terms. Almost always Net15. - Terms *string `json:"terms,omitempty"` + Terms *string `json:"terms,omitempty"` AdditionalProperties map[string]any } @@ -150,7 +149,7 @@ func (o *BillingTotal) GetBandwidthUnits() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BillingTotal) GetBandwidthUnitsOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BandwidthUnits.Get(), o.BandwidthUnits.IsSet() @@ -169,6 +168,7 @@ func (o *BillingTotal) HasBandwidthUnits() bool { func (o *BillingTotal) SetBandwidthUnits(v string) { o.BandwidthUnits.Set(&v) } + // SetBandwidthUnitsNil sets the value for BandwidthUnits to be an explicit nil func (o *BillingTotal) SetBandwidthUnitsNil() { o.BandwidthUnits.Set(nil) @@ -656,7 +656,7 @@ func (o BillingTotal) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingTotal) UnmarshalJSON(bytes []byte) (err error) { varBillingTotal := _BillingTotal{} @@ -689,7 +689,7 @@ func (o *BillingTotal) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingTotal is a helper abstraction for handling nullable billingtotal types. +// NullableBillingTotal is a helper abstraction for handling nullable billingtotal types. type NullableBillingTotal struct { value *BillingTotal isSet bool @@ -729,7 +729,7 @@ func (v NullableBillingTotal) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingTotal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_billing_total_extras.go b/fastly/model_billing_total_extras.go index a996075..ee1fe87 100644 --- a/fastly/model_billing_total_extras.go +++ b/fastly/model_billing_total_extras.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type BillingTotalExtras struct { // Recurring monthly cost in USD. Not present if $0.0. Recurring *float32 `json:"recurring,omitempty"` // Initial set up cost in USD. Not present if $0.0 or this is not the month the extra was added. - Setup *float32 `json:"setup,omitempty"` + Setup *float32 `json:"setup,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o BillingTotalExtras) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BillingTotalExtras) UnmarshalJSON(bytes []byte) (err error) { varBillingTotalExtras := _BillingTotalExtras{} @@ -185,7 +184,7 @@ func (o *BillingTotalExtras) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBillingTotalExtras is a helper abstraction for handling nullable billingtotalextras types. +// NullableBillingTotalExtras is a helper abstraction for handling nullable billingtotalextras types. type NullableBillingTotalExtras struct { value *BillingTotalExtras isSet bool @@ -225,7 +224,7 @@ func (v NullableBillingTotalExtras) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBillingTotalExtras) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_acl_entries_request.go b/fastly/model_bulk_update_acl_entries_request.go index 40ff081..98b8327 100644 --- a/fastly/model_bulk_update_acl_entries_request.go +++ b/fastly/model_bulk_update_acl_entries_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkUpdateACLEntriesRequest struct for BulkUpdateACLEntriesRequest type BulkUpdateACLEntriesRequest struct { - Entries []BulkUpdateACLEntry `json:"entries,omitempty"` + Entries []BulkUpdateACLEntry `json:"entries,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BulkUpdateACLEntriesRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateACLEntriesRequest) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateACLEntriesRequest := _BulkUpdateACLEntriesRequest{} @@ -108,7 +107,7 @@ func (o *BulkUpdateACLEntriesRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkUpdateACLEntriesRequest is a helper abstraction for handling nullable bulkupdateaclentriesrequest types. +// NullableBulkUpdateACLEntriesRequest is a helper abstraction for handling nullable bulkupdateaclentriesrequest types. type NullableBulkUpdateACLEntriesRequest struct { value *BulkUpdateACLEntriesRequest isSet bool @@ -148,7 +147,7 @@ func (v NullableBulkUpdateACLEntriesRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateACLEntriesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_acl_entry.go b/fastly/model_bulk_update_acl_entry.go index 660d7cb..053e193 100644 --- a/fastly/model_bulk_update_acl_entry.go +++ b/fastly/model_bulk_update_acl_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,9 +25,9 @@ type BulkUpdateACLEntry struct { // An IP address. IP *string `json:"ip,omitempty"` // Number of bits for the subnet mask applied to the IP address. For IPv4 addresses, a value of 32 represents the smallest subnet mask (1 address), 24 represents a class C subnet mask (256 addresses), 16 represents a class B subnet mask (65k addresses), and 8 is class A subnet mask (16m addresses). If not provided, no mask is applied. - Subnet NullableInt32 `json:"subnet,omitempty"` - Op *string `json:"op,omitempty"` - ID *string `json:"id,omitempty"` + Subnet NullableInt32 `json:"subnet,omitempty"` + Op *string `json:"op,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -100,7 +99,7 @@ func (o *BulkUpdateACLEntry) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BulkUpdateACLEntry) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -119,6 +118,7 @@ func (o *BulkUpdateACLEntry) HasComment() bool { func (o *BulkUpdateACLEntry) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *BulkUpdateACLEntry) SetCommentNil() { o.Comment.Set(nil) @@ -174,7 +174,7 @@ func (o *BulkUpdateACLEntry) GetSubnet() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *BulkUpdateACLEntry) GetSubnetOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Subnet.Get(), o.Subnet.IsSet() @@ -193,6 +193,7 @@ func (o *BulkUpdateACLEntry) HasSubnet() bool { func (o *BulkUpdateACLEntry) SetSubnet(v int32) { o.Subnet.Set(&v) } + // SetSubnetNil sets the value for Subnet to be an explicit nil func (o *BulkUpdateACLEntry) SetSubnetNil() { o.Subnet.Set(nil) @@ -298,7 +299,7 @@ func (o BulkUpdateACLEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateACLEntry) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateACLEntry := _BulkUpdateACLEntry{} @@ -321,7 +322,7 @@ func (o *BulkUpdateACLEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkUpdateACLEntry is a helper abstraction for handling nullable bulkupdateaclentry types. +// NullableBulkUpdateACLEntry is a helper abstraction for handling nullable bulkupdateaclentry types. type NullableBulkUpdateACLEntry struct { value *BulkUpdateACLEntry isSet bool @@ -361,7 +362,7 @@ func (v NullableBulkUpdateACLEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateACLEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_acl_entry_all_of.go b/fastly/model_bulk_update_acl_entry_all_of.go index c99dbf9..d9938d0 100644 --- a/fastly/model_bulk_update_acl_entry_all_of.go +++ b/fastly/model_bulk_update_acl_entry_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkUpdateACLEntryAllOf struct for BulkUpdateACLEntryAllOf type BulkUpdateACLEntryAllOf struct { - Op *string `json:"op,omitempty"` - ID *string `json:"id,omitempty"` + Op *string `json:"op,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o BulkUpdateACLEntryAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateACLEntryAllOf) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateACLEntryAllOf := _BulkUpdateACLEntryAllOf{} @@ -145,7 +144,7 @@ func (o *BulkUpdateACLEntryAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkUpdateACLEntryAllOf is a helper abstraction for handling nullable bulkupdateaclentryallof types. +// NullableBulkUpdateACLEntryAllOf is a helper abstraction for handling nullable bulkupdateaclentryallof types. type NullableBulkUpdateACLEntryAllOf struct { value *BulkUpdateACLEntryAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableBulkUpdateACLEntryAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateACLEntryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_config_store_item.go b/fastly/model_bulk_update_config_store_item.go index cc1e695..1ff5221 100644 --- a/fastly/model_bulk_update_config_store_item.go +++ b/fastly/model_bulk_update_config_store_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,8 +21,8 @@ type BulkUpdateConfigStoreItem struct { // Item key, maximum 256 characters. ItemKey *string `json:"item_key,omitempty"` // Item value, maximum 8000 characters. - ItemValue *string `json:"item_value,omitempty"` - Op *string `json:"op,omitempty"` + ItemValue *string `json:"item_value,omitempty"` + Op *string `json:"op,omitempty"` AdditionalProperties map[string]any } @@ -164,7 +163,7 @@ func (o BulkUpdateConfigStoreItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateConfigStoreItem) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateConfigStoreItem := _BulkUpdateConfigStoreItem{} @@ -184,7 +183,7 @@ func (o *BulkUpdateConfigStoreItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkUpdateConfigStoreItem is a helper abstraction for handling nullable bulkupdateconfigstoreitem types. +// NullableBulkUpdateConfigStoreItem is a helper abstraction for handling nullable bulkupdateconfigstoreitem types. type NullableBulkUpdateConfigStoreItem struct { value *BulkUpdateConfigStoreItem isSet bool @@ -224,7 +223,7 @@ func (v NullableBulkUpdateConfigStoreItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateConfigStoreItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_config_store_item_all_of.go b/fastly/model_bulk_update_config_store_item_all_of.go index 093372f..54b5299 100644 --- a/fastly/model_bulk_update_config_store_item_all_of.go +++ b/fastly/model_bulk_update_config_store_item_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkUpdateConfigStoreItemAllOf struct for BulkUpdateConfigStoreItemAllOf type BulkUpdateConfigStoreItemAllOf struct { - Op *string `json:"op,omitempty"` + Op *string `json:"op,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BulkUpdateConfigStoreItemAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateConfigStoreItemAllOf) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateConfigStoreItemAllOf := _BulkUpdateConfigStoreItemAllOf{} @@ -108,7 +107,7 @@ func (o *BulkUpdateConfigStoreItemAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableBulkUpdateConfigStoreItemAllOf is a helper abstraction for handling nullable bulkupdateconfigstoreitemallof types. +// NullableBulkUpdateConfigStoreItemAllOf is a helper abstraction for handling nullable bulkupdateconfigstoreitemallof types. type NullableBulkUpdateConfigStoreItemAllOf struct { value *BulkUpdateConfigStoreItemAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableBulkUpdateConfigStoreItemAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateConfigStoreItemAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_config_store_list_request.go b/fastly/model_bulk_update_config_store_list_request.go index c0a3973..8f38aaf 100644 --- a/fastly/model_bulk_update_config_store_list_request.go +++ b/fastly/model_bulk_update_config_store_list_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkUpdateConfigStoreListRequest struct for BulkUpdateConfigStoreListRequest type BulkUpdateConfigStoreListRequest struct { - Items []BulkUpdateConfigStoreItem `json:"items,omitempty"` + Items []BulkUpdateConfigStoreItem `json:"items,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BulkUpdateConfigStoreListRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateConfigStoreListRequest) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateConfigStoreListRequest := _BulkUpdateConfigStoreListRequest{} @@ -108,7 +107,7 @@ func (o *BulkUpdateConfigStoreListRequest) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableBulkUpdateConfigStoreListRequest is a helper abstraction for handling nullable bulkupdateconfigstorelistrequest types. +// NullableBulkUpdateConfigStoreListRequest is a helper abstraction for handling nullable bulkupdateconfigstorelistrequest types. type NullableBulkUpdateConfigStoreListRequest struct { value *BulkUpdateConfigStoreListRequest isSet bool @@ -148,7 +147,7 @@ func (v NullableBulkUpdateConfigStoreListRequest) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateConfigStoreListRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_dictionary_item.go b/fastly/model_bulk_update_dictionary_item.go index 0a9fb76..cd1b8f5 100644 --- a/fastly/model_bulk_update_dictionary_item.go +++ b/fastly/model_bulk_update_dictionary_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,8 +21,8 @@ type BulkUpdateDictionaryItem struct { // Item key, maximum 256 characters. ItemKey *string `json:"item_key,omitempty"` // Item value, maximum 8000 characters. - ItemValue *string `json:"item_value,omitempty"` - Op *string `json:"op,omitempty"` + ItemValue *string `json:"item_value,omitempty"` + Op *string `json:"op,omitempty"` AdditionalProperties map[string]any } @@ -164,7 +163,7 @@ func (o BulkUpdateDictionaryItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateDictionaryItem) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateDictionaryItem := _BulkUpdateDictionaryItem{} @@ -184,7 +183,7 @@ func (o *BulkUpdateDictionaryItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkUpdateDictionaryItem is a helper abstraction for handling nullable bulkupdatedictionaryitem types. +// NullableBulkUpdateDictionaryItem is a helper abstraction for handling nullable bulkupdatedictionaryitem types. type NullableBulkUpdateDictionaryItem struct { value *BulkUpdateDictionaryItem isSet bool @@ -224,7 +223,7 @@ func (v NullableBulkUpdateDictionaryItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateDictionaryItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_update_dictionary_list_request.go b/fastly/model_bulk_update_dictionary_list_request.go index 3448fd6..e58dbc3 100644 --- a/fastly/model_bulk_update_dictionary_list_request.go +++ b/fastly/model_bulk_update_dictionary_list_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkUpdateDictionaryListRequest struct for BulkUpdateDictionaryListRequest type BulkUpdateDictionaryListRequest struct { - Items []BulkUpdateDictionaryItem `json:"items,omitempty"` + Items []BulkUpdateDictionaryItem `json:"items,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BulkUpdateDictionaryListRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkUpdateDictionaryListRequest) UnmarshalJSON(bytes []byte) (err error) { varBulkUpdateDictionaryListRequest := _BulkUpdateDictionaryListRequest{} @@ -108,7 +107,7 @@ func (o *BulkUpdateDictionaryListRequest) UnmarshalJSON(bytes []byte) (err error return err } -// NullableBulkUpdateDictionaryListRequest is a helper abstraction for handling nullable bulkupdatedictionarylistrequest types. +// NullableBulkUpdateDictionaryListRequest is a helper abstraction for handling nullable bulkupdatedictionarylistrequest types. type NullableBulkUpdateDictionaryListRequest struct { value *BulkUpdateDictionaryListRequest isSet bool @@ -148,7 +147,7 @@ func (v NullableBulkUpdateDictionaryListRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkUpdateDictionaryListRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_bulk_waf_active_rules.go b/fastly/model_bulk_waf_active_rules.go index be7558f..0d9e4a5 100644 --- a/fastly/model_bulk_waf_active_rules.go +++ b/fastly/model_bulk_waf_active_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // BulkWafActiveRules struct for BulkWafActiveRules type BulkWafActiveRules struct { - Data []WafActiveRuleData `json:"data,omitempty"` + Data []WafActiveRuleData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o BulkWafActiveRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *BulkWafActiveRules) UnmarshalJSON(bytes []byte) (err error) { varBulkWafActiveRules := _BulkWafActiveRules{} @@ -108,7 +107,7 @@ func (o *BulkWafActiveRules) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableBulkWafActiveRules is a helper abstraction for handling nullable bulkwafactiverules types. +// NullableBulkWafActiveRules is a helper abstraction for handling nullable bulkwafactiverules types. type NullableBulkWafActiveRules struct { value *BulkWafActiveRules isSet bool @@ -148,7 +147,7 @@ func (v NullableBulkWafActiveRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBulkWafActiveRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_cache_setting.go b/fastly/model_cache_setting.go index fefcc0a..4a5c02f 100644 --- a/fastly/model_cache_setting.go +++ b/fastly/model_cache_setting.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // CacheSetting struct for CacheSetting type CacheSetting struct { - // If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. + // If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. Action NullableString `json:"action,omitempty"` // Name of the cache condition controlling when this configuration applies. CacheCondition NullableString `json:"cache_condition,omitempty"` @@ -28,7 +27,7 @@ type CacheSetting struct { // Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). StaleTTL *string `json:"stale_ttl,omitempty"` // Maximum time to consider the object fresh in the cache (the cache 'time to live'). - TTL *string `json:"ttl,omitempty"` + TTL *string `json:"ttl,omitempty"` AdditionalProperties map[string]any } @@ -64,7 +63,7 @@ func (o *CacheSetting) GetAction() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSetting) GetActionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Action.Get(), o.Action.IsSet() @@ -83,6 +82,7 @@ func (o *CacheSetting) HasAction() bool { func (o *CacheSetting) SetAction(v string) { o.Action.Set(&v) } + // SetActionNil sets the value for Action to be an explicit nil func (o *CacheSetting) SetActionNil() { o.Action.Set(nil) @@ -106,7 +106,7 @@ func (o *CacheSetting) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSetting) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -125,6 +125,7 @@ func (o *CacheSetting) HasCacheCondition() bool { func (o *CacheSetting) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *CacheSetting) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -259,7 +260,7 @@ func (o CacheSetting) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CacheSetting) UnmarshalJSON(bytes []byte) (err error) { varCacheSetting := _CacheSetting{} @@ -281,7 +282,7 @@ func (o *CacheSetting) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCacheSetting is a helper abstraction for handling nullable cachesetting types. +// NullableCacheSetting is a helper abstraction for handling nullable cachesetting types. type NullableCacheSetting struct { value *CacheSetting isSet bool @@ -321,7 +322,7 @@ func (v NullableCacheSetting) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCacheSetting) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_cache_setting_response.go b/fastly/model_cache_setting_response.go index adf95b3..662b026 100644 --- a/fastly/model_cache_setting_response.go +++ b/fastly/model_cache_setting_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,7 +19,7 @@ import ( // CacheSettingResponse struct for CacheSettingResponse type CacheSettingResponse struct { - // If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. + // If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. Action NullableString `json:"action,omitempty"` // Name of the cache condition controlling when this configuration applies. CacheCondition NullableString `json:"cache_condition,omitempty"` @@ -29,15 +28,15 @@ type CacheSettingResponse struct { // Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). StaleTTL *string `json:"stale_ttl,omitempty"` // Maximum time to consider the object fresh in the cache (the cache 'time to live'). - TTL *string `json:"ttl,omitempty"` + TTL *string `json:"ttl,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -73,7 +72,7 @@ func (o *CacheSettingResponse) GetAction() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSettingResponse) GetActionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Action.Get(), o.Action.IsSet() @@ -92,6 +91,7 @@ func (o *CacheSettingResponse) HasAction() bool { func (o *CacheSettingResponse) SetAction(v string) { o.Action.Set(&v) } + // SetActionNil sets the value for Action to be an explicit nil func (o *CacheSettingResponse) SetActionNil() { o.Action.Set(nil) @@ -115,7 +115,7 @@ func (o *CacheSettingResponse) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSettingResponse) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -134,6 +134,7 @@ func (o *CacheSettingResponse) HasCacheCondition() bool { func (o *CacheSettingResponse) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *CacheSettingResponse) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -317,7 +318,7 @@ func (o *CacheSettingResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSettingResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -336,6 +337,7 @@ func (o *CacheSettingResponse) HasCreatedAt() bool { func (o *CacheSettingResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *CacheSettingResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -359,7 +361,7 @@ func (o *CacheSettingResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSettingResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -378,6 +380,7 @@ func (o *CacheSettingResponse) HasDeletedAt() bool { func (o *CacheSettingResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *CacheSettingResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -401,7 +404,7 @@ func (o *CacheSettingResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CacheSettingResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -420,6 +423,7 @@ func (o *CacheSettingResponse) HasUpdatedAt() bool { func (o *CacheSettingResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *CacheSettingResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -473,7 +477,7 @@ func (o CacheSettingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CacheSettingResponse) UnmarshalJSON(bytes []byte) (err error) { varCacheSettingResponse := _CacheSettingResponse{} @@ -500,7 +504,7 @@ func (o *CacheSettingResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCacheSettingResponse is a helper abstraction for handling nullable cachesettingresponse types. +// NullableCacheSettingResponse is a helper abstraction for handling nullable cachesettingresponse types. type NullableCacheSettingResponse struct { value *CacheSettingResponse isSet bool @@ -540,7 +544,7 @@ func (v NullableCacheSettingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCacheSettingResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_client_key.go b/fastly/model_client_key.go index 00a381f..bf82456 100644 --- a/fastly/model_client_key.go +++ b/fastly/model_client_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,7 +24,7 @@ type ClientKey struct { // A Base64-encoded signature of the client key. The signature is generated using the signing key and must be verified before using the client key. Signature *string `json:"signature,omitempty"` // Date and time in ISO 8601 format. - ExpiresAt NullableTime `json:"expires_at,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *ClientKey) GetExpiresAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ClientKey) GetExpiresAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() @@ -144,6 +143,7 @@ func (o *ClientKey) HasExpiresAt() bool { func (o *ClientKey) SetExpiresAt(v time.Time) { o.ExpiresAt.Set(&v) } + // SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil func (o *ClientKey) SetExpiresAtNil() { o.ExpiresAt.Set(nil) @@ -176,7 +176,7 @@ func (o ClientKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ClientKey) UnmarshalJSON(bytes []byte) (err error) { varClientKey := _ClientKey{} @@ -196,7 +196,7 @@ func (o *ClientKey) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableClientKey is a helper abstraction for handling nullable clientkey types. +// NullableClientKey is a helper abstraction for handling nullable clientkey types. type NullableClientKey struct { value *ClientKey isSet bool @@ -236,7 +236,7 @@ func (v NullableClientKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableClientKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_create_acls_request.go b/fastly/model_compute_acl_create_acls_request.go index 6f7df0a..e949296 100644 --- a/fastly/model_compute_acl_create_acls_request.go +++ b/fastly/model_compute_acl_create_acls_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ComputeACLCreateAclsRequest struct for ComputeACLCreateAclsRequest type ComputeACLCreateAclsRequest struct { // Human readable name of store - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ComputeACLCreateAclsRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLCreateAclsRequest) UnmarshalJSON(bytes []byte) (err error) { varComputeACLCreateAclsRequest := _ComputeACLCreateAclsRequest{} @@ -109,7 +108,7 @@ func (o *ComputeACLCreateAclsRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLCreateAclsRequest is a helper abstraction for handling nullable computeaclcreateaclsrequest types. +// NullableComputeACLCreateAclsRequest is a helper abstraction for handling nullable computeaclcreateaclsrequest types. type NullableComputeACLCreateAclsRequest struct { value *ComputeACLCreateAclsRequest isSet bool @@ -149,7 +148,7 @@ func (v NullableComputeACLCreateAclsRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLCreateAclsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_create_acls_response.go b/fastly/model_compute_acl_create_acls_response.go index d46a843..0ce6e86 100644 --- a/fastly/model_compute_acl_create_acls_response.go +++ b/fastly/model_compute_acl_create_acls_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ComputeACLCreateAclsResponse struct { // Human readable name of store Name *string `json:"name,omitempty"` // An example identifier (UUID). - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ComputeACLCreateAclsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLCreateAclsResponse) UnmarshalJSON(bytes []byte) (err error) { varComputeACLCreateAclsResponse := _ComputeACLCreateAclsResponse{} @@ -147,7 +146,7 @@ func (o *ComputeACLCreateAclsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLCreateAclsResponse is a helper abstraction for handling nullable computeaclcreateaclsresponse types. +// NullableComputeACLCreateAclsResponse is a helper abstraction for handling nullable computeaclcreateaclsresponse types. type NullableComputeACLCreateAclsResponse struct { value *ComputeACLCreateAclsResponse isSet bool @@ -187,7 +186,7 @@ func (v NullableComputeACLCreateAclsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLCreateAclsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_list_entries.go b/fastly/model_compute_acl_list_entries.go index ed0fa88..358e8a4 100644 --- a/fastly/model_compute_acl_list_entries.go +++ b/fastly/model_compute_acl_list_entries.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ComputeACLListEntries An example of an ACL List Response. type ComputeACLListEntries struct { - Meta *ComputeACLListEntriesMeta `json:"meta,omitempty"` - Entries []ComputeACLListEntriesItem `json:"entries,omitempty"` + Meta *ComputeACLListEntriesMeta `json:"meta,omitempty"` + Entries []ComputeACLListEntriesItem `json:"entries,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ComputeACLListEntries) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLListEntries) UnmarshalJSON(bytes []byte) (err error) { varComputeACLListEntries := _ComputeACLListEntries{} @@ -145,7 +144,7 @@ func (o *ComputeACLListEntries) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLListEntries is a helper abstraction for handling nullable computeacllistentries types. +// NullableComputeACLListEntries is a helper abstraction for handling nullable computeacllistentries types. type NullableComputeACLListEntries struct { value *ComputeACLListEntries isSet bool @@ -185,7 +184,7 @@ func (v NullableComputeACLListEntries) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLListEntries) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_list_entries_item.go b/fastly/model_compute_acl_list_entries_item.go index cebb941..6e89d09 100644 --- a/fastly/model_compute_acl_list_entries_item.go +++ b/fastly/model_compute_acl_list_entries_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ComputeACLListEntriesItem struct { // An IP prefix defined in Classless Inter-Domain Routing (CIDR) format, i.e. a valid IP address (v4 or v6) followed by a forward slash (/) and a prefix length (0-32 or 0-128, depending on address family). Prefix *string `json:"prefix,omitempty"` // One of \"ALLOW\" or \"BLOCK\". - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ComputeACLListEntriesItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLListEntriesItem) UnmarshalJSON(bytes []byte) (err error) { varComputeACLListEntriesItem := _ComputeACLListEntriesItem{} @@ -147,7 +146,7 @@ func (o *ComputeACLListEntriesItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLListEntriesItem is a helper abstraction for handling nullable computeacllistentriesitem types. +// NullableComputeACLListEntriesItem is a helper abstraction for handling nullable computeacllistentriesitem types. type NullableComputeACLListEntriesItem struct { value *ComputeACLListEntriesItem isSet bool @@ -187,7 +186,7 @@ func (v NullableComputeACLListEntriesItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLListEntriesItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_list_entries_meta.go b/fastly/model_compute_acl_list_entries_meta.go index 62a32e9..c7132ce 100644 --- a/fastly/model_compute_acl_list_entries_meta.go +++ b/fastly/model_compute_acl_list_entries_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ComputeACLListEntriesMeta struct { // The maximum number of results shown in this response. Limit *string `json:"limit,omitempty"` // Used for pagination, supply to the next request to get the next block of results. - NextCursor *string `json:"next_cursor,omitempty"` + NextCursor *string `json:"next_cursor,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ComputeACLListEntriesMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLListEntriesMeta) UnmarshalJSON(bytes []byte) (err error) { varComputeACLListEntriesMeta := _ComputeACLListEntriesMeta{} @@ -147,7 +146,7 @@ func (o *ComputeACLListEntriesMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLListEntriesMeta is a helper abstraction for handling nullable computeacllistentriesmeta types. +// NullableComputeACLListEntriesMeta is a helper abstraction for handling nullable computeacllistentriesmeta types. type NullableComputeACLListEntriesMeta struct { value *ComputeACLListEntriesMeta isSet bool @@ -187,7 +186,7 @@ func (v NullableComputeACLListEntriesMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLListEntriesMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_lookup.go b/fastly/model_compute_acl_lookup.go index 1caa5c3..9693309 100644 --- a/fastly/model_compute_acl_lookup.go +++ b/fastly/model_compute_acl_lookup.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type ComputeACLLookup struct { // The length of address in the IP addressing space. Length *int32 `json:"length,omitempty"` // One of \"ALLOW\" or \"BLOCK\". - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o ComputeACLLookup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLLookup) UnmarshalJSON(bytes []byte) (err error) { varComputeACLLookup := _ComputeACLLookup{} @@ -185,7 +184,7 @@ func (o *ComputeACLLookup) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLLookup is a helper abstraction for handling nullable computeacllookup types. +// NullableComputeACLLookup is a helper abstraction for handling nullable computeacllookup types. type NullableComputeACLLookup struct { value *ComputeACLLookup isSet bool @@ -225,7 +224,7 @@ func (v NullableComputeACLLookup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLLookup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_compute_acl_update_entry.go b/fastly/model_compute_acl_update_entry.go index 219e1fb..f14d33b 100644 --- a/fastly/model_compute_acl_update_entry.go +++ b/fastly/model_compute_acl_update_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type ComputeACLUpdateEntry struct { // An IP prefix defined in Classless Inter-Domain Routing (CIDR) format, i.e. a valid IP address (v4 or v6) followed by a forward slash (/) and a prefix length (0-32 or 0-128, depending on address family). Prefix *string `json:"prefix,omitempty"` // The action taken on the IP address, either \"block\" or \"allow\". - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o ComputeACLUpdateEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ComputeACLUpdateEntry) UnmarshalJSON(bytes []byte) (err error) { varComputeACLUpdateEntry := _ComputeACLUpdateEntry{} @@ -185,7 +184,7 @@ func (o *ComputeACLUpdateEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableComputeACLUpdateEntry is a helper abstraction for handling nullable computeaclupdateentry types. +// NullableComputeACLUpdateEntry is a helper abstraction for handling nullable computeaclupdateentry types. type NullableComputeACLUpdateEntry struct { value *ComputeACLUpdateEntry isSet bool @@ -225,7 +224,7 @@ func (v NullableComputeACLUpdateEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableComputeACLUpdateEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_condition.go b/fastly/model_condition.go index 9cc7823..b8439ce 100644 --- a/fastly/model_condition.go +++ b/fastly/model_condition.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -31,7 +30,7 @@ type Condition struct { // A numeric string that represents the service version. Version *string `json:"version,omitempty"` // Type of the condition. Required. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]any } @@ -71,7 +70,7 @@ func (o *Condition) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Condition) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -90,6 +89,7 @@ func (o *Condition) HasComment() bool { func (o *Condition) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Condition) SetCommentNil() { o.Comment.Set(nil) @@ -326,7 +326,7 @@ func (o Condition) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Condition) UnmarshalJSON(bytes []byte) (err error) { varCondition := _Condition{} @@ -350,7 +350,7 @@ func (o *Condition) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCondition is a helper abstraction for handling nullable condition types. +// NullableCondition is a helper abstraction for handling nullable condition types. type NullableCondition struct { value *Condition isSet bool @@ -390,7 +390,7 @@ func (v NullableCondition) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCondition) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_condition_response.go b/fastly/model_condition_response.go index f42e4c8..d4ad410 100644 --- a/fastly/model_condition_response.go +++ b/fastly/model_condition_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -38,7 +37,7 @@ type ConditionResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -78,7 +77,7 @@ func (o *ConditionResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConditionResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -97,6 +96,7 @@ func (o *ConditionResponse) HasComment() bool { func (o *ConditionResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ConditionResponse) SetCommentNil() { o.Comment.Set(nil) @@ -312,7 +312,7 @@ func (o *ConditionResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConditionResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -331,6 +331,7 @@ func (o *ConditionResponse) HasCreatedAt() bool { func (o *ConditionResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ConditionResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -354,7 +355,7 @@ func (o *ConditionResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConditionResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -373,6 +374,7 @@ func (o *ConditionResponse) HasDeletedAt() bool { func (o *ConditionResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ConditionResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -396,7 +398,7 @@ func (o *ConditionResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConditionResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -415,6 +417,7 @@ func (o *ConditionResponse) HasUpdatedAt() bool { func (o *ConditionResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ConditionResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -468,7 +471,7 @@ func (o ConditionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConditionResponse) UnmarshalJSON(bytes []byte) (err error) { varConditionResponse := _ConditionResponse{} @@ -495,7 +498,7 @@ func (o *ConditionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConditionResponse is a helper abstraction for handling nullable conditionresponse types. +// NullableConditionResponse is a helper abstraction for handling nullable conditionresponse types. type NullableConditionResponse struct { value *ConditionResponse isSet bool @@ -535,7 +538,7 @@ func (v NullableConditionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConditionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store.go b/fastly/model_config_store.go index 67facbd..9579b30 100644 --- a/fastly/model_config_store.go +++ b/fastly/model_config_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ConfigStore struct for ConfigStore type ConfigStore struct { // The name of the config store. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ConfigStore) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStore) UnmarshalJSON(bytes []byte) (err error) { varConfigStore := _ConfigStore{} @@ -109,7 +108,7 @@ func (o *ConfigStore) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStore is a helper abstraction for handling nullable configstore types. +// NullableConfigStore is a helper abstraction for handling nullable configstore types. type NullableConfigStore struct { value *ConfigStore isSet bool @@ -149,7 +148,7 @@ func (v NullableConfigStore) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStore) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_info_response.go b/fastly/model_config_store_info_response.go index 260ce92..4e071da 100644 --- a/fastly/model_config_store_info_response.go +++ b/fastly/model_config_store_info_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ConfigStoreInfoResponse struct for ConfigStoreInfoResponse type ConfigStoreInfoResponse struct { // The number of items currently in the config store. - ItemCount *int32 `json:"item_count,omitempty"` + ItemCount *int32 `json:"item_count,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ConfigStoreInfoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreInfoResponse) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreInfoResponse := _ConfigStoreInfoResponse{} @@ -109,7 +108,7 @@ func (o *ConfigStoreInfoResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreInfoResponse is a helper abstraction for handling nullable configstoreinforesponse types. +// NullableConfigStoreInfoResponse is a helper abstraction for handling nullable configstoreinforesponse types. type NullableConfigStoreInfoResponse struct { value *ConfigStoreInfoResponse isSet bool @@ -149,7 +148,7 @@ func (v NullableConfigStoreInfoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreInfoResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_item.go b/fastly/model_config_store_item.go index 9973486..f41dbb4 100644 --- a/fastly/model_config_store_item.go +++ b/fastly/model_config_store_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ConfigStoreItem struct { // Item key, maximum 256 characters. ItemKey *string `json:"item_key,omitempty"` // Item value, maximum 8000 characters. - ItemValue *string `json:"item_value,omitempty"` + ItemValue *string `json:"item_value,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ConfigStoreItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreItem) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreItem := _ConfigStoreItem{} @@ -147,7 +146,7 @@ func (o *ConfigStoreItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreItem is a helper abstraction for handling nullable configstoreitem types. +// NullableConfigStoreItem is a helper abstraction for handling nullable configstoreitem types. type NullableConfigStoreItem struct { value *ConfigStoreItem isSet bool @@ -187,7 +186,7 @@ func (v NullableConfigStoreItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_item_response.go b/fastly/model_config_store_item_response.go index 426a781..3dc6775 100644 --- a/fastly/model_config_store_item_response.go +++ b/fastly/model_config_store_item_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,8 +28,8 @@ type ConfigStoreItemResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - StoreID *string `json:"store_id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + StoreID *string `json:"store_id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o *ConfigStoreItemResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreItemResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -149,6 +148,7 @@ func (o *ConfigStoreItemResponse) HasCreatedAt() bool { func (o *ConfigStoreItemResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ConfigStoreItemResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -172,7 +172,7 @@ func (o *ConfigStoreItemResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreItemResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -191,6 +191,7 @@ func (o *ConfigStoreItemResponse) HasDeletedAt() bool { func (o *ConfigStoreItemResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ConfigStoreItemResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -214,7 +215,7 @@ func (o *ConfigStoreItemResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreItemResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -233,6 +234,7 @@ func (o *ConfigStoreItemResponse) HasUpdatedAt() bool { func (o *ConfigStoreItemResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ConfigStoreItemResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -306,7 +308,7 @@ func (o ConfigStoreItemResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreItemResponse) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreItemResponse := _ConfigStoreItemResponse{} @@ -329,7 +331,7 @@ func (o *ConfigStoreItemResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreItemResponse is a helper abstraction for handling nullable configstoreitemresponse types. +// NullableConfigStoreItemResponse is a helper abstraction for handling nullable configstoreitemresponse types. type NullableConfigStoreItemResponse struct { value *ConfigStoreItemResponse isSet bool @@ -369,7 +371,7 @@ func (v NullableConfigStoreItemResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreItemResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_item_response_all_of.go b/fastly/model_config_store_item_response_all_of.go index 065e2e4..77e5fdf 100644 --- a/fastly/model_config_store_item_response_all_of.go +++ b/fastly/model_config_store_item_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ConfigStoreItemResponseAllOf struct for ConfigStoreItemResponseAllOf type ConfigStoreItemResponseAllOf struct { - StoreID *string `json:"store_id,omitempty"` + StoreID *string `json:"store_id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ConfigStoreItemResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreItemResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreItemResponseAllOf := _ConfigStoreItemResponseAllOf{} @@ -108,7 +107,7 @@ func (o *ConfigStoreItemResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreItemResponseAllOf is a helper abstraction for handling nullable configstoreitemresponseallof types. +// NullableConfigStoreItemResponseAllOf is a helper abstraction for handling nullable configstoreitemresponseallof types. type NullableConfigStoreItemResponseAllOf struct { value *ConfigStoreItemResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableConfigStoreItemResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreItemResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_response.go b/fastly/model_config_store_response.go index 0e84af7..1da3afa 100644 --- a/fastly/model_config_store_response.go +++ b/fastly/model_config_store_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,7 +28,7 @@ type ConfigStoreResponse struct { // The name of the config store. Name *string `json:"name,omitempty"` // An alphanumeric string identifying the config store. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *ConfigStoreResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -84,6 +83,7 @@ func (o *ConfigStoreResponse) HasCreatedAt() bool { func (o *ConfigStoreResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ConfigStoreResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -107,7 +107,7 @@ func (o *ConfigStoreResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -126,6 +126,7 @@ func (o *ConfigStoreResponse) HasDeletedAt() bool { func (o *ConfigStoreResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ConfigStoreResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -149,7 +150,7 @@ func (o *ConfigStoreResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConfigStoreResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -168,6 +169,7 @@ func (o *ConfigStoreResponse) HasUpdatedAt() bool { func (o *ConfigStoreResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ConfigStoreResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -270,7 +272,7 @@ func (o ConfigStoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreResponse) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreResponse := _ConfigStoreResponse{} @@ -292,7 +294,7 @@ func (o *ConfigStoreResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreResponse is a helper abstraction for handling nullable configstoreresponse types. +// NullableConfigStoreResponse is a helper abstraction for handling nullable configstoreresponse types. type NullableConfigStoreResponse struct { value *ConfigStoreResponse isSet bool @@ -332,7 +334,7 @@ func (v NullableConfigStoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_config_store_response_all_of.go b/fastly/model_config_store_response_all_of.go index b149ef9..fa619ab 100644 --- a/fastly/model_config_store_response_all_of.go +++ b/fastly/model_config_store_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ConfigStoreResponseAllOf struct for ConfigStoreResponseAllOf type ConfigStoreResponseAllOf struct { // An alphanumeric string identifying the config store. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ConfigStoreResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfigStoreResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varConfigStoreResponseAllOf := _ConfigStoreResponseAllOf{} @@ -109,7 +108,7 @@ func (o *ConfigStoreResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfigStoreResponseAllOf is a helper abstraction for handling nullable configstoreresponseallof types. +// NullableConfigStoreResponseAllOf is a helper abstraction for handling nullable configstoreresponseallof types. type NullableConfigStoreResponseAllOf struct { value *ConfigStoreResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableConfigStoreResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfigStoreResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_configured_product_response.go b/fastly/model_configured_product_response.go index 7d197b6..3460c5e 100644 --- a/fastly/model_configured_product_response.go +++ b/fastly/model_configured_product_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ConfiguredProductResponse struct for ConfiguredProductResponse type ConfiguredProductResponse struct { - Product *ConfiguredProductResponseProduct `json:"product,omitempty"` - Service *EnabledProductResponseService `json:"service,omitempty"` - Configuration *ConfiguredProductResponseConfiguration `json:"configuration,omitempty"` - Links *ConfiguredProductResponseLinks `json:"_links,omitempty"` + Product *ConfiguredProductResponseProduct `json:"product,omitempty"` + Service *EnabledProductResponseService `json:"service,omitempty"` + Configuration *ConfiguredProductResponseConfiguration `json:"configuration,omitempty"` + Links *ConfiguredProductResponseLinks `json:"_links,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o ConfiguredProductResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfiguredProductResponse) UnmarshalJSON(bytes []byte) (err error) { varConfiguredProductResponse := _ConfiguredProductResponse{} @@ -219,7 +218,7 @@ func (o *ConfiguredProductResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableConfiguredProductResponse is a helper abstraction for handling nullable configuredproductresponse types. +// NullableConfiguredProductResponse is a helper abstraction for handling nullable configuredproductresponse types. type NullableConfiguredProductResponse struct { value *ConfiguredProductResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableConfiguredProductResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfiguredProductResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_configured_product_response__links.go b/fastly/model_configured_product_response__links.go index a14a5a2..4e85dfb 100644 --- a/fastly/model_configured_product_response__links.go +++ b/fastly/model_configured_product_response__links.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ConfiguredProductResponseLinks struct { // Location of resource Self *string `json:"self,omitempty"` // Location of the service resource - Service *string `json:"service,omitempty"` + Service *string `json:"service,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ConfiguredProductResponseLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfiguredProductResponseLinks) UnmarshalJSON(bytes []byte) (err error) { varConfiguredProductResponseLinks := _ConfiguredProductResponseLinks{} @@ -147,7 +146,7 @@ func (o *ConfiguredProductResponseLinks) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableConfiguredProductResponseLinks is a helper abstraction for handling nullable configuredproductresponselinks types. +// NullableConfiguredProductResponseLinks is a helper abstraction for handling nullable configuredproductresponselinks types. type NullableConfiguredProductResponseLinks struct { value *ConfiguredProductResponseLinks isSet bool @@ -187,7 +186,7 @@ func (v NullableConfiguredProductResponseLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfiguredProductResponseLinks) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_configured_product_response_configuration.go b/fastly/model_configured_product_response_configuration.go index 6534cc6..9fd3577 100644 --- a/fastly/model_configured_product_response_configuration.go +++ b/fastly/model_configured_product_response_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ConfiguredProductResponseConfiguration struct { // Workspace ID WorkspaceID *string `json:"workspace_id,omitempty"` // Traffic ramp - TrafficRamp *string `json:"traffic_ramp,omitempty"` + TrafficRamp *string `json:"traffic_ramp,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ConfiguredProductResponseConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfiguredProductResponseConfiguration) UnmarshalJSON(bytes []byte) (err error) { varConfiguredProductResponseConfiguration := _ConfiguredProductResponseConfiguration{} @@ -147,7 +146,7 @@ func (o *ConfiguredProductResponseConfiguration) UnmarshalJSON(bytes []byte) (er return err } -// NullableConfiguredProductResponseConfiguration is a helper abstraction for handling nullable configuredproductresponseconfiguration types. +// NullableConfiguredProductResponseConfiguration is a helper abstraction for handling nullable configuredproductresponseconfiguration types. type NullableConfiguredProductResponseConfiguration struct { value *ConfiguredProductResponseConfiguration isSet bool @@ -187,7 +186,7 @@ func (v NullableConfiguredProductResponseConfiguration) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfiguredProductResponseConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_configured_product_response_product.go b/fastly/model_configured_product_response_product.go index da8f50c..d6dddd0 100644 --- a/fastly/model_configured_product_response_product.go +++ b/fastly/model_configured_product_response_product.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type ConfiguredProductResponseProduct struct { // Product identifier ID *string `json:"id,omitempty"` // Name of the object - Object *string `json:"object,omitempty"` + Object *string `json:"object,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o ConfiguredProductResponseProduct) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ConfiguredProductResponseProduct) UnmarshalJSON(bytes []byte) (err error) { varConfiguredProductResponseProduct := _ConfiguredProductResponseProduct{} @@ -147,7 +146,7 @@ func (o *ConfiguredProductResponseProduct) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableConfiguredProductResponseProduct is a helper abstraction for handling nullable configuredproductresponseproduct types. +// NullableConfiguredProductResponseProduct is a helper abstraction for handling nullable configuredproductresponseproduct types. type NullableConfiguredProductResponseProduct struct { value *ConfiguredProductResponseProduct isSet bool @@ -187,7 +186,7 @@ func (v NullableConfiguredProductResponseProduct) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableConfiguredProductResponseProduct) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_contact.go b/fastly/model_contact.go index a37b1cf..52a1b2c 100644 --- a/fastly/model_contact.go +++ b/fastly/model_contact.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type Contact struct { // The phone number for this contact. Required for primary, technical, and security contact types. Phone NullableString `json:"phone,omitempty"` // The alphanumeric string representing the customer for this customer contact. - CustomerID NullableString `json:"customer_id,omitempty"` + CustomerID NullableString `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -66,7 +65,7 @@ func (o *Contact) GetUserID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Contact) GetUserIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.UserID.Get(), o.UserID.IsSet() @@ -85,6 +84,7 @@ func (o *Contact) HasUserID() bool { func (o *Contact) SetUserID(v string) { o.UserID.Set(&v) } + // SetUserIDNil sets the value for UserID to be an explicit nil func (o *Contact) SetUserIDNil() { o.UserID.Set(nil) @@ -140,7 +140,7 @@ func (o *Contact) GetName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Contact) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Name.Get(), o.Name.IsSet() @@ -159,6 +159,7 @@ func (o *Contact) HasName() bool { func (o *Contact) SetName(v string) { o.Name.Set(&v) } + // SetNameNil sets the value for Name to be an explicit nil func (o *Contact) SetNameNil() { o.Name.Set(nil) @@ -182,7 +183,7 @@ func (o *Contact) GetEmail() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Contact) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Email.Get(), o.Email.IsSet() @@ -201,6 +202,7 @@ func (o *Contact) HasEmail() bool { func (o *Contact) SetEmail(v string) { o.Email.Set(&v) } + // SetEmailNil sets the value for Email to be an explicit nil func (o *Contact) SetEmailNil() { o.Email.Set(nil) @@ -224,7 +226,7 @@ func (o *Contact) GetPhone() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Contact) GetPhoneOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Phone.Get(), o.Phone.IsSet() @@ -243,6 +245,7 @@ func (o *Contact) HasPhone() bool { func (o *Contact) SetPhone(v string) { o.Phone.Set(&v) } + // SetPhoneNil sets the value for Phone to be an explicit nil func (o *Contact) SetPhoneNil() { o.Phone.Set(nil) @@ -266,7 +269,7 @@ func (o *Contact) GetCustomerID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Contact) GetCustomerIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CustomerID.Get(), o.CustomerID.IsSet() @@ -285,6 +288,7 @@ func (o *Contact) HasCustomerID() bool { func (o *Contact) SetCustomerID(v string) { o.CustomerID.Set(&v) } + // SetCustomerIDNil sets the value for CustomerID to be an explicit nil func (o *Contact) SetCustomerIDNil() { o.CustomerID.Set(nil) @@ -326,7 +330,7 @@ func (o Contact) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Contact) UnmarshalJSON(bytes []byte) (err error) { varContact := _Contact{} @@ -349,7 +353,7 @@ func (o *Contact) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableContact is a helper abstraction for handling nullable contact types. +// NullableContact is a helper abstraction for handling nullable contact types. type NullableContact struct { value *Contact isSet bool @@ -389,7 +393,7 @@ func (v NullableContact) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_contact_response.go b/fastly/model_contact_response.go index 9be61ac..b900314 100644 --- a/fastly/model_contact_response.go +++ b/fastly/model_contact_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -37,8 +36,8 @@ type ContactResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -74,7 +73,7 @@ func (o *ContactResponse) GetUserID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetUserIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.UserID.Get(), o.UserID.IsSet() @@ -93,6 +92,7 @@ func (o *ContactResponse) HasUserID() bool { func (o *ContactResponse) SetUserID(v string) { o.UserID.Set(&v) } + // SetUserIDNil sets the value for UserID to be an explicit nil func (o *ContactResponse) SetUserIDNil() { o.UserID.Set(nil) @@ -148,7 +148,7 @@ func (o *ContactResponse) GetName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Name.Get(), o.Name.IsSet() @@ -167,6 +167,7 @@ func (o *ContactResponse) HasName() bool { func (o *ContactResponse) SetName(v string) { o.Name.Set(&v) } + // SetNameNil sets the value for Name to be an explicit nil func (o *ContactResponse) SetNameNil() { o.Name.Set(nil) @@ -190,7 +191,7 @@ func (o *ContactResponse) GetEmail() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Email.Get(), o.Email.IsSet() @@ -209,6 +210,7 @@ func (o *ContactResponse) HasEmail() bool { func (o *ContactResponse) SetEmail(v string) { o.Email.Set(&v) } + // SetEmailNil sets the value for Email to be an explicit nil func (o *ContactResponse) SetEmailNil() { o.Email.Set(nil) @@ -232,7 +234,7 @@ func (o *ContactResponse) GetPhone() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetPhoneOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Phone.Get(), o.Phone.IsSet() @@ -251,6 +253,7 @@ func (o *ContactResponse) HasPhone() bool { func (o *ContactResponse) SetPhone(v string) { o.Phone.Set(&v) } + // SetPhoneNil sets the value for Phone to be an explicit nil func (o *ContactResponse) SetPhoneNil() { o.Phone.Set(nil) @@ -274,7 +277,7 @@ func (o *ContactResponse) GetCustomerID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetCustomerIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CustomerID.Get(), o.CustomerID.IsSet() @@ -293,6 +296,7 @@ func (o *ContactResponse) HasCustomerID() bool { func (o *ContactResponse) SetCustomerID(v string) { o.CustomerID.Set(&v) } + // SetCustomerIDNil sets the value for CustomerID to be an explicit nil func (o *ContactResponse) SetCustomerIDNil() { o.CustomerID.Set(nil) @@ -316,7 +320,7 @@ func (o *ContactResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -335,6 +339,7 @@ func (o *ContactResponse) HasCreatedAt() bool { func (o *ContactResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ContactResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -358,7 +363,7 @@ func (o *ContactResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -377,6 +382,7 @@ func (o *ContactResponse) HasDeletedAt() bool { func (o *ContactResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ContactResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -400,7 +406,7 @@ func (o *ContactResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ContactResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -419,6 +425,7 @@ func (o *ContactResponse) HasUpdatedAt() bool { func (o *ContactResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ContactResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -504,7 +511,7 @@ func (o ContactResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ContactResponse) UnmarshalJSON(bytes []byte) (err error) { varContactResponse := _ContactResponse{} @@ -531,7 +538,7 @@ func (o *ContactResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableContactResponse is a helper abstraction for handling nullable contactresponse types. +// NullableContactResponse is a helper abstraction for handling nullable contactresponse types. type NullableContactResponse struct { value *ContactResponse isSet bool @@ -571,7 +578,7 @@ func (v NullableContactResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableContactResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_contact_response_all_of.go b/fastly/model_contact_response_all_of.go index 9bee55e..43dc440 100644 --- a/fastly/model_contact_response_all_of.go +++ b/fastly/model_contact_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ContactResponseAllOf struct for ContactResponseAllOf type ContactResponseAllOf struct { - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ContactResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ContactResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varContactResponseAllOf := _ContactResponseAllOf{} @@ -108,7 +107,7 @@ func (o *ContactResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableContactResponseAllOf is a helper abstraction for handling nullable contactresponseallof types. +// NullableContactResponseAllOf is a helper abstraction for handling nullable contactresponseallof types. type NullableContactResponseAllOf struct { value *ContactResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableContactResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableContactResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_content.go b/fastly/model_content.go index 69d8c53..8e2b914 100644 --- a/fastly/model_content.go +++ b/fastly/model_content.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Content struct for Content type Content struct { - Hash *string `json:"hash,omitempty"` - Request map[string]map[string]any `json:"request,omitempty"` - Response map[string]map[string]any `json:"response,omitempty"` - ResponseTime *float32 `json:"response_time,omitempty"` - Server *string `json:"server,omitempty"` - Pop *string `json:"pop,omitempty"` + Hash *string `json:"hash,omitempty"` + Request map[string]map[string]any `json:"request,omitempty"` + Response map[string]map[string]any `json:"response,omitempty"` + ResponseTime *float32 `json:"response_time,omitempty"` + Server *string `json:"server,omitempty"` + Pop *string `json:"pop,omitempty"` AdditionalProperties map[string]any } @@ -270,7 +269,7 @@ func (o Content) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Content) UnmarshalJSON(bytes []byte) (err error) { varContent := _Content{} @@ -293,7 +292,7 @@ func (o *Content) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableContent is a helper abstraction for handling nullable content types. +// NullableContent is a helper abstraction for handling nullable content types. type NullableContent struct { value *Content isSet bool @@ -333,7 +332,7 @@ func (v NullableContent) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableContent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_create_dashboard_request.go b/fastly/model_create_dashboard_request.go index e25048d..3adcc31 100644 --- a/fastly/model_create_dashboard_request.go +++ b/fastly/model_create_dashboard_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type CreateDashboardRequest struct { // A short description of the dashboard Description *string `json:"description,omitempty"` // A list of [dashboard items](#dashboard-item). - Items []DashboardItem `json:"items,omitempty"` + Items []DashboardItem `json:"items,omitempty"` AdditionalProperties map[string]any } @@ -61,7 +60,7 @@ func (o *CreateDashboardRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *CreateDashboardRequest) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Name, true @@ -106,7 +105,7 @@ func (o *CreateDashboardRequest) SetDescription(v string) { // GetItems returns the Items field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateDashboardRequest) GetItems() []DashboardItem { - if o == nil { + if o == nil { var ret []DashboardItem return ret } @@ -159,7 +158,7 @@ func (o CreateDashboardRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CreateDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateDashboardRequest := _CreateDashboardRequest{} @@ -179,7 +178,7 @@ func (o *CreateDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCreateDashboardRequest is a helper abstraction for handling nullable createdashboardrequest types. +// NullableCreateDashboardRequest is a helper abstraction for handling nullable createdashboardrequest types. type NullableCreateDashboardRequest struct { value *CreateDashboardRequest isSet bool @@ -219,7 +218,7 @@ func (v NullableCreateDashboardRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCreateDashboardRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_create_response_object_request.go b/fastly/model_create_response_object_request.go index fa18aaf..0b9c525 100644 --- a/fastly/model_create_response_object_request.go +++ b/fastly/model_create_response_object_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type CreateResponseObjectRequest struct { // Condition which, if met, will select this configuration during a request. Optional. RequestCondition NullableString `json:"request_condition,omitempty"` // Name of the cache condition controlling when this configuration applies. - CacheCondition NullableString `json:"cache_condition,omitempty"` + CacheCondition NullableString `json:"cache_condition,omitempty"` AdditionalProperties map[string]any } @@ -196,7 +195,7 @@ func (o *CreateResponseObjectRequest) GetContentType() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateResponseObjectRequest) GetContentTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentType.Get(), o.ContentType.IsSet() @@ -215,6 +214,7 @@ func (o *CreateResponseObjectRequest) HasContentType() bool { func (o *CreateResponseObjectRequest) SetContentType(v string) { o.ContentType.Set(&v) } + // SetContentTypeNil sets the value for ContentType to be an explicit nil func (o *CreateResponseObjectRequest) SetContentTypeNil() { o.ContentType.Set(nil) @@ -238,7 +238,7 @@ func (o *CreateResponseObjectRequest) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateResponseObjectRequest) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -257,6 +257,7 @@ func (o *CreateResponseObjectRequest) HasRequestCondition() bool { func (o *CreateResponseObjectRequest) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *CreateResponseObjectRequest) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -280,7 +281,7 @@ func (o *CreateResponseObjectRequest) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateResponseObjectRequest) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -299,6 +300,7 @@ func (o *CreateResponseObjectRequest) HasCacheCondition() bool { func (o *CreateResponseObjectRequest) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *CreateResponseObjectRequest) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -343,7 +345,7 @@ func (o CreateResponseObjectRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CreateResponseObjectRequest) UnmarshalJSON(bytes []byte) (err error) { varCreateResponseObjectRequest := _CreateResponseObjectRequest{} @@ -367,7 +369,7 @@ func (o *CreateResponseObjectRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCreateResponseObjectRequest is a helper abstraction for handling nullable createresponseobjectrequest types. +// NullableCreateResponseObjectRequest is a helper abstraction for handling nullable createresponseobjectrequest types. type NullableCreateResponseObjectRequest struct { value *CreateResponseObjectRequest isSet bool @@ -407,7 +409,7 @@ func (v NullableCreateResponseObjectRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCreateResponseObjectRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_customer.go b/fastly/model_customer.go index 07f8d4d..0e74328 100644 --- a/fastly/model_customer.go +++ b/fastly/model_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -66,7 +65,7 @@ type Customer struct { // The alphanumeric string identifying the account's security contact. SecurityContactID NullableString `json:"security_contact_id,omitempty"` // The alphanumeric string identifying the account's technical contact. - TechnicalContactID NullableString `json:"technical_contact_id,omitempty"` + TechnicalContactID NullableString `json:"technical_contact_id,omitempty"` AdditionalProperties map[string]any } @@ -102,7 +101,7 @@ func (o *Customer) GetBillingContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetBillingContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BillingContactID.Get(), o.BillingContactID.IsSet() @@ -121,6 +120,7 @@ func (o *Customer) HasBillingContactID() bool { func (o *Customer) SetBillingContactID(v string) { o.BillingContactID.Set(&v) } + // SetBillingContactIDNil sets the value for BillingContactID to be an explicit nil func (o *Customer) SetBillingContactIDNil() { o.BillingContactID.Set(nil) @@ -176,7 +176,7 @@ func (o *Customer) GetBillingRef() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetBillingRefOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BillingRef.Get(), o.BillingRef.IsSet() @@ -195,6 +195,7 @@ func (o *Customer) HasBillingRef() bool { func (o *Customer) SetBillingRef(v string) { o.BillingRef.Set(&v) } + // SetBillingRefNil sets the value for BillingRef to be an explicit nil func (o *Customer) SetBillingRefNil() { o.BillingRef.Set(nil) @@ -218,7 +219,7 @@ func (o *Customer) GetCanConfigureWordpress() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetCanConfigureWordpressOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.CanConfigureWordpress.Get(), o.CanConfigureWordpress.IsSet() @@ -237,6 +238,7 @@ func (o *Customer) HasCanConfigureWordpress() bool { func (o *Customer) SetCanConfigureWordpress(v bool) { o.CanConfigureWordpress.Set(&v) } + // SetCanConfigureWordpressNil sets the value for CanConfigureWordpress to be an explicit nil func (o *Customer) SetCanConfigureWordpressNil() { o.CanConfigureWordpress.Set(nil) @@ -612,7 +614,7 @@ func (o *Customer) GetLegalContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetLegalContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.LegalContactID.Get(), o.LegalContactID.IsSet() @@ -631,6 +633,7 @@ func (o *Customer) HasLegalContactID() bool { func (o *Customer) SetLegalContactID(v string) { o.LegalContactID.Set(&v) } + // SetLegalContactIDNil sets the value for LegalContactID to be an explicit nil func (o *Customer) SetLegalContactIDNil() { o.LegalContactID.Set(nil) @@ -750,7 +753,7 @@ func (o *Customer) GetPostalAddress() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetPostalAddressOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PostalAddress.Get(), o.PostalAddress.IsSet() @@ -769,6 +772,7 @@ func (o *Customer) HasPostalAddress() bool { func (o *Customer) SetPostalAddress(v string) { o.PostalAddress.Set(&v) } + // SetPostalAddressNil sets the value for PostalAddress to be an explicit nil func (o *Customer) SetPostalAddressNil() { o.PostalAddress.Set(nil) @@ -856,7 +860,7 @@ func (o *Customer) GetSecurityContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetSecurityContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecurityContactID.Get(), o.SecurityContactID.IsSet() @@ -875,6 +879,7 @@ func (o *Customer) HasSecurityContactID() bool { func (o *Customer) SetSecurityContactID(v string) { o.SecurityContactID.Set(&v) } + // SetSecurityContactIDNil sets the value for SecurityContactID to be an explicit nil func (o *Customer) SetSecurityContactIDNil() { o.SecurityContactID.Set(nil) @@ -898,7 +903,7 @@ func (o *Customer) GetTechnicalContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Customer) GetTechnicalContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TechnicalContactID.Get(), o.TechnicalContactID.IsSet() @@ -917,6 +922,7 @@ func (o *Customer) HasTechnicalContactID() bool { func (o *Customer) SetTechnicalContactID(v string) { o.TechnicalContactID.Set(&v) } + // SetTechnicalContactIDNil sets the value for TechnicalContactID to be an explicit nil func (o *Customer) SetTechnicalContactIDNil() { o.TechnicalContactID.Set(nil) @@ -1012,7 +1018,7 @@ func (o Customer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Customer) UnmarshalJSON(bytes []byte) (err error) { varCustomer := _Customer{} @@ -1053,7 +1059,7 @@ func (o *Customer) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCustomer is a helper abstraction for handling nullable customer types. +// NullableCustomer is a helper abstraction for handling nullable customer types. type NullableCustomer struct { value *Customer isSet bool @@ -1093,7 +1099,7 @@ func (v NullableCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCustomer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_customer_address.go b/fastly/model_customer_address.go index 159205b..dd88d55 100644 --- a/fastly/model_customer_address.go +++ b/fastly/model_customer_address.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type CustomerAddress struct { // ISO 3166-1 alpha-2 country code (e.g., \"US\", \"CA\", \"NZ\") Country *string `json:"country,omitempty"` // Postal or Zip code of the address. - PostalCode *string `json:"postal_code,omitempty"` + PostalCode *string `json:"postal_code,omitempty"` AdditionalProperties map[string]any } @@ -313,7 +312,7 @@ func (o CustomerAddress) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CustomerAddress) UnmarshalJSON(bytes []byte) (err error) { varCustomerAddress := _CustomerAddress{} @@ -337,7 +336,7 @@ func (o *CustomerAddress) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCustomerAddress is a helper abstraction for handling nullable customeraddress types. +// NullableCustomerAddress is a helper abstraction for handling nullable customeraddress types. type NullableCustomerAddress struct { value *CustomerAddress isSet bool @@ -377,7 +376,7 @@ func (v NullableCustomerAddress) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCustomerAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_customer_response.go b/fastly/model_customer_response.go index 421e3fe..c3e88f3 100644 --- a/fastly/model_customer_response.go +++ b/fastly/model_customer_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -73,8 +72,8 @@ type CustomerResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -110,7 +109,7 @@ func (o *CustomerResponse) GetBillingContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetBillingContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BillingContactID.Get(), o.BillingContactID.IsSet() @@ -129,6 +128,7 @@ func (o *CustomerResponse) HasBillingContactID() bool { func (o *CustomerResponse) SetBillingContactID(v string) { o.BillingContactID.Set(&v) } + // SetBillingContactIDNil sets the value for BillingContactID to be an explicit nil func (o *CustomerResponse) SetBillingContactIDNil() { o.BillingContactID.Set(nil) @@ -184,7 +184,7 @@ func (o *CustomerResponse) GetBillingRef() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetBillingRefOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BillingRef.Get(), o.BillingRef.IsSet() @@ -203,6 +203,7 @@ func (o *CustomerResponse) HasBillingRef() bool { func (o *CustomerResponse) SetBillingRef(v string) { o.BillingRef.Set(&v) } + // SetBillingRefNil sets the value for BillingRef to be an explicit nil func (o *CustomerResponse) SetBillingRefNil() { o.BillingRef.Set(nil) @@ -226,7 +227,7 @@ func (o *CustomerResponse) GetCanConfigureWordpress() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetCanConfigureWordpressOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.CanConfigureWordpress.Get(), o.CanConfigureWordpress.IsSet() @@ -245,6 +246,7 @@ func (o *CustomerResponse) HasCanConfigureWordpress() bool { func (o *CustomerResponse) SetCanConfigureWordpress(v bool) { o.CanConfigureWordpress.Set(&v) } + // SetCanConfigureWordpressNil sets the value for CanConfigureWordpress to be an explicit nil func (o *CustomerResponse) SetCanConfigureWordpressNil() { o.CanConfigureWordpress.Set(nil) @@ -620,7 +622,7 @@ func (o *CustomerResponse) GetLegalContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetLegalContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.LegalContactID.Get(), o.LegalContactID.IsSet() @@ -639,6 +641,7 @@ func (o *CustomerResponse) HasLegalContactID() bool { func (o *CustomerResponse) SetLegalContactID(v string) { o.LegalContactID.Set(&v) } + // SetLegalContactIDNil sets the value for LegalContactID to be an explicit nil func (o *CustomerResponse) SetLegalContactIDNil() { o.LegalContactID.Set(nil) @@ -758,7 +761,7 @@ func (o *CustomerResponse) GetPostalAddress() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetPostalAddressOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PostalAddress.Get(), o.PostalAddress.IsSet() @@ -777,6 +780,7 @@ func (o *CustomerResponse) HasPostalAddress() bool { func (o *CustomerResponse) SetPostalAddress(v string) { o.PostalAddress.Set(&v) } + // SetPostalAddressNil sets the value for PostalAddress to be an explicit nil func (o *CustomerResponse) SetPostalAddressNil() { o.PostalAddress.Set(nil) @@ -864,7 +868,7 @@ func (o *CustomerResponse) GetSecurityContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetSecurityContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecurityContactID.Get(), o.SecurityContactID.IsSet() @@ -883,6 +887,7 @@ func (o *CustomerResponse) HasSecurityContactID() bool { func (o *CustomerResponse) SetSecurityContactID(v string) { o.SecurityContactID.Set(&v) } + // SetSecurityContactIDNil sets the value for SecurityContactID to be an explicit nil func (o *CustomerResponse) SetSecurityContactIDNil() { o.SecurityContactID.Set(nil) @@ -906,7 +911,7 @@ func (o *CustomerResponse) GetTechnicalContactID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetTechnicalContactIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TechnicalContactID.Get(), o.TechnicalContactID.IsSet() @@ -925,6 +930,7 @@ func (o *CustomerResponse) HasTechnicalContactID() bool { func (o *CustomerResponse) SetTechnicalContactID(v string) { o.TechnicalContactID.Set(&v) } + // SetTechnicalContactIDNil sets the value for TechnicalContactID to be an explicit nil func (o *CustomerResponse) SetTechnicalContactIDNil() { o.TechnicalContactID.Set(nil) @@ -948,7 +954,7 @@ func (o *CustomerResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -967,6 +973,7 @@ func (o *CustomerResponse) HasCreatedAt() bool { func (o *CustomerResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *CustomerResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -990,7 +997,7 @@ func (o *CustomerResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -1009,6 +1016,7 @@ func (o *CustomerResponse) HasDeletedAt() bool { func (o *CustomerResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *CustomerResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -1032,7 +1040,7 @@ func (o *CustomerResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CustomerResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -1051,6 +1059,7 @@ func (o *CustomerResponse) HasUpdatedAt() bool { func (o *CustomerResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *CustomerResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -1190,7 +1199,7 @@ func (o CustomerResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CustomerResponse) UnmarshalJSON(bytes []byte) (err error) { varCustomerResponse := _CustomerResponse{} @@ -1235,7 +1244,7 @@ func (o *CustomerResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCustomerResponse is a helper abstraction for handling nullable customerresponse types. +// NullableCustomerResponse is a helper abstraction for handling nullable customerresponse types. type NullableCustomerResponse struct { value *CustomerResponse isSet bool @@ -1275,7 +1284,7 @@ func (v NullableCustomerResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCustomerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_customer_response_all_of.go b/fastly/model_customer_response_all_of.go index 0718ced..382fdd6 100644 --- a/fastly/model_customer_response_all_of.go +++ b/fastly/model_customer_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // CustomerResponseAllOf struct for CustomerResponseAllOf type CustomerResponseAllOf struct { - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o CustomerResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *CustomerResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varCustomerResponseAllOf := _CustomerResponseAllOf{} @@ -108,7 +107,7 @@ func (o *CustomerResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableCustomerResponseAllOf is a helper abstraction for handling nullable customerresponseallof types. +// NullableCustomerResponseAllOf is a helper abstraction for handling nullable customerresponseallof types. type NullableCustomerResponseAllOf struct { value *CustomerResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableCustomerResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableCustomerResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard.go b/fastly/model_dashboard.go index f1954ff..c307384 100644 --- a/fastly/model_dashboard.go +++ b/fastly/model_dashboard.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -31,9 +30,9 @@ type Dashboard struct { // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - CreatedBy *DashboardPropertyCreatedBy `json:"created_by,omitempty"` - UpdatedBy *DashboardPropertyUpdatedBy `json:"updated_by,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + CreatedBy *DashboardPropertyCreatedBy `json:"created_by,omitempty"` + UpdatedBy *DashboardPropertyUpdatedBy `json:"updated_by,omitempty"` AdditionalProperties map[string]any } @@ -154,7 +153,7 @@ func (o *Dashboard) SetDescription(v string) { // GetItems returns the Items field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Dashboard) GetItems() []DashboardItem { - if o == nil { + if o == nil { var ret []DashboardItem return ret } @@ -198,7 +197,7 @@ func (o *Dashboard) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Dashboard) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -217,6 +216,7 @@ func (o *Dashboard) HasCreatedAt() bool { func (o *Dashboard) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *Dashboard) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -240,7 +240,7 @@ func (o *Dashboard) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Dashboard) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -259,6 +259,7 @@ func (o *Dashboard) HasUpdatedAt() bool { func (o *Dashboard) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *Dashboard) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -370,7 +371,7 @@ func (o Dashboard) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) { varDashboard := _Dashboard{} @@ -395,7 +396,7 @@ func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDashboard is a helper abstraction for handling nullable dashboard types. +// NullableDashboard is a helper abstraction for handling nullable dashboard types. type NullableDashboard struct { value *Dashboard isSet bool @@ -435,7 +436,7 @@ func (v NullableDashboard) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboard) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_item.go b/fastly/model_dashboard_item.go index c3906c6..dac74c0 100644 --- a/fastly/model_dashboard_item.go +++ b/fastly/model_dashboard_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,11 +23,11 @@ type DashboardItem struct { // A human-readable title for the dashboard item Title string `json:"title"` // A human-readable subtitle for the dashboard item. Often a description of the visualization. - Subtitle string `json:"subtitle"` - DataSource DashboardItemPropertyDataSource `json:"data_source"` + Subtitle string `json:"subtitle"` + DataSource DashboardItemPropertyDataSource `json:"data_source"` Visualization DashboardItemPropertyVisualization `json:"visualization"` // The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on \"desktop\" screen sizes. - Span *int32 `json:"span,omitempty"` + Span *int32 `json:"span,omitempty"` AdditionalProperties map[string]any } @@ -104,7 +103,7 @@ func (o *DashboardItem) GetTitle() string { // GetTitleOk returns a tuple with the Title field value // and a boolean to check if the value has been set. func (o *DashboardItem) GetTitleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Title, true @@ -128,7 +127,7 @@ func (o *DashboardItem) GetSubtitle() string { // GetSubtitleOk returns a tuple with the Subtitle field value // and a boolean to check if the value has been set. func (o *DashboardItem) GetSubtitleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Subtitle, true @@ -152,7 +151,7 @@ func (o *DashboardItem) GetDataSource() DashboardItemPropertyDataSource { // GetDataSourceOk returns a tuple with the DataSource field value // and a boolean to check if the value has been set. func (o *DashboardItem) GetDataSourceOk() (*DashboardItemPropertyDataSource, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DataSource, true @@ -176,7 +175,7 @@ func (o *DashboardItem) GetVisualization() DashboardItemPropertyVisualization { // GetVisualizationOk returns a tuple with the Visualization field value // and a boolean to check if the value has been set. func (o *DashboardItem) GetVisualizationOk() (*DashboardItemPropertyVisualization, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Visualization, true @@ -250,7 +249,7 @@ func (o DashboardItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DashboardItem) UnmarshalJSON(bytes []byte) (err error) { varDashboardItem := _DashboardItem{} @@ -273,7 +272,7 @@ func (o *DashboardItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDashboardItem is a helper abstraction for handling nullable dashboarditem types. +// NullableDashboardItem is a helper abstraction for handling nullable dashboarditem types. type NullableDashboardItem struct { value *DashboardItem isSet bool @@ -313,7 +312,7 @@ func (v NullableDashboardItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_item_property_data_source.go b/fastly/model_dashboard_item_property_data_source.go index 9c241fa..e736f29 100644 --- a/fastly/model_dashboard_item_property_data_source.go +++ b/fastly/model_dashboard_item_property_data_source.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // DashboardItemPropertyDataSource [An object](#data-source) which describes the data to display. type DashboardItemPropertyDataSource struct { // The source of the data to display. - Type string `json:"type"` - Config DashboardItemPropertyDataSourcePropertyConfig `json:"config"` + Type string `json:"type"` + Config DashboardItemPropertyDataSourcePropertyConfig `json:"config"` AdditionalProperties map[string]any } @@ -59,7 +58,7 @@ func (o *DashboardItemPropertyDataSource) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyDataSource) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -83,7 +82,7 @@ func (o *DashboardItemPropertyDataSource) GetConfig() DashboardItemPropertyDataS // GetConfigOk returns a tuple with the Config field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyDataSource) GetConfigOk() (*DashboardItemPropertyDataSourcePropertyConfig, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Config, true @@ -113,7 +112,7 @@ func (o DashboardItemPropertyDataSource) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DashboardItemPropertyDataSource) UnmarshalJSON(bytes []byte) (err error) { varDashboardItemPropertyDataSource := _DashboardItemPropertyDataSource{} @@ -132,7 +131,7 @@ func (o *DashboardItemPropertyDataSource) UnmarshalJSON(bytes []byte) (err error return err } -// NullableDashboardItemPropertyDataSource is a helper abstraction for handling nullable dashboarditempropertydatasource types. +// NullableDashboardItemPropertyDataSource is a helper abstraction for handling nullable dashboarditempropertydatasource types. type NullableDashboardItemPropertyDataSource struct { value *DashboardItemPropertyDataSource isSet bool @@ -172,7 +171,7 @@ func (v NullableDashboardItemPropertyDataSource) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardItemPropertyDataSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_item_property_data_source_property_config.go b/fastly/model_dashboard_item_property_data_source_property_config.go index 3f653f2..23a3205 100644 --- a/fastly/model_dashboard_item_property_data_source_property_config.go +++ b/fastly/model_dashboard_item_property_data_source_property_config.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // DashboardItemPropertyDataSourcePropertyConfig [Configuration options](#data-source-config) for the selected data source. type DashboardItemPropertyDataSourcePropertyConfig struct { // The metrics to visualize. Valid options are defined by the selected [data source](#field_data_source). - Metrics []string `json:"metrics"` + Metrics []string `json:"metrics"` AdditionalProperties map[string]any } @@ -57,7 +56,7 @@ func (o *DashboardItemPropertyDataSourcePropertyConfig) GetMetrics() []string { // GetMetricsOk returns a tuple with the Metrics field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyDataSourcePropertyConfig) GetMetricsOk() ([]string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Metrics, true @@ -84,7 +83,7 @@ func (o DashboardItemPropertyDataSourcePropertyConfig) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DashboardItemPropertyDataSourcePropertyConfig) UnmarshalJSON(bytes []byte) (err error) { varDashboardItemPropertyDataSourcePropertyConfig := _DashboardItemPropertyDataSourcePropertyConfig{} @@ -102,7 +101,7 @@ func (o *DashboardItemPropertyDataSourcePropertyConfig) UnmarshalJSON(bytes []by return err } -// NullableDashboardItemPropertyDataSourcePropertyConfig is a helper abstraction for handling nullable dashboarditempropertydatasourcepropertyconfig types. +// NullableDashboardItemPropertyDataSourcePropertyConfig is a helper abstraction for handling nullable dashboarditempropertydatasourcepropertyconfig types. type NullableDashboardItemPropertyDataSourcePropertyConfig struct { value *DashboardItemPropertyDataSourcePropertyConfig isSet bool @@ -142,7 +141,7 @@ func (v NullableDashboardItemPropertyDataSourcePropertyConfig) MarshalJSON() ([] } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardItemPropertyDataSourcePropertyConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_item_property_visualization.go b/fastly/model_dashboard_item_property_visualization.go index e9e003f..09ccfff 100644 --- a/fastly/model_dashboard_item_property_visualization.go +++ b/fastly/model_dashboard_item_property_visualization.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// DashboardItemPropertyVisualization [An object](#visualization) which describes the data visualization to display. +// DashboardItemPropertyVisualization [An object](#visualization) which describes the data visualization to display. type DashboardItemPropertyVisualization struct { - // The type of visualization to display. - Type string `json:"type"` - Config DashboardItemPropertyVisualizationPropertyConfig `json:"config"` + // The type of visualization to display. + Type string `json:"type"` + Config DashboardItemPropertyVisualizationPropertyConfig `json:"config"` AdditionalProperties map[string]any } @@ -59,7 +58,7 @@ func (o *DashboardItemPropertyVisualization) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyVisualization) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -83,7 +82,7 @@ func (o *DashboardItemPropertyVisualization) GetConfig() DashboardItemPropertyVi // GetConfigOk returns a tuple with the Config field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyVisualization) GetConfigOk() (*DashboardItemPropertyVisualizationPropertyConfig, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Config, true @@ -113,7 +112,7 @@ func (o DashboardItemPropertyVisualization) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DashboardItemPropertyVisualization) UnmarshalJSON(bytes []byte) (err error) { varDashboardItemPropertyVisualization := _DashboardItemPropertyVisualization{} @@ -132,7 +131,7 @@ func (o *DashboardItemPropertyVisualization) UnmarshalJSON(bytes []byte) (err er return err } -// NullableDashboardItemPropertyVisualization is a helper abstraction for handling nullable dashboarditempropertyvisualization types. +// NullableDashboardItemPropertyVisualization is a helper abstraction for handling nullable dashboarditempropertyvisualization types. type NullableDashboardItemPropertyVisualization struct { value *DashboardItemPropertyVisualization isSet bool @@ -172,7 +171,7 @@ func (v NullableDashboardItemPropertyVisualization) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardItemPropertyVisualization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_item_property_visualization_property_config.go b/fastly/model_dashboard_item_property_visualization_property_config.go index 82bfb1c..7ed2a7d 100644 --- a/fastly/model_dashboard_item_property_visualization_property_config.go +++ b/fastly/model_dashboard_item_property_visualization_property_config.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // DashboardItemPropertyVisualizationPropertyConfig [Configuration options](#visualization-config) for the given visualization. type DashboardItemPropertyVisualizationPropertyConfig struct { - // The type of chart to display. + // The type of chart to display. PlotType string `json:"plot_type"` - // (Optional) The units to use to format the data. + // (Optional) The units to use to format the data. Format *string `json:"format,omitempty"` - // (Optional) The aggregation function to apply to the dataset. - CalculationMethod *string `json:"calculation_method,omitempty"` + // (Optional) The aggregation function to apply to the dataset. + CalculationMethod *string `json:"calculation_method,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *DashboardItemPropertyVisualizationPropertyConfig) GetPlotType() string // GetPlotTypeOk returns a tuple with the PlotType field value // and a boolean to check if the value has been set. func (o *DashboardItemPropertyVisualizationPropertyConfig) GetPlotTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PlotType, true @@ -162,7 +161,7 @@ func (o DashboardItemPropertyVisualizationPropertyConfig) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DashboardItemPropertyVisualizationPropertyConfig) UnmarshalJSON(bytes []byte) (err error) { varDashboardItemPropertyVisualizationPropertyConfig := _DashboardItemPropertyVisualizationPropertyConfig{} @@ -182,7 +181,7 @@ func (o *DashboardItemPropertyVisualizationPropertyConfig) UnmarshalJSON(bytes [ return err } -// NullableDashboardItemPropertyVisualizationPropertyConfig is a helper abstraction for handling nullable dashboarditempropertyvisualizationpropertyconfig types. +// NullableDashboardItemPropertyVisualizationPropertyConfig is a helper abstraction for handling nullable dashboarditempropertyvisualizationpropertyconfig types. type NullableDashboardItemPropertyVisualizationPropertyConfig struct { value *DashboardItemPropertyVisualizationPropertyConfig isSet bool @@ -222,7 +221,7 @@ func (v NullableDashboardItemPropertyVisualizationPropertyConfig) MarshalJSON() } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardItemPropertyVisualizationPropertyConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_property_created_by.go b/fastly/model_dashboard_property_created_by.go index 5c89a10..33ca4ab 100644 --- a/fastly/model_dashboard_property_created_by.go +++ b/fastly/model_dashboard_property_created_by.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o DashboardPropertyCreatedBy) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableDashboardPropertyCreatedBy is a helper abstraction for handling nullable dashboardpropertycreatedby types. +// NullableDashboardPropertyCreatedBy is a helper abstraction for handling nullable dashboardpropertycreatedby types. type NullableDashboardPropertyCreatedBy struct { value *DashboardPropertyCreatedBy isSet bool @@ -85,7 +84,7 @@ func (v NullableDashboardPropertyCreatedBy) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardPropertyCreatedBy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dashboard_property_updated_by.go b/fastly/model_dashboard_property_updated_by.go index e0df60f..b29f51b 100644 --- a/fastly/model_dashboard_property_updated_by.go +++ b/fastly/model_dashboard_property_updated_by.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o DashboardPropertyUpdatedBy) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableDashboardPropertyUpdatedBy is a helper abstraction for handling nullable dashboardpropertyupdatedby types. +// NullableDashboardPropertyUpdatedBy is a helper abstraction for handling nullable dashboardpropertyupdatedby types. type NullableDashboardPropertyUpdatedBy struct { value *DashboardPropertyUpdatedBy isSet bool @@ -85,7 +84,7 @@ func (v NullableDashboardPropertyUpdatedBy) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDashboardPropertyUpdatedBy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_default_settings.go b/fastly/model_default_settings.go index 6c6f0a4..3947a27 100644 --- a/fastly/model_default_settings.go +++ b/fastly/model_default_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,18 +20,18 @@ import ( type DefaultSettings struct { // The type of filter to use while resizing an image. ResizeFilter *string `json:"resize_filter,omitempty"` - // Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding \"auto=webp\" to all image optimizer requests. + // Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding \"auto=webp\" to all image optimizer requests. Webp *bool `json:"webp,omitempty"` - // The default quality to use with WebP output. This can be overridden with the second option in the \"quality\" URL parameter on specific image optimizer requests. + // The default quality to use with WebP output. This can be overridden with the second option in the \"quality\" URL parameter on specific image optimizer requests. WebpQuality *int32 `json:"webp_quality,omitempty"` - // The default type of JPEG output to use. This can be overridden with \"format=bjpeg\" and \"format=pjpeg\" on specific image optimizer requests. + // The default type of JPEG output to use. This can be overridden with \"format=bjpeg\" and \"format=pjpeg\" on specific image optimizer requests. JpegType *string `json:"jpeg_type,omitempty"` - // The default quality to use with JPEG output. This can be overridden with the \"quality\" parameter on specific image optimizer requests. + // The default quality to use with JPEG output. This can be overridden with the \"quality\" parameter on specific image optimizer requests. JpegQuality *int32 `json:"jpeg_quality,omitempty"` - // Whether or not we should allow output images to render at sizes larger than input. + // Whether or not we should allow output images to render at sizes larger than input. Upscale *bool `json:"upscale,omitempty"` // Enables GIF to MP4 transformations on this service. - AllowVideo *bool `json:"allow_video,omitempty"` + AllowVideo *bool `json:"allow_video,omitempty"` AdditionalProperties map[string]any } @@ -341,7 +340,7 @@ func (o DefaultSettings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DefaultSettings) UnmarshalJSON(bytes []byte) (err error) { varDefaultSettings := _DefaultSettings{} @@ -365,7 +364,7 @@ func (o *DefaultSettings) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDefaultSettings is a helper abstraction for handling nullable defaultsettings types. +// NullableDefaultSettings is a helper abstraction for handling nullable defaultsettings types. type NullableDefaultSettings struct { value *DefaultSettings isSet bool @@ -405,7 +404,7 @@ func (v NullableDefaultSettings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDefaultSettings) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_default_settings_error.go b/fastly/model_default_settings_error.go index 8477c39..c64733b 100644 --- a/fastly/model_default_settings_error.go +++ b/fastly/model_default_settings_error.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // DefaultSettingsError struct for DefaultSettingsError type DefaultSettingsError struct { - Title *string `json:"title,omitempty"` - Type *string `json:"type,omitempty"` - Detail *string `json:"detail,omitempty"` + Title *string `json:"title,omitempty"` + Type *string `json:"type,omitempty"` + Detail *string `json:"detail,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o DefaultSettingsError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DefaultSettingsError) UnmarshalJSON(bytes []byte) (err error) { varDefaultSettingsError := _DefaultSettingsError{} @@ -182,7 +181,7 @@ func (o *DefaultSettingsError) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDefaultSettingsError is a helper abstraction for handling nullable defaultsettingserror types. +// NullableDefaultSettingsError is a helper abstraction for handling nullable defaultsettingserror types. type NullableDefaultSettingsError struct { value *DefaultSettingsError isSet bool @@ -222,7 +221,7 @@ func (v NullableDefaultSettingsError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDefaultSettingsError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_default_settings_response.go b/fastly/model_default_settings_response.go index ce53778..e528258 100644 --- a/fastly/model_default_settings_response.go +++ b/fastly/model_default_settings_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,18 +20,18 @@ import ( type DefaultSettingsResponse struct { // The type of filter to use while resizing an image. ResizeFilter string `json:"resize_filter"` - // Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding \"auto=webp\" to all image optimizer requests. + // Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding \"auto=webp\" to all image optimizer requests. Webp bool `json:"webp"` - // The default quality to use with WebP output. This can be overridden with the second option in the \"quality\" URL parameter on specific image optimizer requests. + // The default quality to use with WebP output. This can be overridden with the second option in the \"quality\" URL parameter on specific image optimizer requests. WebpQuality int32 `json:"webp_quality"` - // The default type of JPEG output to use. This can be overridden with \"format=bjpeg\" and \"format=pjpeg\" on specific image optimizer requests. + // The default type of JPEG output to use. This can be overridden with \"format=bjpeg\" and \"format=pjpeg\" on specific image optimizer requests. JpegType string `json:"jpeg_type"` - // The default quality to use with JPEG output. This can be overridden with the \"quality\" parameter on specific image optimizer requests. + // The default quality to use with JPEG output. This can be overridden with the \"quality\" parameter on specific image optimizer requests. JpegQuality int32 `json:"jpeg_quality"` - // Whether or not we should allow output images to render at sizes larger than input. + // Whether or not we should allow output images to render at sizes larger than input. Upscale bool `json:"upscale"` // Enables GIF to MP4 transformations on this service. - AllowVideo bool `json:"allow_video"` + AllowVideo bool `json:"allow_video"` AdditionalProperties map[string]any } @@ -89,7 +88,7 @@ func (o *DefaultSettingsResponse) GetResizeFilter() string { // GetResizeFilterOk returns a tuple with the ResizeFilter field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetResizeFilterOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResizeFilter, true @@ -113,7 +112,7 @@ func (o *DefaultSettingsResponse) GetWebp() bool { // GetWebpOk returns a tuple with the Webp field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetWebpOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Webp, true @@ -137,7 +136,7 @@ func (o *DefaultSettingsResponse) GetWebpQuality() int32 { // GetWebpQualityOk returns a tuple with the WebpQuality field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetWebpQualityOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.WebpQuality, true @@ -161,7 +160,7 @@ func (o *DefaultSettingsResponse) GetJpegType() string { // GetJpegTypeOk returns a tuple with the JpegType field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetJpegTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.JpegType, true @@ -185,7 +184,7 @@ func (o *DefaultSettingsResponse) GetJpegQuality() int32 { // GetJpegQualityOk returns a tuple with the JpegQuality field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetJpegQualityOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.JpegQuality, true @@ -209,7 +208,7 @@ func (o *DefaultSettingsResponse) GetUpscale() bool { // GetUpscaleOk returns a tuple with the Upscale field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetUpscaleOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Upscale, true @@ -233,7 +232,7 @@ func (o *DefaultSettingsResponse) GetAllowVideo() bool { // GetAllowVideoOk returns a tuple with the AllowVideo field value // and a boolean to check if the value has been set. func (o *DefaultSettingsResponse) GetAllowVideoOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AllowVideo, true @@ -278,7 +277,7 @@ func (o DefaultSettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DefaultSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { varDefaultSettingsResponse := _DefaultSettingsResponse{} @@ -302,7 +301,7 @@ func (o *DefaultSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDefaultSettingsResponse is a helper abstraction for handling nullable defaultsettingsresponse types. +// NullableDefaultSettingsResponse is a helper abstraction for handling nullable defaultsettingsresponse types. type NullableDefaultSettingsResponse struct { value *DefaultSettingsResponse isSet bool @@ -342,7 +341,7 @@ func (v NullableDefaultSettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDefaultSettingsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary.go b/fastly/model_dictionary.go index 8312c5e..04832bc 100644 --- a/fastly/model_dictionary.go +++ b/fastly/model_dictionary.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type Dictionary struct { // Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). Name *string `json:"name,omitempty"` // Determines if items in the dictionary are readable or not. - WriteOnly *bool `json:"write_only,omitempty"` + WriteOnly *bool `json:"write_only,omitempty"` AdditionalProperties map[string]any } @@ -132,7 +131,7 @@ func (o Dictionary) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Dictionary) UnmarshalJSON(bytes []byte) (err error) { varDictionary := _Dictionary{} @@ -151,7 +150,7 @@ func (o *Dictionary) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionary is a helper abstraction for handling nullable dictionary types. +// NullableDictionary is a helper abstraction for handling nullable dictionary types. type NullableDictionary struct { value *Dictionary isSet bool @@ -191,7 +190,7 @@ func (v NullableDictionary) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_info_response.go b/fastly/model_dictionary_info_response.go index 81efa00..c4f97ca 100644 --- a/fastly/model_dictionary_info_response.go +++ b/fastly/model_dictionary_info_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type DictionaryInfoResponse struct { // The number of items currently in the dictionary. ItemCount *int32 `json:"item_count,omitempty"` // A hash of all the dictionary content. - Digest *string `json:"digest,omitempty"` + Digest *string `json:"digest,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o DictionaryInfoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryInfoResponse) UnmarshalJSON(bytes []byte) (err error) { varDictionaryInfoResponse := _DictionaryInfoResponse{} @@ -185,7 +184,7 @@ func (o *DictionaryInfoResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryInfoResponse is a helper abstraction for handling nullable dictionaryinforesponse types. +// NullableDictionaryInfoResponse is a helper abstraction for handling nullable dictionaryinforesponse types. type NullableDictionaryInfoResponse struct { value *DictionaryInfoResponse isSet bool @@ -225,7 +224,7 @@ func (v NullableDictionaryInfoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryInfoResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_item.go b/fastly/model_dictionary_item.go index fbdff19..a30379e 100644 --- a/fastly/model_dictionary_item.go +++ b/fastly/model_dictionary_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type DictionaryItem struct { // Item key, maximum 256 characters. ItemKey *string `json:"item_key,omitempty"` // Item value, maximum 8000 characters. - ItemValue *string `json:"item_value,omitempty"` + ItemValue *string `json:"item_value,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o DictionaryItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryItem) UnmarshalJSON(bytes []byte) (err error) { varDictionaryItem := _DictionaryItem{} @@ -147,7 +146,7 @@ func (o *DictionaryItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryItem is a helper abstraction for handling nullable dictionaryitem types. +// NullableDictionaryItem is a helper abstraction for handling nullable dictionaryitem types. type NullableDictionaryItem struct { value *DictionaryItem isSet bool @@ -187,7 +186,7 @@ func (v NullableDictionaryItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_item_response.go b/fastly/model_dictionary_item_response.go index 4b97ab4..c16eadd 100644 --- a/fastly/model_dictionary_item_response.go +++ b/fastly/model_dictionary_item_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,9 +28,9 @@ type DictionaryItemResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - DictionaryID *string `json:"dictionary_id,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + DictionaryID *string `json:"dictionary_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o *DictionaryItemResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryItemResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -150,6 +149,7 @@ func (o *DictionaryItemResponse) HasCreatedAt() bool { func (o *DictionaryItemResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *DictionaryItemResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -173,7 +173,7 @@ func (o *DictionaryItemResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryItemResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -192,6 +192,7 @@ func (o *DictionaryItemResponse) HasDeletedAt() bool { func (o *DictionaryItemResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *DictionaryItemResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -215,7 +216,7 @@ func (o *DictionaryItemResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryItemResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -234,6 +235,7 @@ func (o *DictionaryItemResponse) HasUpdatedAt() bool { func (o *DictionaryItemResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *DictionaryItemResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -342,7 +344,7 @@ func (o DictionaryItemResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryItemResponse) UnmarshalJSON(bytes []byte) (err error) { varDictionaryItemResponse := _DictionaryItemResponse{} @@ -366,7 +368,7 @@ func (o *DictionaryItemResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryItemResponse is a helper abstraction for handling nullable dictionaryitemresponse types. +// NullableDictionaryItemResponse is a helper abstraction for handling nullable dictionaryitemresponse types. type NullableDictionaryItemResponse struct { value *DictionaryItemResponse isSet bool @@ -406,7 +408,7 @@ func (v NullableDictionaryItemResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryItemResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_item_response_all_of.go b/fastly/model_dictionary_item_response_all_of.go index f7a7f6d..76959e2 100644 --- a/fastly/model_dictionary_item_response_all_of.go +++ b/fastly/model_dictionary_item_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // DictionaryItemResponseAllOf struct for DictionaryItemResponseAllOf type DictionaryItemResponseAllOf struct { - DictionaryID *string `json:"dictionary_id,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + DictionaryID *string `json:"dictionary_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o DictionaryItemResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryItemResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varDictionaryItemResponseAllOf := _DictionaryItemResponseAllOf{} @@ -145,7 +144,7 @@ func (o *DictionaryItemResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryItemResponseAllOf is a helper abstraction for handling nullable dictionaryitemresponseallof types. +// NullableDictionaryItemResponseAllOf is a helper abstraction for handling nullable dictionaryitemresponseallof types. type NullableDictionaryItemResponseAllOf struct { value *DictionaryItemResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableDictionaryItemResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryItemResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_response.go b/fastly/model_dictionary_response.go index dfee966..6fb396f 100644 --- a/fastly/model_dictionary_response.go +++ b/fastly/model_dictionary_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,10 +28,10 @@ type DictionaryResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -136,7 +135,7 @@ func (o *DictionaryResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -155,6 +154,7 @@ func (o *DictionaryResponse) HasCreatedAt() bool { func (o *DictionaryResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *DictionaryResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -178,7 +178,7 @@ func (o *DictionaryResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -197,6 +197,7 @@ func (o *DictionaryResponse) HasDeletedAt() bool { func (o *DictionaryResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *DictionaryResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -220,7 +221,7 @@ func (o *DictionaryResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DictionaryResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -239,6 +240,7 @@ func (o *DictionaryResponse) HasUpdatedAt() bool { func (o *DictionaryResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *DictionaryResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -382,7 +384,7 @@ func (o DictionaryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryResponse) UnmarshalJSON(bytes []byte) (err error) { varDictionaryResponse := _DictionaryResponse{} @@ -407,7 +409,7 @@ func (o *DictionaryResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryResponse is a helper abstraction for handling nullable dictionaryresponse types. +// NullableDictionaryResponse is a helper abstraction for handling nullable dictionaryresponse types. type NullableDictionaryResponse struct { value *DictionaryResponse isSet bool @@ -447,7 +449,7 @@ func (v NullableDictionaryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_dictionary_response_all_of.go b/fastly/model_dictionary_response_all_of.go index 29ed7f8..c1691c5 100644 --- a/fastly/model_dictionary_response_all_of.go +++ b/fastly/model_dictionary_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // DictionaryResponseAllOf struct for DictionaryResponseAllOf type DictionaryResponseAllOf struct { - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o DictionaryResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DictionaryResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varDictionaryResponseAllOf := _DictionaryResponseAllOf{} @@ -108,7 +107,7 @@ func (o *DictionaryResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDictionaryResponseAllOf is a helper abstraction for handling nullable dictionaryresponseallof types. +// NullableDictionaryResponseAllOf is a helper abstraction for handling nullable dictionaryresponseallof types. type NullableDictionaryResponseAllOf struct { value *DictionaryResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableDictionaryResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDictionaryResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_diff_response.go b/fastly/model_diff_response.go index 0ad0508..b085177 100644 --- a/fastly/model_diff_response.go +++ b/fastly/model_diff_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type DiffResponse struct { // The format the diff is being returned in (`text`, `html` or `html_simple`). Format *string `json:"format,omitempty"` // The differences between two specified service versions. Returns the full config if the version configurations are identical. - Diff *string `json:"diff,omitempty"` + Diff *string `json:"diff,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o DiffResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DiffResponse) UnmarshalJSON(bytes []byte) (err error) { varDiffResponse := _DiffResponse{} @@ -223,7 +222,7 @@ func (o *DiffResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDiffResponse is a helper abstraction for handling nullable diffresponse types. +// NullableDiffResponse is a helper abstraction for handling nullable diffresponse types. type NullableDiffResponse struct { value *DiffResponse isSet bool @@ -263,7 +262,7 @@ func (v NullableDiffResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDiffResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_director.go b/fastly/model_director.go index 5e3a720..d2a2285 100644 --- a/fastly/model_director.go +++ b/fastly/model_director.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -34,7 +33,7 @@ type Director struct { // What type of load balance group to use. Type *int32 `json:"type,omitempty"` // How many backends to search if it fails. - Retries *int32 `json:"retries,omitempty"` + Retries *int32 `json:"retries,omitempty"` AdditionalProperties map[string]any } @@ -150,7 +149,7 @@ func (o *Director) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Director) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -169,6 +168,7 @@ func (o *Director) HasComment() bool { func (o *Director) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Director) SetCommentNil() { o.Comment.Set(nil) @@ -256,7 +256,7 @@ func (o *Director) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Director) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -275,6 +275,7 @@ func (o *Director) HasShield() bool { func (o *Director) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *Director) SetShieldNil() { o.Shield.Set(nil) @@ -386,7 +387,7 @@ func (o Director) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Director) UnmarshalJSON(bytes []byte) (err error) { varDirector := _Director{} @@ -411,7 +412,7 @@ func (o *Director) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDirector is a helper abstraction for handling nullable director types. +// NullableDirector is a helper abstraction for handling nullable director types. type NullableDirector struct { value *Director isSet bool @@ -451,7 +452,7 @@ func (v NullableDirector) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDirector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_director_backend.go b/fastly/model_director_backend.go index 6805cd8..0e0b4e4 100644 --- a/fastly/model_director_backend.go +++ b/fastly/model_director_backend.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -26,12 +25,12 @@ type DirectorBackend struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` // The name of the backend. BackendName *string `json:"backend_name,omitempty"` // Name for the Director. - Director *string `json:"director,omitempty"` + Director *string `json:"director,omitempty"` AdditionalProperties map[string]any } @@ -67,7 +66,7 @@ func (o *DirectorBackend) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorBackend) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -86,6 +85,7 @@ func (o *DirectorBackend) HasCreatedAt() bool { func (o *DirectorBackend) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *DirectorBackend) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -109,7 +109,7 @@ func (o *DirectorBackend) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorBackend) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -128,6 +128,7 @@ func (o *DirectorBackend) HasDeletedAt() bool { func (o *DirectorBackend) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *DirectorBackend) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -151,7 +152,7 @@ func (o *DirectorBackend) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorBackend) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -170,6 +171,7 @@ func (o *DirectorBackend) HasUpdatedAt() bool { func (o *DirectorBackend) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *DirectorBackend) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -342,7 +344,7 @@ func (o DirectorBackend) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DirectorBackend) UnmarshalJSON(bytes []byte) (err error) { varDirectorBackend := _DirectorBackend{} @@ -366,7 +368,7 @@ func (o *DirectorBackend) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDirectorBackend is a helper abstraction for handling nullable directorbackend types. +// NullableDirectorBackend is a helper abstraction for handling nullable directorbackend types. type NullableDirectorBackend struct { value *DirectorBackend isSet bool @@ -406,7 +408,7 @@ func (v NullableDirectorBackend) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDirectorBackend) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_director_backend_all_of.go b/fastly/model_director_backend_all_of.go index 6a8d443..258c7db 100644 --- a/fastly/model_director_backend_all_of.go +++ b/fastly/model_director_backend_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type DirectorBackendAllOf struct { // The name of the backend. BackendName *string `json:"backend_name,omitempty"` // Name for the Director. - Director *string `json:"director,omitempty"` + Director *string `json:"director,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o DirectorBackendAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DirectorBackendAllOf) UnmarshalJSON(bytes []byte) (err error) { varDirectorBackendAllOf := _DirectorBackendAllOf{} @@ -147,7 +146,7 @@ func (o *DirectorBackendAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDirectorBackendAllOf is a helper abstraction for handling nullable directorbackendallof types. +// NullableDirectorBackendAllOf is a helper abstraction for handling nullable directorbackendallof types. type NullableDirectorBackendAllOf struct { value *DirectorBackendAllOf isSet bool @@ -187,7 +186,7 @@ func (v NullableDirectorBackendAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDirectorBackendAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_director_response.go b/fastly/model_director_response.go index 680a38e..88ba36f 100644 --- a/fastly/model_director_response.go +++ b/fastly/model_director_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,15 +34,15 @@ type DirectorResponse struct { // What type of load balance group to use. Type *int32 `json:"type,omitempty"` // How many backends to search if it fails. - Retries *int32 `json:"retries,omitempty"` + Retries *int32 `json:"retries,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -159,7 +158,7 @@ func (o *DirectorResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -178,6 +177,7 @@ func (o *DirectorResponse) HasComment() bool { func (o *DirectorResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *DirectorResponse) SetCommentNil() { o.Comment.Set(nil) @@ -265,7 +265,7 @@ func (o *DirectorResponse) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorResponse) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -284,6 +284,7 @@ func (o *DirectorResponse) HasShield() bool { func (o *DirectorResponse) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *DirectorResponse) SetShieldNil() { o.Shield.Set(nil) @@ -435,7 +436,7 @@ func (o *DirectorResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -454,6 +455,7 @@ func (o *DirectorResponse) HasCreatedAt() bool { func (o *DirectorResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *DirectorResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -477,7 +479,7 @@ func (o *DirectorResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -496,6 +498,7 @@ func (o *DirectorResponse) HasDeletedAt() bool { func (o *DirectorResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *DirectorResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -519,7 +522,7 @@ func (o *DirectorResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DirectorResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -538,6 +541,7 @@ func (o *DirectorResponse) HasUpdatedAt() bool { func (o *DirectorResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *DirectorResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -600,7 +604,7 @@ func (o DirectorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DirectorResponse) UnmarshalJSON(bytes []byte) (err error) { varDirectorResponse := _DirectorResponse{} @@ -630,7 +634,7 @@ func (o *DirectorResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDirectorResponse is a helper abstraction for handling nullable directorresponse types. +// NullableDirectorResponse is a helper abstraction for handling nullable directorresponse types. type NullableDirectorResponse struct { value *DirectorResponse isSet bool @@ -670,7 +674,7 @@ func (v NullableDirectorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDirectorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain.go b/fastly/model_domain.go index 46e8122..56744fa 100644 --- a/fastly/model_domain.go +++ b/fastly/model_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type Domain struct { // A freeform descriptive note. Comment NullableString `json:"comment,omitempty"` // The name of the domain or domains associated with this service. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -58,7 +57,7 @@ func (o *Domain) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Domain) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -77,6 +76,7 @@ func (o *Domain) HasComment() bool { func (o *Domain) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Domain) SetCommentNil() { o.Comment.Set(nil) @@ -138,7 +138,7 @@ func (o Domain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Domain) UnmarshalJSON(bytes []byte) (err error) { varDomain := _Domain{} @@ -157,7 +157,7 @@ func (o *Domain) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomain is a helper abstraction for handling nullable domain types. +// NullableDomain is a helper abstraction for handling nullable domain types. type NullableDomain struct { value *Domain isSet bool @@ -197,7 +197,7 @@ func (v NullableDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_inspector.go b/fastly/model_domain_inspector.go index c802f1e..80caad3 100644 --- a/fastly/model_domain_inspector.go +++ b/fastly/model_domain_inspector.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type DomainInspector struct { // Offset of entry timestamps from the current time due to processing time. AggregateDelay *int32 `json:"AggregateDelay,omitempty"` // A list of report [entries](#entry-data-model), each representing one second of time. - Data []DomainInspectorRealtimeEntry `json:"Data,omitempty"` + Data []DomainInspectorRealtimeEntry `json:"Data,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o DomainInspector) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainInspector) UnmarshalJSON(bytes []byte) (err error) { varDomainInspector := _DomainInspector{} @@ -185,7 +184,7 @@ func (o *DomainInspector) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomainInspector is a helper abstraction for handling nullable domaininspector types. +// NullableDomainInspector is a helper abstraction for handling nullable domaininspector types. type NullableDomainInspector struct { value *DomainInspector isSet bool @@ -225,7 +224,7 @@ func (v NullableDomainInspector) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainInspector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_inspector_entry.go b/fastly/model_domain_inspector_entry.go index bb71c73..88c5daf 100644 --- a/fastly/model_domain_inspector_entry.go +++ b/fastly/model_domain_inspector_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // DomainInspectorEntry struct for DomainInspectorEntry type DomainInspectorEntry struct { Dimensions *DomainInspectorEntryDimensions `json:"dimensions,omitempty"` - // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. - Values []Values `json:"values,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []Values `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o DomainInspectorEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { varDomainInspectorEntry := _DomainInspectorEntry{} @@ -146,7 +145,7 @@ func (o *DomainInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomainInspectorEntry is a helper abstraction for handling nullable domaininspectorentry types. +// NullableDomainInspectorEntry is a helper abstraction for handling nullable domaininspectorentry types. type NullableDomainInspectorEntry struct { value *DomainInspectorEntry isSet bool @@ -186,7 +185,7 @@ func (v NullableDomainInspectorEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainInspectorEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_inspector_entry_dimensions.go b/fastly/model_domain_inspector_entry_dimensions.go index 1b2a2a0..cd65d36 100644 --- a/fastly/model_domain_inspector_entry_dimensions.go +++ b/fastly/model_domain_inspector_entry_dimensions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type DomainInspectorEntryDimensions struct { // The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. Datacenter *string `json:"datacenter,omitempty"` // The domain from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across domains. - Domain *string `json:"domain,omitempty"` + Domain *string `json:"domain,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o DomainInspectorEntryDimensions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainInspectorEntryDimensions) UnmarshalJSON(bytes []byte) (err error) { varDomainInspectorEntryDimensions := _DomainInspectorEntryDimensions{} @@ -185,7 +184,7 @@ func (o *DomainInspectorEntryDimensions) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableDomainInspectorEntryDimensions is a helper abstraction for handling nullable domaininspectorentrydimensions types. +// NullableDomainInspectorEntryDimensions is a helper abstraction for handling nullable domaininspectorentrydimensions types. type NullableDomainInspectorEntryDimensions struct { value *DomainInspectorEntryDimensions isSet bool @@ -225,7 +224,7 @@ func (v NullableDomainInspectorEntryDimensions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainInspectorEntryDimensions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_inspector_measurements.go b/fastly/model_domain_inspector_measurements.go index f804573..ad50a97 100644 --- a/fastly/model_domain_inspector_measurements.go +++ b/fastly/model_domain_inspector_measurements.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,12 +12,11 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// DomainInspectorMeasurements A measurements object provides a count of the total number of `requests` received by Fastly for your domain in the reported time period and for the relevant POP, as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. +// DomainInspectorMeasurements A measurements object provides a count of the total number of `requests` received by Fastly for your domain in the reported time period and for the relevant POP, as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. type DomainInspectorMeasurements struct { // Number of requests sent by end users to Fastly. EdgeRequests *int32 `json:"edge_requests,omitempty"` @@ -142,7 +141,7 @@ type DomainInspectorMeasurements struct { // Number of \"Client Error\" codes received from origin. OriginStatus4xx *int32 `json:"origin_status_4xx,omitempty"` // Number of \"Server Error\" codes received from origin. - OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` + OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` AdditionalProperties map[string]any } @@ -2348,7 +2347,7 @@ func (o DomainInspectorMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { varDomainInspectorMeasurements := _DomainInspectorMeasurements{} @@ -2427,7 +2426,7 @@ func (o *DomainInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomainInspectorMeasurements is a helper abstraction for handling nullable domaininspectormeasurements types. +// NullableDomainInspectorMeasurements is a helper abstraction for handling nullable domaininspectormeasurements types. type NullableDomainInspectorMeasurements struct { value *DomainInspectorMeasurements isSet bool @@ -2467,7 +2466,7 @@ func (v NullableDomainInspectorMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainInspectorMeasurements) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_inspector_realtime_entry.go b/fastly/model_domain_inspector_realtime_entry.go index 2782403..88dd446 100644 --- a/fastly/model_domain_inspector_realtime_entry.go +++ b/fastly/model_domain_inspector_realtime_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// DomainInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways: by domain name, domain IP address, and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs (but still splits by backend name and IP). +// DomainInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways: by domain name, domain IP address, and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs (but still splits by backend name and IP). type DomainInspectorRealtimeEntry struct { // The Unix timestamp at which this record's data was generated. Recorded *int32 `json:"recorded,omitempty"` // Groups [measurements](#measurements-data-model) by backend name and then by IP address. Aggregated map[string]DomainInspectorMeasurements `json:"aggregated,omitempty"` // Groups [measurements](#measurements-data-model) by POP, then backend name, and then IP address. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details about POP identifiers. - Datacenter *map[string]map[string]DomainInspectorMeasurements `json:"datacenter,omitempty"` + Datacenter *map[string]map[string]DomainInspectorMeasurements `json:"datacenter,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o DomainInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { varDomainInspectorRealtimeEntry := _DomainInspectorRealtimeEntry{} @@ -185,7 +184,7 @@ func (o *DomainInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomainInspectorRealtimeEntry is a helper abstraction for handling nullable domaininspectorrealtimeentry types. +// NullableDomainInspectorRealtimeEntry is a helper abstraction for handling nullable domaininspectorrealtimeentry types. type NullableDomainInspectorRealtimeEntry struct { value *DomainInspectorRealtimeEntry isSet bool @@ -225,7 +224,7 @@ func (v NullableDomainInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainInspectorRealtimeEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_domain_response.go b/fastly/model_domain_response.go index 3ccfe1b..db7a78e 100644 --- a/fastly/model_domain_response.go +++ b/fastly/model_domain_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,15 +22,15 @@ type DomainResponse struct { // A freeform descriptive note. Comment NullableString `json:"comment,omitempty"` // The name of the domain or domains associated with this service. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -67,7 +66,7 @@ func (o *DomainResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DomainResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -86,6 +85,7 @@ func (o *DomainResponse) HasComment() bool { func (o *DomainResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *DomainResponse) SetCommentNil() { o.Comment.Set(nil) @@ -205,7 +205,7 @@ func (o *DomainResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DomainResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -224,6 +224,7 @@ func (o *DomainResponse) HasCreatedAt() bool { func (o *DomainResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *DomainResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -247,7 +248,7 @@ func (o *DomainResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DomainResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -266,6 +267,7 @@ func (o *DomainResponse) HasDeletedAt() bool { func (o *DomainResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *DomainResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -289,7 +291,7 @@ func (o *DomainResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *DomainResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -308,6 +310,7 @@ func (o *DomainResponse) HasUpdatedAt() bool { func (o *DomainResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *DomainResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -352,7 +355,7 @@ func (o DomainResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *DomainResponse) UnmarshalJSON(bytes []byte) (err error) { varDomainResponse := _DomainResponse{} @@ -376,7 +379,7 @@ func (o *DomainResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableDomainResponse is a helper abstraction for handling nullable domainresponse types. +// NullableDomainResponse is a helper abstraction for handling nullable domainresponse types. type NullableDomainResponse struct { value *DomainResponse isSet bool @@ -416,7 +419,7 @@ func (v NullableDomainResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableDomainResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_enabled_product_response.go b/fastly/model_enabled_product_response.go index 81bfffa..f4684a9 100644 --- a/fastly/model_enabled_product_response.go +++ b/fastly/model_enabled_product_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // EnabledProductResponse struct for EnabledProductResponse type EnabledProductResponse struct { - Product *EnabledProductResponseProduct `json:"product,omitempty"` - Service *EnabledProductResponseService `json:"service,omitempty"` - Links *EnabledProductResponseLinks `json:"_links,omitempty"` + Product *EnabledProductResponseProduct `json:"product,omitempty"` + Service *EnabledProductResponseService `json:"service,omitempty"` + Links *EnabledProductResponseLinks `json:"_links,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o EnabledProductResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EnabledProductResponse) UnmarshalJSON(bytes []byte) (err error) { varEnabledProductResponse := _EnabledProductResponse{} @@ -182,7 +181,7 @@ func (o *EnabledProductResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEnabledProductResponse is a helper abstraction for handling nullable enabledproductresponse types. +// NullableEnabledProductResponse is a helper abstraction for handling nullable enabledproductresponse types. type NullableEnabledProductResponse struct { value *EnabledProductResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableEnabledProductResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnabledProductResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_enabled_product_response__links.go b/fastly/model_enabled_product_response__links.go index 48ca9a8..6d75fff 100644 --- a/fastly/model_enabled_product_response__links.go +++ b/fastly/model_enabled_product_response__links.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type EnabledProductResponseLinks struct { // Location of resource Self *string `json:"self,omitempty"` // Location of the service resource - Service *string `json:"service,omitempty"` + Service *string `json:"service,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o EnabledProductResponseLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EnabledProductResponseLinks) UnmarshalJSON(bytes []byte) (err error) { varEnabledProductResponseLinks := _EnabledProductResponseLinks{} @@ -147,7 +146,7 @@ func (o *EnabledProductResponseLinks) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEnabledProductResponseLinks is a helper abstraction for handling nullable enabledproductresponselinks types. +// NullableEnabledProductResponseLinks is a helper abstraction for handling nullable enabledproductresponselinks types. type NullableEnabledProductResponseLinks struct { value *EnabledProductResponseLinks isSet bool @@ -187,7 +186,7 @@ func (v NullableEnabledProductResponseLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnabledProductResponseLinks) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_enabled_product_response_product.go b/fastly/model_enabled_product_response_product.go index f72311a..d949e6a 100644 --- a/fastly/model_enabled_product_response_product.go +++ b/fastly/model_enabled_product_response_product.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type EnabledProductResponseProduct struct { // Product identifier ID *string `json:"id,omitempty"` // Name of the object - Object *string `json:"object,omitempty"` + Object *string `json:"object,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o EnabledProductResponseProduct) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EnabledProductResponseProduct) UnmarshalJSON(bytes []byte) (err error) { varEnabledProductResponseProduct := _EnabledProductResponseProduct{} @@ -147,7 +146,7 @@ func (o *EnabledProductResponseProduct) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableEnabledProductResponseProduct is a helper abstraction for handling nullable enabledproductresponseproduct types. +// NullableEnabledProductResponseProduct is a helper abstraction for handling nullable enabledproductresponseproduct types. type NullableEnabledProductResponseProduct struct { value *EnabledProductResponseProduct isSet bool @@ -187,7 +186,7 @@ func (v NullableEnabledProductResponseProduct) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnabledProductResponseProduct) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_enabled_product_response_service.go b/fastly/model_enabled_product_response_service.go index ccc6111..68a260f 100644 --- a/fastly/model_enabled_product_response_service.go +++ b/fastly/model_enabled_product_response_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type EnabledProductResponseService struct { // Service identifier ID *string `json:"id,omitempty"` // Name of the object - Object *string `json:"object,omitempty"` + Object *string `json:"object,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o EnabledProductResponseService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EnabledProductResponseService) UnmarshalJSON(bytes []byte) (err error) { varEnabledProductResponseService := _EnabledProductResponseService{} @@ -147,7 +146,7 @@ func (o *EnabledProductResponseService) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableEnabledProductResponseService is a helper abstraction for handling nullable enabledproductresponseservice types. +// NullableEnabledProductResponseService is a helper abstraction for handling nullable enabledproductresponseservice types. type NullableEnabledProductResponseService struct { value *EnabledProductResponseService isSet bool @@ -187,7 +186,7 @@ func (v NullableEnabledProductResponseService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnabledProductResponseService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_environment.go b/fastly/model_environment.go index e8fdd78..ab91e91 100644 --- a/fastly/model_environment.go +++ b/fastly/model_environment.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type Environment struct { Name *string `json:"name,omitempty"` // Alphanumeric string identifying the service. - ServiceID *string `json:"service_id,omitempty"` - ActiveVersion *int32 `json:"active_version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + ActiveVersion *int32 `json:"active_version,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o Environment) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Environment) UnmarshalJSON(bytes []byte) (err error) { varEnvironment := _Environment{} @@ -183,7 +182,7 @@ func (o *Environment) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEnvironment is a helper abstraction for handling nullable environment types. +// NullableEnvironment is a helper abstraction for handling nullable environment types. type NullableEnvironment struct { value *Environment isSet bool @@ -223,7 +222,7 @@ func (v NullableEnvironment) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnvironment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_environment_name.go b/fastly/model_environment_name.go index 0ce2cef..d98e886 100644 --- a/fastly/model_environment_name.go +++ b/fastly/model_environment_name.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedEnvironmentNameEnumValues = []EnvironmentName{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *EnvironmentName) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewEnvironmentNameFromValue(v string) (*EnvironmentName, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for EnvironmentName: valid values are %v", v, AllowedEnvironmentNameEnumValues) + return nil, fmt.Errorf("invalid value '%v' for EnvironmentName: valid values are %v", v, AllowedEnvironmentNameEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v EnvironmentName) Ptr() *EnvironmentName { return &v } -// NullableEnvironmentName is a helper abstraction for handling nullable environmentname types. +// NullableEnvironmentName is a helper abstraction for handling nullable environmentname types. type NullableEnvironmentName struct { value *EnvironmentName isSet bool @@ -115,7 +114,7 @@ func (v NullableEnvironmentName) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEnvironmentName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_eom_invoice_response.go b/fastly/model_eom_invoice_response.go index 2cf2351..e50f087 100644 --- a/fastly/model_eom_invoice_response.go +++ b/fastly/model_eom_invoice_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,9 +34,9 @@ type EomInvoiceResponse struct { // Three-letter code representing a specific currency used for financial transactions. CurrencyCode *string `json:"currency_code,omitempty"` // Total billable amount for invoiced services charged within a single month. - MonthlyTransactionAmount *float32 `json:"monthly_transaction_amount,omitempty"` - TransactionLineItems []Invoicelineitems `json:"transaction_line_items,omitempty"` - AdditionalProperties map[string]any + MonthlyTransactionAmount *float32 `json:"monthly_transaction_amount,omitempty"` + TransactionLineItems []Invoicelineitems `json:"transaction_line_items,omitempty"` + AdditionalProperties map[string]any } type _EomInvoiceResponse EomInvoiceResponse @@ -387,7 +386,7 @@ func (o EomInvoiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EomInvoiceResponse) UnmarshalJSON(bytes []byte) (err error) { varEomInvoiceResponse := _EomInvoiceResponse{} @@ -413,7 +412,7 @@ func (o *EomInvoiceResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEomInvoiceResponse is a helper abstraction for handling nullable eominvoiceresponse types. +// NullableEomInvoiceResponse is a helper abstraction for handling nullable eominvoiceresponse types. type NullableEomInvoiceResponse struct { value *EomInvoiceResponse isSet bool @@ -453,7 +452,7 @@ func (v NullableEomInvoiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEomInvoiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_error.go b/fastly/model_error.go index 613131b..e183a35 100644 --- a/fastly/model_error.go +++ b/fastly/model_error.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ModelError struct for ModelError type ModelError struct { - Type *string `json:"type,omitempty"` - Title *string `json:"title,omitempty"` - Code *string `json:"code,omitempty"` - Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + Title *string `json:"title,omitempty"` + Code *string `json:"code,omitempty"` + Status *string `json:"status,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o ModelError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ModelError) UnmarshalJSON(bytes []byte) (err error) { varModelError := _ModelError{} @@ -219,7 +218,7 @@ func (o *ModelError) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableModelError is a helper abstraction for handling nullable modelerror types. +// NullableModelError is a helper abstraction for handling nullable modelerror types. type NullableModelError struct { value *ModelError isSet bool @@ -259,7 +258,7 @@ func (v NullableModelError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableModelError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_error_response_data.go b/fastly/model_error_response_data.go index 8e78381..387c15b 100644 --- a/fastly/model_error_response_data.go +++ b/fastly/model_error_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ErrorResponseData struct for ErrorResponseData type ErrorResponseData struct { - Title *string `json:"title,omitempty"` - Detail *string `json:"detail,omitempty"` + Title *string `json:"title,omitempty"` + Detail *string `json:"detail,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ErrorResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ErrorResponseData) UnmarshalJSON(bytes []byte) (err error) { varErrorResponseData := _ErrorResponseData{} @@ -145,7 +144,7 @@ func (o *ErrorResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableErrorResponseData is a helper abstraction for handling nullable errorresponsedata types. +// NullableErrorResponseData is a helper abstraction for handling nullable errorresponsedata types. type NullableErrorResponseData struct { value *ErrorResponseData isSet bool @@ -185,7 +184,7 @@ func (v NullableErrorResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableErrorResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_event.go b/fastly/model_event.go index f30c7cb..b26aedc 100644 --- a/fastly/model_event.go +++ b/fastly/model_event.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Event struct for Event type Event struct { - Type *TypeEvent `json:"type,omitempty"` - ID *string `json:"id,omitempty"` - Attributes *EventAttributes `json:"attributes,omitempty"` + Type *TypeEvent `json:"type,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *EventAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o Event) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Event) UnmarshalJSON(bytes []byte) (err error) { varEvent := _Event{} @@ -186,7 +185,7 @@ func (o *Event) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEvent is a helper abstraction for handling nullable event types. +// NullableEvent is a helper abstraction for handling nullable event types. type NullableEvent struct { value *Event isSet bool @@ -226,7 +225,7 @@ func (v NullableEvent) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_event_attributes.go b/fastly/model_event_attributes.go index dd1ca52..cddea9f 100644 --- a/fastly/model_event_attributes.go +++ b/fastly/model_event_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,8 +22,8 @@ type EventAttributes struct { // Indicates if event was performed by Fastly. Admin *bool `json:"admin,omitempty"` // Date and time in ISO 8601 format. - CreatedAt NullableTime `json:"created_at,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + CreatedAt NullableTime `json:"created_at,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` // Description of the event. Description *string `json:"description,omitempty"` // Type of event. Can be used with `filter[event_type]` @@ -32,10 +31,10 @@ type EventAttributes struct { // IP addresses that the event was requested from. IP *string `json:"ip,omitempty"` // Hash of key value pairs of additional information. - Metadata map[string]map[string]any `json:"metadata,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - UserID *string `json:"user_id,omitempty"` - TokenID *string `json:"token_id,omitempty"` + Metadata map[string]map[string]any `json:"metadata,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + UserID *string `json:"user_id,omitempty"` + TokenID *string `json:"token_id,omitempty"` AdditionalProperties map[string]any } @@ -103,7 +102,7 @@ func (o *EventAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *EventAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -122,6 +121,7 @@ func (o *EventAttributes) HasCreatedAt() bool { func (o *EventAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *EventAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -431,7 +431,7 @@ func (o EventAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EventAttributes) UnmarshalJSON(bytes []byte) (err error) { varEventAttributes := _EventAttributes{} @@ -458,7 +458,7 @@ func (o *EventAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEventAttributes is a helper abstraction for handling nullable eventattributes types. +// NullableEventAttributes is a helper abstraction for handling nullable eventattributes types. type NullableEventAttributes struct { value *EventAttributes isSet bool @@ -498,7 +498,7 @@ func (v NullableEventAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEventAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_event_data.go b/fastly/model_event_data.go index 60da5aa..a3368ad 100644 --- a/fastly/model_event_data.go +++ b/fastly/model_event_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // EventData struct for EventData type EventData struct { - Data []Event `json:"data,omitempty"` + Data []Event `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o EventData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EventData) UnmarshalJSON(bytes []byte) (err error) { varEventData := _EventData{} @@ -108,7 +107,7 @@ func (o *EventData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEventData is a helper abstraction for handling nullable eventdata types. +// NullableEventData is a helper abstraction for handling nullable eventdata types. type NullableEventData struct { value *EventData isSet bool @@ -148,7 +147,7 @@ func (v NullableEventData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEventData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_event_response.go b/fastly/model_event_response.go index 82fafff..f46971f 100644 --- a/fastly/model_event_response.go +++ b/fastly/model_event_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // EventResponse struct for EventResponse type EventResponse struct { - Data *Event `json:"data,omitempty"` + Data *Event `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o EventResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EventResponse) UnmarshalJSON(bytes []byte) (err error) { varEventResponse := _EventResponse{} @@ -108,7 +107,7 @@ func (o *EventResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEventResponse is a helper abstraction for handling nullable eventresponse types. +// NullableEventResponse is a helper abstraction for handling nullable eventresponse types. type NullableEventResponse struct { value *EventResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableEventResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEventResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_events_response.go b/fastly/model_events_response.go index 3ceebff..c9c004c 100644 --- a/fastly/model_events_response.go +++ b/fastly/model_events_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // EventsResponse struct for EventsResponse type EventsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []Event `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []Event `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o EventsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *EventsResponse) UnmarshalJSON(bytes []byte) (err error) { varEventsResponse := _EventsResponse{} @@ -182,7 +181,7 @@ func (o *EventsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEventsResponse is a helper abstraction for handling nullable eventsresponse types. +// NullableEventsResponse is a helper abstraction for handling nullable eventsresponse types. type NullableEventsResponse struct { value *EventsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableEventsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableEventsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_generic_token_error.go b/fastly/model_generic_token_error.go index de33a35..46d5d6a 100644 --- a/fastly/model_generic_token_error.go +++ b/fastly/model_generic_token_error.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // GenericTokenError struct for GenericTokenError type GenericTokenError struct { - Msg *string `json:"msg,omitempty"` + Msg *string `json:"msg,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o GenericTokenError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *GenericTokenError) UnmarshalJSON(bytes []byte) (err error) { varGenericTokenError := _GenericTokenError{} @@ -108,7 +107,7 @@ func (o *GenericTokenError) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableGenericTokenError is a helper abstraction for handling nullable generictokenerror types. +// NullableGenericTokenError is a helper abstraction for handling nullable generictokenerror types. type NullableGenericTokenError struct { value *GenericTokenError isSet bool @@ -148,7 +147,7 @@ func (v NullableGenericTokenError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableGenericTokenError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_get_service_level_usage_response.go b/fastly/model_get_service_level_usage_response.go index 09ef84c..141cd97 100644 --- a/fastly/model_get_service_level_usage_response.go +++ b/fastly/model_get_service_level_usage_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // GetServiceLevelUsageResponse struct for GetServiceLevelUsageResponse type GetServiceLevelUsageResponse struct { - Data *ServiceusagemetricsData `json:"data,omitempty"` + Data *ServiceusagemetricsData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o GetServiceLevelUsageResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *GetServiceLevelUsageResponse) UnmarshalJSON(bytes []byte) (err error) { varGetServiceLevelUsageResponse := _GetServiceLevelUsageResponse{} @@ -108,7 +107,7 @@ func (o *GetServiceLevelUsageResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableGetServiceLevelUsageResponse is a helper abstraction for handling nullable getservicelevelusageresponse types. +// NullableGetServiceLevelUsageResponse is a helper abstraction for handling nullable getservicelevelusageresponse types. type NullableGetServiceLevelUsageResponse struct { value *GetServiceLevelUsageResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableGetServiceLevelUsageResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableGetServiceLevelUsageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_get_service_level_usage_types_response.go b/fastly/model_get_service_level_usage_types_response.go index 2185ad4..110b289 100644 --- a/fastly/model_get_service_level_usage_types_response.go +++ b/fastly/model_get_service_level_usage_types_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // GetServiceLevelUsageTypesResponse struct for GetServiceLevelUsageTypesResponse type GetServiceLevelUsageTypesResponse struct { - Data []Serviceusagetype `json:"data,omitempty"` + Data []Serviceusagetype `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o GetServiceLevelUsageTypesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *GetServiceLevelUsageTypesResponse) UnmarshalJSON(bytes []byte) (err error) { varGetServiceLevelUsageTypesResponse := _GetServiceLevelUsageTypesResponse{} @@ -108,7 +107,7 @@ func (o *GetServiceLevelUsageTypesResponse) UnmarshalJSON(bytes []byte) (err err return err } -// NullableGetServiceLevelUsageTypesResponse is a helper abstraction for handling nullable getservicelevelusagetypesresponse types. +// NullableGetServiceLevelUsageTypesResponse is a helper abstraction for handling nullable getservicelevelusagetypesresponse types. type NullableGetServiceLevelUsageTypesResponse struct { value *GetServiceLevelUsageTypesResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableGetServiceLevelUsageTypesResponse) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableGetServiceLevelUsageTypesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_gzip.go b/fastly/model_gzip.go index 5fef43d..363f703 100644 --- a/fastly/model_gzip.go +++ b/fastly/model_gzip.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type Gzip struct { // Space-separated list of file extensions to compress. If you omit this field a default list will be used. Extensions NullableString `json:"extensions,omitempty"` // Name of the gzip configuration. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -62,7 +61,7 @@ func (o *Gzip) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Gzip) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -81,6 +80,7 @@ func (o *Gzip) HasCacheCondition() bool { func (o *Gzip) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *Gzip) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -104,7 +104,7 @@ func (o *Gzip) GetContentTypes() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Gzip) GetContentTypesOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentTypes.Get(), o.ContentTypes.IsSet() @@ -123,6 +123,7 @@ func (o *Gzip) HasContentTypes() bool { func (o *Gzip) SetContentTypes(v string) { o.ContentTypes.Set(&v) } + // SetContentTypesNil sets the value for ContentTypes to be an explicit nil func (o *Gzip) SetContentTypesNil() { o.ContentTypes.Set(nil) @@ -146,7 +147,7 @@ func (o *Gzip) GetExtensions() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Gzip) GetExtensionsOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Extensions.Get(), o.Extensions.IsSet() @@ -165,6 +166,7 @@ func (o *Gzip) HasExtensions() bool { func (o *Gzip) SetExtensions(v string) { o.Extensions.Set(&v) } + // SetExtensionsNil sets the value for Extensions to be an explicit nil func (o *Gzip) SetExtensionsNil() { o.Extensions.Set(nil) @@ -232,7 +234,7 @@ func (o Gzip) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Gzip) UnmarshalJSON(bytes []byte) (err error) { varGzip := _Gzip{} @@ -253,7 +255,7 @@ func (o *Gzip) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableGzip is a helper abstraction for handling nullable gzip types. +// NullableGzip is a helper abstraction for handling nullable gzip types. type NullableGzip struct { value *Gzip isSet bool @@ -293,7 +295,7 @@ func (v NullableGzip) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableGzip) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_gzip_response.go b/fastly/model_gzip_response.go index 9a4bb3e..a976451 100644 --- a/fastly/model_gzip_response.go +++ b/fastly/model_gzip_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -27,15 +26,15 @@ type GzipResponse struct { // Space-separated list of file extensions to compress. If you omit this field a default list will be used. Extensions NullableString `json:"extensions,omitempty"` // Name of the gzip configuration. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -71,7 +70,7 @@ func (o *GzipResponse) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -90,6 +89,7 @@ func (o *GzipResponse) HasCacheCondition() bool { func (o *GzipResponse) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *GzipResponse) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -113,7 +113,7 @@ func (o *GzipResponse) GetContentTypes() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetContentTypesOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentTypes.Get(), o.ContentTypes.IsSet() @@ -132,6 +132,7 @@ func (o *GzipResponse) HasContentTypes() bool { func (o *GzipResponse) SetContentTypes(v string) { o.ContentTypes.Set(&v) } + // SetContentTypesNil sets the value for ContentTypes to be an explicit nil func (o *GzipResponse) SetContentTypesNil() { o.ContentTypes.Set(nil) @@ -155,7 +156,7 @@ func (o *GzipResponse) GetExtensions() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetExtensionsOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Extensions.Get(), o.Extensions.IsSet() @@ -174,6 +175,7 @@ func (o *GzipResponse) HasExtensions() bool { func (o *GzipResponse) SetExtensions(v string) { o.Extensions.Set(&v) } + // SetExtensionsNil sets the value for Extensions to be an explicit nil func (o *GzipResponse) SetExtensionsNil() { o.Extensions.Set(nil) @@ -293,7 +295,7 @@ func (o *GzipResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -312,6 +314,7 @@ func (o *GzipResponse) HasCreatedAt() bool { func (o *GzipResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *GzipResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -335,7 +338,7 @@ func (o *GzipResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -354,6 +357,7 @@ func (o *GzipResponse) HasDeletedAt() bool { func (o *GzipResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *GzipResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -377,7 +381,7 @@ func (o *GzipResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GzipResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -396,6 +400,7 @@ func (o *GzipResponse) HasUpdatedAt() bool { func (o *GzipResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *GzipResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -446,7 +451,7 @@ func (o GzipResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *GzipResponse) UnmarshalJSON(bytes []byte) (err error) { varGzipResponse := _GzipResponse{} @@ -472,7 +477,7 @@ func (o *GzipResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableGzipResponse is a helper abstraction for handling nullable gzipresponse types. +// NullableGzipResponse is a helper abstraction for handling nullable gzipresponse types. type NullableGzipResponse struct { value *GzipResponse isSet bool @@ -512,7 +517,7 @@ func (v NullableGzipResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableGzipResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_header.go b/fastly/model_header.go index 584cedd..6609d0f 100644 --- a/fastly/model_header.go +++ b/fastly/model_header.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -38,7 +37,7 @@ type Header struct { // Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. Substitution NullableString `json:"substitution,omitempty"` // Accepts a string value. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]any } @@ -106,7 +105,7 @@ func (o *Header) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -125,6 +124,7 @@ func (o *Header) HasCacheCondition() bool { func (o *Header) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *Header) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -212,7 +212,7 @@ func (o *Header) GetRegex() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetRegexOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Regex.Get(), o.Regex.IsSet() @@ -231,6 +231,7 @@ func (o *Header) HasRegex() bool { func (o *Header) SetRegex(v string) { o.Regex.Set(&v) } + // SetRegexNil sets the value for Regex to be an explicit nil func (o *Header) SetRegexNil() { o.Regex.Set(nil) @@ -254,7 +255,7 @@ func (o *Header) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -273,6 +274,7 @@ func (o *Header) HasRequestCondition() bool { func (o *Header) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *Header) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -296,7 +298,7 @@ func (o *Header) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -315,6 +317,7 @@ func (o *Header) HasResponseCondition() bool { func (o *Header) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *Header) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -338,7 +341,7 @@ func (o *Header) GetSrc() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetSrcOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Src.Get(), o.Src.IsSet() @@ -357,6 +360,7 @@ func (o *Header) HasSrc() bool { func (o *Header) SetSrc(v string) { o.Src.Set(&v) } + // SetSrcNil sets the value for Src to be an explicit nil func (o *Header) SetSrcNil() { o.Src.Set(nil) @@ -380,7 +384,7 @@ func (o *Header) GetSubstitution() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Header) GetSubstitutionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Substitution.Get(), o.Substitution.IsSet() @@ -399,6 +403,7 @@ func (o *Header) HasSubstitution() bool { func (o *Header) SetSubstitution(v string) { o.Substitution.Set(&v) } + // SetSubstitutionNil sets the value for Substitution to be an explicit nil func (o *Header) SetSubstitutionNil() { o.Substitution.Set(nil) @@ -484,7 +489,7 @@ func (o Header) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Header) UnmarshalJSON(bytes []byte) (err error) { varHeader := _Header{} @@ -511,7 +516,7 @@ func (o *Header) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHeader is a helper abstraction for handling nullable header types. +// NullableHeader is a helper abstraction for handling nullable header types. type NullableHeader struct { value *Header isSet bool @@ -551,7 +556,7 @@ func (v NullableHeader) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHeader) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_header_response.go b/fastly/model_header_response.go index 596c74b..8b00434 100644 --- a/fastly/model_header_response.go +++ b/fastly/model_header_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -43,15 +42,15 @@ type HeaderResponse struct { // Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) IgnoreIfSet *string `json:"ignore_if_set,omitempty"` // Priority determines execution order. Lower numbers execute first. - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -123,7 +122,7 @@ func (o *HeaderResponse) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -142,6 +141,7 @@ func (o *HeaderResponse) HasCacheCondition() bool { func (o *HeaderResponse) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *HeaderResponse) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -229,7 +229,7 @@ func (o *HeaderResponse) GetRegex() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetRegexOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Regex.Get(), o.Regex.IsSet() @@ -248,6 +248,7 @@ func (o *HeaderResponse) HasRegex() bool { func (o *HeaderResponse) SetRegex(v string) { o.Regex.Set(&v) } + // SetRegexNil sets the value for Regex to be an explicit nil func (o *HeaderResponse) SetRegexNil() { o.Regex.Set(nil) @@ -271,7 +272,7 @@ func (o *HeaderResponse) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -290,6 +291,7 @@ func (o *HeaderResponse) HasRequestCondition() bool { func (o *HeaderResponse) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *HeaderResponse) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -313,7 +315,7 @@ func (o *HeaderResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -332,6 +334,7 @@ func (o *HeaderResponse) HasResponseCondition() bool { func (o *HeaderResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *HeaderResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -355,7 +358,7 @@ func (o *HeaderResponse) GetSrc() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetSrcOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Src.Get(), o.Src.IsSet() @@ -374,6 +377,7 @@ func (o *HeaderResponse) HasSrc() bool { func (o *HeaderResponse) SetSrc(v string) { o.Src.Set(&v) } + // SetSrcNil sets the value for Src to be an explicit nil func (o *HeaderResponse) SetSrcNil() { o.Src.Set(nil) @@ -397,7 +401,7 @@ func (o *HeaderResponse) GetSubstitution() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetSubstitutionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Substitution.Get(), o.Substitution.IsSet() @@ -416,6 +420,7 @@ func (o *HeaderResponse) HasSubstitution() bool { func (o *HeaderResponse) SetSubstitution(v string) { o.Substitution.Set(&v) } + // SetSubstitutionNil sets the value for Substitution to be an explicit nil func (o *HeaderResponse) SetSubstitutionNil() { o.Substitution.Set(nil) @@ -599,7 +604,7 @@ func (o *HeaderResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -618,6 +623,7 @@ func (o *HeaderResponse) HasCreatedAt() bool { func (o *HeaderResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *HeaderResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -641,7 +647,7 @@ func (o *HeaderResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -660,6 +666,7 @@ func (o *HeaderResponse) HasDeletedAt() bool { func (o *HeaderResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *HeaderResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -683,7 +690,7 @@ func (o *HeaderResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HeaderResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -702,6 +709,7 @@ func (o *HeaderResponse) HasUpdatedAt() bool { func (o *HeaderResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *HeaderResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -776,7 +784,7 @@ func (o HeaderResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HeaderResponse) UnmarshalJSON(bytes []byte) (err error) { varHeaderResponse := _HeaderResponse{} @@ -810,7 +818,7 @@ func (o *HeaderResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHeaderResponse is a helper abstraction for handling nullable headerresponse types. +// NullableHeaderResponse is a helper abstraction for handling nullable headerresponse types. type NullableHeaderResponse struct { value *HeaderResponse isSet bool @@ -850,7 +858,7 @@ func (v NullableHeaderResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHeaderResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_header_response_additional.go b/fastly/model_header_response_additional.go index 4360797..4810561 100644 --- a/fastly/model_header_response_additional.go +++ b/fastly/model_header_response_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type HeaderResponseAdditional struct { // Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) IgnoreIfSet *string `json:"ignore_if_set,omitempty"` // Priority determines execution order. Lower numbers execute first. - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` AdditionalProperties map[string]any } @@ -132,7 +131,7 @@ func (o HeaderResponseAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HeaderResponseAdditional) UnmarshalJSON(bytes []byte) (err error) { varHeaderResponseAdditional := _HeaderResponseAdditional{} @@ -151,7 +150,7 @@ func (o *HeaderResponseAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHeaderResponseAdditional is a helper abstraction for handling nullable headerresponseadditional types. +// NullableHeaderResponseAdditional is a helper abstraction for handling nullable headerresponseadditional types. type NullableHeaderResponseAdditional struct { value *HeaderResponseAdditional isSet bool @@ -191,7 +190,7 @@ func (v NullableHeaderResponseAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHeaderResponseAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_healthcheck.go b/fastly/model_healthcheck.go index 1688cbc..9f58cab 100644 --- a/fastly/model_healthcheck.go +++ b/fastly/model_healthcheck.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -44,7 +43,7 @@ type Healthcheck struct { // Timeout in milliseconds. Timeout *int32 `json:"timeout,omitempty"` // The number of most recent health check queries to keep for this health check. - Window *int32 `json:"window,omitempty"` + Window *int32 `json:"window,omitempty"` AdditionalProperties map[string]any } @@ -112,7 +111,7 @@ func (o *Healthcheck) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Healthcheck) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -131,6 +130,7 @@ func (o *Healthcheck) HasComment() bool { func (o *Healthcheck) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Healthcheck) SetCommentNil() { o.Comment.Set(nil) @@ -545,7 +545,7 @@ func (o Healthcheck) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Healthcheck) UnmarshalJSON(bytes []byte) (err error) { varHealthcheck := _Healthcheck{} @@ -575,7 +575,7 @@ func (o *Healthcheck) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHealthcheck is a helper abstraction for handling nullable healthcheck types. +// NullableHealthcheck is a helper abstraction for handling nullable healthcheck types. type NullableHealthcheck struct { value *Healthcheck isSet bool @@ -615,7 +615,7 @@ func (v NullableHealthcheck) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHealthcheck) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_healthcheck_response.go b/fastly/model_healthcheck_response.go index 7261322..23a2a98 100644 --- a/fastly/model_healthcheck_response.go +++ b/fastly/model_healthcheck_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -45,15 +44,15 @@ type HealthcheckResponse struct { // Timeout in milliseconds. Timeout *int32 `json:"timeout,omitempty"` // The number of most recent health check queries to keep for this health check. - Window *int32 `json:"window,omitempty"` + Window *int32 `json:"window,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -121,7 +120,7 @@ func (o *HealthcheckResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HealthcheckResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -140,6 +139,7 @@ func (o *HealthcheckResponse) HasComment() bool { func (o *HealthcheckResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *HealthcheckResponse) SetCommentNil() { o.Comment.Set(nil) @@ -579,7 +579,7 @@ func (o *HealthcheckResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HealthcheckResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -598,6 +598,7 @@ func (o *HealthcheckResponse) HasCreatedAt() bool { func (o *HealthcheckResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *HealthcheckResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -621,7 +622,7 @@ func (o *HealthcheckResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HealthcheckResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -640,6 +641,7 @@ func (o *HealthcheckResponse) HasDeletedAt() bool { func (o *HealthcheckResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *HealthcheckResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -663,7 +665,7 @@ func (o *HealthcheckResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HealthcheckResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -682,6 +684,7 @@ func (o *HealthcheckResponse) HasUpdatedAt() bool { func (o *HealthcheckResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *HealthcheckResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -759,7 +762,7 @@ func (o HealthcheckResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HealthcheckResponse) UnmarshalJSON(bytes []byte) (err error) { varHealthcheckResponse := _HealthcheckResponse{} @@ -794,7 +797,7 @@ func (o *HealthcheckResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHealthcheckResponse is a helper abstraction for handling nullable healthcheckresponse types. +// NullableHealthcheckResponse is a helper abstraction for handling nullable healthcheckresponse types. type NullableHealthcheckResponse struct { value *HealthcheckResponse isSet bool @@ -834,7 +837,7 @@ func (v NullableHealthcheckResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHealthcheckResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical.go b/fastly/model_historical.go index f2df044..ec5a755 100644 --- a/fastly/model_historical.go +++ b/fastly/model_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,10 +19,10 @@ import ( // Historical struct for Historical type Historical struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. - Msg NullableString `json:"msg,omitempty"` + Msg NullableString `json:"msg,omitempty"` AdditionalProperties map[string]any } @@ -123,7 +122,7 @@ func (o *Historical) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Historical) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -142,6 +141,7 @@ func (o *Historical) HasMsg() bool { func (o *Historical) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *Historical) SetMsgNil() { o.Msg.Set(nil) @@ -174,7 +174,7 @@ func (o Historical) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Historical) UnmarshalJSON(bytes []byte) (err error) { varHistorical := _Historical{} @@ -194,7 +194,7 @@ func (o *Historical) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistorical is a helper abstraction for handling nullable historical types. +// NullableHistorical is a helper abstraction for handling nullable historical types. type NullableHistorical struct { value *Historical isSet bool @@ -234,7 +234,7 @@ func (v NullableHistorical) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistorical) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_ddos.go b/fastly/model_historical_ddos.go index 266feb3..72c779c 100644 --- a/fastly/model_historical_ddos.go +++ b/fastly/model_historical_ddos.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalDdos struct for HistoricalDdos type HistoricalDdos struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalDdosMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalDdosMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of [entries](#entry-data-model). - Data []PlatformDdosDataItems `json:"data,omitempty"` + Data []PlatformDdosDataItems `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalDdos) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalDdos) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalDdos) HasMsg() bool { func (o *HistoricalDdos) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalDdos) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalDdos) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDdos) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDdos := _HistoricalDdos{} @@ -232,7 +232,7 @@ func (o *HistoricalDdos) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDdos is a helper abstraction for handling nullable historicalddos types. +// NullableHistoricalDdos is a helper abstraction for handling nullable historicalddos types. type NullableHistoricalDdos struct { value *HistoricalDdos isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalDdos) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDdos) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_ddos_meta.go b/fastly/model_historical_ddos_meta.go index b7ac5f5..758eccc 100644 --- a/fastly/model_historical_ddos_meta.go +++ b/fastly/model_historical_ddos_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type HistoricalDdosMeta struct { // Downsample that was used to perform the query. One of `hour` or `day`. Downsample *string `json:"downsample,omitempty"` // A comma-separated list of the metrics that were requested. - Metric *string `json:"metric,omitempty"` + Metric *string `json:"metric,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o HistoricalDdosMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDdosMeta) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDdosMeta := _HistoricalDdosMeta{} @@ -223,7 +222,7 @@ func (o *HistoricalDdosMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDdosMeta is a helper abstraction for handling nullable historicalddosmeta types. +// NullableHistoricalDdosMeta is a helper abstraction for handling nullable historicalddosmeta types. type NullableHistoricalDdosMeta struct { value *HistoricalDdosMeta isSet bool @@ -263,7 +262,7 @@ func (v NullableHistoricalDdosMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDdosMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains.go b/fastly/model_historical_domains.go index 40dc291..e8ce574 100644 --- a/fastly/model_historical_domains.go +++ b/fastly/model_historical_domains.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalDomains struct for HistoricalDomains type HistoricalDomains struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalDomainsMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalDomainsMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as domain, region, or POP. - Data []HistoricalDomainsData `json:"data,omitempty"` + Data []HistoricalDomainsData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalDomains) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalDomains) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalDomains) HasMsg() bool { func (o *HistoricalDomains) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalDomains) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalDomains) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomains) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomains := _HistoricalDomains{} @@ -232,7 +232,7 @@ func (o *HistoricalDomains) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDomains is a helper abstraction for handling nullable historicaldomains types. +// NullableHistoricalDomains is a helper abstraction for handling nullable historicaldomains types. type NullableHistoricalDomains struct { value *HistoricalDomains isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalDomains) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomains) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains_data.go b/fastly/model_historical_domains_data.go index 57520f7..bdc5ec8 100644 --- a/fastly/model_historical_domains_data.go +++ b/fastly/model_historical_domains_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // HistoricalDomainsData struct for HistoricalDomainsData type HistoricalDomainsData struct { Dimensions *DomainInspectorEntryDimensions `json:"dimensions,omitempty"` - // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. - Values []Values `json:"values,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []Values `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o HistoricalDomainsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomainsData) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomainsData := _HistoricalDomainsData{} @@ -146,7 +145,7 @@ func (o *HistoricalDomainsData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDomainsData is a helper abstraction for handling nullable historicaldomainsdata types. +// NullableHistoricalDomainsData is a helper abstraction for handling nullable historicaldomainsdata types. type NullableHistoricalDomainsData struct { value *HistoricalDomainsData isSet bool @@ -186,7 +185,7 @@ func (v NullableHistoricalDomainsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomainsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains_meta.go b/fastly/model_historical_domains_meta.go index c36eba5..71594d8 100644 --- a/fastly/model_historical_domains_meta.go +++ b/fastly/model_historical_domains_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -34,8 +33,8 @@ type HistoricalDomainsMeta struct { // A comma-separated list of keys the results are sorted by. Sort *string `json:"sort,omitempty"` // A comma-separated list of dimensions being summed over in the query. - GroupBy *string `json:"group_by,omitempty"` - Filters *HistoricalDomainsMetaFilters `json:"filters,omitempty"` + GroupBy *string `json:"group_by,omitempty"` + Filters *HistoricalDomainsMetaFilters `json:"filters,omitempty"` AdditionalProperties map[string]any } @@ -386,7 +385,7 @@ func (o HistoricalDomainsMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomainsMeta) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomainsMeta := _HistoricalDomainsMeta{} @@ -412,7 +411,7 @@ func (o *HistoricalDomainsMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDomainsMeta is a helper abstraction for handling nullable historicaldomainsmeta types. +// NullableHistoricalDomainsMeta is a helper abstraction for handling nullable historicaldomainsmeta types. type NullableHistoricalDomainsMeta struct { value *HistoricalDomainsMeta isSet bool @@ -452,7 +451,7 @@ func (v NullableHistoricalDomainsMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomainsMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains_meta_filters.go b/fastly/model_historical_domains_meta_filters.go index b87f548..f77fe50 100644 --- a/fastly/model_historical_domains_meta_filters.go +++ b/fastly/model_historical_domains_meta_filters.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalDomainsMetaFilters Filters that were applied when calculating the results for this query. type HistoricalDomainsMetaFilters struct { - Region *string `json:"region,omitempty"` - Datacenter *string `json:"datacenter,omitempty"` - Domain *string `json:"domain,omitempty"` + Region *string `json:"region,omitempty"` + Datacenter *string `json:"datacenter,omitempty"` + Domain *string `json:"domain,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o HistoricalDomainsMetaFilters) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomainsMetaFilters) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomainsMetaFilters := _HistoricalDomainsMetaFilters{} @@ -182,7 +181,7 @@ func (o *HistoricalDomainsMetaFilters) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDomainsMetaFilters is a helper abstraction for handling nullable historicaldomainsmetafilters types. +// NullableHistoricalDomainsMetaFilters is a helper abstraction for handling nullable historicaldomainsmetafilters types. type NullableHistoricalDomainsMetaFilters struct { value *HistoricalDomainsMetaFilters isSet bool @@ -222,7 +221,7 @@ func (v NullableHistoricalDomainsMetaFilters) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomainsMetaFilters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains_response.go b/fastly/model_historical_domains_response.go index 960b1b5..8b25f6b 100644 --- a/fastly/model_historical_domains_response.go +++ b/fastly/model_historical_domains_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalDomainsResponse struct for HistoricalDomainsResponse type HistoricalDomainsResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalDomainsMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalDomainsMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. - Data []DomainInspectorEntry `json:"data,omitempty"` + Data []DomainInspectorEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalDomainsResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalDomainsResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalDomainsResponse) HasMsg() bool { func (o *HistoricalDomainsResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalDomainsResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalDomainsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomainsResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomainsResponse := _HistoricalDomainsResponse{} @@ -232,7 +232,7 @@ func (o *HistoricalDomainsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalDomainsResponse is a helper abstraction for handling nullable historicaldomainsresponse types. +// NullableHistoricalDomainsResponse is a helper abstraction for handling nullable historicaldomainsresponse types. type NullableHistoricalDomainsResponse struct { value *HistoricalDomainsResponse isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalDomainsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomainsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_domains_response_all_of.go b/fastly/model_historical_domains_response_all_of.go index 6da39a3..28646ee 100644 --- a/fastly/model_historical_domains_response_all_of.go +++ b/fastly/model_historical_domains_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HistoricalDomainsResponseAllOf struct for HistoricalDomainsResponseAllOf type HistoricalDomainsResponseAllOf struct { // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. - Data []DomainInspectorEntry `json:"data,omitempty"` + Data []DomainInspectorEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HistoricalDomainsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalDomainsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalDomainsResponseAllOf := _HistoricalDomainsResponseAllOf{} @@ -109,7 +108,7 @@ func (o *HistoricalDomainsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableHistoricalDomainsResponseAllOf is a helper abstraction for handling nullable historicaldomainsresponseallof types. +// NullableHistoricalDomainsResponseAllOf is a helper abstraction for handling nullable historicaldomainsresponseallof types. type NullableHistoricalDomainsResponseAllOf struct { value *HistoricalDomainsResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHistoricalDomainsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalDomainsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_meta.go b/fastly/model_historical_meta.go index 78283bd..d5da7e4 100644 --- a/fastly/model_historical_meta.go +++ b/fastly/model_historical_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalMeta Meta information about the scope of the query in a human readable format. type HistoricalMeta struct { - To *string `json:"to,omitempty"` - From *string `json:"from,omitempty"` - By *string `json:"by,omitempty"` - Region *string `json:"region,omitempty"` + To *string `json:"to,omitempty"` + From *string `json:"from,omitempty"` + By *string `json:"by,omitempty"` + Region *string `json:"region,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o HistoricalMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalMeta) UnmarshalJSON(bytes []byte) (err error) { varHistoricalMeta := _HistoricalMeta{} @@ -219,7 +218,7 @@ func (o *HistoricalMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalMeta is a helper abstraction for handling nullable historicalmeta types. +// NullableHistoricalMeta is a helper abstraction for handling nullable historicalmeta types. type NullableHistoricalMeta struct { value *HistoricalMeta isSet bool @@ -259,7 +258,7 @@ func (v NullableHistoricalMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_origins_response.go b/fastly/model_historical_origins_response.go index db0aa32..4b2464d 100644 --- a/fastly/model_historical_origins_response.go +++ b/fastly/model_historical_origins_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalOriginsResponse struct for HistoricalOriginsResponse type HistoricalOriginsResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. - Data []OriginInspectorEntry `json:"data,omitempty"` + Data []OriginInspectorEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalOriginsResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalOriginsResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalOriginsResponse) HasMsg() bool { func (o *HistoricalOriginsResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalOriginsResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalOriginsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalOriginsResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalOriginsResponse := _HistoricalOriginsResponse{} @@ -232,7 +232,7 @@ func (o *HistoricalOriginsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalOriginsResponse is a helper abstraction for handling nullable historicaloriginsresponse types. +// NullableHistoricalOriginsResponse is a helper abstraction for handling nullable historicaloriginsresponse types. type NullableHistoricalOriginsResponse struct { value *HistoricalOriginsResponse isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalOriginsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalOriginsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_origins_response_all_of.go b/fastly/model_historical_origins_response_all_of.go index 360e73a..3f3ca8a 100644 --- a/fastly/model_historical_origins_response_all_of.go +++ b/fastly/model_historical_origins_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HistoricalOriginsResponseAllOf struct for HistoricalOriginsResponseAllOf type HistoricalOriginsResponseAllOf struct { // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. - Data []OriginInspectorEntry `json:"data,omitempty"` + Data []OriginInspectorEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HistoricalOriginsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalOriginsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalOriginsResponseAllOf := _HistoricalOriginsResponseAllOf{} @@ -109,7 +108,7 @@ func (o *HistoricalOriginsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableHistoricalOriginsResponseAllOf is a helper abstraction for handling nullable historicaloriginsresponseallof types. +// NullableHistoricalOriginsResponseAllOf is a helper abstraction for handling nullable historicaloriginsresponseallof types. type NullableHistoricalOriginsResponseAllOf struct { value *HistoricalOriginsResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHistoricalOriginsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalOriginsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_regions_response.go b/fastly/model_historical_regions_response.go index 14e71dd..5075f5a 100644 --- a/fastly/model_historical_regions_response.go +++ b/fastly/model_historical_regions_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,11 +19,11 @@ import ( // HistoricalRegionsResponse struct for HistoricalRegionsResponse type HistoricalRegionsResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. - Msg NullableString `json:"msg,omitempty"` - Data []string `json:"data,omitempty"` + Msg NullableString `json:"msg,omitempty"` + Data []string `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -124,7 +123,7 @@ func (o *HistoricalRegionsResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalRegionsResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -143,6 +142,7 @@ func (o *HistoricalRegionsResponse) HasMsg() bool { func (o *HistoricalRegionsResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalRegionsResponse) SetMsgNil() { o.Msg.Set(nil) @@ -210,7 +210,7 @@ func (o HistoricalRegionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalRegionsResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalRegionsResponse := _HistoricalRegionsResponse{} @@ -231,7 +231,7 @@ func (o *HistoricalRegionsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalRegionsResponse is a helper abstraction for handling nullable historicalregionsresponse types. +// NullableHistoricalRegionsResponse is a helper abstraction for handling nullable historicalregionsresponse types. type NullableHistoricalRegionsResponse struct { value *HistoricalRegionsResponse isSet bool @@ -271,7 +271,7 @@ func (v NullableHistoricalRegionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalRegionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_regions_response_all_of.go b/fastly/model_historical_regions_response_all_of.go index 96271eb..f8564e8 100644 --- a/fastly/model_historical_regions_response_all_of.go +++ b/fastly/model_historical_regions_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalRegionsResponseAllOf struct for HistoricalRegionsResponseAllOf type HistoricalRegionsResponseAllOf struct { - Data []string `json:"data,omitempty"` + Data []string `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o HistoricalRegionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalRegionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalRegionsResponseAllOf := _HistoricalRegionsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *HistoricalRegionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableHistoricalRegionsResponseAllOf is a helper abstraction for handling nullable historicalregionsresponseallof types. +// NullableHistoricalRegionsResponseAllOf is a helper abstraction for handling nullable historicalregionsresponseallof types. type NullableHistoricalRegionsResponseAllOf struct { value *HistoricalRegionsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableHistoricalRegionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalRegionsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_stats_aggregated_response.go b/fastly/model_historical_stats_aggregated_response.go index 81624f9..980c54a 100644 --- a/fastly/model_historical_stats_aggregated_response.go +++ b/fastly/model_historical_stats_aggregated_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,11 +19,11 @@ import ( // HistoricalStatsAggregatedResponse struct for HistoricalStatsAggregatedResponse type HistoricalStatsAggregatedResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. - Msg NullableString `json:"msg,omitempty"` - Data []Results `json:"data,omitempty"` + Msg NullableString `json:"msg,omitempty"` + Data []Results `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -124,7 +123,7 @@ func (o *HistoricalStatsAggregatedResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalStatsAggregatedResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -143,6 +142,7 @@ func (o *HistoricalStatsAggregatedResponse) HasMsg() bool { func (o *HistoricalStatsAggregatedResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalStatsAggregatedResponse) SetMsgNil() { o.Msg.Set(nil) @@ -210,7 +210,7 @@ func (o HistoricalStatsAggregatedResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalStatsAggregatedResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalStatsAggregatedResponse := _HistoricalStatsAggregatedResponse{} @@ -231,7 +231,7 @@ func (o *HistoricalStatsAggregatedResponse) UnmarshalJSON(bytes []byte) (err err return err } -// NullableHistoricalStatsAggregatedResponse is a helper abstraction for handling nullable historicalstatsaggregatedresponse types. +// NullableHistoricalStatsAggregatedResponse is a helper abstraction for handling nullable historicalstatsaggregatedresponse types. type NullableHistoricalStatsAggregatedResponse struct { value *HistoricalStatsAggregatedResponse isSet bool @@ -271,7 +271,7 @@ func (v NullableHistoricalStatsAggregatedResponse) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalStatsAggregatedResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_stats_aggregated_response_all_of.go b/fastly/model_historical_stats_aggregated_response_all_of.go index 6b4296c..d31939e 100644 --- a/fastly/model_historical_stats_aggregated_response_all_of.go +++ b/fastly/model_historical_stats_aggregated_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalStatsAggregatedResponseAllOf struct for HistoricalStatsAggregatedResponseAllOf type HistoricalStatsAggregatedResponseAllOf struct { - Data []Results `json:"data,omitempty"` + Data []Results `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o HistoricalStatsAggregatedResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalStatsAggregatedResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalStatsAggregatedResponseAllOf := _HistoricalStatsAggregatedResponseAllOf{} @@ -108,7 +107,7 @@ func (o *HistoricalStatsAggregatedResponseAllOf) UnmarshalJSON(bytes []byte) (er return err } -// NullableHistoricalStatsAggregatedResponseAllOf is a helper abstraction for handling nullable historicalstatsaggregatedresponseallof types. +// NullableHistoricalStatsAggregatedResponseAllOf is a helper abstraction for handling nullable historicalstatsaggregatedresponseallof types. type NullableHistoricalStatsAggregatedResponseAllOf struct { value *HistoricalStatsAggregatedResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableHistoricalStatsAggregatedResponseAllOf) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalStatsAggregatedResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_stats_by_service_response.go b/fastly/model_historical_stats_by_service_response.go index d2833f6..5a96030 100644 --- a/fastly/model_historical_stats_by_service_response.go +++ b/fastly/model_historical_stats_by_service_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalStatsByServiceResponse struct for HistoricalStatsByServiceResponse type HistoricalStatsByServiceResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // Contains the results of the query, organized by *service ID*, into arrays where each element describes one service over a *time span*. - Data *map[string][]Results `json:"data,omitempty"` + Data *map[string][]Results `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalStatsByServiceResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalStatsByServiceResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalStatsByServiceResponse) HasMsg() bool { func (o *HistoricalStatsByServiceResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalStatsByServiceResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalStatsByServiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalStatsByServiceResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalStatsByServiceResponse := _HistoricalStatsByServiceResponse{} @@ -232,7 +232,7 @@ func (o *HistoricalStatsByServiceResponse) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableHistoricalStatsByServiceResponse is a helper abstraction for handling nullable historicalstatsbyserviceresponse types. +// NullableHistoricalStatsByServiceResponse is a helper abstraction for handling nullable historicalstatsbyserviceresponse types. type NullableHistoricalStatsByServiceResponse struct { value *HistoricalStatsByServiceResponse isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalStatsByServiceResponse) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalStatsByServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_stats_by_service_response_all_of.go b/fastly/model_historical_stats_by_service_response_all_of.go index 9b3001d..ac87395 100644 --- a/fastly/model_historical_stats_by_service_response_all_of.go +++ b/fastly/model_historical_stats_by_service_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HistoricalStatsByServiceResponseAllOf struct for HistoricalStatsByServiceResponseAllOf type HistoricalStatsByServiceResponseAllOf struct { // Contains the results of the query, organized by *service ID*, into arrays where each element describes one service over a *time span*. - Data *map[string][]Results `json:"data,omitempty"` + Data *map[string][]Results `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HistoricalStatsByServiceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalStatsByServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalStatsByServiceResponseAllOf := _HistoricalStatsByServiceResponseAllOf{} @@ -109,7 +108,7 @@ func (o *HistoricalStatsByServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableHistoricalStatsByServiceResponseAllOf is a helper abstraction for handling nullable historicalstatsbyserviceresponseallof types. +// NullableHistoricalStatsByServiceResponseAllOf is a helper abstraction for handling nullable historicalstatsbyserviceresponseallof types. type NullableHistoricalStatsByServiceResponseAllOf struct { value *HistoricalStatsByServiceResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHistoricalStatsByServiceResponseAllOf) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalStatsByServiceResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_aggregated_response.go b/fastly/model_historical_usage_aggregated_response.go index 72604d6..b8ee9c0 100644 --- a/fastly/model_historical_usage_aggregated_response.go +++ b/fastly/model_historical_usage_aggregated_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalUsageAggregatedResponse struct for HistoricalUsageAggregatedResponse type HistoricalUsageAggregatedResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // Organized by *region*. - Data *map[string]HistoricalUsageData `json:"data,omitempty"` + Data *map[string]HistoricalUsageData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalUsageAggregatedResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalUsageAggregatedResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalUsageAggregatedResponse) HasMsg() bool { func (o *HistoricalUsageAggregatedResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalUsageAggregatedResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalUsageAggregatedResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageAggregatedResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageAggregatedResponse := _HistoricalUsageAggregatedResponse{} @@ -232,7 +232,7 @@ func (o *HistoricalUsageAggregatedResponse) UnmarshalJSON(bytes []byte) (err err return err } -// NullableHistoricalUsageAggregatedResponse is a helper abstraction for handling nullable historicalusageaggregatedresponse types. +// NullableHistoricalUsageAggregatedResponse is a helper abstraction for handling nullable historicalusageaggregatedresponse types. type NullableHistoricalUsageAggregatedResponse struct { value *HistoricalUsageAggregatedResponse isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalUsageAggregatedResponse) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageAggregatedResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_aggregated_response_all_of.go b/fastly/model_historical_usage_aggregated_response_all_of.go index 1c7c3c6..e062f8c 100644 --- a/fastly/model_historical_usage_aggregated_response_all_of.go +++ b/fastly/model_historical_usage_aggregated_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HistoricalUsageAggregatedResponseAllOf struct for HistoricalUsageAggregatedResponseAllOf type HistoricalUsageAggregatedResponseAllOf struct { // Organized by *region*. - Data *map[string]HistoricalUsageData `json:"data,omitempty"` + Data *map[string]HistoricalUsageData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HistoricalUsageAggregatedResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageAggregatedResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageAggregatedResponseAllOf := _HistoricalUsageAggregatedResponseAllOf{} @@ -109,7 +108,7 @@ func (o *HistoricalUsageAggregatedResponseAllOf) UnmarshalJSON(bytes []byte) (er return err } -// NullableHistoricalUsageAggregatedResponseAllOf is a helper abstraction for handling nullable historicalusageaggregatedresponseallof types. +// NullableHistoricalUsageAggregatedResponseAllOf is a helper abstraction for handling nullable historicalusageaggregatedresponseallof types. type NullableHistoricalUsageAggregatedResponseAllOf struct { value *HistoricalUsageAggregatedResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHistoricalUsageAggregatedResponseAllOf) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageAggregatedResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_data.go b/fastly/model_historical_usage_data.go index 4288556..dd44a9a 100644 --- a/fastly/model_historical_usage_data.go +++ b/fastly/model_historical_usage_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalUsageData The results of usage related queries, grouped by service and/or region depending on endpoint, and aggregated over the appropriate time span. type HistoricalUsageData struct { - Bandwidth *float32 `json:"bandwidth,omitempty"` - Requests *float32 `json:"requests,omitempty"` - ComputeRequests *float32 `json:"compute_requests,omitempty"` + Bandwidth *float32 `json:"bandwidth,omitempty"` + Requests *float32 `json:"requests,omitempty"` + ComputeRequests *float32 `json:"compute_requests,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o HistoricalUsageData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageData) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageData := _HistoricalUsageData{} @@ -182,7 +181,7 @@ func (o *HistoricalUsageData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalUsageData is a helper abstraction for handling nullable historicalusagedata types. +// NullableHistoricalUsageData is a helper abstraction for handling nullable historicalusagedata types. type NullableHistoricalUsageData struct { value *HistoricalUsageData isSet bool @@ -222,7 +221,7 @@ func (v NullableHistoricalUsageData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_month_response.go b/fastly/model_historical_usage_month_response.go index 8ab6b9e..afd6cd9 100644 --- a/fastly/model_historical_usage_month_response.go +++ b/fastly/model_historical_usage_month_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,11 +19,11 @@ import ( // HistoricalUsageMonthResponse struct for HistoricalUsageMonthResponse type HistoricalUsageMonthResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. - Msg NullableString `json:"msg,omitempty"` - Data *HistoricalUsageMonthResponseData `json:"data,omitempty"` + Msg NullableString `json:"msg,omitempty"` + Data *HistoricalUsageMonthResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -124,7 +123,7 @@ func (o *HistoricalUsageMonthResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalUsageMonthResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -143,6 +142,7 @@ func (o *HistoricalUsageMonthResponse) HasMsg() bool { func (o *HistoricalUsageMonthResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalUsageMonthResponse) SetMsgNil() { o.Msg.Set(nil) @@ -210,7 +210,7 @@ func (o HistoricalUsageMonthResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageMonthResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageMonthResponse := _HistoricalUsageMonthResponse{} @@ -231,7 +231,7 @@ func (o *HistoricalUsageMonthResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHistoricalUsageMonthResponse is a helper abstraction for handling nullable historicalusagemonthresponse types. +// NullableHistoricalUsageMonthResponse is a helper abstraction for handling nullable historicalusagemonthresponse types. type NullableHistoricalUsageMonthResponse struct { value *HistoricalUsageMonthResponse isSet bool @@ -271,7 +271,7 @@ func (v NullableHistoricalUsageMonthResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageMonthResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_month_response_all_of.go b/fastly/model_historical_usage_month_response_all_of.go index 84b1d94..3f9eebc 100644 --- a/fastly/model_historical_usage_month_response_all_of.go +++ b/fastly/model_historical_usage_month_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // HistoricalUsageMonthResponseAllOf struct for HistoricalUsageMonthResponseAllOf type HistoricalUsageMonthResponseAllOf struct { - Data *HistoricalUsageMonthResponseData `json:"data,omitempty"` + Data *HistoricalUsageMonthResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o HistoricalUsageMonthResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageMonthResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageMonthResponseAllOf := _HistoricalUsageMonthResponseAllOf{} @@ -108,7 +107,7 @@ func (o *HistoricalUsageMonthResponseAllOf) UnmarshalJSON(bytes []byte) (err err return err } -// NullableHistoricalUsageMonthResponseAllOf is a helper abstraction for handling nullable historicalusagemonthresponseallof types. +// NullableHistoricalUsageMonthResponseAllOf is a helper abstraction for handling nullable historicalusagemonthresponseallof types. type NullableHistoricalUsageMonthResponseAllOf struct { value *HistoricalUsageMonthResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableHistoricalUsageMonthResponseAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageMonthResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_month_response_data.go b/fastly/model_historical_usage_month_response_data.go index 161dba2..81ff326 100644 --- a/fastly/model_historical_usage_month_response_data.go +++ b/fastly/model_historical_usage_month_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -23,7 +22,7 @@ type HistoricalUsageMonthResponseData struct { // Organized by *service id*. Services *map[string]HistoricalUsageService `json:"services,omitempty"` // Organized by *region*. - Total *map[string]HistoricalUsageData `json:"total,omitempty"` + Total *map[string]HistoricalUsageData `json:"total,omitempty"` AdditionalProperties map[string]any } @@ -164,7 +163,7 @@ func (o HistoricalUsageMonthResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageMonthResponseData) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageMonthResponseData := _HistoricalUsageMonthResponseData{} @@ -184,7 +183,7 @@ func (o *HistoricalUsageMonthResponseData) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableHistoricalUsageMonthResponseData is a helper abstraction for handling nullable historicalusagemonthresponsedata types. +// NullableHistoricalUsageMonthResponseData is a helper abstraction for handling nullable historicalusagemonthresponsedata types. type NullableHistoricalUsageMonthResponseData struct { value *HistoricalUsageMonthResponseData isSet bool @@ -224,7 +223,7 @@ func (v NullableHistoricalUsageMonthResponseData) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageMonthResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_service.go b/fastly/model_historical_usage_service.go index 2bd1204..68c64bf 100644 --- a/fastly/model_historical_usage_service.go +++ b/fastly/model_historical_usage_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -82,7 +81,7 @@ func (o HistoricalUsageService) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableHistoricalUsageService is a helper abstraction for handling nullable historicalusageservice types. +// NullableHistoricalUsageService is a helper abstraction for handling nullable historicalusageservice types. type NullableHistoricalUsageService struct { value *HistoricalUsageService isSet bool @@ -122,7 +121,7 @@ func (v NullableHistoricalUsageService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_service_response.go b/fastly/model_historical_usage_service_response.go index fa87998..bff2494 100644 --- a/fastly/model_historical_usage_service_response.go +++ b/fastly/model_historical_usage_service_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // HistoricalUsageServiceResponse struct for HistoricalUsageServiceResponse type HistoricalUsageServiceResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // Organized by *region*. - Data *map[string]map[string]HistoricalUsageData `json:"data,omitempty"` + Data *map[string]map[string]HistoricalUsageData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *HistoricalUsageServiceResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HistoricalUsageServiceResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *HistoricalUsageServiceResponse) HasMsg() bool { func (o *HistoricalUsageServiceResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *HistoricalUsageServiceResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o HistoricalUsageServiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageServiceResponse) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageServiceResponse := _HistoricalUsageServiceResponse{} @@ -232,7 +232,7 @@ func (o *HistoricalUsageServiceResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableHistoricalUsageServiceResponse is a helper abstraction for handling nullable historicalusageserviceresponse types. +// NullableHistoricalUsageServiceResponse is a helper abstraction for handling nullable historicalusageserviceresponse types. type NullableHistoricalUsageServiceResponse struct { value *HistoricalUsageServiceResponse isSet bool @@ -272,7 +272,7 @@ func (v NullableHistoricalUsageServiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_historical_usage_service_response_all_of.go b/fastly/model_historical_usage_service_response_all_of.go index c0beed8..d300b81 100644 --- a/fastly/model_historical_usage_service_response_all_of.go +++ b/fastly/model_historical_usage_service_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HistoricalUsageServiceResponseAllOf struct for HistoricalUsageServiceResponseAllOf type HistoricalUsageServiceResponseAllOf struct { // Organized by *region*. - Data *map[string]map[string]HistoricalUsageData `json:"data,omitempty"` + Data *map[string]map[string]HistoricalUsageData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HistoricalUsageServiceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HistoricalUsageServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varHistoricalUsageServiceResponseAllOf := _HistoricalUsageServiceResponseAllOf{} @@ -109,7 +108,7 @@ func (o *HistoricalUsageServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err e return err } -// NullableHistoricalUsageServiceResponseAllOf is a helper abstraction for handling nullable historicalusageserviceresponseallof types. +// NullableHistoricalUsageServiceResponseAllOf is a helper abstraction for handling nullable historicalusageserviceresponseallof types. type NullableHistoricalUsageServiceResponseAllOf struct { value *HistoricalUsageServiceResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHistoricalUsageServiceResponseAllOf) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHistoricalUsageServiceResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_http3.go b/fastly/model_http3.go index 6c6c01a..37bce5e 100644 --- a/fastly/model_http3.go +++ b/fastly/model_http3.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -21,7 +20,7 @@ import ( // HTTP3 struct for HTTP3 type HTTP3 struct { ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -29,7 +28,7 @@ type HTTP3 struct { // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` // Revision number of the HTTP/3 feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` AdditionalProperties map[string]any } @@ -129,7 +128,7 @@ func (o *HTTP3) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HTTP3) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -148,6 +147,7 @@ func (o *HTTP3) HasCreatedAt() bool { func (o *HTTP3) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *HTTP3) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -171,7 +171,7 @@ func (o *HTTP3) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HTTP3) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -190,6 +190,7 @@ func (o *HTTP3) HasDeletedAt() bool { func (o *HTTP3) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *HTTP3) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -213,7 +214,7 @@ func (o *HTTP3) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *HTTP3) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -232,6 +233,7 @@ func (o *HTTP3) HasUpdatedAt() bool { func (o *HTTP3) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *HTTP3) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -305,7 +307,7 @@ func (o HTTP3) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HTTP3) UnmarshalJSON(bytes []byte) (err error) { varHTTP3 := _HTTP3{} @@ -328,7 +330,7 @@ func (o *HTTP3) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHTTP3 is a helper abstraction for handling nullable http3 types. +// NullableHTTP3 is a helper abstraction for handling nullable http3 types. type NullableHTTP3 struct { value *HTTP3 isSet bool @@ -368,7 +370,7 @@ func (v NullableHTTP3) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHTTP3) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_http3_all_of.go b/fastly/model_http3_all_of.go index 9db1189..dbcd6bf 100644 --- a/fastly/model_http3_all_of.go +++ b/fastly/model_http3_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // HTTP3AllOf struct for HTTP3AllOf type HTTP3AllOf struct { // Revision number of the HTTP/3 feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o HTTP3AllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HTTP3AllOf) UnmarshalJSON(bytes []byte) (err error) { varHTTP3AllOf := _HTTP3AllOf{} @@ -109,7 +108,7 @@ func (o *HTTP3AllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHTTP3AllOf is a helper abstraction for handling nullable http3allof types. +// NullableHTTP3AllOf is a helper abstraction for handling nullable http3allof types. type NullableHTTP3AllOf struct { value *HTTP3AllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableHTTP3AllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHTTP3AllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_http_response_format.go b/fastly/model_http_response_format.go index 68dc9a2..7cce9b7 100644 --- a/fastly/model_http_response_format.go +++ b/fastly/model_http_response_format.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type HTTPResponseFormat struct { // The response body as a string. Body *string `json:"body,omitempty"` // The response body as a base64-encoded binary blob. - BodyBin *string `json:"body-bin,omitempty"` + BodyBin *string `json:"body-bin,omitempty"` AdditionalProperties map[string]any } @@ -243,7 +242,7 @@ func (o HTTPResponseFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HTTPResponseFormat) UnmarshalJSON(bytes []byte) (err error) { varHTTPResponseFormat := _HTTPResponseFormat{} @@ -265,7 +264,7 @@ func (o *HTTPResponseFormat) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHTTPResponseFormat is a helper abstraction for handling nullable httpresponseformat types. +// NullableHTTPResponseFormat is a helper abstraction for handling nullable httpresponseformat types. type NullableHTTPResponseFormat struct { value *HTTPResponseFormat isSet bool @@ -305,7 +304,7 @@ func (v NullableHTTPResponseFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHTTPResponseFormat) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_http_stream_format.go b/fastly/model_http_stream_format.go index 928cedd..f035bad 100644 --- a/fastly/model_http_stream_format.go +++ b/fastly/model_http_stream_format.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type HTTPStreamFormat struct { // A fragment of body data as a string. Content *string `json:"content,omitempty"` // A fragment of body data as a base64-encoded binary blob. - ContentBin *string `json:"content-bin,omitempty"` + ContentBin *string `json:"content-bin,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o HTTPStreamFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *HTTPStreamFormat) UnmarshalJSON(bytes []byte) (err error) { varHTTPStreamFormat := _HTTPStreamFormat{} @@ -147,7 +146,7 @@ func (o *HTTPStreamFormat) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableHTTPStreamFormat is a helper abstraction for handling nullable httpstreamformat types. +// NullableHTTPStreamFormat is a helper abstraction for handling nullable httpstreamformat types. type NullableHTTPStreamFormat struct { value *HTTPStreamFormat isSet bool @@ -187,7 +186,7 @@ func (v NullableHTTPStreamFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableHTTPStreamFormat) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_permission.go b/fastly/model_iam_permission.go index b4f8bc3..1f7e96b 100644 --- a/fastly/model_iam_permission.go +++ b/fastly/model_iam_permission.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type IamPermission struct { // The description of the resource. ResourceDescription *string `json:"resource_description,omitempty"` // Permissions are either \"service\" level or \"account\" level. - Scope *string `json:"scope,omitempty"` + Scope *string `json:"scope,omitempty"` AdditionalProperties map[string]any } @@ -313,7 +312,7 @@ func (o IamPermission) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamPermission) UnmarshalJSON(bytes []byte) (err error) { varIamPermission := _IamPermission{} @@ -337,7 +336,7 @@ func (o *IamPermission) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamPermission is a helper abstraction for handling nullable iampermission types. +// NullableIamPermission is a helper abstraction for handling nullable iampermission types. type NullableIamPermission struct { value *IamPermission isSet bool @@ -377,7 +376,7 @@ func (v NullableIamPermission) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamPermission) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_role.go b/fastly/model_iam_role.go index 0567796..c20a665 100644 --- a/fastly/model_iam_role.go +++ b/fastly/model_iam_role.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,7 +34,7 @@ type IamRole struct { // This attribute is set to `true` if the role is managed by the customer. It is set to `false` if the role was created by Fastly. Custom *bool `json:"custom,omitempty"` // Number of permissions assigned to the role. - PermissionsCount *int32 `json:"permissions_count,omitempty"` + PermissionsCount *int32 `json:"permissions_count,omitempty"` AdditionalProperties map[string]any } @@ -71,7 +70,7 @@ func (o *IamRole) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamRole) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -90,6 +89,7 @@ func (o *IamRole) HasCreatedAt() bool { func (o *IamRole) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *IamRole) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -113,7 +113,7 @@ func (o *IamRole) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamRole) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -132,6 +132,7 @@ func (o *IamRole) HasUpdatedAt() bool { func (o *IamRole) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *IamRole) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -371,7 +372,7 @@ func (o IamRole) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamRole) UnmarshalJSON(bytes []byte) (err error) { varIamRole := _IamRole{} @@ -396,7 +397,7 @@ func (o *IamRole) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamRole is a helper abstraction for handling nullable iamrole types. +// NullableIamRole is a helper abstraction for handling nullable iamrole types. type NullableIamRole struct { value *IamRole isSet bool @@ -436,7 +437,7 @@ func (v NullableIamRole) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_role_all_of.go b/fastly/model_iam_role_all_of.go index cb4bcb6..7e6d421 100644 --- a/fastly/model_iam_role_all_of.go +++ b/fastly/model_iam_role_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type IamRoleAllOf struct { // This attribute is set to `true` if the role is managed by the customer. It is set to `false` if the role was created by Fastly. Custom *bool `json:"custom,omitempty"` // Number of permissions assigned to the role. - PermissionsCount *int32 `json:"permissions_count,omitempty"` + PermissionsCount *int32 `json:"permissions_count,omitempty"` AdditionalProperties map[string]any } @@ -276,7 +275,7 @@ func (o IamRoleAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamRoleAllOf) UnmarshalJSON(bytes []byte) (err error) { varIamRoleAllOf := _IamRoleAllOf{} @@ -299,7 +298,7 @@ func (o *IamRoleAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamRoleAllOf is a helper abstraction for handling nullable iamroleallof types. +// NullableIamRoleAllOf is a helper abstraction for handling nullable iamroleallof types. type NullableIamRoleAllOf struct { value *IamRoleAllOf isSet bool @@ -339,7 +338,7 @@ func (v NullableIamRoleAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamRoleAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_service_group.go b/fastly/model_iam_service_group.go index a38b983..1f91178 100644 --- a/fastly/model_iam_service_group.go +++ b/fastly/model_iam_service_group.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -33,7 +32,7 @@ type IamServiceGroup struct { // Description of the service group. Description *string `json:"description,omitempty"` // Number of services in the service group. - ServicesCount *int32 `json:"services_count,omitempty"` + ServicesCount *int32 `json:"services_count,omitempty"` AdditionalProperties map[string]any } @@ -69,7 +68,7 @@ func (o *IamServiceGroup) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamServiceGroup) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -88,6 +87,7 @@ func (o *IamServiceGroup) HasCreatedAt() bool { func (o *IamServiceGroup) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *IamServiceGroup) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -111,7 +111,7 @@ func (o *IamServiceGroup) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamServiceGroup) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -130,6 +130,7 @@ func (o *IamServiceGroup) HasUpdatedAt() bool { func (o *IamServiceGroup) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *IamServiceGroup) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -334,7 +335,7 @@ func (o IamServiceGroup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamServiceGroup) UnmarshalJSON(bytes []byte) (err error) { varIamServiceGroup := _IamServiceGroup{} @@ -358,7 +359,7 @@ func (o *IamServiceGroup) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamServiceGroup is a helper abstraction for handling nullable iamservicegroup types. +// NullableIamServiceGroup is a helper abstraction for handling nullable iamservicegroup types. type NullableIamServiceGroup struct { value *IamServiceGroup isSet bool @@ -398,7 +399,7 @@ func (v NullableIamServiceGroup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamServiceGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_service_group_all_of.go b/fastly/model_iam_service_group_all_of.go index 696b0ce..749767a 100644 --- a/fastly/model_iam_service_group_all_of.go +++ b/fastly/model_iam_service_group_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type IamServiceGroupAllOf struct { // Description of the service group. Description *string `json:"description,omitempty"` // Number of services in the service group. - ServicesCount *int32 `json:"services_count,omitempty"` + ServicesCount *int32 `json:"services_count,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o IamServiceGroupAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamServiceGroupAllOf) UnmarshalJSON(bytes []byte) (err error) { varIamServiceGroupAllOf := _IamServiceGroupAllOf{} @@ -261,7 +260,7 @@ func (o *IamServiceGroupAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamServiceGroupAllOf is a helper abstraction for handling nullable iamservicegroupallof types. +// NullableIamServiceGroupAllOf is a helper abstraction for handling nullable iamservicegroupallof types. type NullableIamServiceGroupAllOf struct { value *IamServiceGroupAllOf isSet bool @@ -301,7 +300,7 @@ func (v NullableIamServiceGroupAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamServiceGroupAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_user_group.go b/fastly/model_iam_user_group.go index c32790b..d4fee9e 100644 --- a/fastly/model_iam_user_group.go +++ b/fastly/model_iam_user_group.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,7 +34,7 @@ type IamUserGroup struct { // Number of users added to the user group. UsersCount *int32 `json:"users_count,omitempty"` // Number of roles added to the user group. - RolesCount *int32 `json:"roles_count,omitempty"` + RolesCount *int32 `json:"roles_count,omitempty"` AdditionalProperties map[string]any } @@ -71,7 +70,7 @@ func (o *IamUserGroup) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamUserGroup) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -90,6 +89,7 @@ func (o *IamUserGroup) HasCreatedAt() bool { func (o *IamUserGroup) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *IamUserGroup) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -113,7 +113,7 @@ func (o *IamUserGroup) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *IamUserGroup) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -132,6 +132,7 @@ func (o *IamUserGroup) HasUpdatedAt() bool { func (o *IamUserGroup) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *IamUserGroup) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -371,7 +372,7 @@ func (o IamUserGroup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamUserGroup) UnmarshalJSON(bytes []byte) (err error) { varIamUserGroup := _IamUserGroup{} @@ -396,7 +397,7 @@ func (o *IamUserGroup) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamUserGroup is a helper abstraction for handling nullable iamusergroup types. +// NullableIamUserGroup is a helper abstraction for handling nullable iamusergroup types. type NullableIamUserGroup struct { value *IamUserGroup isSet bool @@ -436,7 +437,7 @@ func (v NullableIamUserGroup) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamUserGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_iam_user_group_all_of.go b/fastly/model_iam_user_group_all_of.go index edab459..e35a3d1 100644 --- a/fastly/model_iam_user_group_all_of.go +++ b/fastly/model_iam_user_group_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type IamUserGroupAllOf struct { // Number of users added to the user group. UsersCount *int32 `json:"users_count,omitempty"` // Number of roles added to the user group. - RolesCount *int32 `json:"roles_count,omitempty"` + RolesCount *int32 `json:"roles_count,omitempty"` AdditionalProperties map[string]any } @@ -276,7 +275,7 @@ func (o IamUserGroupAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IamUserGroupAllOf) UnmarshalJSON(bytes []byte) (err error) { varIamUserGroupAllOf := _IamUserGroupAllOf{} @@ -299,7 +298,7 @@ func (o *IamUserGroupAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIamUserGroupAllOf is a helper abstraction for handling nullable iamusergroupallof types. +// NullableIamUserGroupAllOf is a helper abstraction for handling nullable iamusergroupallof types. type NullableIamUserGroupAllOf struct { value *IamUserGroupAllOf isSet bool @@ -339,7 +338,7 @@ func (v NullableIamUserGroupAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIamUserGroupAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_tls_configuration.go b/fastly/model_included_with_tls_configuration.go index 37f80ce..894c932 100644 --- a/fastly/model_included_with_tls_configuration.go +++ b/fastly/model_included_with_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // IncludedWithTLSConfiguration struct for IncludedWithTLSConfiguration type IncludedWithTLSConfiguration struct { - Included []IncludedWithTLSConfigurationItem `json:"included,omitempty"` + Included []IncludedWithTLSConfigurationItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o IncludedWithTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { varIncludedWithTLSConfiguration := _IncludedWithTLSConfiguration{} @@ -108,7 +107,7 @@ func (o *IncludedWithTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableIncludedWithTLSConfiguration is a helper abstraction for handling nullable includedwithtlsconfiguration types. +// NullableIncludedWithTLSConfiguration is a helper abstraction for handling nullable includedwithtlsconfiguration types. type NullableIncludedWithTLSConfiguration struct { value *IncludedWithTLSConfiguration isSet bool @@ -148,7 +147,7 @@ func (v NullableIncludedWithTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_tls_configuration_item.go b/fastly/model_included_with_tls_configuration_item.go index 43e01c6..28c32e2 100644 --- a/fastly/model_included_with_tls_configuration_item.go +++ b/fastly/model_included_with_tls_configuration_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,9 +19,9 @@ import ( // IncludedWithTLSConfigurationItem struct for IncludedWithTLSConfigurationItem type IncludedWithTLSConfigurationItem struct { // The IP address or hostname of the DNS record. - ID *string `json:"id,omitempty"` - Type *TypeTLSDNSRecord `json:"type,omitempty"` - Attributes *TLSDNSRecord `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Type *TypeTLSDNSRecord `json:"type,omitempty"` + Attributes *TLSDNSRecord `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o IncludedWithTLSConfigurationItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithTLSConfigurationItem) UnmarshalJSON(bytes []byte) (err error) { varIncludedWithTLSConfigurationItem := _IncludedWithTLSConfigurationItem{} @@ -187,7 +186,7 @@ func (o *IncludedWithTLSConfigurationItem) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableIncludedWithTLSConfigurationItem is a helper abstraction for handling nullable includedwithtlsconfigurationitem types. +// NullableIncludedWithTLSConfigurationItem is a helper abstraction for handling nullable includedwithtlsconfigurationitem types. type NullableIncludedWithTLSConfigurationItem struct { value *IncludedWithTLSConfigurationItem isSet bool @@ -227,7 +226,7 @@ func (v NullableIncludedWithTLSConfigurationItem) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithTLSConfigurationItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_waf_active_rule_item.go b/fastly/model_included_with_waf_active_rule_item.go index a0aa0d4..e230ece 100644 --- a/fastly/model_included_with_waf_active_rule_item.go +++ b/fastly/model_included_with_waf_active_rule_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // IncludedWithWafActiveRuleItem struct for IncludedWithWafActiveRuleItem type IncludedWithWafActiveRuleItem struct { SchemasWafFirewallVersion *SchemasWafFirewallVersion - WafRuleRevision *WafRuleRevision + WafRuleRevision *WafRuleRevision } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithWafActiveRuleItem) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into SchemasWafFirewallVersion - err = json.Unmarshal(data, &o.SchemasWafFirewallVersion); + err = json.Unmarshal(data, &o.SchemasWafFirewallVersion) if err == nil { jsonSchemasWafFirewallVersion, _ := json.Marshal(o.SchemasWafFirewallVersion) if string(jsonSchemasWafFirewallVersion) != "{}" { // empty struct return nil // data stored in o.SchemasWafFirewallVersion, return on the first match } - o.SchemasWafFirewallVersion = nil + o.SchemasWafFirewallVersion = nil } else { o.SchemasWafFirewallVersion = nil } // try to unmarshal JSON data into WafRuleRevision - err = json.Unmarshal(data, &o.WafRuleRevision); + err = json.Unmarshal(data, &o.WafRuleRevision) if err == nil { jsonWafRuleRevision, _ := json.Marshal(o.WafRuleRevision) if string(jsonWafRuleRevision) != "{}" { // empty struct return nil // data stored in o.WafRuleRevision, return on the first match } - o.WafRuleRevision = nil + o.WafRuleRevision = nil } else { o.WafRuleRevision = nil } @@ -69,7 +68,7 @@ func (o *IncludedWithWafActiveRuleItem) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableIncludedWithWafActiveRuleItem is a helper abstraction for handling nullable includedwithwafactiveruleitem types. +// NullableIncludedWithWafActiveRuleItem is a helper abstraction for handling nullable includedwithwafactiveruleitem types. type NullableIncludedWithWafActiveRuleItem struct { value *IncludedWithWafActiveRuleItem isSet bool @@ -109,7 +108,7 @@ func (v NullableIncludedWithWafActiveRuleItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithWafActiveRuleItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_waf_exclusion_item.go b/fastly/model_included_with_waf_exclusion_item.go index 29990dc..8e52948 100644 --- a/fastly/model_included_with_waf_exclusion_item.go +++ b/fastly/model_included_with_waf_exclusion_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,34 +19,34 @@ import ( // IncludedWithWafExclusionItem struct for IncludedWithWafExclusionItem type IncludedWithWafExclusionItem struct { - WafRule *WafRule + WafRule *WafRule WafRuleRevision *WafRuleRevision } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithWafExclusionItem) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into WafRule - err = json.Unmarshal(data, &o.WafRule); + err = json.Unmarshal(data, &o.WafRule) if err == nil { jsonWafRule, _ := json.Marshal(o.WafRule) if string(jsonWafRule) != "{}" { // empty struct return nil // data stored in o.WafRule, return on the first match } - o.WafRule = nil + o.WafRule = nil } else { o.WafRule = nil } // try to unmarshal JSON data into WafRuleRevision - err = json.Unmarshal(data, &o.WafRuleRevision); + err = json.Unmarshal(data, &o.WafRuleRevision) if err == nil { jsonWafRuleRevision, _ := json.Marshal(o.WafRuleRevision) if string(jsonWafRuleRevision) != "{}" { // empty struct return nil // data stored in o.WafRuleRevision, return on the first match } - o.WafRuleRevision = nil + o.WafRuleRevision = nil } else { o.WafRuleRevision = nil } @@ -69,7 +68,7 @@ func (o *IncludedWithWafExclusionItem) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableIncludedWithWafExclusionItem is a helper abstraction for handling nullable includedwithwafexclusionitem types. +// NullableIncludedWithWafExclusionItem is a helper abstraction for handling nullable includedwithwafexclusionitem types. type NullableIncludedWithWafExclusionItem struct { value *IncludedWithWafExclusionItem isSet bool @@ -109,7 +108,7 @@ func (v NullableIncludedWithWafExclusionItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithWafExclusionItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_waf_firewall_version_item.go b/fastly/model_included_with_waf_firewall_version_item.go index e63904b..1e25f03 100644 --- a/fastly/model_included_with_waf_firewall_version_item.go +++ b/fastly/model_included_with_waf_firewall_version_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // IncludedWithWafFirewallVersionItem struct for IncludedWithWafFirewallVersionItem type IncludedWithWafFirewallVersionItem struct { SchemasWafFirewallVersion *SchemasWafFirewallVersion - WafActiveRule *WafActiveRule + WafActiveRule *WafActiveRule } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithWafFirewallVersionItem) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into SchemasWafFirewallVersion - err = json.Unmarshal(data, &o.SchemasWafFirewallVersion); + err = json.Unmarshal(data, &o.SchemasWafFirewallVersion) if err == nil { jsonSchemasWafFirewallVersion, _ := json.Marshal(o.SchemasWafFirewallVersion) if string(jsonSchemasWafFirewallVersion) != "{}" { // empty struct return nil // data stored in o.SchemasWafFirewallVersion, return on the first match } - o.SchemasWafFirewallVersion = nil + o.SchemasWafFirewallVersion = nil } else { o.SchemasWafFirewallVersion = nil } // try to unmarshal JSON data into WafActiveRule - err = json.Unmarshal(data, &o.WafActiveRule); + err = json.Unmarshal(data, &o.WafActiveRule) if err == nil { jsonWafActiveRule, _ := json.Marshal(o.WafActiveRule) if string(jsonWafActiveRule) != "{}" { // empty struct return nil // data stored in o.WafActiveRule, return on the first match } - o.WafActiveRule = nil + o.WafActiveRule = nil } else { o.WafActiveRule = nil } @@ -69,7 +68,7 @@ func (o *IncludedWithWafFirewallVersionItem) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableIncludedWithWafFirewallVersionItem is a helper abstraction for handling nullable includedwithwaffirewallversionitem types. +// NullableIncludedWithWafFirewallVersionItem is a helper abstraction for handling nullable includedwithwaffirewallversionitem types. type NullableIncludedWithWafFirewallVersionItem struct { value *IncludedWithWafFirewallVersionItem isSet bool @@ -109,7 +108,7 @@ func (v NullableIncludedWithWafFirewallVersionItem) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithWafFirewallVersionItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_included_with_waf_rule_item.go b/fastly/model_included_with_waf_rule_item.go index 851a6e6..9968d6d 100644 --- a/fastly/model_included_with_waf_rule_item.go +++ b/fastly/model_included_with_waf_rule_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // IncludedWithWafRuleItem struct for IncludedWithWafRuleItem type IncludedWithWafRuleItem struct { WafRuleRevision *WafRuleRevision - WafTag *WafTag + WafTag *WafTag } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *IncludedWithWafRuleItem) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into WafRuleRevision - err = json.Unmarshal(data, &o.WafRuleRevision); + err = json.Unmarshal(data, &o.WafRuleRevision) if err == nil { jsonWafRuleRevision, _ := json.Marshal(o.WafRuleRevision) if string(jsonWafRuleRevision) != "{}" { // empty struct return nil // data stored in o.WafRuleRevision, return on the first match } - o.WafRuleRevision = nil + o.WafRuleRevision = nil } else { o.WafRuleRevision = nil } // try to unmarshal JSON data into WafTag - err = json.Unmarshal(data, &o.WafTag); + err = json.Unmarshal(data, &o.WafTag) if err == nil { jsonWafTag, _ := json.Marshal(o.WafTag) if string(jsonWafTag) != "{}" { // empty struct return nil // data stored in o.WafTag, return on the first match } - o.WafTag = nil + o.WafTag = nil } else { o.WafTag = nil } @@ -69,7 +68,7 @@ func (o *IncludedWithWafRuleItem) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableIncludedWithWafRuleItem is a helper abstraction for handling nullable includedwithwafruleitem types. +// NullableIncludedWithWafRuleItem is a helper abstraction for handling nullable includedwithwafruleitem types. type NullableIncludedWithWafRuleItem struct { value *IncludedWithWafRuleItem isSet bool @@ -109,7 +108,7 @@ func (v NullableIncludedWithWafRuleItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableIncludedWithWafRuleItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_object.go b/fastly/model_inline_object.go index ba7ea6a..c78298e 100644 --- a/fastly/model_inline_object.go +++ b/fastly/model_inline_object.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineObject struct for InlineObject type InlineObject struct { - Vcl string `json:"vcl"` + Vcl string `json:"vcl"` AdditionalProperties map[string]any } @@ -56,7 +55,7 @@ func (o *InlineObject) GetVcl() string { // GetVclOk returns a tuple with the Vcl field value // and a boolean to check if the value has been set. func (o *InlineObject) GetVclOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Vcl, true @@ -83,7 +82,7 @@ func (o InlineObject) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineObject) UnmarshalJSON(bytes []byte) (err error) { varInlineObject := _InlineObject{} @@ -101,7 +100,7 @@ func (o *InlineObject) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineObject is a helper abstraction for handling nullable inlineobject types. +// NullableInlineObject is a helper abstraction for handling nullable inlineobject types. type NullableInlineObject struct { value *InlineObject isSet bool @@ -141,7 +140,7 @@ func (v NullableInlineObject) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_object_1.go b/fastly/model_inline_object_1.go index 90a7395..3d10e2d 100644 --- a/fastly/model_inline_object_1.go +++ b/fastly/model_inline_object_1.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineObject1 struct for InlineObject1 type InlineObject1 struct { - Vcl string `json:"vcl"` + Vcl string `json:"vcl"` AdditionalProperties map[string]any } @@ -56,7 +55,7 @@ func (o *InlineObject1) GetVcl() string { // GetVclOk returns a tuple with the Vcl field value // and a boolean to check if the value has been set. func (o *InlineObject1) GetVclOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Vcl, true @@ -83,7 +82,7 @@ func (o InlineObject1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineObject1) UnmarshalJSON(bytes []byte) (err error) { varInlineObject1 := _InlineObject1{} @@ -101,7 +100,7 @@ func (o *InlineObject1) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineObject1 is a helper abstraction for handling nullable inlineobject1 types. +// NullableInlineObject1 is a helper abstraction for handling nullable inlineobject1 types. type NullableInlineObject1 struct { value *InlineObject1 isSet bool @@ -141,7 +140,7 @@ func (v NullableInlineObject1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineObject1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200.go b/fastly/model_inline_response_200.go index 205e931..e58e253 100644 --- a/fastly/model_inline_response_200.go +++ b/fastly/model_inline_response_200.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // InlineResponse200 struct for InlineResponse200 type InlineResponse200 struct { // ok - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o InlineResponse200) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse200) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse200 := _InlineResponse200{} @@ -109,7 +108,7 @@ func (o *InlineResponse200) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse200 is a helper abstraction for handling nullable inlineresponse200 types. +// NullableInlineResponse200 is a helper abstraction for handling nullable inlineresponse200 types. type NullableInlineResponse200 struct { value *InlineResponse200 isSet bool @@ -149,7 +148,7 @@ func (v NullableInlineResponse200) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse200) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_1.go b/fastly/model_inline_response_200_1.go index 9a05b94..778120d 100644 --- a/fastly/model_inline_response_200_1.go +++ b/fastly/model_inline_response_200_1.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // InlineResponse2001 struct for InlineResponse2001 type InlineResponse2001 struct { // The service IDs of the services the token will have access to. Separate service IDs with a space. - Data []string `json:"data,omitempty"` + Data []string `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o InlineResponse2001) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2001) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2001 := _InlineResponse2001{} @@ -109,7 +108,7 @@ func (o *InlineResponse2001) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2001 is a helper abstraction for handling nullable inlineresponse2001 types. +// NullableInlineResponse2001 is a helper abstraction for handling nullable inlineresponse2001 types. type NullableInlineResponse2001 struct { value *InlineResponse2001 isSet bool @@ -149,7 +148,7 @@ func (v NullableInlineResponse2001) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2001) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_2.go b/fastly/model_inline_response_200_2.go index e046035..29829ea 100644 --- a/fastly/model_inline_response_200_2.go +++ b/fastly/model_inline_response_200_2.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // InlineResponse2002 struct for InlineResponse2002 type InlineResponse2002 struct { // Time-stamp (GMT) when the domain_ownership validation will expire. - ExpiresAt *string `json:"expires_at,omitempty"` + ExpiresAt *string `json:"expires_at,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o InlineResponse2002) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2002) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2002 := _InlineResponse2002{} @@ -109,7 +108,7 @@ func (o *InlineResponse2002) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2002 is a helper abstraction for handling nullable inlineresponse2002 types. +// NullableInlineResponse2002 is a helper abstraction for handling nullable inlineresponse2002 types. type NullableInlineResponse2002 struct { value *InlineResponse2002 isSet bool @@ -149,7 +148,7 @@ func (v NullableInlineResponse2002) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2002) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_3.go b/fastly/model_inline_response_200_3.go index acbca50..552dfad 100644 --- a/fastly/model_inline_response_200_3.go +++ b/fastly/model_inline_response_200_3.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2003 struct for InlineResponse2003 type InlineResponse2003 struct { - Data []StoreResponse `json:"data,omitempty"` - Meta *InlineResponse2003Meta `json:"meta,omitempty"` + Data []StoreResponse `json:"data,omitempty"` + Meta *InlineResponse2003Meta `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o InlineResponse2003) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2003) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2003 := _InlineResponse2003{} @@ -145,7 +144,7 @@ func (o *InlineResponse2003) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2003 is a helper abstraction for handling nullable inlineresponse2003 types. +// NullableInlineResponse2003 is a helper abstraction for handling nullable inlineresponse2003 types. type NullableInlineResponse2003 struct { value *InlineResponse2003 isSet bool @@ -185,7 +184,7 @@ func (v NullableInlineResponse2003) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2003) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_3_meta.go b/fastly/model_inline_response_200_3_meta.go index 9bd60e6..120e565 100644 --- a/fastly/model_inline_response_200_3_meta.go +++ b/fastly/model_inline_response_200_3_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type InlineResponse2003Meta struct { // Cursor for the next page. NextCursor *string `json:"next_cursor,omitempty"` // Entries returned. - Limit *int32 `json:"limit,omitempty"` + Limit *int32 `json:"limit,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o InlineResponse2003Meta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2003Meta) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2003Meta := _InlineResponse2003Meta{} @@ -147,7 +146,7 @@ func (o *InlineResponse2003Meta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2003Meta is a helper abstraction for handling nullable inlineresponse2003meta types. +// NullableInlineResponse2003Meta is a helper abstraction for handling nullable inlineresponse2003meta types. type NullableInlineResponse2003Meta struct { value *InlineResponse2003Meta isSet bool @@ -187,7 +186,7 @@ func (v NullableInlineResponse2003Meta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2003Meta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_4.go b/fastly/model_inline_response_200_4.go index 0b58997..5a714c4 100644 --- a/fastly/model_inline_response_200_4.go +++ b/fastly/model_inline_response_200_4.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2004 struct for InlineResponse2004 type InlineResponse2004 struct { - Data []string `json:"data,omitempty"` - Meta *InlineResponse2004Meta `json:"meta,omitempty"` + Data []string `json:"data,omitempty"` + Meta *InlineResponse2004Meta `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o InlineResponse2004) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2004) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2004 := _InlineResponse2004{} @@ -145,7 +144,7 @@ func (o *InlineResponse2004) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2004 is a helper abstraction for handling nullable inlineresponse2004 types. +// NullableInlineResponse2004 is a helper abstraction for handling nullable inlineresponse2004 types. type NullableInlineResponse2004 struct { value *InlineResponse2004 isSet bool @@ -185,7 +184,7 @@ func (v NullableInlineResponse2004) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2004) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_4_meta.go b/fastly/model_inline_response_200_4_meta.go index ddb5585..b4e4d6c 100644 --- a/fastly/model_inline_response_200_4_meta.go +++ b/fastly/model_inline_response_200_4_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2004Meta struct for InlineResponse2004Meta type InlineResponse2004Meta struct { - NextCursor *string `json:"next_cursor,omitempty"` - Limit *int32 `json:"limit,omitempty"` + NextCursor *string `json:"next_cursor,omitempty"` + Limit *int32 `json:"limit,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o InlineResponse2004Meta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2004Meta) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2004Meta := _InlineResponse2004Meta{} @@ -145,7 +144,7 @@ func (o *InlineResponse2004Meta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2004Meta is a helper abstraction for handling nullable inlineresponse2004meta types. +// NullableInlineResponse2004Meta is a helper abstraction for handling nullable inlineresponse2004meta types. type NullableInlineResponse2004Meta struct { value *InlineResponse2004Meta isSet bool @@ -185,7 +184,7 @@ func (v NullableInlineResponse2004Meta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2004Meta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_5.go b/fastly/model_inline_response_200_5.go index 20a5140..06aaf9d 100644 --- a/fastly/model_inline_response_200_5.go +++ b/fastly/model_inline_response_200_5.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2005 struct for InlineResponse2005 type InlineResponse2005 struct { - Data []SecretStoreResponse `json:"data,omitempty"` - Meta *PaginationCursorMeta `json:"meta,omitempty"` + Data []SecretStoreResponse `json:"data,omitempty"` + Meta *PaginationCursorMeta `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o InlineResponse2005) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2005) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2005 := _InlineResponse2005{} @@ -145,7 +144,7 @@ func (o *InlineResponse2005) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2005 is a helper abstraction for handling nullable inlineresponse2005 types. +// NullableInlineResponse2005 is a helper abstraction for handling nullable inlineresponse2005 types. type NullableInlineResponse2005 struct { value *InlineResponse2005 isSet bool @@ -185,7 +184,7 @@ func (v NullableInlineResponse2005) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2005) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_6.go b/fastly/model_inline_response_200_6.go index c2d80a1..1da3fbc 100644 --- a/fastly/model_inline_response_200_6.go +++ b/fastly/model_inline_response_200_6.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2006 struct for InlineResponse2006 type InlineResponse2006 struct { - Data []SecretResponse `json:"data,omitempty"` - Meta *PaginationCursorMeta `json:"meta,omitempty"` + Data []SecretResponse `json:"data,omitempty"` + Meta *PaginationCursorMeta `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o InlineResponse2006) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2006) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2006 := _InlineResponse2006{} @@ -145,7 +144,7 @@ func (o *InlineResponse2006) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2006 is a helper abstraction for handling nullable inlineresponse2006 types. +// NullableInlineResponse2006 is a helper abstraction for handling nullable inlineresponse2006 types. type NullableInlineResponse2006 struct { value *InlineResponse2006 isSet bool @@ -185,7 +184,7 @@ func (v NullableInlineResponse2006) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2006) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_200_7.go b/fastly/model_inline_response_200_7.go index 5decf16..a631bb0 100644 --- a/fastly/model_inline_response_200_7.go +++ b/fastly/model_inline_response_200_7.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse2007 struct for InlineResponse2007 type InlineResponse2007 struct { - Data []ServiceAuthorizationResponseData `json:"data,omitempty"` + Data []ServiceAuthorizationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o InlineResponse2007) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse2007) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse2007 := _InlineResponse2007{} @@ -108,7 +107,7 @@ func (o *InlineResponse2007) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse2007 is a helper abstraction for handling nullable inlineresponse2007 types. +// NullableInlineResponse2007 is a helper abstraction for handling nullable inlineresponse2007 types. type NullableInlineResponse2007 struct { value *InlineResponse2007 isSet bool @@ -148,7 +147,7 @@ func (v NullableInlineResponse2007) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse2007) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_201.go b/fastly/model_inline_response_201.go index fecd1ff..456325e 100644 --- a/fastly/model_inline_response_201.go +++ b/fastly/model_inline_response_201.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // InlineResponse201 struct for InlineResponse201 type InlineResponse201 struct { // Alphanumeric string identifying the address. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o InlineResponse201) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse201) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse201 := _InlineResponse201{} @@ -109,7 +108,7 @@ func (o *InlineResponse201) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse201 is a helper abstraction for handling nullable inlineresponse201 types. +// NullableInlineResponse201 is a helper abstraction for handling nullable inlineresponse201 types. type NullableInlineResponse201 struct { value *InlineResponse201 isSet bool @@ -149,7 +148,7 @@ func (v NullableInlineResponse201) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse201) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_inline_response_400.go b/fastly/model_inline_response_400.go index 50f7940..6b040c9 100644 --- a/fastly/model_inline_response_400.go +++ b/fastly/model_inline_response_400.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InlineResponse400 struct for InlineResponse400 type InlineResponse400 struct { - Code *string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o InlineResponse400) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InlineResponse400) UnmarshalJSON(bytes []byte) (err error) { varInlineResponse400 := _InlineResponse400{} @@ -108,7 +107,7 @@ func (o *InlineResponse400) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInlineResponse400 is a helper abstraction for handling nullable inlineresponse400 types. +// NullableInlineResponse400 is a helper abstraction for handling nullable inlineresponse400 types. type NullableInlineResponse400 struct { value *InlineResponse400 isSet bool @@ -148,7 +147,7 @@ func (v NullableInlineResponse400) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInlineResponse400) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation.go b/fastly/model_invitation.go index 8e701a9..6513607 100644 --- a/fastly/model_invitation.go +++ b/fastly/model_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Invitation struct for Invitation type Invitation struct { - Data *InvitationData `json:"data,omitempty"` + Data *InvitationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o Invitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Invitation) UnmarshalJSON(bytes []byte) (err error) { varInvitation := _Invitation{} @@ -108,7 +107,7 @@ func (o *Invitation) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitation is a helper abstraction for handling nullable invitation types. +// NullableInvitation is a helper abstraction for handling nullable invitation types. type NullableInvitation struct { value *Invitation isSet bool @@ -148,7 +147,7 @@ func (v NullableInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_data.go b/fastly/model_invitation_data.go index 1cc2483..75163b8 100644 --- a/fastly/model_invitation_data.go +++ b/fastly/model_invitation_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationData struct for InvitationData type InvitationData struct { - Type *TypeInvitation `json:"type,omitempty"` - Attributes *InvitationDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipServiceInvitationsCreate `json:"relationships,omitempty"` + Type *TypeInvitation `json:"type,omitempty"` + Attributes *InvitationDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipServiceInvitationsCreate `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o InvitationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationData) UnmarshalJSON(bytes []byte) (err error) { varInvitationData := _InvitationData{} @@ -186,7 +185,7 @@ func (o *InvitationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationData is a helper abstraction for handling nullable invitationdata types. +// NullableInvitationData is a helper abstraction for handling nullable invitationdata types. type NullableInvitationData struct { value *InvitationData isSet bool @@ -226,7 +225,7 @@ func (v NullableInvitationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_data_attributes.go b/fastly/model_invitation_data_attributes.go index 4a22587..e1df698 100644 --- a/fastly/model_invitation_data_attributes.go +++ b/fastly/model_invitation_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,10 +21,10 @@ type InvitationDataAttributes struct { // The email address of the invitee. Email *string `json:"email,omitempty"` // Indicates the user has limited access to the customer's services. - LimitServices *bool `json:"limit_services,omitempty"` - Role *RoleUser `json:"role,omitempty"` + LimitServices *bool `json:"limit_services,omitempty"` + Role *RoleUser `json:"role,omitempty"` // Indicates whether or not the invitation is active. - StatusCode *int32 `json:"status_code,omitempty"` + StatusCode *int32 `json:"status_code,omitempty"` AdditionalProperties map[string]any } @@ -201,7 +200,7 @@ func (o InvitationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varInvitationDataAttributes := _InvitationDataAttributes{} @@ -222,7 +221,7 @@ func (o *InvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationDataAttributes is a helper abstraction for handling nullable invitationdataattributes types. +// NullableInvitationDataAttributes is a helper abstraction for handling nullable invitationdataattributes types. type NullableInvitationDataAttributes struct { value *InvitationDataAttributes isSet bool @@ -262,7 +261,7 @@ func (v NullableInvitationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_response.go b/fastly/model_invitation_response.go index d2d0434..3426d6d 100644 --- a/fastly/model_invitation_response.go +++ b/fastly/model_invitation_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationResponse struct for InvitationResponse type InvitationResponse struct { - Data *InvitationResponseData `json:"data,omitempty"` + Data *InvitationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o InvitationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationResponse) UnmarshalJSON(bytes []byte) (err error) { varInvitationResponse := _InvitationResponse{} @@ -108,7 +107,7 @@ func (o *InvitationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationResponse is a helper abstraction for handling nullable invitationresponse types. +// NullableInvitationResponse is a helper abstraction for handling nullable invitationresponse types. type NullableInvitationResponse struct { value *InvitationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableInvitationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_response_all_of.go b/fastly/model_invitation_response_all_of.go index 739351a..8decf24 100644 --- a/fastly/model_invitation_response_all_of.go +++ b/fastly/model_invitation_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationResponseAllOf struct for InvitationResponseAllOf type InvitationResponseAllOf struct { - Data *InvitationResponseData `json:"data,omitempty"` + Data *InvitationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o InvitationResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varInvitationResponseAllOf := _InvitationResponseAllOf{} @@ -108,7 +107,7 @@ func (o *InvitationResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationResponseAllOf is a helper abstraction for handling nullable invitationresponseallof types. +// NullableInvitationResponseAllOf is a helper abstraction for handling nullable invitationresponseallof types. type NullableInvitationResponseAllOf struct { value *InvitationResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableInvitationResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_response_data.go b/fastly/model_invitation_response_data.go index b9ad958..1c4aaf4 100644 --- a/fastly/model_invitation_response_data.go +++ b/fastly/model_invitation_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationResponseData struct for InvitationResponseData type InvitationResponseData struct { - Type *TypeInvitation `json:"type,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` - Relationships *RelationshipsForInvitation `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeInvitation `json:"type,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` + Relationships *RelationshipsForInvitation `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o InvitationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationResponseData) UnmarshalJSON(bytes []byte) (err error) { varInvitationResponseData := _InvitationResponseData{} @@ -223,7 +222,7 @@ func (o *InvitationResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationResponseData is a helper abstraction for handling nullable invitationresponsedata types. +// NullableInvitationResponseData is a helper abstraction for handling nullable invitationresponsedata types. type NullableInvitationResponseData struct { value *InvitationResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableInvitationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitation_response_data_all_of.go b/fastly/model_invitation_response_data_all_of.go index 91cb281..3b45ccd 100644 --- a/fastly/model_invitation_response_data_all_of.go +++ b/fastly/model_invitation_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationResponseDataAllOf struct for InvitationResponseDataAllOf type InvitationResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` - Relationships *RelationshipsForInvitation `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` + Relationships *RelationshipsForInvitation `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o InvitationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varInvitationResponseDataAllOf := _InvitationResponseDataAllOf{} @@ -182,7 +181,7 @@ func (o *InvitationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationResponseDataAllOf is a helper abstraction for handling nullable invitationresponsedataallof types. +// NullableInvitationResponseDataAllOf is a helper abstraction for handling nullable invitationresponsedataallof types. type NullableInvitationResponseDataAllOf struct { value *InvitationResponseDataAllOf isSet bool @@ -222,7 +221,7 @@ func (v NullableInvitationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitations_response.go b/fastly/model_invitations_response.go index 0ed5c82..f6b0f33 100644 --- a/fastly/model_invitations_response.go +++ b/fastly/model_invitations_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationsResponse struct for InvitationsResponse type InvitationsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []InvitationResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []InvitationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o InvitationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationsResponse) UnmarshalJSON(bytes []byte) (err error) { varInvitationsResponse := _InvitationsResponse{} @@ -182,7 +181,7 @@ func (o *InvitationsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationsResponse is a helper abstraction for handling nullable invitationsresponse types. +// NullableInvitationsResponse is a helper abstraction for handling nullable invitationsresponse types. type NullableInvitationsResponse struct { value *InvitationsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableInvitationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invitations_response_all_of.go b/fastly/model_invitations_response_all_of.go index 0e7d20d..e662b2b 100644 --- a/fastly/model_invitations_response_all_of.go +++ b/fastly/model_invitations_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // InvitationsResponseAllOf struct for InvitationsResponseAllOf type InvitationsResponseAllOf struct { - Data []InvitationResponseData `json:"data,omitempty"` + Data []InvitationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o InvitationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *InvitationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varInvitationsResponseAllOf := _InvitationsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *InvitationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvitationsResponseAllOf is a helper abstraction for handling nullable invitationsresponseallof types. +// NullableInvitationsResponseAllOf is a helper abstraction for handling nullable invitationsresponseallof types. type NullableInvitationsResponseAllOf struct { value *InvitationsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableInvitationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvitationsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invoice.go b/fastly/model_invoice.go index a7529ef..f992a2c 100644 --- a/fastly/model_invoice.go +++ b/fastly/model_invoice.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,9 +34,9 @@ type Invoice struct { // Three-letter code representing a specific currency used for financial transactions. CurrencyCode *string `json:"currency_code,omitempty"` // Total billable amount for invoiced services charged within a single month. - MonthlyTransactionAmount *float32 `json:"monthly_transaction_amount,omitempty"` - TransactionLineItems []Invoicelineitems `json:"transaction_line_items,omitempty"` - AdditionalProperties map[string]any + MonthlyTransactionAmount *float32 `json:"monthly_transaction_amount,omitempty"` + TransactionLineItems []Invoicelineitems `json:"transaction_line_items,omitempty"` + AdditionalProperties map[string]any } type _Invoice Invoice @@ -387,7 +386,7 @@ func (o Invoice) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Invoice) UnmarshalJSON(bytes []byte) (err error) { varInvoice := _Invoice{} @@ -413,7 +412,7 @@ func (o *Invoice) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvoice is a helper abstraction for handling nullable invoice types. +// NullableInvoice is a helper abstraction for handling nullable invoice types. type NullableInvoice struct { value *Invoice isSet bool @@ -453,7 +452,7 @@ func (v NullableInvoice) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvoice) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_invoicelineitems.go b/fastly/model_invoicelineitems.go index d006e83..a182db3 100644 --- a/fastly/model_invoicelineitems.go +++ b/fastly/model_invoicelineitems.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -38,7 +37,7 @@ type Invoicelineitems struct { // The geographical area applicable for regionally based products. Region *string `json:"region,omitempty"` // The unit of measure (e.g., `requests` or `bandwidth`). - UsageType *string `json:"usage_type,omitempty"` + UsageType *string `json:"usage_type,omitempty"` AdditionalProperties map[string]any } @@ -424,7 +423,7 @@ func (o Invoicelineitems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Invoicelineitems) UnmarshalJSON(bytes []byte) (err error) { varInvoicelineitems := _Invoicelineitems{} @@ -451,7 +450,7 @@ func (o *Invoicelineitems) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableInvoicelineitems is a helper abstraction for handling nullable invoicelineitems types. +// NullableInvoicelineitems is a helper abstraction for handling nullable invoicelineitems types. type NullableInvoicelineitems struct { value *Invoicelineitems isSet bool @@ -491,7 +490,7 @@ func (v NullableInvoicelineitems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInvoicelineitems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_configuration_set.go b/fastly/model_legacy_waf_configuration_set.go index 2936acf..3907e62 100644 --- a/fastly/model_legacy_waf_configuration_set.go +++ b/fastly/model_legacy_waf_configuration_set.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LegacyWafConfigurationSet struct { // The active configuration set is the default configuration set when creating a new WAF. When Fastly adds configuration sets, the new versions become the default (active). Active *bool `json:"active,omitempty"` // The name of the configuration set. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o LegacyWafConfigurationSet) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafConfigurationSet) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafConfigurationSet := _LegacyWafConfigurationSet{} @@ -147,7 +146,7 @@ func (o *LegacyWafConfigurationSet) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafConfigurationSet is a helper abstraction for handling nullable legacywafconfigurationset types. +// NullableLegacyWafConfigurationSet is a helper abstraction for handling nullable legacywafconfigurationset types. type NullableLegacyWafConfigurationSet struct { value *LegacyWafConfigurationSet isSet bool @@ -187,7 +186,7 @@ func (v NullableLegacyWafConfigurationSet) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafConfigurationSet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_firewall.go b/fastly/model_legacy_waf_firewall.go index d0e467b..67b5fbc 100644 --- a/fastly/model_legacy_waf_firewall.go +++ b/fastly/model_legacy_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,8 +23,8 @@ type LegacyWafFirewall struct { // Name of the corresponding condition object. PrefetchCondition *string `json:"prefetch_condition,omitempty"` // Name of the corresponding response object. - Response *string `json:"response,omitempty"` - Version *ReadOnlyVersion `json:"version,omitempty"` + Response *string `json:"response,omitempty"` + Version *ReadOnlyVersion `json:"version,omitempty"` ServiceID *ReadOnlyServiceID `json:"service_id,omitempty"` // The status of the firewall. Disabled *bool `json:"disabled,omitempty"` @@ -35,7 +34,7 @@ type LegacyWafFirewall struct { RuleStatusesBlockCount *int32 `json:"rule_statuses_block_count,omitempty"` // The number of rule statuses set to disabled. RuleStatusesDisabledCount *int32 `json:"rule_statuses_disabled_count,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _LegacyWafFirewall LegacyWafFirewall @@ -389,7 +388,7 @@ func (o LegacyWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafFirewall) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafFirewall := _LegacyWafFirewall{} @@ -415,7 +414,7 @@ func (o *LegacyWafFirewall) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafFirewall is a helper abstraction for handling nullable legacywaffirewall types. +// NullableLegacyWafFirewall is a helper abstraction for handling nullable legacywaffirewall types. type NullableLegacyWafFirewall struct { value *LegacyWafFirewall isSet bool @@ -455,7 +454,7 @@ func (v NullableLegacyWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_owasp.go b/fastly/model_legacy_waf_owasp.go index 3f09737..11ae56c 100644 --- a/fastly/model_legacy_waf_owasp.go +++ b/fastly/model_legacy_waf_owasp.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -76,7 +75,7 @@ type LegacyWafOwasp struct { // Score value to add for warning anomalies. WarningAnomalyScore *int32 `json:"warning_anomaly_score,omitempty"` // XSS attack threshold. - XSSScoreThreshold *int32 `json:"xss_score_threshold,omitempty"` + XSSScoreThreshold *int32 `json:"xss_score_threshold,omitempty"` AdditionalProperties map[string]any } @@ -1187,7 +1186,7 @@ func (o LegacyWafOwasp) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafOwasp) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafOwasp := _LegacyWafOwasp{} @@ -1233,7 +1232,7 @@ func (o *LegacyWafOwasp) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafOwasp is a helper abstraction for handling nullable legacywafowasp types. +// NullableLegacyWafOwasp is a helper abstraction for handling nullable legacywafowasp types. type NullableLegacyWafOwasp struct { value *LegacyWafOwasp isSet bool @@ -1273,7 +1272,7 @@ func (v NullableLegacyWafOwasp) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafOwasp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_rule.go b/fastly/model_legacy_waf_rule.go index af367b3..4f18bf4 100644 --- a/fastly/model_legacy_waf_rule.go +++ b/fastly/model_legacy_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type LegacyWafRule struct { // The ModSecurity rule logic. Source *string `json:"source,omitempty"` // The VCL representation of the rule logic. - Vcl *string `json:"vcl,omitempty"` + Vcl *string `json:"vcl,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o LegacyWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafRule) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafRule := _LegacyWafRule{} @@ -261,7 +260,7 @@ func (o *LegacyWafRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafRule is a helper abstraction for handling nullable legacywafrule types. +// NullableLegacyWafRule is a helper abstraction for handling nullable legacywafrule types. type NullableLegacyWafRule struct { value *LegacyWafRule isSet bool @@ -301,7 +300,7 @@ func (v NullableLegacyWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_rule_status.go b/fastly/model_legacy_waf_rule_status.go index 9c520bc..461a55c 100644 --- a/fastly/model_legacy_waf_rule_status.go +++ b/fastly/model_legacy_waf_rule_status.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // LegacyWafRuleStatus struct for LegacyWafRuleStatus type LegacyWafRuleStatus struct { - // Describes the behavior for the particular rule within this firewall. Permitted values: `log`, `block`, and `disabled`. + // Describes the behavior for the particular rule within this firewall. Permitted values: `log`, `block`, and `disabled`. Status *string `json:"status,omitempty"` // The ModSecurity rule ID. ModsecRuleID *string `json:"modsec_rule_id,omitempty"` // The Rule ID. - UniqueRuleID *string `json:"unique_rule_id,omitempty"` + UniqueRuleID *string `json:"unique_rule_id,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o LegacyWafRuleStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafRuleStatus) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafRuleStatus := _LegacyWafRuleStatus{} @@ -185,7 +184,7 @@ func (o *LegacyWafRuleStatus) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafRuleStatus is a helper abstraction for handling nullable legacywafrulestatus types. +// NullableLegacyWafRuleStatus is a helper abstraction for handling nullable legacywafrulestatus types. type NullableLegacyWafRuleStatus struct { value *LegacyWafRuleStatus isSet bool @@ -225,7 +224,7 @@ func (v NullableLegacyWafRuleStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafRuleStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_ruleset.go b/fastly/model_legacy_waf_ruleset.go index 88b64f8..64ed334 100644 --- a/fastly/model_legacy_waf_ruleset.go +++ b/fastly/model_legacy_waf_ruleset.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LegacyWafRuleset struct { // Date and time WAF ruleset VCL was last deployed. LastPush *string `json:"last_push,omitempty"` // The WAF ruleset VCL currently deployed. - Vcl *string `json:"vcl,omitempty"` + Vcl *string `json:"vcl,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o LegacyWafRuleset) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafRuleset) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafRuleset := _LegacyWafRuleset{} @@ -147,7 +146,7 @@ func (o *LegacyWafRuleset) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafRuleset is a helper abstraction for handling nullable legacywafruleset types. +// NullableLegacyWafRuleset is a helper abstraction for handling nullable legacywafruleset types. type NullableLegacyWafRuleset struct { value *LegacyWafRuleset isSet bool @@ -187,7 +186,7 @@ func (v NullableLegacyWafRuleset) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafRuleset) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_tag.go b/fastly/model_legacy_waf_tag.go index 7079ee0..f7c205e 100644 --- a/fastly/model_legacy_waf_tag.go +++ b/fastly/model_legacy_waf_tag.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // LegacyWafTag struct for LegacyWafTag type LegacyWafTag struct { // Name of the tag. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o LegacyWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafTag) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafTag := _LegacyWafTag{} @@ -109,7 +108,7 @@ func (o *LegacyWafTag) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafTag is a helper abstraction for handling nullable legacywaftag types. +// NullableLegacyWafTag is a helper abstraction for handling nullable legacywaftag types. type NullableLegacyWafTag struct { value *LegacyWafTag isSet bool @@ -149,7 +148,7 @@ func (v NullableLegacyWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_legacy_waf_update_status.go b/fastly/model_legacy_waf_update_status.go index 9ffd52b..0af9df4 100644 --- a/fastly/model_legacy_waf_update_status.go +++ b/fastly/model_legacy_waf_update_status.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LegacyWafUpdateStatus struct { // Current status of the update. Status *string `json:"status,omitempty"` // Date and time that job was last updated. - UpdatedAt *string `json:"updated_at,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -276,7 +275,7 @@ func (o LegacyWafUpdateStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LegacyWafUpdateStatus) UnmarshalJSON(bytes []byte) (err error) { varLegacyWafUpdateStatus := _LegacyWafUpdateStatus{} @@ -299,7 +298,7 @@ func (o *LegacyWafUpdateStatus) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLegacyWafUpdateStatus is a helper abstraction for handling nullable legacywafupdatestatus types. +// NullableLegacyWafUpdateStatus is a helper abstraction for handling nullable legacywafupdatestatus types. type NullableLegacyWafUpdateStatus struct { value *LegacyWafUpdateStatus isSet bool @@ -339,7 +338,7 @@ func (v NullableLegacyWafUpdateStatus) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLegacyWafUpdateStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_line_item_data.go b/fastly/model_line_item_data.go index 468a3ee..90cbaa9 100644 --- a/fastly/model_line_item_data.go +++ b/fastly/model_line_item_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,22 +20,22 @@ import ( type LineItemData struct { Amount NullableFloat32 `json:"amount,omitempty"` // An alphanumeric string identifying the invoice. - AriaInvoiceID NullableString `json:"aria_invoice_id,omitempty"` - ClientServiceID NullableString `json:"client_service_id,omitempty"` - CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` - Description NullableString `json:"description,omitempty"` - ID *string `json:"id,omitempty"` - LineNumber NullableInt32 `json:"line_number,omitempty"` - PlanName NullableString `json:"plan_name,omitempty"` - PlanNo NullableFloat32 `json:"plan_no,omitempty"` - RatePerUnit NullableFloat32 `json:"rate_per_unit,omitempty"` - RateScheduleNo NullableFloat32 `json:"rate_schedule_no,omitempty"` - RateScheduleTierNo NullableFloat32 `json:"rate_schedule_tier_no,omitempty"` - ServiceName NullableString `json:"service_name,omitempty"` - ServiceNo NullableFloat32 `json:"service_no,omitempty"` - Units NullableFloat32 `json:"units,omitempty"` - UsageTypeCd NullableString `json:"usage_type_cd,omitempty"` - UsageTypeNo NullableFloat32 `json:"usage_type_no,omitempty"` + AriaInvoiceID NullableString `json:"aria_invoice_id,omitempty"` + ClientServiceID NullableString `json:"client_service_id,omitempty"` + CreditCouponCode NullableString `json:"credit_coupon_code,omitempty"` + Description NullableString `json:"description,omitempty"` + ID *string `json:"id,omitempty"` + LineNumber NullableInt32 `json:"line_number,omitempty"` + PlanName NullableString `json:"plan_name,omitempty"` + PlanNo NullableFloat32 `json:"plan_no,omitempty"` + RatePerUnit NullableFloat32 `json:"rate_per_unit,omitempty"` + RateScheduleNo NullableFloat32 `json:"rate_schedule_no,omitempty"` + RateScheduleTierNo NullableFloat32 `json:"rate_schedule_tier_no,omitempty"` + ServiceName NullableString `json:"service_name,omitempty"` + ServiceNo NullableFloat32 `json:"service_no,omitempty"` + Units NullableFloat32 `json:"units,omitempty"` + UsageTypeCd NullableString `json:"usage_type_cd,omitempty"` + UsageTypeNo NullableFloat32 `json:"usage_type_no,omitempty"` AdditionalProperties map[string]any } @@ -72,7 +71,7 @@ func (o *LineItemData) GetAmount() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetAmountOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Amount.Get(), o.Amount.IsSet() @@ -91,6 +90,7 @@ func (o *LineItemData) HasAmount() bool { func (o *LineItemData) SetAmount(v float32) { o.Amount.Set(&v) } + // SetAmountNil sets the value for Amount to be an explicit nil func (o *LineItemData) SetAmountNil() { o.Amount.Set(nil) @@ -114,7 +114,7 @@ func (o *LineItemData) GetAriaInvoiceID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetAriaInvoiceIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AriaInvoiceID.Get(), o.AriaInvoiceID.IsSet() @@ -133,6 +133,7 @@ func (o *LineItemData) HasAriaInvoiceID() bool { func (o *LineItemData) SetAriaInvoiceID(v string) { o.AriaInvoiceID.Set(&v) } + // SetAriaInvoiceIDNil sets the value for AriaInvoiceID to be an explicit nil func (o *LineItemData) SetAriaInvoiceIDNil() { o.AriaInvoiceID.Set(nil) @@ -156,7 +157,7 @@ func (o *LineItemData) GetClientServiceID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetClientServiceIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ClientServiceID.Get(), o.ClientServiceID.IsSet() @@ -175,6 +176,7 @@ func (o *LineItemData) HasClientServiceID() bool { func (o *LineItemData) SetClientServiceID(v string) { o.ClientServiceID.Set(&v) } + // SetClientServiceIDNil sets the value for ClientServiceID to be an explicit nil func (o *LineItemData) SetClientServiceIDNil() { o.ClientServiceID.Set(nil) @@ -198,7 +200,7 @@ func (o *LineItemData) GetCreditCouponCode() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetCreditCouponCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreditCouponCode.Get(), o.CreditCouponCode.IsSet() @@ -217,6 +219,7 @@ func (o *LineItemData) HasCreditCouponCode() bool { func (o *LineItemData) SetCreditCouponCode(v string) { o.CreditCouponCode.Set(&v) } + // SetCreditCouponCodeNil sets the value for CreditCouponCode to be an explicit nil func (o *LineItemData) SetCreditCouponCodeNil() { o.CreditCouponCode.Set(nil) @@ -240,7 +243,7 @@ func (o *LineItemData) GetDescription() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetDescriptionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Description.Get(), o.Description.IsSet() @@ -259,6 +262,7 @@ func (o *LineItemData) HasDescription() bool { func (o *LineItemData) SetDescription(v string) { o.Description.Set(&v) } + // SetDescriptionNil sets the value for Description to be an explicit nil func (o *LineItemData) SetDescriptionNil() { o.Description.Set(nil) @@ -314,7 +318,7 @@ func (o *LineItemData) GetLineNumber() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetLineNumberOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.LineNumber.Get(), o.LineNumber.IsSet() @@ -333,6 +337,7 @@ func (o *LineItemData) HasLineNumber() bool { func (o *LineItemData) SetLineNumber(v int32) { o.LineNumber.Set(&v) } + // SetLineNumberNil sets the value for LineNumber to be an explicit nil func (o *LineItemData) SetLineNumberNil() { o.LineNumber.Set(nil) @@ -356,7 +361,7 @@ func (o *LineItemData) GetPlanName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetPlanNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PlanName.Get(), o.PlanName.IsSet() @@ -375,6 +380,7 @@ func (o *LineItemData) HasPlanName() bool { func (o *LineItemData) SetPlanName(v string) { o.PlanName.Set(&v) } + // SetPlanNameNil sets the value for PlanName to be an explicit nil func (o *LineItemData) SetPlanNameNil() { o.PlanName.Set(nil) @@ -398,7 +404,7 @@ func (o *LineItemData) GetPlanNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetPlanNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.PlanNo.Get(), o.PlanNo.IsSet() @@ -417,6 +423,7 @@ func (o *LineItemData) HasPlanNo() bool { func (o *LineItemData) SetPlanNo(v float32) { o.PlanNo.Set(&v) } + // SetPlanNoNil sets the value for PlanNo to be an explicit nil func (o *LineItemData) SetPlanNoNil() { o.PlanNo.Set(nil) @@ -440,7 +447,7 @@ func (o *LineItemData) GetRatePerUnit() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetRatePerUnitOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RatePerUnit.Get(), o.RatePerUnit.IsSet() @@ -459,6 +466,7 @@ func (o *LineItemData) HasRatePerUnit() bool { func (o *LineItemData) SetRatePerUnit(v float32) { o.RatePerUnit.Set(&v) } + // SetRatePerUnitNil sets the value for RatePerUnit to be an explicit nil func (o *LineItemData) SetRatePerUnitNil() { o.RatePerUnit.Set(nil) @@ -482,7 +490,7 @@ func (o *LineItemData) GetRateScheduleNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetRateScheduleNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RateScheduleNo.Get(), o.RateScheduleNo.IsSet() @@ -501,6 +509,7 @@ func (o *LineItemData) HasRateScheduleNo() bool { func (o *LineItemData) SetRateScheduleNo(v float32) { o.RateScheduleNo.Set(&v) } + // SetRateScheduleNoNil sets the value for RateScheduleNo to be an explicit nil func (o *LineItemData) SetRateScheduleNoNil() { o.RateScheduleNo.Set(nil) @@ -524,7 +533,7 @@ func (o *LineItemData) GetRateScheduleTierNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetRateScheduleTierNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.RateScheduleTierNo.Get(), o.RateScheduleTierNo.IsSet() @@ -543,6 +552,7 @@ func (o *LineItemData) HasRateScheduleTierNo() bool { func (o *LineItemData) SetRateScheduleTierNo(v float32) { o.RateScheduleTierNo.Set(&v) } + // SetRateScheduleTierNoNil sets the value for RateScheduleTierNo to be an explicit nil func (o *LineItemData) SetRateScheduleTierNoNil() { o.RateScheduleTierNo.Set(nil) @@ -566,7 +576,7 @@ func (o *LineItemData) GetServiceName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetServiceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServiceName.Get(), o.ServiceName.IsSet() @@ -585,6 +595,7 @@ func (o *LineItemData) HasServiceName() bool { func (o *LineItemData) SetServiceName(v string) { o.ServiceName.Set(&v) } + // SetServiceNameNil sets the value for ServiceName to be an explicit nil func (o *LineItemData) SetServiceNameNil() { o.ServiceName.Set(nil) @@ -608,7 +619,7 @@ func (o *LineItemData) GetServiceNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetServiceNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServiceNo.Get(), o.ServiceNo.IsSet() @@ -627,6 +638,7 @@ func (o *LineItemData) HasServiceNo() bool { func (o *LineItemData) SetServiceNo(v float32) { o.ServiceNo.Set(&v) } + // SetServiceNoNil sets the value for ServiceNo to be an explicit nil func (o *LineItemData) SetServiceNoNil() { o.ServiceNo.Set(nil) @@ -650,7 +662,7 @@ func (o *LineItemData) GetUnits() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetUnitsOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.Units.Get(), o.Units.IsSet() @@ -669,6 +681,7 @@ func (o *LineItemData) HasUnits() bool { func (o *LineItemData) SetUnits(v float32) { o.Units.Set(&v) } + // SetUnitsNil sets the value for Units to be an explicit nil func (o *LineItemData) SetUnitsNil() { o.Units.Set(nil) @@ -692,7 +705,7 @@ func (o *LineItemData) GetUsageTypeCd() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetUsageTypeCdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.UsageTypeCd.Get(), o.UsageTypeCd.IsSet() @@ -711,6 +724,7 @@ func (o *LineItemData) HasUsageTypeCd() bool { func (o *LineItemData) SetUsageTypeCd(v string) { o.UsageTypeCd.Set(&v) } + // SetUsageTypeCdNil sets the value for UsageTypeCd to be an explicit nil func (o *LineItemData) SetUsageTypeCdNil() { o.UsageTypeCd.Set(nil) @@ -734,7 +748,7 @@ func (o *LineItemData) GetUsageTypeNo() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LineItemData) GetUsageTypeNoOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.UsageTypeNo.Get(), o.UsageTypeNo.IsSet() @@ -753,6 +767,7 @@ func (o *LineItemData) HasUsageTypeNo() bool { func (o *LineItemData) SetUsageTypeNo(v float32) { o.UsageTypeNo.Set(&v) } + // SetUsageTypeNoNil sets the value for UsageTypeNo to be an explicit nil func (o *LineItemData) SetUsageTypeNoNil() { o.UsageTypeNo.Set(nil) @@ -827,7 +842,7 @@ func (o LineItemData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LineItemData) UnmarshalJSON(bytes []byte) (err error) { varLineItemData := _LineItemData{} @@ -861,7 +876,7 @@ func (o *LineItemData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLineItemData is a helper abstraction for handling nullable lineitemdata types. +// NullableLineItemData is a helper abstraction for handling nullable lineitemdata types. type NullableLineItemData struct { value *LineItemData isSet bool @@ -901,7 +916,7 @@ func (v NullableLineItemData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLineItemData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_list_customer_addresses_response.go b/fastly/model_list_customer_addresses_response.go index b300d25..831cc7a 100644 --- a/fastly/model_list_customer_addresses_response.go +++ b/fastly/model_list_customer_addresses_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ListCustomerAddressesResponse struct for ListCustomerAddressesResponse type ListCustomerAddressesResponse struct { - Data []CustomerAddress `json:"data,omitempty"` + Data []CustomerAddress `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ListCustomerAddressesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ListCustomerAddressesResponse) UnmarshalJSON(bytes []byte) (err error) { varListCustomerAddressesResponse := _ListCustomerAddressesResponse{} @@ -108,7 +107,7 @@ func (o *ListCustomerAddressesResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableListCustomerAddressesResponse is a helper abstraction for handling nullable listcustomeraddressesresponse types. +// NullableListCustomerAddressesResponse is a helper abstraction for handling nullable listcustomeraddressesresponse types. type NullableListCustomerAddressesResponse struct { value *ListCustomerAddressesResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableListCustomerAddressesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableListCustomerAddressesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_list_dashboards_response.go b/fastly/model_list_dashboards_response.go index d365c31..c68b684 100644 --- a/fastly/model_list_dashboards_response.go +++ b/fastly/model_list_dashboards_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type ListDashboardsResponse struct { Data []Dashboard `json:"data,omitempty"` // Meta for the pagination. - Meta any `json:"meta,omitempty"` + Meta any `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -78,7 +77,7 @@ func (o *ListDashboardsResponse) SetData(v []Dashboard) { // GetMeta returns the Meta field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListDashboardsResponse) GetMeta() any { - if o == nil { + if o == nil { var ret any return ret } @@ -128,7 +127,7 @@ func (o ListDashboardsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ListDashboardsResponse) UnmarshalJSON(bytes []byte) (err error) { varListDashboardsResponse := _ListDashboardsResponse{} @@ -147,7 +146,7 @@ func (o *ListDashboardsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableListDashboardsResponse is a helper abstraction for handling nullable listdashboardsresponse types. +// NullableListDashboardsResponse is a helper abstraction for handling nullable listdashboardsresponse types. type NullableListDashboardsResponse struct { value *ListDashboardsResponse isSet bool @@ -187,7 +186,7 @@ func (v NullableListDashboardsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableListDashboardsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_list_eom_invoices_response.go b/fastly/model_list_eom_invoices_response.go index 561cea0..dbc2047 100644 --- a/fastly/model_list_eom_invoices_response.go +++ b/fastly/model_list_eom_invoices_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ListEomInvoicesResponse struct for ListEomInvoicesResponse type ListEomInvoicesResponse struct { - Data []Invoice `json:"data,omitempty"` - Meta *Metadata `json:"meta,omitempty"` + Data []Invoice `json:"data,omitempty"` + Meta *Metadata `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ListEomInvoicesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ListEomInvoicesResponse) UnmarshalJSON(bytes []byte) (err error) { varListEomInvoicesResponse := _ListEomInvoicesResponse{} @@ -145,7 +144,7 @@ func (o *ListEomInvoicesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableListEomInvoicesResponse is a helper abstraction for handling nullable listeominvoicesresponse types. +// NullableListEomInvoicesResponse is a helper abstraction for handling nullable listeominvoicesresponse types. type NullableListEomInvoicesResponse struct { value *ListEomInvoicesResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableListEomInvoicesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableListEomInvoicesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_listinvoices.go b/fastly/model_listinvoices.go index 4713b42..25e5518 100644 --- a/fastly/model_listinvoices.go +++ b/fastly/model_listinvoices.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Listinvoices struct for Listinvoices type Listinvoices struct { - Data []Invoice `json:"data,omitempty"` - Meta *Metadata `json:"meta,omitempty"` + Data []Invoice `json:"data,omitempty"` + Meta *Metadata `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o Listinvoices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Listinvoices) UnmarshalJSON(bytes []byte) (err error) { varListinvoices := _Listinvoices{} @@ -145,7 +144,7 @@ func (o *Listinvoices) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableListinvoices is a helper abstraction for handling nullable listinvoices types. +// NullableListinvoices is a helper abstraction for handling nullable listinvoices types. type NullableListinvoices struct { value *Listinvoices isSet bool @@ -185,7 +184,7 @@ func (v NullableListinvoices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableListinvoices) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_address_and_port.go b/fastly/model_logging_address_and_port.go index 1ca82e7..7d31f56 100644 --- a/fastly/model_logging_address_and_port.go +++ b/fastly/model_logging_address_and_port.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LoggingAddressAndPort struct { // A hostname or IPv4 address. Address *string `json:"address,omitempty"` // The port number. - Port *int32 `json:"port,omitempty"` + Port *int32 `json:"port,omitempty"` AdditionalProperties map[string]any } @@ -132,7 +131,7 @@ func (o LoggingAddressAndPort) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingAddressAndPort) UnmarshalJSON(bytes []byte) (err error) { varLoggingAddressAndPort := _LoggingAddressAndPort{} @@ -151,7 +150,7 @@ func (o *LoggingAddressAndPort) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingAddressAndPort is a helper abstraction for handling nullable loggingaddressandport types. +// NullableLoggingAddressAndPort is a helper abstraction for handling nullable loggingaddressandport types. type NullableLoggingAddressAndPort struct { value *LoggingAddressAndPort isSet bool @@ -191,7 +190,7 @@ func (v NullableLoggingAddressAndPort) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingAddressAndPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_azureblob_additional.go b/fastly/model_logging_azureblob_additional.go index f0efa1c..6c9c752 100644 --- a/fastly/model_logging_azureblob_additional.go +++ b/fastly/model_logging_azureblob_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingAzureblobAdditional struct { // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) - FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` + FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` AdditionalProperties map[string]any } @@ -74,7 +73,7 @@ func (o *LoggingAzureblobAdditional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobAdditional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -93,6 +92,7 @@ func (o *LoggingAzureblobAdditional) HasPath() bool { func (o *LoggingAzureblobAdditional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingAzureblobAdditional) SetPathNil() { o.Path.Set(nil) @@ -212,7 +212,7 @@ func (o *LoggingAzureblobAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -231,6 +231,7 @@ func (o *LoggingAzureblobAdditional) HasPublicKey() bool { func (o *LoggingAzureblobAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingAzureblobAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -304,7 +305,7 @@ func (o LoggingAzureblobAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingAzureblobAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingAzureblobAdditional := _LoggingAzureblobAdditional{} @@ -327,7 +328,7 @@ func (o *LoggingAzureblobAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingAzureblobAdditional is a helper abstraction for handling nullable loggingazureblobadditional types. +// NullableLoggingAzureblobAdditional is a helper abstraction for handling nullable loggingazureblobadditional types. type NullableLoggingAzureblobAdditional struct { value *LoggingAzureblobAdditional isSet bool @@ -367,7 +368,7 @@ func (v NullableLoggingAzureblobAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingAzureblobAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_azureblob_response.go b/fastly/model_logging_azureblob_response.go index 96d81d6..d737790 100644 --- a/fastly/model_logging_azureblob_response.go +++ b/fastly/model_logging_azureblob_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingAzureblobResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingAzureblobResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The path to upload logs to. Path NullableString `json:"path,omitempty"` // The unique Azure Blob Storage namespace in which your data objects are stored. Required. @@ -59,7 +58,7 @@ type LoggingAzureblobResponse struct { // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) - FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` + FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` AdditionalProperties map[string]any } @@ -155,7 +154,7 @@ func (o *LoggingAzureblobResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -174,6 +173,7 @@ func (o *LoggingAzureblobResponse) HasPlacement() bool { func (o *LoggingAzureblobResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingAzureblobResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -197,7 +197,7 @@ func (o *LoggingAzureblobResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -216,6 +216,7 @@ func (o *LoggingAzureblobResponse) HasResponseCondition() bool { func (o *LoggingAzureblobResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingAzureblobResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -335,7 +336,7 @@ func (o *LoggingAzureblobResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -354,6 +355,7 @@ func (o *LoggingAzureblobResponse) HasTimestampFormat() bool { func (o *LoggingAzureblobResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingAzureblobResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -473,7 +475,7 @@ func (o *LoggingAzureblobResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -492,6 +494,7 @@ func (o *LoggingAzureblobResponse) HasCreatedAt() bool { func (o *LoggingAzureblobResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingAzureblobResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -515,7 +518,7 @@ func (o *LoggingAzureblobResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -534,6 +537,7 @@ func (o *LoggingAzureblobResponse) HasDeletedAt() bool { func (o *LoggingAzureblobResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingAzureblobResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -557,7 +561,7 @@ func (o *LoggingAzureblobResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -576,6 +580,7 @@ func (o *LoggingAzureblobResponse) HasUpdatedAt() bool { func (o *LoggingAzureblobResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingAzureblobResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -663,7 +668,7 @@ func (o *LoggingAzureblobResponse) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -682,6 +687,7 @@ func (o *LoggingAzureblobResponse) HasPath() bool { func (o *LoggingAzureblobResponse) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingAzureblobResponse) SetPathNil() { o.Path.Set(nil) @@ -801,7 +807,7 @@ func (o *LoggingAzureblobResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingAzureblobResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -820,6 +826,7 @@ func (o *LoggingAzureblobResponse) HasPublicKey() bool { func (o *LoggingAzureblobResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingAzureblobResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -938,7 +945,7 @@ func (o LoggingAzureblobResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingAzureblobResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingAzureblobResponse := _LoggingAzureblobResponse{} @@ -976,7 +983,7 @@ func (o *LoggingAzureblobResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingAzureblobResponse is a helper abstraction for handling nullable loggingazureblobresponse types. +// NullableLoggingAzureblobResponse is a helper abstraction for handling nullable loggingazureblobresponse types. type NullableLoggingAzureblobResponse struct { value *LoggingAzureblobResponse isSet bool @@ -1016,7 +1023,7 @@ func (v NullableLoggingAzureblobResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingAzureblobResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_bigquery_additional.go b/fastly/model_logging_bigquery_additional.go index 4fcb91f..a557332 100644 --- a/fastly/model_logging_bigquery_additional.go +++ b/fastly/model_logging_bigquery_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingBigqueryAdditional struct { // BigQuery table name suffix template. Optional. TemplateSuffix NullableString `json:"template_suffix,omitempty"` // Your Google Cloud Platform project ID. Required - ProjectID *string `json:"project_id,omitempty"` + ProjectID *string `json:"project_id,omitempty"` AdditionalProperties map[string]any } @@ -194,7 +193,7 @@ func (o *LoggingBigqueryAdditional) GetTemplateSuffix() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryAdditional) GetTemplateSuffixOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TemplateSuffix.Get(), o.TemplateSuffix.IsSet() @@ -213,6 +212,7 @@ func (o *LoggingBigqueryAdditional) HasTemplateSuffix() bool { func (o *LoggingBigqueryAdditional) SetTemplateSuffix(v string) { o.TemplateSuffix.Set(&v) } + // SetTemplateSuffixNil sets the value for TemplateSuffix to be an explicit nil func (o *LoggingBigqueryAdditional) SetTemplateSuffixNil() { o.TemplateSuffix.Set(nil) @@ -286,7 +286,7 @@ func (o LoggingBigqueryAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingBigqueryAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingBigqueryAdditional := _LoggingBigqueryAdditional{} @@ -309,7 +309,7 @@ func (o *LoggingBigqueryAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingBigqueryAdditional is a helper abstraction for handling nullable loggingbigqueryadditional types. +// NullableLoggingBigqueryAdditional is a helper abstraction for handling nullable loggingbigqueryadditional types. type NullableLoggingBigqueryAdditional struct { value *LoggingBigqueryAdditional isSet bool @@ -349,7 +349,7 @@ func (v NullableLoggingBigqueryAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingBigqueryAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_bigquery_response.go b/fastly/model_logging_bigquery_response.go index 3c17943..6e86f05 100644 --- a/fastly/model_logging_bigquery_response.go +++ b/fastly/model_logging_bigquery_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingBigqueryResponse struct { // The name of the BigQuery logging object. Used as a primary key for API access. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. User *string `json:"user,omitempty"` @@ -49,9 +48,9 @@ type LoggingBigqueryResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -123,7 +122,7 @@ func (o *LoggingBigqueryResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -142,6 +141,7 @@ func (o *LoggingBigqueryResponse) HasPlacement() bool { func (o *LoggingBigqueryResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingBigqueryResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -165,7 +165,7 @@ func (o *LoggingBigqueryResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -184,6 +184,7 @@ func (o *LoggingBigqueryResponse) HasResponseCondition() bool { func (o *LoggingBigqueryResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingBigqueryResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -431,7 +432,7 @@ func (o *LoggingBigqueryResponse) GetTemplateSuffix() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetTemplateSuffixOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TemplateSuffix.Get(), o.TemplateSuffix.IsSet() @@ -450,6 +451,7 @@ func (o *LoggingBigqueryResponse) HasTemplateSuffix() bool { func (o *LoggingBigqueryResponse) SetTemplateSuffix(v string) { o.TemplateSuffix.Set(&v) } + // SetTemplateSuffixNil sets the value for TemplateSuffix to be an explicit nil func (o *LoggingBigqueryResponse) SetTemplateSuffixNil() { o.TemplateSuffix.Set(nil) @@ -505,7 +507,7 @@ func (o *LoggingBigqueryResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -524,6 +526,7 @@ func (o *LoggingBigqueryResponse) HasCreatedAt() bool { func (o *LoggingBigqueryResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingBigqueryResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -547,7 +550,7 @@ func (o *LoggingBigqueryResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -566,6 +569,7 @@ func (o *LoggingBigqueryResponse) HasDeletedAt() bool { func (o *LoggingBigqueryResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingBigqueryResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -589,7 +593,7 @@ func (o *LoggingBigqueryResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingBigqueryResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -608,6 +612,7 @@ func (o *LoggingBigqueryResponse) HasUpdatedAt() bool { func (o *LoggingBigqueryResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingBigqueryResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -746,7 +751,7 @@ func (o LoggingBigqueryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingBigqueryResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingBigqueryResponse := _LoggingBigqueryResponse{} @@ -780,7 +785,7 @@ func (o *LoggingBigqueryResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingBigqueryResponse is a helper abstraction for handling nullable loggingbigqueryresponse types. +// NullableLoggingBigqueryResponse is a helper abstraction for handling nullable loggingbigqueryresponse types. type NullableLoggingBigqueryResponse struct { value *LoggingBigqueryResponse isSet bool @@ -820,7 +825,7 @@ func (v NullableLoggingBigqueryResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingBigqueryResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_cloudfiles_additional.go b/fastly/model_logging_cloudfiles_additional.go index f69a809..b0b397a 100644 --- a/fastly/model_logging_cloudfiles_additional.go +++ b/fastly/model_logging_cloudfiles_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingCloudfilesAdditional struct { // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // The username for your Cloud Files account. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -138,7 +137,7 @@ func (o *LoggingCloudfilesAdditional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesAdditional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -157,6 +156,7 @@ func (o *LoggingCloudfilesAdditional) HasPath() bool { func (o *LoggingCloudfilesAdditional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingCloudfilesAdditional) SetPathNil() { o.Path.Set(nil) @@ -180,7 +180,7 @@ func (o *LoggingCloudfilesAdditional) GetRegion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesAdditional) GetRegionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Region.Get(), o.Region.IsSet() @@ -199,6 +199,7 @@ func (o *LoggingCloudfilesAdditional) HasRegion() bool { func (o *LoggingCloudfilesAdditional) SetRegion(v string) { o.Region.Set(&v) } + // SetRegionNil sets the value for Region to be an explicit nil func (o *LoggingCloudfilesAdditional) SetRegionNil() { o.Region.Set(nil) @@ -222,7 +223,7 @@ func (o *LoggingCloudfilesAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -241,6 +242,7 @@ func (o *LoggingCloudfilesAdditional) HasPublicKey() bool { func (o *LoggingCloudfilesAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingCloudfilesAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -314,7 +316,7 @@ func (o LoggingCloudfilesAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCloudfilesAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingCloudfilesAdditional := _LoggingCloudfilesAdditional{} @@ -337,7 +339,7 @@ func (o *LoggingCloudfilesAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCloudfilesAdditional is a helper abstraction for handling nullable loggingcloudfilesadditional types. +// NullableLoggingCloudfilesAdditional is a helper abstraction for handling nullable loggingcloudfilesadditional types. type NullableLoggingCloudfilesAdditional struct { value *LoggingCloudfilesAdditional isSet bool @@ -377,7 +379,7 @@ func (v NullableLoggingCloudfilesAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCloudfilesAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_cloudfiles_response.go b/fastly/model_logging_cloudfiles_response.go index b2de93b..79b3a9e 100644 --- a/fastly/model_logging_cloudfiles_response.go +++ b/fastly/model_logging_cloudfiles_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingCloudfilesResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingCloudfilesResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Your Cloud Files account access key. AccessKey *string `json:"access_key,omitempty"` // The name of your Cloud Files container. @@ -59,7 +58,7 @@ type LoggingCloudfilesResponse struct { // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // The username for your Cloud Files account. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -155,7 +154,7 @@ func (o *LoggingCloudfilesResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -174,6 +173,7 @@ func (o *LoggingCloudfilesResponse) HasPlacement() bool { func (o *LoggingCloudfilesResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingCloudfilesResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -197,7 +197,7 @@ func (o *LoggingCloudfilesResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -216,6 +216,7 @@ func (o *LoggingCloudfilesResponse) HasResponseCondition() bool { func (o *LoggingCloudfilesResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingCloudfilesResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -335,7 +336,7 @@ func (o *LoggingCloudfilesResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -354,6 +355,7 @@ func (o *LoggingCloudfilesResponse) HasTimestampFormat() bool { func (o *LoggingCloudfilesResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingCloudfilesResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -473,7 +475,7 @@ func (o *LoggingCloudfilesResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -492,6 +494,7 @@ func (o *LoggingCloudfilesResponse) HasCreatedAt() bool { func (o *LoggingCloudfilesResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingCloudfilesResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -515,7 +518,7 @@ func (o *LoggingCloudfilesResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -534,6 +537,7 @@ func (o *LoggingCloudfilesResponse) HasDeletedAt() bool { func (o *LoggingCloudfilesResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingCloudfilesResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -557,7 +561,7 @@ func (o *LoggingCloudfilesResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -576,6 +580,7 @@ func (o *LoggingCloudfilesResponse) HasUpdatedAt() bool { func (o *LoggingCloudfilesResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingCloudfilesResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -727,7 +732,7 @@ func (o *LoggingCloudfilesResponse) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -746,6 +751,7 @@ func (o *LoggingCloudfilesResponse) HasPath() bool { func (o *LoggingCloudfilesResponse) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingCloudfilesResponse) SetPathNil() { o.Path.Set(nil) @@ -769,7 +775,7 @@ func (o *LoggingCloudfilesResponse) GetRegion() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetRegionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Region.Get(), o.Region.IsSet() @@ -788,6 +794,7 @@ func (o *LoggingCloudfilesResponse) HasRegion() bool { func (o *LoggingCloudfilesResponse) SetRegion(v string) { o.Region.Set(&v) } + // SetRegionNil sets the value for Region to be an explicit nil func (o *LoggingCloudfilesResponse) SetRegionNil() { o.Region.Set(nil) @@ -811,7 +818,7 @@ func (o *LoggingCloudfilesResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCloudfilesResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -830,6 +837,7 @@ func (o *LoggingCloudfilesResponse) HasPublicKey() bool { func (o *LoggingCloudfilesResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingCloudfilesResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -948,7 +956,7 @@ func (o LoggingCloudfilesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCloudfilesResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingCloudfilesResponse := _LoggingCloudfilesResponse{} @@ -986,7 +994,7 @@ func (o *LoggingCloudfilesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCloudfilesResponse is a helper abstraction for handling nullable loggingcloudfilesresponse types. +// NullableLoggingCloudfilesResponse is a helper abstraction for handling nullable loggingcloudfilesresponse types. type NullableLoggingCloudfilesResponse struct { value *LoggingCloudfilesResponse isSet bool @@ -1026,7 +1034,7 @@ func (v NullableLoggingCloudfilesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCloudfilesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_common.go b/fastly/model_logging_common.go index 38394bc..6da9daa 100644 --- a/fastly/model_logging_common.go +++ b/fastly/model_logging_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,12 +20,12 @@ import ( type LoggingCommon struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - Format *string `json:"format,omitempty"` + Format *string `json:"format,omitempty"` AdditionalProperties map[string]any } @@ -98,7 +97,7 @@ func (o *LoggingCommon) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommon) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -117,6 +116,7 @@ func (o *LoggingCommon) HasPlacement() bool { func (o *LoggingCommon) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingCommon) SetPlacementNil() { o.Placement.Set(nil) @@ -140,7 +140,7 @@ func (o *LoggingCommon) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommon) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -159,6 +159,7 @@ func (o *LoggingCommon) HasResponseCondition() bool { func (o *LoggingCommon) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingCommon) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -226,7 +227,7 @@ func (o LoggingCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCommon) UnmarshalJSON(bytes []byte) (err error) { varLoggingCommon := _LoggingCommon{} @@ -247,7 +248,7 @@ func (o *LoggingCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCommon is a helper abstraction for handling nullable loggingcommon types. +// NullableLoggingCommon is a helper abstraction for handling nullable loggingcommon types. type NullableLoggingCommon struct { value *LoggingCommon isSet bool @@ -287,7 +288,7 @@ func (v NullableLoggingCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_common_response.go b/fastly/model_logging_common_response.go index deaf973..e782478 100644 --- a/fastly/model_logging_common_response.go +++ b/fastly/model_logging_common_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,14 +20,14 @@ import ( type LoggingCommonResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - FormatVersion *string `json:"format_version,omitempty"` + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + FormatVersion *string `json:"format_version,omitempty"` AdditionalProperties map[string]any } @@ -104,7 +103,7 @@ func (o *LoggingCommonResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommonResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -123,6 +122,7 @@ func (o *LoggingCommonResponse) HasPlacement() bool { func (o *LoggingCommonResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingCommonResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -146,7 +146,7 @@ func (o *LoggingCommonResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommonResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -165,6 +165,7 @@ func (o *LoggingCommonResponse) HasResponseCondition() bool { func (o *LoggingCommonResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingCommonResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -267,7 +268,7 @@ func (o LoggingCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCommonResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingCommonResponse := _LoggingCommonResponse{} @@ -289,7 +290,7 @@ func (o *LoggingCommonResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCommonResponse is a helper abstraction for handling nullable loggingcommonresponse types. +// NullableLoggingCommonResponse is a helper abstraction for handling nullable loggingcommonresponse types. type NullableLoggingCommonResponse struct { value *LoggingCommonResponse isSet bool @@ -329,7 +330,7 @@ func (v NullableLoggingCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCommonResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_common_response_all_of.go b/fastly/model_logging_common_response_all_of.go index 218dca2..faf47b1 100644 --- a/fastly/model_logging_common_response_all_of.go +++ b/fastly/model_logging_common_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,12 +20,12 @@ import ( type LoggingCommonResponseAllOf struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - Format *string `json:"format,omitempty"` + Format *string `json:"format,omitempty"` AdditionalProperties map[string]any } @@ -98,7 +97,7 @@ func (o *LoggingCommonResponseAllOf) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommonResponseAllOf) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -117,6 +116,7 @@ func (o *LoggingCommonResponseAllOf) HasPlacement() bool { func (o *LoggingCommonResponseAllOf) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingCommonResponseAllOf) SetPlacementNil() { o.Placement.Set(nil) @@ -140,7 +140,7 @@ func (o *LoggingCommonResponseAllOf) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingCommonResponseAllOf) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -159,6 +159,7 @@ func (o *LoggingCommonResponseAllOf) HasResponseCondition() bool { func (o *LoggingCommonResponseAllOf) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingCommonResponseAllOf) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -226,7 +227,7 @@ func (o LoggingCommonResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varLoggingCommonResponseAllOf := _LoggingCommonResponseAllOf{} @@ -247,7 +248,7 @@ func (o *LoggingCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCommonResponseAllOf is a helper abstraction for handling nullable loggingcommonresponseallof types. +// NullableLoggingCommonResponseAllOf is a helper abstraction for handling nullable loggingcommonresponseallof types. type NullableLoggingCommonResponseAllOf struct { value *LoggingCommonResponseAllOf isSet bool @@ -287,7 +288,7 @@ func (v NullableLoggingCommonResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCommonResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_common_response_all_of_1.go b/fastly/model_logging_common_response_all_of_1.go index 39869c6..d415630 100644 --- a/fastly/model_logging_common_response_all_of_1.go +++ b/fastly/model_logging_common_response_all_of_1.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // LoggingCommonResponseAllOf1 struct for LoggingCommonResponseAllOf1 type LoggingCommonResponseAllOf1 struct { - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - FormatVersion *string `json:"format_version,omitempty"` + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + FormatVersion *string `json:"format_version,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o LoggingCommonResponseAllOf1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err error) { varLoggingCommonResponseAllOf1 := _LoggingCommonResponseAllOf1{} @@ -113,7 +112,7 @@ func (o *LoggingCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingCommonResponseAllOf1 is a helper abstraction for handling nullable loggingcommonresponseallof1 types. +// NullableLoggingCommonResponseAllOf1 is a helper abstraction for handling nullable loggingcommonresponseallof1 types. type NullableLoggingCommonResponseAllOf1 struct { value *LoggingCommonResponseAllOf1 isSet bool @@ -153,7 +152,7 @@ func (v NullableLoggingCommonResponseAllOf1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingCommonResponseAllOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_datadog_additional.go b/fastly/model_logging_datadog_additional.go index a5c3f30..d6bfb49 100644 --- a/fastly/model_logging_datadog_additional.go +++ b/fastly/model_logging_datadog_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,10 +20,10 @@ import ( type LoggingDatadogAdditional struct { // The region that log data will be sent to. Region *string `json:"region,omitempty"` - // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. + // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. Format *string `json:"format,omitempty"` // The API key from your Datadog account. Required. - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` AdditionalProperties map[string]any } @@ -173,7 +172,7 @@ func (o LoggingDatadogAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingDatadogAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingDatadogAdditional := _LoggingDatadogAdditional{} @@ -193,7 +192,7 @@ func (o *LoggingDatadogAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingDatadogAdditional is a helper abstraction for handling nullable loggingdatadogadditional types. +// NullableLoggingDatadogAdditional is a helper abstraction for handling nullable loggingdatadogadditional types. type NullableLoggingDatadogAdditional struct { value *LoggingDatadogAdditional isSet bool @@ -233,7 +232,7 @@ func (v NullableLoggingDatadogAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingDatadogAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_datadog_response.go b/fastly/model_logging_datadog_response.go index 92760d1..99a07b3 100644 --- a/fastly/model_logging_datadog_response.go +++ b/fastly/model_logging_datadog_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingDatadogResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` - // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. + // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The region that log data will be sent to. Region *string `json:"region,omitempty"` @@ -39,9 +38,9 @@ type LoggingDatadogResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -121,7 +120,7 @@ func (o *LoggingDatadogResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDatadogResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -140,6 +139,7 @@ func (o *LoggingDatadogResponse) HasPlacement() bool { func (o *LoggingDatadogResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingDatadogResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -163,7 +163,7 @@ func (o *LoggingDatadogResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDatadogResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -182,6 +182,7 @@ func (o *LoggingDatadogResponse) HasResponseCondition() bool { func (o *LoggingDatadogResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingDatadogResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -333,7 +334,7 @@ func (o *LoggingDatadogResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDatadogResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -352,6 +353,7 @@ func (o *LoggingDatadogResponse) HasCreatedAt() bool { func (o *LoggingDatadogResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingDatadogResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -375,7 +377,7 @@ func (o *LoggingDatadogResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDatadogResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -394,6 +396,7 @@ func (o *LoggingDatadogResponse) HasDeletedAt() bool { func (o *LoggingDatadogResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingDatadogResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -417,7 +420,7 @@ func (o *LoggingDatadogResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDatadogResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -436,6 +439,7 @@ func (o *LoggingDatadogResponse) HasUpdatedAt() bool { func (o *LoggingDatadogResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingDatadogResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -559,7 +563,7 @@ func (o LoggingDatadogResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingDatadogResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingDatadogResponse := _LoggingDatadogResponse{} @@ -588,7 +592,7 @@ func (o *LoggingDatadogResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingDatadogResponse is a helper abstraction for handling nullable loggingdatadogresponse types. +// NullableLoggingDatadogResponse is a helper abstraction for handling nullable loggingdatadogresponse types. type NullableLoggingDatadogResponse struct { value *LoggingDatadogResponse isSet bool @@ -628,7 +632,7 @@ func (v NullableLoggingDatadogResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingDatadogResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_digitalocean_additional.go b/fastly/model_logging_digitalocean_additional.go index 88a4fd4..5c0d192 100644 --- a/fastly/model_logging_digitalocean_additional.go +++ b/fastly/model_logging_digitalocean_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingDigitaloceanAdditional struct { // The path to upload logs to. Path NullableString `json:"path,omitempty"` // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - PublicKey NullableString `json:"public_key,omitempty"` + PublicKey NullableString `json:"public_key,omitempty"` AdditionalProperties map[string]any } @@ -206,7 +205,7 @@ func (o *LoggingDigitaloceanAdditional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanAdditional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -225,6 +224,7 @@ func (o *LoggingDigitaloceanAdditional) HasPath() bool { func (o *LoggingDigitaloceanAdditional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingDigitaloceanAdditional) SetPathNil() { o.Path.Set(nil) @@ -248,7 +248,7 @@ func (o *LoggingDigitaloceanAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -267,6 +267,7 @@ func (o *LoggingDigitaloceanAdditional) HasPublicKey() bool { func (o *LoggingDigitaloceanAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingDigitaloceanAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -308,7 +309,7 @@ func (o LoggingDigitaloceanAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingDigitaloceanAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingDigitaloceanAdditional := _LoggingDigitaloceanAdditional{} @@ -331,7 +332,7 @@ func (o *LoggingDigitaloceanAdditional) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableLoggingDigitaloceanAdditional is a helper abstraction for handling nullable loggingdigitaloceanadditional types. +// NullableLoggingDigitaloceanAdditional is a helper abstraction for handling nullable loggingdigitaloceanadditional types. type NullableLoggingDigitaloceanAdditional struct { value *LoggingDigitaloceanAdditional isSet bool @@ -371,7 +372,7 @@ func (v NullableLoggingDigitaloceanAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingDigitaloceanAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_digitalocean_response.go b/fastly/model_logging_digitalocean_response.go index 8d2583d..4efda6d 100644 --- a/fastly/model_logging_digitalocean_response.go +++ b/fastly/model_logging_digitalocean_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingDigitaloceanResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingDigitaloceanResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The name of the DigitalOcean Space. BucketName *string `json:"bucket_name,omitempty"` // Your DigitalOcean Spaces account access key. @@ -59,7 +58,7 @@ type LoggingDigitaloceanResponse struct { // The path to upload logs to. Path NullableString `json:"path,omitempty"` // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - PublicKey NullableString `json:"public_key,omitempty"` + PublicKey NullableString `json:"public_key,omitempty"` AdditionalProperties map[string]any } @@ -159,7 +158,7 @@ func (o *LoggingDigitaloceanResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -178,6 +177,7 @@ func (o *LoggingDigitaloceanResponse) HasPlacement() bool { func (o *LoggingDigitaloceanResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingDigitaloceanResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -201,7 +201,7 @@ func (o *LoggingDigitaloceanResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -220,6 +220,7 @@ func (o *LoggingDigitaloceanResponse) HasResponseCondition() bool { func (o *LoggingDigitaloceanResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingDigitaloceanResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -339,7 +340,7 @@ func (o *LoggingDigitaloceanResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -358,6 +359,7 @@ func (o *LoggingDigitaloceanResponse) HasTimestampFormat() bool { func (o *LoggingDigitaloceanResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingDigitaloceanResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -477,7 +479,7 @@ func (o *LoggingDigitaloceanResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -496,6 +498,7 @@ func (o *LoggingDigitaloceanResponse) HasCreatedAt() bool { func (o *LoggingDigitaloceanResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingDigitaloceanResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -519,7 +522,7 @@ func (o *LoggingDigitaloceanResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -538,6 +541,7 @@ func (o *LoggingDigitaloceanResponse) HasDeletedAt() bool { func (o *LoggingDigitaloceanResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingDigitaloceanResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -561,7 +565,7 @@ func (o *LoggingDigitaloceanResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -580,6 +584,7 @@ func (o *LoggingDigitaloceanResponse) HasUpdatedAt() bool { func (o *LoggingDigitaloceanResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingDigitaloceanResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -795,7 +800,7 @@ func (o *LoggingDigitaloceanResponse) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -814,6 +819,7 @@ func (o *LoggingDigitaloceanResponse) HasPath() bool { func (o *LoggingDigitaloceanResponse) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingDigitaloceanResponse) SetPathNil() { o.Path.Set(nil) @@ -837,7 +843,7 @@ func (o *LoggingDigitaloceanResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingDigitaloceanResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -856,6 +862,7 @@ func (o *LoggingDigitaloceanResponse) HasPublicKey() bool { func (o *LoggingDigitaloceanResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingDigitaloceanResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -942,7 +949,7 @@ func (o LoggingDigitaloceanResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingDigitaloceanResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingDigitaloceanResponse := _LoggingDigitaloceanResponse{} @@ -980,7 +987,7 @@ func (o *LoggingDigitaloceanResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingDigitaloceanResponse is a helper abstraction for handling nullable loggingdigitaloceanresponse types. +// NullableLoggingDigitaloceanResponse is a helper abstraction for handling nullable loggingdigitaloceanresponse types. type NullableLoggingDigitaloceanResponse struct { value *LoggingDigitaloceanResponse isSet bool @@ -1020,7 +1027,7 @@ func (v NullableLoggingDigitaloceanResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingDigitaloceanResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_elasticsearch_additional.go b/fastly/model_logging_elasticsearch_additional.go index fa9ec37..8380150 100644 --- a/fastly/model_logging_elasticsearch_additional.go +++ b/fastly/model_logging_elasticsearch_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingElasticsearchAdditional struct { // Basic Auth password. Password NullableString `json:"password,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. - Format *string `json:"format,omitempty"` + Format *string `json:"format,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o *LoggingElasticsearchAdditional) GetPipeline() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchAdditional) GetPipelineOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Pipeline.Get(), o.Pipeline.IsSet() @@ -149,6 +148,7 @@ func (o *LoggingElasticsearchAdditional) HasPipeline() bool { func (o *LoggingElasticsearchAdditional) SetPipeline(v string) { o.Pipeline.Set(&v) } + // SetPipelineNil sets the value for Pipeline to be an explicit nil func (o *LoggingElasticsearchAdditional) SetPipelineNil() { o.Pipeline.Set(nil) @@ -172,7 +172,7 @@ func (o *LoggingElasticsearchAdditional) GetUser() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchAdditional) GetUserOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.User.Get(), o.User.IsSet() @@ -191,6 +191,7 @@ func (o *LoggingElasticsearchAdditional) HasUser() bool { func (o *LoggingElasticsearchAdditional) SetUser(v string) { o.User.Set(&v) } + // SetUserNil sets the value for User to be an explicit nil func (o *LoggingElasticsearchAdditional) SetUserNil() { o.User.Set(nil) @@ -214,7 +215,7 @@ func (o *LoggingElasticsearchAdditional) GetPassword() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchAdditional) GetPasswordOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Password.Get(), o.Password.IsSet() @@ -233,6 +234,7 @@ func (o *LoggingElasticsearchAdditional) HasPassword() bool { func (o *LoggingElasticsearchAdditional) SetPassword(v string) { o.Password.Set(&v) } + // SetPasswordNil sets the value for Password to be an explicit nil func (o *LoggingElasticsearchAdditional) SetPasswordNil() { o.Password.Set(nil) @@ -306,7 +308,7 @@ func (o LoggingElasticsearchAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingElasticsearchAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingElasticsearchAdditional := _LoggingElasticsearchAdditional{} @@ -329,7 +331,7 @@ func (o *LoggingElasticsearchAdditional) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableLoggingElasticsearchAdditional is a helper abstraction for handling nullable loggingelasticsearchadditional types. +// NullableLoggingElasticsearchAdditional is a helper abstraction for handling nullable loggingelasticsearchadditional types. type NullableLoggingElasticsearchAdditional struct { value *LoggingElasticsearchAdditional isSet bool @@ -369,7 +371,7 @@ func (v NullableLoggingElasticsearchAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingElasticsearchAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_elasticsearch_response.go b/fastly/model_logging_elasticsearch_response.go index 5cc2bac..8ce0c97 100644 --- a/fastly/model_logging_elasticsearch_response.go +++ b/fastly/model_logging_elasticsearch_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingElasticsearchResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -57,9 +56,9 @@ type LoggingElasticsearchResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -155,7 +154,7 @@ func (o *LoggingElasticsearchResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -174,6 +173,7 @@ func (o *LoggingElasticsearchResponse) HasPlacement() bool { func (o *LoggingElasticsearchResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingElasticsearchResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -197,7 +197,7 @@ func (o *LoggingElasticsearchResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -216,6 +216,7 @@ func (o *LoggingElasticsearchResponse) HasResponseCondition() bool { func (o *LoggingElasticsearchResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingElasticsearchResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -303,7 +304,7 @@ func (o *LoggingElasticsearchResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -322,6 +323,7 @@ func (o *LoggingElasticsearchResponse) HasTLSCaCert() bool { func (o *LoggingElasticsearchResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingElasticsearchResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -345,7 +347,7 @@ func (o *LoggingElasticsearchResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -364,6 +366,7 @@ func (o *LoggingElasticsearchResponse) HasTLSClientCert() bool { func (o *LoggingElasticsearchResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingElasticsearchResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -387,7 +390,7 @@ func (o *LoggingElasticsearchResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -406,6 +409,7 @@ func (o *LoggingElasticsearchResponse) HasTLSClientKey() bool { func (o *LoggingElasticsearchResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingElasticsearchResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -429,7 +433,7 @@ func (o *LoggingElasticsearchResponse) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -448,6 +452,7 @@ func (o *LoggingElasticsearchResponse) HasTLSHostname() bool { func (o *LoggingElasticsearchResponse) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingElasticsearchResponse) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -599,7 +604,7 @@ func (o *LoggingElasticsearchResponse) GetPipeline() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetPipelineOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Pipeline.Get(), o.Pipeline.IsSet() @@ -618,6 +623,7 @@ func (o *LoggingElasticsearchResponse) HasPipeline() bool { func (o *LoggingElasticsearchResponse) SetPipeline(v string) { o.Pipeline.Set(&v) } + // SetPipelineNil sets the value for Pipeline to be an explicit nil func (o *LoggingElasticsearchResponse) SetPipelineNil() { o.Pipeline.Set(nil) @@ -641,7 +647,7 @@ func (o *LoggingElasticsearchResponse) GetUser() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetUserOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.User.Get(), o.User.IsSet() @@ -660,6 +666,7 @@ func (o *LoggingElasticsearchResponse) HasUser() bool { func (o *LoggingElasticsearchResponse) SetUser(v string) { o.User.Set(&v) } + // SetUserNil sets the value for User to be an explicit nil func (o *LoggingElasticsearchResponse) SetUserNil() { o.User.Set(nil) @@ -683,7 +690,7 @@ func (o *LoggingElasticsearchResponse) GetPassword() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetPasswordOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Password.Get(), o.Password.IsSet() @@ -702,6 +709,7 @@ func (o *LoggingElasticsearchResponse) HasPassword() bool { func (o *LoggingElasticsearchResponse) SetPassword(v string) { o.Password.Set(&v) } + // SetPasswordNil sets the value for Password to be an explicit nil func (o *LoggingElasticsearchResponse) SetPasswordNil() { o.Password.Set(nil) @@ -725,7 +733,7 @@ func (o *LoggingElasticsearchResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -744,6 +752,7 @@ func (o *LoggingElasticsearchResponse) HasCreatedAt() bool { func (o *LoggingElasticsearchResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingElasticsearchResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -767,7 +776,7 @@ func (o *LoggingElasticsearchResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -786,6 +795,7 @@ func (o *LoggingElasticsearchResponse) HasDeletedAt() bool { func (o *LoggingElasticsearchResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingElasticsearchResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -809,7 +819,7 @@ func (o *LoggingElasticsearchResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingElasticsearchResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -828,6 +838,7 @@ func (o *LoggingElasticsearchResponse) HasUpdatedAt() bool { func (o *LoggingElasticsearchResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingElasticsearchResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -978,7 +989,7 @@ func (o LoggingElasticsearchResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingElasticsearchResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingElasticsearchResponse := _LoggingElasticsearchResponse{} @@ -1016,7 +1027,7 @@ func (o *LoggingElasticsearchResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingElasticsearchResponse is a helper abstraction for handling nullable loggingelasticsearchresponse types. +// NullableLoggingElasticsearchResponse is a helper abstraction for handling nullable loggingelasticsearchresponse types. type NullableLoggingElasticsearchResponse struct { value *LoggingElasticsearchResponse isSet bool @@ -1056,7 +1067,7 @@ func (v NullableLoggingElasticsearchResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingElasticsearchResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_format_version_integer.go b/fastly/model_logging_format_version_integer.go index 4ad07e9..1ec25c6 100644 --- a/fastly/model_logging_format_version_integer.go +++ b/fastly/model_logging_format_version_integer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // LoggingFormatVersionInteger struct for LoggingFormatVersionInteger type LoggingFormatVersionInteger struct { - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - FormatVersion *int32 `json:"format_version,omitempty"` + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + FormatVersion *int32 `json:"format_version,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o LoggingFormatVersionInteger) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingFormatVersionInteger) UnmarshalJSON(bytes []byte) (err error) { varLoggingFormatVersionInteger := _LoggingFormatVersionInteger{} @@ -113,7 +112,7 @@ func (o *LoggingFormatVersionInteger) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingFormatVersionInteger is a helper abstraction for handling nullable loggingformatversioninteger types. +// NullableLoggingFormatVersionInteger is a helper abstraction for handling nullable loggingformatversioninteger types. type NullableLoggingFormatVersionInteger struct { value *LoggingFormatVersionInteger isSet bool @@ -153,7 +152,7 @@ func (v NullableLoggingFormatVersionInteger) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingFormatVersionInteger) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_format_version_string.go b/fastly/model_logging_format_version_string.go index d8861c5..6e5563f 100644 --- a/fastly/model_logging_format_version_string.go +++ b/fastly/model_logging_format_version_string.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // LoggingFormatVersionString struct for LoggingFormatVersionString type LoggingFormatVersionString struct { - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - FormatVersion *string `json:"format_version,omitempty"` + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + FormatVersion *string `json:"format_version,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o LoggingFormatVersionString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingFormatVersionString) UnmarshalJSON(bytes []byte) (err error) { varLoggingFormatVersionString := _LoggingFormatVersionString{} @@ -113,7 +112,7 @@ func (o *LoggingFormatVersionString) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingFormatVersionString is a helper abstraction for handling nullable loggingformatversionstring types. +// NullableLoggingFormatVersionString is a helper abstraction for handling nullable loggingformatversionstring types. type NullableLoggingFormatVersionString struct { value *LoggingFormatVersionString isSet bool @@ -153,7 +152,7 @@ func (v NullableLoggingFormatVersionString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingFormatVersionString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_ftp_additional.go b/fastly/model_logging_ftp_additional.go index ea4f644..242cdf8 100644 --- a/fastly/model_logging_ftp_additional.go +++ b/fastly/model_logging_ftp_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type LoggingFtpAdditional struct { // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // The username for the server. Can be anonymous. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -232,7 +231,7 @@ func (o *LoggingFtpAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -251,6 +250,7 @@ func (o *LoggingFtpAdditional) HasPublicKey() bool { func (o *LoggingFtpAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingFtpAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -327,7 +327,7 @@ func (o LoggingFtpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingFtpAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingFtpAdditional := _LoggingFtpAdditional{} @@ -351,7 +351,7 @@ func (o *LoggingFtpAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingFtpAdditional is a helper abstraction for handling nullable loggingftpadditional types. +// NullableLoggingFtpAdditional is a helper abstraction for handling nullable loggingftpadditional types. type NullableLoggingFtpAdditional struct { value *LoggingFtpAdditional isSet bool @@ -391,7 +391,7 @@ func (v NullableLoggingFtpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingFtpAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_ftp_response.go b/fastly/model_logging_ftp_response.go index dabd4bc..10e49dd 100644 --- a/fastly/model_logging_ftp_response.go +++ b/fastly/model_logging_ftp_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingFtpResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingFtpResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // An hostname or IPv4 address. Address *string `json:"address,omitempty"` // Hostname used. @@ -63,7 +62,7 @@ type LoggingFtpResponse struct { // The username for the server. Can be anonymous. User *string `json:"user,omitempty"` // The port number. - Port *string `json:"port,omitempty"` + Port *string `json:"port,omitempty"` AdditionalProperties map[string]any } @@ -159,7 +158,7 @@ func (o *LoggingFtpResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -178,6 +177,7 @@ func (o *LoggingFtpResponse) HasPlacement() bool { func (o *LoggingFtpResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingFtpResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -201,7 +201,7 @@ func (o *LoggingFtpResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -220,6 +220,7 @@ func (o *LoggingFtpResponse) HasResponseCondition() bool { func (o *LoggingFtpResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingFtpResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -339,7 +340,7 @@ func (o *LoggingFtpResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -358,6 +359,7 @@ func (o *LoggingFtpResponse) HasTimestampFormat() bool { func (o *LoggingFtpResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingFtpResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -477,7 +479,7 @@ func (o *LoggingFtpResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -496,6 +498,7 @@ func (o *LoggingFtpResponse) HasCreatedAt() bool { func (o *LoggingFtpResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingFtpResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -519,7 +522,7 @@ func (o *LoggingFtpResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -538,6 +541,7 @@ func (o *LoggingFtpResponse) HasDeletedAt() bool { func (o *LoggingFtpResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingFtpResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -561,7 +565,7 @@ func (o *LoggingFtpResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -580,6 +584,7 @@ func (o *LoggingFtpResponse) HasUpdatedAt() bool { func (o *LoggingFtpResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingFtpResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -827,7 +832,7 @@ func (o *LoggingFtpResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingFtpResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -846,6 +851,7 @@ func (o *LoggingFtpResponse) HasPublicKey() bool { func (o *LoggingFtpResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingFtpResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -1002,7 +1008,7 @@ func (o LoggingFtpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingFtpResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingFtpResponse := _LoggingFtpResponse{} @@ -1042,7 +1048,7 @@ func (o *LoggingFtpResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingFtpResponse is a helper abstraction for handling nullable loggingftpresponse types. +// NullableLoggingFtpResponse is a helper abstraction for handling nullable loggingftpresponse types. type NullableLoggingFtpResponse struct { value *LoggingFtpResponse isSet bool @@ -1082,7 +1088,7 @@ func (v NullableLoggingFtpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingFtpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_ftp_response_all_of.go b/fastly/model_logging_ftp_response_all_of.go index 37911ab..6885df1 100644 --- a/fastly/model_logging_ftp_response_all_of.go +++ b/fastly/model_logging_ftp_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // LoggingFtpResponseAllOf struct for LoggingFtpResponseAllOf type LoggingFtpResponseAllOf struct { // The port number. - Port *string `json:"port,omitempty"` + Port *string `json:"port,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o LoggingFtpResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingFtpResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varLoggingFtpResponseAllOf := _LoggingFtpResponseAllOf{} @@ -113,7 +112,7 @@ func (o *LoggingFtpResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingFtpResponseAllOf is a helper abstraction for handling nullable loggingftpresponseallof types. +// NullableLoggingFtpResponseAllOf is a helper abstraction for handling nullable loggingftpresponseallof types. type NullableLoggingFtpResponseAllOf struct { value *LoggingFtpResponseAllOf isSet bool @@ -153,7 +152,7 @@ func (v NullableLoggingFtpResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingFtpResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_gcs_additional.go b/fastly/model_logging_gcs_additional.go index a467b43..abd8069 100644 --- a/fastly/model_logging_gcs_additional.go +++ b/fastly/model_logging_gcs_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,11 +20,11 @@ import ( type LoggingGcsAdditional struct { // The name of the GCS bucket. BucketName *string `json:"bucket_name,omitempty"` - Path *string `json:"path,omitempty"` + Path *string `json:"path,omitempty"` // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // Your Google Cloud Platform project ID. Required - ProjectID *string `json:"project_id,omitempty"` + ProjectID *string `json:"project_id,omitempty"` AdditionalProperties map[string]any } @@ -133,7 +132,7 @@ func (o *LoggingGcsAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -152,6 +151,7 @@ func (o *LoggingGcsAdditional) HasPublicKey() bool { func (o *LoggingGcsAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingGcsAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -219,7 +219,7 @@ func (o LoggingGcsAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGcsAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingGcsAdditional := _LoggingGcsAdditional{} @@ -240,7 +240,7 @@ func (o *LoggingGcsAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGcsAdditional is a helper abstraction for handling nullable logginggcsadditional types. +// NullableLoggingGcsAdditional is a helper abstraction for handling nullable logginggcsadditional types. type NullableLoggingGcsAdditional struct { value *LoggingGcsAdditional isSet bool @@ -280,7 +280,7 @@ func (v NullableLoggingGcsAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGcsAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_gcs_common.go b/fastly/model_logging_gcs_common.go index d2f0d91..80410fa 100644 --- a/fastly/model_logging_gcs_common.go +++ b/fastly/model_logging_gcs_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingGcsCommon struct { // Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. SecretKey *string `json:"secret_key,omitempty"` // The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. - AccountName *string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o LoggingGcsCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGcsCommon) UnmarshalJSON(bytes []byte) (err error) { varLoggingGcsCommon := _LoggingGcsCommon{} @@ -185,7 +184,7 @@ func (o *LoggingGcsCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGcsCommon is a helper abstraction for handling nullable logginggcscommon types. +// NullableLoggingGcsCommon is a helper abstraction for handling nullable logginggcscommon types. type NullableLoggingGcsCommon struct { value *LoggingGcsCommon isSet bool @@ -225,7 +224,7 @@ func (v NullableLoggingGcsCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGcsCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_gcs_response.go b/fastly/model_logging_gcs_response.go index 1b7ad36..8159613 100644 --- a/fastly/model_logging_gcs_response.go +++ b/fastly/model_logging_gcs_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingGcsResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -52,15 +51,15 @@ type LoggingGcsResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The name of the GCS bucket. BucketName *string `json:"bucket_name,omitempty"` - Path *string `json:"path,omitempty"` + Path *string `json:"path,omitempty"` // A PGP public key that Fastly will use to encrypt your log files before writing them to disk. PublicKey NullableString `json:"public_key,omitempty"` // Your Google Cloud Platform project ID. Required - ProjectID *string `json:"project_id,omitempty"` + ProjectID *string `json:"project_id,omitempty"` AdditionalProperties map[string]any } @@ -156,7 +155,7 @@ func (o *LoggingGcsResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -175,6 +174,7 @@ func (o *LoggingGcsResponse) HasPlacement() bool { func (o *LoggingGcsResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingGcsResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -198,7 +198,7 @@ func (o *LoggingGcsResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -217,6 +217,7 @@ func (o *LoggingGcsResponse) HasResponseCondition() bool { func (o *LoggingGcsResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingGcsResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -336,7 +337,7 @@ func (o *LoggingGcsResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -355,6 +356,7 @@ func (o *LoggingGcsResponse) HasTimestampFormat() bool { func (o *LoggingGcsResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingGcsResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -570,7 +572,7 @@ func (o *LoggingGcsResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -589,6 +591,7 @@ func (o *LoggingGcsResponse) HasCreatedAt() bool { func (o *LoggingGcsResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingGcsResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -612,7 +615,7 @@ func (o *LoggingGcsResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -631,6 +634,7 @@ func (o *LoggingGcsResponse) HasDeletedAt() bool { func (o *LoggingGcsResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingGcsResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -654,7 +658,7 @@ func (o *LoggingGcsResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -673,6 +677,7 @@ func (o *LoggingGcsResponse) HasUpdatedAt() bool { func (o *LoggingGcsResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingGcsResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -824,7 +829,7 @@ func (o *LoggingGcsResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGcsResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -843,6 +848,7 @@ func (o *LoggingGcsResponse) HasPublicKey() bool { func (o *LoggingGcsResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingGcsResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -964,7 +970,7 @@ func (o LoggingGcsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGcsResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingGcsResponse := _LoggingGcsResponse{} @@ -1003,7 +1009,7 @@ func (o *LoggingGcsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGcsResponse is a helper abstraction for handling nullable logginggcsresponse types. +// NullableLoggingGcsResponse is a helper abstraction for handling nullable logginggcsresponse types. type NullableLoggingGcsResponse struct { value *LoggingGcsResponse isSet bool @@ -1043,7 +1049,7 @@ func (v NullableLoggingGcsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGcsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_generic_common.go b/fastly/model_logging_generic_common.go index 9b3159e..79df41f 100644 --- a/fastly/model_logging_generic_common.go +++ b/fastly/model_logging_generic_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingGenericCommon struct { // A timestamp format TimestampFormat NullableString `json:"timestamp_format,omitempty"` // The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - CompressionCodec *string `json:"compression_codec,omitempty"` + CompressionCodec *string `json:"compression_codec,omitempty"` AdditionalProperties map[string]any } @@ -96,7 +95,7 @@ func (o *LoggingGenericCommon) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGenericCommon) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -115,6 +114,7 @@ func (o *LoggingGenericCommon) HasTimestampFormat() bool { func (o *LoggingGenericCommon) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingGenericCommon) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -179,7 +179,7 @@ func (o LoggingGenericCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGenericCommon) UnmarshalJSON(bytes []byte) (err error) { varLoggingGenericCommon := _LoggingGenericCommon{} @@ -199,7 +199,7 @@ func (o *LoggingGenericCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGenericCommon is a helper abstraction for handling nullable logginggenericcommon types. +// NullableLoggingGenericCommon is a helper abstraction for handling nullable logginggenericcommon types. type NullableLoggingGenericCommon struct { value *LoggingGenericCommon isSet bool @@ -239,7 +239,7 @@ func (v NullableLoggingGenericCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGenericCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_generic_common_response.go b/fastly/model_logging_generic_common_response.go index 926cd5e..8a44e06 100644 --- a/fastly/model_logging_generic_common_response.go +++ b/fastly/model_logging_generic_common_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type LoggingGenericCommonResponse struct { // How frequently log files are finalized so they can be available for reading (in seconds). Period *string `json:"period,omitempty"` // The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - GzipLevel *string `json:"gzip_level,omitempty"` + GzipLevel *string `json:"gzip_level,omitempty"` AdditionalProperties map[string]any } @@ -108,7 +107,7 @@ func (o *LoggingGenericCommonResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGenericCommonResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -127,6 +126,7 @@ func (o *LoggingGenericCommonResponse) HasTimestampFormat() bool { func (o *LoggingGenericCommonResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingGenericCommonResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -261,7 +261,7 @@ func (o LoggingGenericCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGenericCommonResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingGenericCommonResponse := _LoggingGenericCommonResponse{} @@ -283,7 +283,7 @@ func (o *LoggingGenericCommonResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGenericCommonResponse is a helper abstraction for handling nullable logginggenericcommonresponse types. +// NullableLoggingGenericCommonResponse is a helper abstraction for handling nullable logginggenericcommonresponse types. type NullableLoggingGenericCommonResponse struct { value *LoggingGenericCommonResponse isSet bool @@ -323,7 +323,7 @@ func (v NullableLoggingGenericCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGenericCommonResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_generic_common_response_all_of.go b/fastly/model_logging_generic_common_response_all_of.go index 7cf2ab6..a9fc953 100644 --- a/fastly/model_logging_generic_common_response_all_of.go +++ b/fastly/model_logging_generic_common_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingGenericCommonResponseAllOf struct { // A timestamp format TimestampFormat NullableString `json:"timestamp_format,omitempty"` // The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - CompressionCodec *string `json:"compression_codec,omitempty"` + CompressionCodec *string `json:"compression_codec,omitempty"` AdditionalProperties map[string]any } @@ -96,7 +95,7 @@ func (o *LoggingGenericCommonResponseAllOf) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGenericCommonResponseAllOf) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -115,6 +114,7 @@ func (o *LoggingGenericCommonResponseAllOf) HasTimestampFormat() bool { func (o *LoggingGenericCommonResponseAllOf) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingGenericCommonResponseAllOf) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -179,7 +179,7 @@ func (o LoggingGenericCommonResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGenericCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varLoggingGenericCommonResponseAllOf := _LoggingGenericCommonResponseAllOf{} @@ -199,7 +199,7 @@ func (o *LoggingGenericCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err err return err } -// NullableLoggingGenericCommonResponseAllOf is a helper abstraction for handling nullable logginggenericcommonresponseallof types. +// NullableLoggingGenericCommonResponseAllOf is a helper abstraction for handling nullable logginggenericcommonresponseallof types. type NullableLoggingGenericCommonResponseAllOf struct { value *LoggingGenericCommonResponseAllOf isSet bool @@ -239,7 +239,7 @@ func (v NullableLoggingGenericCommonResponseAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGenericCommonResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_generic_common_response_all_of_1.go b/fastly/model_logging_generic_common_response_all_of_1.go index 6eda063..a08344f 100644 --- a/fastly/model_logging_generic_common_response_all_of_1.go +++ b/fastly/model_logging_generic_common_response_all_of_1.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LoggingGenericCommonResponseAllOf1 struct { // How frequently log files are finalized so they can be available for reading (in seconds). Period *string `json:"period,omitempty"` // The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - GzipLevel *string `json:"gzip_level,omitempty"` + GzipLevel *string `json:"gzip_level,omitempty"` AdditionalProperties map[string]any } @@ -136,7 +135,7 @@ func (o LoggingGenericCommonResponseAllOf1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGenericCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err error) { varLoggingGenericCommonResponseAllOf1 := _LoggingGenericCommonResponseAllOf1{} @@ -155,7 +154,7 @@ func (o *LoggingGenericCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err er return err } -// NullableLoggingGenericCommonResponseAllOf1 is a helper abstraction for handling nullable logginggenericcommonresponseallof1 types. +// NullableLoggingGenericCommonResponseAllOf1 is a helper abstraction for handling nullable logginggenericcommonresponseallof1 types. type NullableLoggingGenericCommonResponseAllOf1 struct { value *LoggingGenericCommonResponseAllOf1 isSet bool @@ -195,7 +194,7 @@ func (v NullableLoggingGenericCommonResponseAllOf1) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGenericCommonResponseAllOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_google_pubsub_additional.go b/fastly/model_logging_google_pubsub_additional.go index 95fa562..87573c7 100644 --- a/fastly/model_logging_google_pubsub_additional.go +++ b/fastly/model_logging_google_pubsub_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingGooglePubsubAdditional struct { // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` // Your Google Cloud Platform project ID. Required - ProjectID *string `json:"project_id,omitempty"` + ProjectID *string `json:"project_id,omitempty"` AdditionalProperties map[string]any } @@ -169,7 +168,7 @@ func (o LoggingGooglePubsubAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGooglePubsubAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingGooglePubsubAdditional := _LoggingGooglePubsubAdditional{} @@ -189,7 +188,7 @@ func (o *LoggingGooglePubsubAdditional) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableLoggingGooglePubsubAdditional is a helper abstraction for handling nullable logginggooglepubsubadditional types. +// NullableLoggingGooglePubsubAdditional is a helper abstraction for handling nullable logginggooglepubsubadditional types. type NullableLoggingGooglePubsubAdditional struct { value *LoggingGooglePubsubAdditional isSet bool @@ -229,7 +228,7 @@ func (v NullableLoggingGooglePubsubAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGooglePubsubAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_google_pubsub_response.go b/fastly/model_logging_google_pubsub_response.go index f7de273..fee97c7 100644 --- a/fastly/model_logging_google_pubsub_response.go +++ b/fastly/model_logging_google_pubsub_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingGooglePubsubResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. User *string `json:"user,omitempty"` @@ -45,9 +44,9 @@ type LoggingGooglePubsubResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -123,7 +122,7 @@ func (o *LoggingGooglePubsubResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGooglePubsubResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -142,6 +141,7 @@ func (o *LoggingGooglePubsubResponse) HasPlacement() bool { func (o *LoggingGooglePubsubResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingGooglePubsubResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -165,7 +165,7 @@ func (o *LoggingGooglePubsubResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGooglePubsubResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -184,6 +184,7 @@ func (o *LoggingGooglePubsubResponse) HasResponseCondition() bool { func (o *LoggingGooglePubsubResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingGooglePubsubResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -431,7 +432,7 @@ func (o *LoggingGooglePubsubResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGooglePubsubResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -450,6 +451,7 @@ func (o *LoggingGooglePubsubResponse) HasCreatedAt() bool { func (o *LoggingGooglePubsubResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingGooglePubsubResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -473,7 +475,7 @@ func (o *LoggingGooglePubsubResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGooglePubsubResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -492,6 +494,7 @@ func (o *LoggingGooglePubsubResponse) HasDeletedAt() bool { func (o *LoggingGooglePubsubResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingGooglePubsubResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -515,7 +518,7 @@ func (o *LoggingGooglePubsubResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingGooglePubsubResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -534,6 +537,7 @@ func (o *LoggingGooglePubsubResponse) HasUpdatedAt() bool { func (o *LoggingGooglePubsubResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingGooglePubsubResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -666,7 +670,7 @@ func (o LoggingGooglePubsubResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingGooglePubsubResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingGooglePubsubResponse := _LoggingGooglePubsubResponse{} @@ -698,7 +702,7 @@ func (o *LoggingGooglePubsubResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingGooglePubsubResponse is a helper abstraction for handling nullable logginggooglepubsubresponse types. +// NullableLoggingGooglePubsubResponse is a helper abstraction for handling nullable logginggooglepubsubresponse types. type NullableLoggingGooglePubsubResponse struct { value *LoggingGooglePubsubResponse isSet bool @@ -738,7 +742,7 @@ func (v NullableLoggingGooglePubsubResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingGooglePubsubResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_heroku_additional.go b/fastly/model_logging_heroku_additional.go index 572d025..0de8b9f 100644 --- a/fastly/model_logging_heroku_additional.go +++ b/fastly/model_logging_heroku_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LoggingHerokuAdditional struct { // The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). Token *string `json:"token,omitempty"` // The URL to stream logs to. - URL *string `json:"url,omitempty"` + URL *string `json:"url,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o LoggingHerokuAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHerokuAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingHerokuAdditional := _LoggingHerokuAdditional{} @@ -147,7 +146,7 @@ func (o *LoggingHerokuAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHerokuAdditional is a helper abstraction for handling nullable loggingherokuadditional types. +// NullableLoggingHerokuAdditional is a helper abstraction for handling nullable loggingherokuadditional types. type NullableLoggingHerokuAdditional struct { value *LoggingHerokuAdditional isSet bool @@ -187,7 +186,7 @@ func (v NullableLoggingHerokuAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHerokuAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_heroku_response.go b/fastly/model_logging_heroku_response.go index f85ddd9..bfcbb0d 100644 --- a/fastly/model_logging_heroku_response.go +++ b/fastly/model_logging_heroku_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingHerokuResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). Token *string `json:"token,omitempty"` @@ -39,9 +38,9 @@ type LoggingHerokuResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -117,7 +116,7 @@ func (o *LoggingHerokuResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHerokuResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -136,6 +135,7 @@ func (o *LoggingHerokuResponse) HasPlacement() bool { func (o *LoggingHerokuResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingHerokuResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -159,7 +159,7 @@ func (o *LoggingHerokuResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHerokuResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -178,6 +178,7 @@ func (o *LoggingHerokuResponse) HasResponseCondition() bool { func (o *LoggingHerokuResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingHerokuResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -329,7 +330,7 @@ func (o *LoggingHerokuResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHerokuResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -348,6 +349,7 @@ func (o *LoggingHerokuResponse) HasCreatedAt() bool { func (o *LoggingHerokuResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingHerokuResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -371,7 +373,7 @@ func (o *LoggingHerokuResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHerokuResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -390,6 +392,7 @@ func (o *LoggingHerokuResponse) HasDeletedAt() bool { func (o *LoggingHerokuResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingHerokuResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -413,7 +416,7 @@ func (o *LoggingHerokuResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHerokuResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -432,6 +435,7 @@ func (o *LoggingHerokuResponse) HasUpdatedAt() bool { func (o *LoggingHerokuResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingHerokuResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -555,7 +559,7 @@ func (o LoggingHerokuResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHerokuResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingHerokuResponse := _LoggingHerokuResponse{} @@ -584,7 +588,7 @@ func (o *LoggingHerokuResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHerokuResponse is a helper abstraction for handling nullable loggingherokuresponse types. +// NullableLoggingHerokuResponse is a helper abstraction for handling nullable loggingherokuresponse types. type NullableLoggingHerokuResponse struct { value *LoggingHerokuResponse isSet bool @@ -624,7 +628,7 @@ func (v NullableLoggingHerokuResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHerokuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_honeycomb_additional.go b/fastly/model_logging_honeycomb_additional.go index 78fd619..ffb20ce 100644 --- a/fastly/model_logging_honeycomb_additional.go +++ b/fastly/model_logging_honeycomb_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingHoneycombAdditional struct { // The Honeycomb Dataset you want to log to. Dataset *string `json:"dataset,omitempty"` // The Write Key from the Account page of your Honeycomb account. - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o LoggingHoneycombAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHoneycombAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingHoneycombAdditional := _LoggingHoneycombAdditional{} @@ -185,7 +184,7 @@ func (o *LoggingHoneycombAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHoneycombAdditional is a helper abstraction for handling nullable logginghoneycombadditional types. +// NullableLoggingHoneycombAdditional is a helper abstraction for handling nullable logginghoneycombadditional types. type NullableLoggingHoneycombAdditional struct { value *LoggingHoneycombAdditional isSet bool @@ -225,7 +224,7 @@ func (v NullableLoggingHoneycombAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHoneycombAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_honeycomb_response.go b/fastly/model_logging_honeycomb_response.go index 67b39b2..1ff917d 100644 --- a/fastly/model_logging_honeycomb_response.go +++ b/fastly/model_logging_honeycomb_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingHoneycombResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The Honeycomb Dataset you want to log to. Dataset *string `json:"dataset,omitempty"` @@ -39,9 +38,9 @@ type LoggingHoneycombResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -113,7 +112,7 @@ func (o *LoggingHoneycombResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHoneycombResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -132,6 +131,7 @@ func (o *LoggingHoneycombResponse) HasPlacement() bool { func (o *LoggingHoneycombResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingHoneycombResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -155,7 +155,7 @@ func (o *LoggingHoneycombResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHoneycombResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -174,6 +174,7 @@ func (o *LoggingHoneycombResponse) HasResponseCondition() bool { func (o *LoggingHoneycombResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingHoneycombResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -325,7 +326,7 @@ func (o *LoggingHoneycombResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHoneycombResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -344,6 +345,7 @@ func (o *LoggingHoneycombResponse) HasCreatedAt() bool { func (o *LoggingHoneycombResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingHoneycombResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -367,7 +369,7 @@ func (o *LoggingHoneycombResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHoneycombResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -386,6 +388,7 @@ func (o *LoggingHoneycombResponse) HasDeletedAt() bool { func (o *LoggingHoneycombResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingHoneycombResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -409,7 +412,7 @@ func (o *LoggingHoneycombResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHoneycombResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -428,6 +431,7 @@ func (o *LoggingHoneycombResponse) HasUpdatedAt() bool { func (o *LoggingHoneycombResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingHoneycombResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -551,7 +555,7 @@ func (o LoggingHoneycombResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHoneycombResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingHoneycombResponse := _LoggingHoneycombResponse{} @@ -580,7 +584,7 @@ func (o *LoggingHoneycombResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHoneycombResponse is a helper abstraction for handling nullable logginghoneycombresponse types. +// NullableLoggingHoneycombResponse is a helper abstraction for handling nullable logginghoneycombresponse types. type NullableLoggingHoneycombResponse struct { value *LoggingHoneycombResponse isSet bool @@ -620,7 +624,7 @@ func (v NullableLoggingHoneycombResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHoneycombResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_https_additional.go b/fastly/model_logging_https_additional.go index de029ce..956817e 100644 --- a/fastly/model_logging_https_additional.go +++ b/fastly/model_logging_https_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type LoggingHTTPSAdditional struct { // Content type of the header sent with the request. ContentType NullableString `json:"content_type,omitempty"` // Name of the custom header sent with the request. - HeaderName NullableString `json:"header_name,omitempty"` + HeaderName NullableString `json:"header_name,omitempty"` MessageType *LoggingMessageType `json:"message_type,omitempty"` // Value of the custom header sent with the request. HeaderValue NullableString `json:"header_value,omitempty"` @@ -37,7 +36,7 @@ type LoggingHTTPSAdditional struct { // Enforces valid JSON formatting for log entries. JSONFormat *string `json:"json_format,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - Format *string `json:"format,omitempty"` + Format *string `json:"format,omitempty"` AdditionalProperties map[string]any } @@ -201,7 +200,7 @@ func (o *LoggingHTTPSAdditional) GetContentType() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSAdditional) GetContentTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentType.Get(), o.ContentType.IsSet() @@ -220,6 +219,7 @@ func (o *LoggingHTTPSAdditional) HasContentType() bool { func (o *LoggingHTTPSAdditional) SetContentType(v string) { o.ContentType.Set(&v) } + // SetContentTypeNil sets the value for ContentType to be an explicit nil func (o *LoggingHTTPSAdditional) SetContentTypeNil() { o.ContentType.Set(nil) @@ -243,7 +243,7 @@ func (o *LoggingHTTPSAdditional) GetHeaderName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSAdditional) GetHeaderNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HeaderName.Get(), o.HeaderName.IsSet() @@ -262,6 +262,7 @@ func (o *LoggingHTTPSAdditional) HasHeaderName() bool { func (o *LoggingHTTPSAdditional) SetHeaderName(v string) { o.HeaderName.Set(&v) } + // SetHeaderNameNil sets the value for HeaderName to be an explicit nil func (o *LoggingHTTPSAdditional) SetHeaderNameNil() { o.HeaderName.Set(nil) @@ -317,7 +318,7 @@ func (o *LoggingHTTPSAdditional) GetHeaderValue() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSAdditional) GetHeaderValueOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HeaderValue.Get(), o.HeaderValue.IsSet() @@ -336,6 +337,7 @@ func (o *LoggingHTTPSAdditional) HasHeaderValue() bool { func (o *LoggingHTTPSAdditional) SetHeaderValue(v string) { o.HeaderValue.Set(&v) } + // SetHeaderValueNil sets the value for HeaderValue to be an explicit nil func (o *LoggingHTTPSAdditional) SetHeaderValueNil() { o.HeaderValue.Set(nil) @@ -485,7 +487,7 @@ func (o LoggingHTTPSAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHTTPSAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingHTTPSAdditional := _LoggingHTTPSAdditional{} @@ -512,7 +514,7 @@ func (o *LoggingHTTPSAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHTTPSAdditional is a helper abstraction for handling nullable logginghttpsadditional types. +// NullableLoggingHTTPSAdditional is a helper abstraction for handling nullable logginghttpsadditional types. type NullableLoggingHTTPSAdditional struct { value *LoggingHTTPSAdditional isSet bool @@ -552,7 +554,7 @@ func (v NullableLoggingHTTPSAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHTTPSAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_https_response.go b/fastly/model_logging_https_response.go index 9a31453..04f2eea 100644 --- a/fastly/model_logging_https_response.go +++ b/fastly/model_logging_https_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingHTTPSResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -47,7 +46,7 @@ type LoggingHTTPSResponse struct { // Content type of the header sent with the request. ContentType NullableString `json:"content_type,omitempty"` // Name of the custom header sent with the request. - HeaderName NullableString `json:"header_name,omitempty"` + HeaderName NullableString `json:"header_name,omitempty"` MessageType *LoggingMessageType `json:"message_type,omitempty"` // Value of the custom header sent with the request. HeaderValue NullableString `json:"header_value,omitempty"` @@ -60,9 +59,9 @@ type LoggingHTTPSResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -182,7 +181,7 @@ func (o *LoggingHTTPSResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -201,6 +200,7 @@ func (o *LoggingHTTPSResponse) HasPlacement() bool { func (o *LoggingHTTPSResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingHTTPSResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -224,7 +224,7 @@ func (o *LoggingHTTPSResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -243,6 +243,7 @@ func (o *LoggingHTTPSResponse) HasResponseCondition() bool { func (o *LoggingHTTPSResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingHTTPSResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -330,7 +331,7 @@ func (o *LoggingHTTPSResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -349,6 +350,7 @@ func (o *LoggingHTTPSResponse) HasTLSCaCert() bool { func (o *LoggingHTTPSResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingHTTPSResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -372,7 +374,7 @@ func (o *LoggingHTTPSResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -391,6 +393,7 @@ func (o *LoggingHTTPSResponse) HasTLSClientCert() bool { func (o *LoggingHTTPSResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingHTTPSResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -414,7 +417,7 @@ func (o *LoggingHTTPSResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -433,6 +436,7 @@ func (o *LoggingHTTPSResponse) HasTLSClientKey() bool { func (o *LoggingHTTPSResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingHTTPSResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -456,7 +460,7 @@ func (o *LoggingHTTPSResponse) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -475,6 +479,7 @@ func (o *LoggingHTTPSResponse) HasTLSHostname() bool { func (o *LoggingHTTPSResponse) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingHTTPSResponse) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -594,7 +599,7 @@ func (o *LoggingHTTPSResponse) GetContentType() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetContentTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentType.Get(), o.ContentType.IsSet() @@ -613,6 +618,7 @@ func (o *LoggingHTTPSResponse) HasContentType() bool { func (o *LoggingHTTPSResponse) SetContentType(v string) { o.ContentType.Set(&v) } + // SetContentTypeNil sets the value for ContentType to be an explicit nil func (o *LoggingHTTPSResponse) SetContentTypeNil() { o.ContentType.Set(nil) @@ -636,7 +642,7 @@ func (o *LoggingHTTPSResponse) GetHeaderName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetHeaderNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HeaderName.Get(), o.HeaderName.IsSet() @@ -655,6 +661,7 @@ func (o *LoggingHTTPSResponse) HasHeaderName() bool { func (o *LoggingHTTPSResponse) SetHeaderName(v string) { o.HeaderName.Set(&v) } + // SetHeaderNameNil sets the value for HeaderName to be an explicit nil func (o *LoggingHTTPSResponse) SetHeaderNameNil() { o.HeaderName.Set(nil) @@ -710,7 +717,7 @@ func (o *LoggingHTTPSResponse) GetHeaderValue() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetHeaderValueOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HeaderValue.Get(), o.HeaderValue.IsSet() @@ -729,6 +736,7 @@ func (o *LoggingHTTPSResponse) HasHeaderValue() bool { func (o *LoggingHTTPSResponse) SetHeaderValue(v string) { o.HeaderValue.Set(&v) } + // SetHeaderValueNil sets the value for HeaderValue to be an explicit nil func (o *LoggingHTTPSResponse) SetHeaderValueNil() { o.HeaderValue.Set(nil) @@ -816,7 +824,7 @@ func (o *LoggingHTTPSResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -835,6 +843,7 @@ func (o *LoggingHTTPSResponse) HasCreatedAt() bool { func (o *LoggingHTTPSResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingHTTPSResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -858,7 +867,7 @@ func (o *LoggingHTTPSResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -877,6 +886,7 @@ func (o *LoggingHTTPSResponse) HasDeletedAt() bool { func (o *LoggingHTTPSResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingHTTPSResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -900,7 +910,7 @@ func (o *LoggingHTTPSResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingHTTPSResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -919,6 +929,7 @@ func (o *LoggingHTTPSResponse) HasUpdatedAt() bool { func (o *LoggingHTTPSResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingHTTPSResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -1075,7 +1086,7 @@ func (o LoggingHTTPSResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingHTTPSResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingHTTPSResponse := _LoggingHTTPSResponse{} @@ -1115,7 +1126,7 @@ func (o *LoggingHTTPSResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingHTTPSResponse is a helper abstraction for handling nullable logginghttpsresponse types. +// NullableLoggingHTTPSResponse is a helper abstraction for handling nullable logginghttpsresponse types. type NullableLoggingHTTPSResponse struct { value *LoggingHTTPSResponse isSet bool @@ -1155,7 +1166,7 @@ func (v NullableLoggingHTTPSResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingHTTPSResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_kafka_additional.go b/fastly/model_logging_kafka_additional.go index a220ec5..d66d327 100644 --- a/fastly/model_logging_kafka_additional.go +++ b/fastly/model_logging_kafka_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -36,8 +35,8 @@ type LoggingKafkaAdditional struct { // SASL user. User *string `json:"user,omitempty"` // SASL password. - Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` + Password *string `json:"password,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -149,7 +148,7 @@ func (o *LoggingKafkaAdditional) GetCompressionCodec() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaAdditional) GetCompressionCodecOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CompressionCodec.Get(), o.CompressionCodec.IsSet() @@ -168,6 +167,7 @@ func (o *LoggingKafkaAdditional) HasCompressionCodec() bool { func (o *LoggingKafkaAdditional) SetCompressionCodec(v string) { o.CompressionCodec.Set(&v) } + // SetCompressionCodecNil sets the value for CompressionCodec to be an explicit nil func (o *LoggingKafkaAdditional) SetCompressionCodecNil() { o.CompressionCodec.Set(nil) @@ -445,7 +445,7 @@ func (o LoggingKafkaAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingKafkaAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingKafkaAdditional := _LoggingKafkaAdditional{} @@ -472,7 +472,7 @@ func (o *LoggingKafkaAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingKafkaAdditional is a helper abstraction for handling nullable loggingkafkaadditional types. +// NullableLoggingKafkaAdditional is a helper abstraction for handling nullable loggingkafkaadditional types. type NullableLoggingKafkaAdditional struct { value *LoggingKafkaAdditional isSet bool @@ -512,7 +512,7 @@ func (v NullableLoggingKafkaAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingKafkaAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_kafka_response.go b/fastly/model_logging_kafka_response.go index a30c09c..f3a1b98 100644 --- a/fastly/model_logging_kafka_response.go +++ b/fastly/model_logging_kafka_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingKafkaResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -44,8 +43,8 @@ type LoggingKafkaResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The Kafka topic to send logs to. Required. Topic *string `json:"topic,omitempty"` // A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. @@ -63,8 +62,8 @@ type LoggingKafkaResponse struct { // SASL user. User *string `json:"user,omitempty"` // SASL password. - Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` + Password *string `json:"password,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -168,7 +167,7 @@ func (o *LoggingKafkaResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -187,6 +186,7 @@ func (o *LoggingKafkaResponse) HasPlacement() bool { func (o *LoggingKafkaResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingKafkaResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -210,7 +210,7 @@ func (o *LoggingKafkaResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -229,6 +229,7 @@ func (o *LoggingKafkaResponse) HasResponseCondition() bool { func (o *LoggingKafkaResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingKafkaResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -316,7 +317,7 @@ func (o *LoggingKafkaResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -335,6 +336,7 @@ func (o *LoggingKafkaResponse) HasTLSCaCert() bool { func (o *LoggingKafkaResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingKafkaResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -358,7 +360,7 @@ func (o *LoggingKafkaResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -377,6 +379,7 @@ func (o *LoggingKafkaResponse) HasTLSClientCert() bool { func (o *LoggingKafkaResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingKafkaResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -400,7 +403,7 @@ func (o *LoggingKafkaResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -419,6 +422,7 @@ func (o *LoggingKafkaResponse) HasTLSClientKey() bool { func (o *LoggingKafkaResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingKafkaResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -442,7 +446,7 @@ func (o *LoggingKafkaResponse) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -461,6 +465,7 @@ func (o *LoggingKafkaResponse) HasTLSHostname() bool { func (o *LoggingKafkaResponse) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingKafkaResponse) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -484,7 +489,7 @@ func (o *LoggingKafkaResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -503,6 +508,7 @@ func (o *LoggingKafkaResponse) HasCreatedAt() bool { func (o *LoggingKafkaResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingKafkaResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -526,7 +532,7 @@ func (o *LoggingKafkaResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -545,6 +551,7 @@ func (o *LoggingKafkaResponse) HasDeletedAt() bool { func (o *LoggingKafkaResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingKafkaResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -568,7 +575,7 @@ func (o *LoggingKafkaResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -587,6 +594,7 @@ func (o *LoggingKafkaResponse) HasUpdatedAt() bool { func (o *LoggingKafkaResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingKafkaResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -738,7 +746,7 @@ func (o *LoggingKafkaResponse) GetCompressionCodec() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponse) GetCompressionCodecOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CompressionCodec.Get(), o.CompressionCodec.IsSet() @@ -757,6 +765,7 @@ func (o *LoggingKafkaResponse) HasCompressionCodec() bool { func (o *LoggingKafkaResponse) SetCompressionCodec(v string) { o.CompressionCodec.Set(&v) } + // SetCompressionCodecNil sets the value for CompressionCodec to be an explicit nil func (o *LoggingKafkaResponse) SetCompressionCodecNil() { o.CompressionCodec.Set(nil) @@ -1076,7 +1085,7 @@ func (o LoggingKafkaResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingKafkaResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingKafkaResponse := _LoggingKafkaResponse{} @@ -1117,7 +1126,7 @@ func (o *LoggingKafkaResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingKafkaResponse is a helper abstraction for handling nullable loggingkafkaresponse types. +// NullableLoggingKafkaResponse is a helper abstraction for handling nullable loggingkafkaresponse types. type NullableLoggingKafkaResponse struct { value *LoggingKafkaResponse isSet bool @@ -1157,7 +1166,7 @@ func (v NullableLoggingKafkaResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingKafkaResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_kafka_response_post.go b/fastly/model_logging_kafka_response_post.go index 5f75bf0..c7cdec7 100644 --- a/fastly/model_logging_kafka_response_post.go +++ b/fastly/model_logging_kafka_response_post.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingKafkaResponsePost struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *int32 `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -44,8 +43,8 @@ type LoggingKafkaResponsePost struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The Kafka topic to send logs to. Required. Topic *string `json:"topic,omitempty"` // A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. @@ -63,8 +62,8 @@ type LoggingKafkaResponsePost struct { // SASL user. User *string `json:"user,omitempty"` // SASL password. - Password *string `json:"password,omitempty"` - UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` + Password *string `json:"password,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -168,7 +167,7 @@ func (o *LoggingKafkaResponsePost) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -187,6 +186,7 @@ func (o *LoggingKafkaResponsePost) HasPlacement() bool { func (o *LoggingKafkaResponsePost) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingKafkaResponsePost) SetPlacementNil() { o.Placement.Set(nil) @@ -210,7 +210,7 @@ func (o *LoggingKafkaResponsePost) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -229,6 +229,7 @@ func (o *LoggingKafkaResponsePost) HasResponseCondition() bool { func (o *LoggingKafkaResponsePost) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingKafkaResponsePost) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -316,7 +317,7 @@ func (o *LoggingKafkaResponsePost) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -335,6 +336,7 @@ func (o *LoggingKafkaResponsePost) HasTLSCaCert() bool { func (o *LoggingKafkaResponsePost) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingKafkaResponsePost) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -358,7 +360,7 @@ func (o *LoggingKafkaResponsePost) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -377,6 +379,7 @@ func (o *LoggingKafkaResponsePost) HasTLSClientCert() bool { func (o *LoggingKafkaResponsePost) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingKafkaResponsePost) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -400,7 +403,7 @@ func (o *LoggingKafkaResponsePost) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -419,6 +422,7 @@ func (o *LoggingKafkaResponsePost) HasTLSClientKey() bool { func (o *LoggingKafkaResponsePost) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingKafkaResponsePost) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -442,7 +446,7 @@ func (o *LoggingKafkaResponsePost) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -461,6 +465,7 @@ func (o *LoggingKafkaResponsePost) HasTLSHostname() bool { func (o *LoggingKafkaResponsePost) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingKafkaResponsePost) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -484,7 +489,7 @@ func (o *LoggingKafkaResponsePost) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -503,6 +508,7 @@ func (o *LoggingKafkaResponsePost) HasCreatedAt() bool { func (o *LoggingKafkaResponsePost) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingKafkaResponsePost) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -526,7 +532,7 @@ func (o *LoggingKafkaResponsePost) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -545,6 +551,7 @@ func (o *LoggingKafkaResponsePost) HasDeletedAt() bool { func (o *LoggingKafkaResponsePost) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingKafkaResponsePost) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -568,7 +575,7 @@ func (o *LoggingKafkaResponsePost) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -587,6 +594,7 @@ func (o *LoggingKafkaResponsePost) HasUpdatedAt() bool { func (o *LoggingKafkaResponsePost) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingKafkaResponsePost) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -738,7 +746,7 @@ func (o *LoggingKafkaResponsePost) GetCompressionCodec() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKafkaResponsePost) GetCompressionCodecOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CompressionCodec.Get(), o.CompressionCodec.IsSet() @@ -757,6 +765,7 @@ func (o *LoggingKafkaResponsePost) HasCompressionCodec() bool { func (o *LoggingKafkaResponsePost) SetCompressionCodec(v string) { o.CompressionCodec.Set(&v) } + // SetCompressionCodecNil sets the value for CompressionCodec to be an explicit nil func (o *LoggingKafkaResponsePost) SetCompressionCodecNil() { o.CompressionCodec.Set(nil) @@ -1076,7 +1085,7 @@ func (o LoggingKafkaResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingKafkaResponsePost) UnmarshalJSON(bytes []byte) (err error) { varLoggingKafkaResponsePost := _LoggingKafkaResponsePost{} @@ -1117,7 +1126,7 @@ func (o *LoggingKafkaResponsePost) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingKafkaResponsePost is a helper abstraction for handling nullable loggingkafkaresponsepost types. +// NullableLoggingKafkaResponsePost is a helper abstraction for handling nullable loggingkafkaresponsepost types. type NullableLoggingKafkaResponsePost struct { value *LoggingKafkaResponsePost isSet bool @@ -1157,7 +1166,7 @@ func (v NullableLoggingKafkaResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingKafkaResponsePost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_kinesis_additional.go b/fastly/model_logging_kinesis_additional.go index 72a145d..81f700b 100644 --- a/fastly/model_logging_kinesis_additional.go +++ b/fastly/model_logging_kinesis_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,19 +19,19 @@ import ( // LoggingKinesisAdditional struct for LoggingKinesisAdditional type LoggingKinesisAdditional struct { // The name for the real-time logging configuration. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Placement NullableLoggingPlacement `json:"placement,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` // The Amazon Kinesis stream to send logs to. Required. - Topic *string `json:"topic,omitempty"` + Topic *string `json:"topic,omitempty"` Region *AwsRegion `json:"region,omitempty"` // The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. SecretKey NullableString `json:"secret_key,omitempty"` // The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. AccessKey NullableString `json:"access_key,omitempty"` // The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. - IamRole NullableString `json:"iam_role,omitempty"` + IamRole NullableString `json:"iam_role,omitempty"` AdditionalProperties map[string]any } @@ -104,7 +103,7 @@ func (o *LoggingKinesisAdditional) GetPlacement() LoggingPlacement { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisAdditional) GetPlacementOk() (*LoggingPlacement, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -123,6 +122,7 @@ func (o *LoggingKinesisAdditional) HasPlacement() bool { func (o *LoggingKinesisAdditional) SetPlacement(v LoggingPlacement) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingKinesisAdditional) SetPlacementNil() { o.Placement.Set(nil) @@ -242,7 +242,7 @@ func (o *LoggingKinesisAdditional) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisAdditional) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -261,6 +261,7 @@ func (o *LoggingKinesisAdditional) HasSecretKey() bool { func (o *LoggingKinesisAdditional) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingKinesisAdditional) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -284,7 +285,7 @@ func (o *LoggingKinesisAdditional) GetAccessKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisAdditional) GetAccessKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AccessKey.Get(), o.AccessKey.IsSet() @@ -303,6 +304,7 @@ func (o *LoggingKinesisAdditional) HasAccessKey() bool { func (o *LoggingKinesisAdditional) SetAccessKey(v string) { o.AccessKey.Set(&v) } + // SetAccessKeyNil sets the value for AccessKey to be an explicit nil func (o *LoggingKinesisAdditional) SetAccessKeyNil() { o.AccessKey.Set(nil) @@ -326,7 +328,7 @@ func (o *LoggingKinesisAdditional) GetIamRole() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisAdditional) GetIamRoleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.IamRole.Get(), o.IamRole.IsSet() @@ -345,6 +347,7 @@ func (o *LoggingKinesisAdditional) HasIamRole() bool { func (o *LoggingKinesisAdditional) SetIamRole(v string) { o.IamRole.Set(&v) } + // SetIamRoleNil sets the value for IamRole to be an explicit nil func (o *LoggingKinesisAdditional) SetIamRoleNil() { o.IamRole.Set(nil) @@ -392,7 +395,7 @@ func (o LoggingKinesisAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingKinesisAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingKinesisAdditional := _LoggingKinesisAdditional{} @@ -417,7 +420,7 @@ func (o *LoggingKinesisAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingKinesisAdditional is a helper abstraction for handling nullable loggingkinesisadditional types. +// NullableLoggingKinesisAdditional is a helper abstraction for handling nullable loggingkinesisadditional types. type NullableLoggingKinesisAdditional struct { value *LoggingKinesisAdditional isSet bool @@ -457,7 +460,7 @@ func (v NullableLoggingKinesisAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingKinesisAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_kinesis_response.go b/fastly/model_logging_kinesis_response.go index cdff4d4..999c0eb 100644 --- a/fastly/model_logging_kinesis_response.go +++ b/fastly/model_logging_kinesis_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -21,12 +20,12 @@ import ( // LoggingKinesisResponse struct for LoggingKinesisResponse type LoggingKinesisResponse struct { // The name for the real-time logging configuration. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Placement NullableLoggingPlacement `json:"placement,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` // The Amazon Kinesis stream to send logs to. Required. - Topic *string `json:"topic,omitempty"` + Topic *string `json:"topic,omitempty"` Region *AwsRegion `json:"region,omitempty"` // The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. SecretKey NullableString `json:"secret_key,omitempty"` @@ -34,16 +33,16 @@ type LoggingKinesisResponse struct { AccessKey NullableString `json:"access_key,omitempty"` // The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. IamRole NullableString `json:"iam_role,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -119,7 +118,7 @@ func (o *LoggingKinesisResponse) GetPlacement() LoggingPlacement { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetPlacementOk() (*LoggingPlacement, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -138,6 +137,7 @@ func (o *LoggingKinesisResponse) HasPlacement() bool { func (o *LoggingKinesisResponse) SetPlacement(v LoggingPlacement) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingKinesisResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -257,7 +257,7 @@ func (o *LoggingKinesisResponse) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -276,6 +276,7 @@ func (o *LoggingKinesisResponse) HasSecretKey() bool { func (o *LoggingKinesisResponse) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingKinesisResponse) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -299,7 +300,7 @@ func (o *LoggingKinesisResponse) GetAccessKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetAccessKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AccessKey.Get(), o.AccessKey.IsSet() @@ -318,6 +319,7 @@ func (o *LoggingKinesisResponse) HasAccessKey() bool { func (o *LoggingKinesisResponse) SetAccessKey(v string) { o.AccessKey.Set(&v) } + // SetAccessKeyNil sets the value for AccessKey to be an explicit nil func (o *LoggingKinesisResponse) SetAccessKeyNil() { o.AccessKey.Set(nil) @@ -341,7 +343,7 @@ func (o *LoggingKinesisResponse) GetIamRole() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetIamRoleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.IamRole.Get(), o.IamRole.IsSet() @@ -360,6 +362,7 @@ func (o *LoggingKinesisResponse) HasIamRole() bool { func (o *LoggingKinesisResponse) SetIamRole(v string) { o.IamRole.Set(&v) } + // SetIamRoleNil sets the value for IamRole to be an explicit nil func (o *LoggingKinesisResponse) SetIamRoleNil() { o.IamRole.Set(nil) @@ -415,7 +418,7 @@ func (o *LoggingKinesisResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -434,6 +437,7 @@ func (o *LoggingKinesisResponse) HasCreatedAt() bool { func (o *LoggingKinesisResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingKinesisResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -457,7 +461,7 @@ func (o *LoggingKinesisResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -476,6 +480,7 @@ func (o *LoggingKinesisResponse) HasDeletedAt() bool { func (o *LoggingKinesisResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingKinesisResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -499,7 +504,7 @@ func (o *LoggingKinesisResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingKinesisResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -518,6 +523,7 @@ func (o *LoggingKinesisResponse) HasUpdatedAt() bool { func (o *LoggingKinesisResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingKinesisResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -647,7 +653,7 @@ func (o LoggingKinesisResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingKinesisResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingKinesisResponse := _LoggingKinesisResponse{} @@ -678,7 +684,7 @@ func (o *LoggingKinesisResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingKinesisResponse is a helper abstraction for handling nullable loggingkinesisresponse types. +// NullableLoggingKinesisResponse is a helper abstraction for handling nullable loggingkinesisresponse types. type NullableLoggingKinesisResponse struct { value *LoggingKinesisResponse isSet bool @@ -718,7 +724,7 @@ func (v NullableLoggingKinesisResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingKinesisResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_logentries_additional.go b/fastly/model_logging_logentries_additional.go index be467c8..48b1cd9 100644 --- a/fastly/model_logging_logentries_additional.go +++ b/fastly/model_logging_logentries_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,10 +21,10 @@ type LoggingLogentriesAdditional struct { // The port number. Port *int32 `json:"port,omitempty"` // Use token based authentication. - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // The region to which to stream logs. - Region *string `json:"region,omitempty"` + Region *string `json:"region,omitempty"` AdditionalProperties map[string]any } @@ -209,7 +208,7 @@ func (o LoggingLogentriesAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogentriesAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogentriesAdditional := _LoggingLogentriesAdditional{} @@ -230,7 +229,7 @@ func (o *LoggingLogentriesAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogentriesAdditional is a helper abstraction for handling nullable logginglogentriesadditional types. +// NullableLoggingLogentriesAdditional is a helper abstraction for handling nullable logginglogentriesadditional types. type NullableLoggingLogentriesAdditional struct { value *LoggingLogentriesAdditional isSet bool @@ -270,7 +269,7 @@ func (v NullableLoggingLogentriesAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogentriesAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_logentries_response.go b/fastly/model_logging_logentries_response.go index a95fcef..0385b45 100644 --- a/fastly/model_logging_logentries_response.go +++ b/fastly/model_logging_logentries_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,18 +21,18 @@ import ( type LoggingLogentriesResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The port number. Port *int32 `json:"port,omitempty"` // Use token based authentication. - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // The region to which to stream logs. Region *string `json:"region,omitempty"` @@ -42,9 +41,9 @@ type LoggingLogentriesResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o *LoggingLogentriesResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogentriesResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -147,6 +146,7 @@ func (o *LoggingLogentriesResponse) HasPlacement() bool { func (o *LoggingLogentriesResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingLogentriesResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -170,7 +170,7 @@ func (o *LoggingLogentriesResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogentriesResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -189,6 +189,7 @@ func (o *LoggingLogentriesResponse) HasResponseCondition() bool { func (o *LoggingLogentriesResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingLogentriesResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -404,7 +405,7 @@ func (o *LoggingLogentriesResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogentriesResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -423,6 +424,7 @@ func (o *LoggingLogentriesResponse) HasCreatedAt() bool { func (o *LoggingLogentriesResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingLogentriesResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -446,7 +448,7 @@ func (o *LoggingLogentriesResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogentriesResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -465,6 +467,7 @@ func (o *LoggingLogentriesResponse) HasDeletedAt() bool { func (o *LoggingLogentriesResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingLogentriesResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -488,7 +491,7 @@ func (o *LoggingLogentriesResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogentriesResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -507,6 +510,7 @@ func (o *LoggingLogentriesResponse) HasUpdatedAt() bool { func (o *LoggingLogentriesResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingLogentriesResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -636,7 +640,7 @@ func (o LoggingLogentriesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogentriesResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogentriesResponse := _LoggingLogentriesResponse{} @@ -667,7 +671,7 @@ func (o *LoggingLogentriesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogentriesResponse is a helper abstraction for handling nullable logginglogentriesresponse types. +// NullableLoggingLogentriesResponse is a helper abstraction for handling nullable logginglogentriesresponse types. type NullableLoggingLogentriesResponse struct { value *LoggingLogentriesResponse isSet bool @@ -707,7 +711,7 @@ func (v NullableLoggingLogentriesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogentriesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_loggly_additional.go b/fastly/model_logging_loggly_additional.go index b6d4453..4f88b2a 100644 --- a/fastly/model_logging_loggly_additional.go +++ b/fastly/model_logging_loggly_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // LoggingLogglyAdditional struct for LoggingLogglyAdditional type LoggingLogglyAdditional struct { // The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o LoggingLogglyAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogglyAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogglyAdditional := _LoggingLogglyAdditional{} @@ -109,7 +108,7 @@ func (o *LoggingLogglyAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogglyAdditional is a helper abstraction for handling nullable logginglogglyadditional types. +// NullableLoggingLogglyAdditional is a helper abstraction for handling nullable logginglogglyadditional types. type NullableLoggingLogglyAdditional struct { value *LoggingLogglyAdditional isSet bool @@ -149,7 +148,7 @@ func (v NullableLoggingLogglyAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogglyAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_loggly_response.go b/fastly/model_logging_loggly_response.go index b3dcc68..09fc2a9 100644 --- a/fastly/model_logging_loggly_response.go +++ b/fastly/model_logging_loggly_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingLogglyResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). Token *string `json:"token,omitempty"` @@ -37,9 +36,9 @@ type LoggingLogglyResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -115,7 +114,7 @@ func (o *LoggingLogglyResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogglyResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -134,6 +133,7 @@ func (o *LoggingLogglyResponse) HasPlacement() bool { func (o *LoggingLogglyResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingLogglyResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -157,7 +157,7 @@ func (o *LoggingLogglyResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogglyResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -176,6 +176,7 @@ func (o *LoggingLogglyResponse) HasResponseCondition() bool { func (o *LoggingLogglyResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingLogglyResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -295,7 +296,7 @@ func (o *LoggingLogglyResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogglyResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -314,6 +315,7 @@ func (o *LoggingLogglyResponse) HasCreatedAt() bool { func (o *LoggingLogglyResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingLogglyResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -337,7 +339,7 @@ func (o *LoggingLogglyResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogglyResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -356,6 +358,7 @@ func (o *LoggingLogglyResponse) HasDeletedAt() bool { func (o *LoggingLogglyResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingLogglyResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -379,7 +382,7 @@ func (o *LoggingLogglyResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogglyResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -398,6 +401,7 @@ func (o *LoggingLogglyResponse) HasUpdatedAt() bool { func (o *LoggingLogglyResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingLogglyResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -518,7 +522,7 @@ func (o LoggingLogglyResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogglyResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogglyResponse := _LoggingLogglyResponse{} @@ -546,7 +550,7 @@ func (o *LoggingLogglyResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogglyResponse is a helper abstraction for handling nullable logginglogglyresponse types. +// NullableLoggingLogglyResponse is a helper abstraction for handling nullable logginglogglyresponse types. type NullableLoggingLogglyResponse struct { value *LoggingLogglyResponse isSet bool @@ -586,7 +590,7 @@ func (v NullableLoggingLogglyResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogglyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_logshuttle_additional.go b/fastly/model_logging_logshuttle_additional.go index d17ae67..d7d97d7 100644 --- a/fastly/model_logging_logshuttle_additional.go +++ b/fastly/model_logging_logshuttle_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LoggingLogshuttleAdditional struct { // The data authentication token associated with this endpoint. Token NullableString `json:"token,omitempty"` // The URL to stream logs to. - URL *string `json:"url,omitempty"` + URL *string `json:"url,omitempty"` AdditionalProperties map[string]any } @@ -58,7 +57,7 @@ func (o *LoggingLogshuttleAdditional) GetToken() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleAdditional) GetTokenOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Token.Get(), o.Token.IsSet() @@ -77,6 +76,7 @@ func (o *LoggingLogshuttleAdditional) HasToken() bool { func (o *LoggingLogshuttleAdditional) SetToken(v string) { o.Token.Set(&v) } + // SetTokenNil sets the value for Token to be an explicit nil func (o *LoggingLogshuttleAdditional) SetTokenNil() { o.Token.Set(nil) @@ -138,7 +138,7 @@ func (o LoggingLogshuttleAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogshuttleAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogshuttleAdditional := _LoggingLogshuttleAdditional{} @@ -157,7 +157,7 @@ func (o *LoggingLogshuttleAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogshuttleAdditional is a helper abstraction for handling nullable logginglogshuttleadditional types. +// NullableLoggingLogshuttleAdditional is a helper abstraction for handling nullable logginglogshuttleadditional types. type NullableLoggingLogshuttleAdditional struct { value *LoggingLogshuttleAdditional isSet bool @@ -197,7 +197,7 @@ func (v NullableLoggingLogshuttleAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogshuttleAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_logshuttle_response.go b/fastly/model_logging_logshuttle_response.go index a5ea52d..247043f 100644 --- a/fastly/model_logging_logshuttle_response.go +++ b/fastly/model_logging_logshuttle_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingLogshuttleResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The data authentication token associated with this endpoint. Token NullableString `json:"token,omitempty"` @@ -39,9 +38,9 @@ type LoggingLogshuttleResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -117,7 +116,7 @@ func (o *LoggingLogshuttleResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -136,6 +135,7 @@ func (o *LoggingLogshuttleResponse) HasPlacement() bool { func (o *LoggingLogshuttleResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingLogshuttleResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -159,7 +159,7 @@ func (o *LoggingLogshuttleResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -178,6 +178,7 @@ func (o *LoggingLogshuttleResponse) HasResponseCondition() bool { func (o *LoggingLogshuttleResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingLogshuttleResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -265,7 +266,7 @@ func (o *LoggingLogshuttleResponse) GetToken() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetTokenOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Token.Get(), o.Token.IsSet() @@ -284,6 +285,7 @@ func (o *LoggingLogshuttleResponse) HasToken() bool { func (o *LoggingLogshuttleResponse) SetToken(v string) { o.Token.Set(&v) } + // SetTokenNil sets the value for Token to be an explicit nil func (o *LoggingLogshuttleResponse) SetTokenNil() { o.Token.Set(nil) @@ -339,7 +341,7 @@ func (o *LoggingLogshuttleResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -358,6 +360,7 @@ func (o *LoggingLogshuttleResponse) HasCreatedAt() bool { func (o *LoggingLogshuttleResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingLogshuttleResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -381,7 +384,7 @@ func (o *LoggingLogshuttleResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -400,6 +403,7 @@ func (o *LoggingLogshuttleResponse) HasDeletedAt() bool { func (o *LoggingLogshuttleResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingLogshuttleResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -423,7 +427,7 @@ func (o *LoggingLogshuttleResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingLogshuttleResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -442,6 +446,7 @@ func (o *LoggingLogshuttleResponse) HasUpdatedAt() bool { func (o *LoggingLogshuttleResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingLogshuttleResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -565,7 +570,7 @@ func (o LoggingLogshuttleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingLogshuttleResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingLogshuttleResponse := _LoggingLogshuttleResponse{} @@ -594,7 +599,7 @@ func (o *LoggingLogshuttleResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingLogshuttleResponse is a helper abstraction for handling nullable logginglogshuttleresponse types. +// NullableLoggingLogshuttleResponse is a helper abstraction for handling nullable logginglogshuttleresponse types. type NullableLoggingLogshuttleResponse struct { value *LoggingLogshuttleResponse isSet bool @@ -634,7 +639,7 @@ func (v NullableLoggingLogshuttleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingLogshuttleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_message_type.go b/fastly/model_logging_message_type.go index a636fa0..b8a5f07 100644 --- a/fastly/model_logging_message_type.go +++ b/fastly/model_logging_message_type.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -24,9 +23,9 @@ type LoggingMessageType string // List of logging_message_type const ( LOGGINGMESSAGETYPE_CLASSIC LoggingMessageType = "classic" - LOGGINGMESSAGETYPE_LOGGLY LoggingMessageType = "loggly" + LOGGINGMESSAGETYPE_LOGGLY LoggingMessageType = "loggly" LOGGINGMESSAGETYPE_LOGPLEX LoggingMessageType = "logplex" - LOGGINGMESSAGETYPE_BLANK LoggingMessageType = "blank" + LOGGINGMESSAGETYPE_BLANK LoggingMessageType = "blank" ) // AllowedLoggingMessageTypeEnumValues All allowed values of LoggingMessageType enum @@ -38,7 +37,7 @@ var AllowedLoggingMessageTypeEnumValues = []LoggingMessageType{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *LoggingMessageType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -63,7 +62,7 @@ func NewLoggingMessageTypeFromValue(v string) (*LoggingMessageType, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for LoggingMessageType: valid values are %v", v, AllowedLoggingMessageTypeEnumValues) + return nil, fmt.Errorf("invalid value '%v' for LoggingMessageType: valid values are %v", v, AllowedLoggingMessageTypeEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -81,7 +80,7 @@ func (v LoggingMessageType) Ptr() *LoggingMessageType { return &v } -// NullableLoggingMessageType is a helper abstraction for handling nullable loggingmessagetype types. +// NullableLoggingMessageType is a helper abstraction for handling nullable loggingmessagetype types. type NullableLoggingMessageType struct { value *LoggingMessageType isSet bool @@ -121,7 +120,7 @@ func (v NullableLoggingMessageType) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingMessageType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_newrelic_additional.go b/fastly/model_logging_newrelic_additional.go index ff06163..aa2ff26 100644 --- a/fastly/model_logging_newrelic_additional.go +++ b/fastly/model_logging_newrelic_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingNewrelicAdditional struct { // The Insert API key from the Account page of your New Relic account. Required. Token *string `json:"token,omitempty"` // The region to which to stream logs. - Region *string `json:"region,omitempty"` + Region *string `json:"region,omitempty"` AdditionalProperties map[string]any } @@ -173,7 +172,7 @@ func (o LoggingNewrelicAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingNewrelicAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingNewrelicAdditional := _LoggingNewrelicAdditional{} @@ -193,7 +192,7 @@ func (o *LoggingNewrelicAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingNewrelicAdditional is a helper abstraction for handling nullable loggingnewrelicadditional types. +// NullableLoggingNewrelicAdditional is a helper abstraction for handling nullable loggingnewrelicadditional types. type NullableLoggingNewrelicAdditional struct { value *LoggingNewrelicAdditional isSet bool @@ -233,7 +232,7 @@ func (v NullableLoggingNewrelicAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingNewrelicAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_newrelic_response.go b/fastly/model_logging_newrelic_response.go index 2f5a8cd..7b2e196 100644 --- a/fastly/model_logging_newrelic_response.go +++ b/fastly/model_logging_newrelic_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingNewrelicResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The Insert API key from the Account page of your New Relic account. Required. Token *string `json:"token,omitempty"` @@ -39,9 +38,9 @@ type LoggingNewrelicResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -121,7 +120,7 @@ func (o *LoggingNewrelicResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -140,6 +139,7 @@ func (o *LoggingNewrelicResponse) HasPlacement() bool { func (o *LoggingNewrelicResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingNewrelicResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -163,7 +163,7 @@ func (o *LoggingNewrelicResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -182,6 +182,7 @@ func (o *LoggingNewrelicResponse) HasResponseCondition() bool { func (o *LoggingNewrelicResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingNewrelicResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -333,7 +334,7 @@ func (o *LoggingNewrelicResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -352,6 +353,7 @@ func (o *LoggingNewrelicResponse) HasCreatedAt() bool { func (o *LoggingNewrelicResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingNewrelicResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -375,7 +377,7 @@ func (o *LoggingNewrelicResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -394,6 +396,7 @@ func (o *LoggingNewrelicResponse) HasDeletedAt() bool { func (o *LoggingNewrelicResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingNewrelicResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -417,7 +420,7 @@ func (o *LoggingNewrelicResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -436,6 +439,7 @@ func (o *LoggingNewrelicResponse) HasUpdatedAt() bool { func (o *LoggingNewrelicResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingNewrelicResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -559,7 +563,7 @@ func (o LoggingNewrelicResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingNewrelicResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingNewrelicResponse := _LoggingNewrelicResponse{} @@ -588,7 +592,7 @@ func (o *LoggingNewrelicResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingNewrelicResponse is a helper abstraction for handling nullable loggingnewrelicresponse types. +// NullableLoggingNewrelicResponse is a helper abstraction for handling nullable loggingnewrelicresponse types. type NullableLoggingNewrelicResponse struct { value *LoggingNewrelicResponse isSet bool @@ -628,7 +632,7 @@ func (v NullableLoggingNewrelicResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingNewrelicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_newrelicotlp_additional.go b/fastly/model_logging_newrelicotlp_additional.go index 6c2eeb7..3213788 100644 --- a/fastly/model_logging_newrelicotlp_additional.go +++ b/fastly/model_logging_newrelicotlp_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type LoggingNewrelicotlpAdditional struct { // The region to which to stream logs. Region *string `json:"region,omitempty"` // (Optional) URL of the New Relic Trace Observer, if you are using New Relic Infinite Tracing. - URL NullableString `json:"url,omitempty"` + URL NullableString `json:"url,omitempty"` AdditionalProperties map[string]any } @@ -170,7 +169,7 @@ func (o *LoggingNewrelicotlpAdditional) GetURL() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpAdditional) GetURLOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.URL.Get(), o.URL.IsSet() @@ -189,6 +188,7 @@ func (o *LoggingNewrelicotlpAdditional) HasURL() bool { func (o *LoggingNewrelicotlpAdditional) SetURL(v string) { o.URL.Set(&v) } + // SetURLNil sets the value for URL to be an explicit nil func (o *LoggingNewrelicotlpAdditional) SetURLNil() { o.URL.Set(nil) @@ -224,7 +224,7 @@ func (o LoggingNewrelicotlpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingNewrelicotlpAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingNewrelicotlpAdditional := _LoggingNewrelicotlpAdditional{} @@ -245,7 +245,7 @@ func (o *LoggingNewrelicotlpAdditional) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableLoggingNewrelicotlpAdditional is a helper abstraction for handling nullable loggingnewrelicotlpadditional types. +// NullableLoggingNewrelicotlpAdditional is a helper abstraction for handling nullable loggingnewrelicotlpadditional types. type NullableLoggingNewrelicotlpAdditional struct { value *LoggingNewrelicotlpAdditional isSet bool @@ -285,7 +285,7 @@ func (v NullableLoggingNewrelicotlpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingNewrelicotlpAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_newrelicotlp_response.go b/fastly/model_logging_newrelicotlp_response.go index 225e15c..1136f81 100644 --- a/fastly/model_logging_newrelicotlp_response.go +++ b/fastly/model_logging_newrelicotlp_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingNewrelicotlpResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The Insert API key from the Account page of your New Relic account. Required. Token *string `json:"token,omitempty"` @@ -41,9 +40,9 @@ type LoggingNewrelicotlpResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o *LoggingNewrelicotlpResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -146,6 +145,7 @@ func (o *LoggingNewrelicotlpResponse) HasPlacement() bool { func (o *LoggingNewrelicotlpResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -169,7 +169,7 @@ func (o *LoggingNewrelicotlpResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -188,6 +188,7 @@ func (o *LoggingNewrelicotlpResponse) HasResponseCondition() bool { func (o *LoggingNewrelicotlpResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -339,7 +340,7 @@ func (o *LoggingNewrelicotlpResponse) GetURL() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetURLOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.URL.Get(), o.URL.IsSet() @@ -358,6 +359,7 @@ func (o *LoggingNewrelicotlpResponse) HasURL() bool { func (o *LoggingNewrelicotlpResponse) SetURL(v string) { o.URL.Set(&v) } + // SetURLNil sets the value for URL to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetURLNil() { o.URL.Set(nil) @@ -381,7 +383,7 @@ func (o *LoggingNewrelicotlpResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -400,6 +402,7 @@ func (o *LoggingNewrelicotlpResponse) HasCreatedAt() bool { func (o *LoggingNewrelicotlpResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -423,7 +426,7 @@ func (o *LoggingNewrelicotlpResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -442,6 +445,7 @@ func (o *LoggingNewrelicotlpResponse) HasDeletedAt() bool { func (o *LoggingNewrelicotlpResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -465,7 +469,7 @@ func (o *LoggingNewrelicotlpResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingNewrelicotlpResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -484,6 +488,7 @@ func (o *LoggingNewrelicotlpResponse) HasUpdatedAt() bool { func (o *LoggingNewrelicotlpResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingNewrelicotlpResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -610,7 +615,7 @@ func (o LoggingNewrelicotlpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingNewrelicotlpResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingNewrelicotlpResponse := _LoggingNewrelicotlpResponse{} @@ -640,7 +645,7 @@ func (o *LoggingNewrelicotlpResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingNewrelicotlpResponse is a helper abstraction for handling nullable loggingnewrelicotlpresponse types. +// NullableLoggingNewrelicotlpResponse is a helper abstraction for handling nullable loggingnewrelicotlpresponse types. type NullableLoggingNewrelicotlpResponse struct { value *LoggingNewrelicotlpResponse isSet bool @@ -680,7 +685,7 @@ func (v NullableLoggingNewrelicotlpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingNewrelicotlpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_openstack_additional.go b/fastly/model_logging_openstack_additional.go index 9a46306..b86844a 100644 --- a/fastly/model_logging_openstack_additional.go +++ b/fastly/model_logging_openstack_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingOpenstackAdditional struct { // Your OpenStack auth url. URL *string `json:"url,omitempty"` // The username for your OpenStack account. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -138,7 +137,7 @@ func (o *LoggingOpenstackAdditional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackAdditional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -157,6 +156,7 @@ func (o *LoggingOpenstackAdditional) HasPath() bool { func (o *LoggingOpenstackAdditional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingOpenstackAdditional) SetPathNil() { o.Path.Set(nil) @@ -180,7 +180,7 @@ func (o *LoggingOpenstackAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -199,6 +199,7 @@ func (o *LoggingOpenstackAdditional) HasPublicKey() bool { func (o *LoggingOpenstackAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingOpenstackAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -304,7 +305,7 @@ func (o LoggingOpenstackAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingOpenstackAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingOpenstackAdditional := _LoggingOpenstackAdditional{} @@ -327,7 +328,7 @@ func (o *LoggingOpenstackAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingOpenstackAdditional is a helper abstraction for handling nullable loggingopenstackadditional types. +// NullableLoggingOpenstackAdditional is a helper abstraction for handling nullable loggingopenstackadditional types. type NullableLoggingOpenstackAdditional struct { value *LoggingOpenstackAdditional isSet bool @@ -367,7 +368,7 @@ func (v NullableLoggingOpenstackAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingOpenstackAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_openstack_response.go b/fastly/model_logging_openstack_response.go index 003f958..61ae9cb 100644 --- a/fastly/model_logging_openstack_response.go +++ b/fastly/model_logging_openstack_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingOpenstackResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingOpenstackResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Your OpenStack account access key. AccessKey *string `json:"access_key,omitempty"` // The name of your OpenStack container. @@ -59,7 +58,7 @@ type LoggingOpenstackResponse struct { // Your OpenStack auth url. URL *string `json:"url,omitempty"` // The username for your OpenStack account. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -155,7 +154,7 @@ func (o *LoggingOpenstackResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -174,6 +173,7 @@ func (o *LoggingOpenstackResponse) HasPlacement() bool { func (o *LoggingOpenstackResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingOpenstackResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -197,7 +197,7 @@ func (o *LoggingOpenstackResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -216,6 +216,7 @@ func (o *LoggingOpenstackResponse) HasResponseCondition() bool { func (o *LoggingOpenstackResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingOpenstackResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -335,7 +336,7 @@ func (o *LoggingOpenstackResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -354,6 +355,7 @@ func (o *LoggingOpenstackResponse) HasTimestampFormat() bool { func (o *LoggingOpenstackResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingOpenstackResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -473,7 +475,7 @@ func (o *LoggingOpenstackResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -492,6 +494,7 @@ func (o *LoggingOpenstackResponse) HasCreatedAt() bool { func (o *LoggingOpenstackResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingOpenstackResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -515,7 +518,7 @@ func (o *LoggingOpenstackResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -534,6 +537,7 @@ func (o *LoggingOpenstackResponse) HasDeletedAt() bool { func (o *LoggingOpenstackResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingOpenstackResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -557,7 +561,7 @@ func (o *LoggingOpenstackResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -576,6 +580,7 @@ func (o *LoggingOpenstackResponse) HasUpdatedAt() bool { func (o *LoggingOpenstackResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingOpenstackResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -727,7 +732,7 @@ func (o *LoggingOpenstackResponse) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -746,6 +751,7 @@ func (o *LoggingOpenstackResponse) HasPath() bool { func (o *LoggingOpenstackResponse) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingOpenstackResponse) SetPathNil() { o.Path.Set(nil) @@ -769,7 +775,7 @@ func (o *LoggingOpenstackResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingOpenstackResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -788,6 +794,7 @@ func (o *LoggingOpenstackResponse) HasPublicKey() bool { func (o *LoggingOpenstackResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingOpenstackResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -938,7 +945,7 @@ func (o LoggingOpenstackResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingOpenstackResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingOpenstackResponse := _LoggingOpenstackResponse{} @@ -976,7 +983,7 @@ func (o *LoggingOpenstackResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingOpenstackResponse is a helper abstraction for handling nullable loggingopenstackresponse types. +// NullableLoggingOpenstackResponse is a helper abstraction for handling nullable loggingopenstackresponse types. type NullableLoggingOpenstackResponse struct { value *LoggingOpenstackResponse isSet bool @@ -1016,7 +1023,7 @@ func (v NullableLoggingOpenstackResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingOpenstackResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_papertrail_response.go b/fastly/model_logging_papertrail_response.go index bdb34f5..13f27a0 100644 --- a/fastly/model_logging_papertrail_response.go +++ b/fastly/model_logging_papertrail_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingPapertrailResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A hostname or IPv4 address. Address *string `json:"address,omitempty"` @@ -39,9 +38,9 @@ type LoggingPapertrailResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -121,7 +120,7 @@ func (o *LoggingPapertrailResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingPapertrailResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -140,6 +139,7 @@ func (o *LoggingPapertrailResponse) HasPlacement() bool { func (o *LoggingPapertrailResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingPapertrailResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -163,7 +163,7 @@ func (o *LoggingPapertrailResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingPapertrailResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -182,6 +182,7 @@ func (o *LoggingPapertrailResponse) HasResponseCondition() bool { func (o *LoggingPapertrailResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingPapertrailResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -333,7 +334,7 @@ func (o *LoggingPapertrailResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingPapertrailResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -352,6 +353,7 @@ func (o *LoggingPapertrailResponse) HasCreatedAt() bool { func (o *LoggingPapertrailResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingPapertrailResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -375,7 +377,7 @@ func (o *LoggingPapertrailResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingPapertrailResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -394,6 +396,7 @@ func (o *LoggingPapertrailResponse) HasDeletedAt() bool { func (o *LoggingPapertrailResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingPapertrailResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -417,7 +420,7 @@ func (o *LoggingPapertrailResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingPapertrailResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -436,6 +439,7 @@ func (o *LoggingPapertrailResponse) HasUpdatedAt() bool { func (o *LoggingPapertrailResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingPapertrailResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -559,7 +563,7 @@ func (o LoggingPapertrailResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingPapertrailResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingPapertrailResponse := _LoggingPapertrailResponse{} @@ -588,7 +592,7 @@ func (o *LoggingPapertrailResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingPapertrailResponse is a helper abstraction for handling nullable loggingpapertrailresponse types. +// NullableLoggingPapertrailResponse is a helper abstraction for handling nullable loggingpapertrailresponse types. type NullableLoggingPapertrailResponse struct { value *LoggingPapertrailResponse isSet bool @@ -628,7 +632,7 @@ func (v NullableLoggingPapertrailResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingPapertrailResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_placement.go b/fastly/model_logging_placement.go index 7ffac9b..2f69a68 100644 --- a/fastly/model_logging_placement.go +++ b/fastly/model_logging_placement.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,20 +12,19 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" ) -// LoggingPlacement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. +// LoggingPlacement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. type LoggingPlacement string // List of logging_placement const ( - LOGGINGPLACEMENT_NONE LoggingPlacement = "none" + LOGGINGPLACEMENT_NONE LoggingPlacement = "none" LOGGINGPLACEMENT_WAF_DEBUG LoggingPlacement = "waf_debug" - LOGGINGPLACEMENT_NULL LoggingPlacement = "null" + LOGGINGPLACEMENT_NULL LoggingPlacement = "null" ) // AllowedLoggingPlacementEnumValues All allowed values of LoggingPlacement enum @@ -36,7 +35,7 @@ var AllowedLoggingPlacementEnumValues = []LoggingPlacement{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *LoggingPlacement) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -61,7 +60,7 @@ func NewLoggingPlacementFromValue(v string) (*LoggingPlacement, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for LoggingPlacement: valid values are %v", v, AllowedLoggingPlacementEnumValues) + return nil, fmt.Errorf("invalid value '%v' for LoggingPlacement: valid values are %v", v, AllowedLoggingPlacementEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -79,7 +78,7 @@ func (v LoggingPlacement) Ptr() *LoggingPlacement { return &v } -// NullableLoggingPlacement is a helper abstraction for handling nullable loggingplacement types. +// NullableLoggingPlacement is a helper abstraction for handling nullable loggingplacement types. type NullableLoggingPlacement struct { value *LoggingPlacement isSet bool @@ -119,7 +118,7 @@ func (v NullableLoggingPlacement) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingPlacement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_request_caps_common.go b/fastly/model_logging_request_caps_common.go index 466ce7a..d1a6d65 100644 --- a/fastly/model_logging_request_caps_common.go +++ b/fastly/model_logging_request_caps_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type LoggingRequestCapsCommon struct { // The maximum number of logs sent in one request. Defaults `0` for unbounded. RequestMaxEntries *int32 `json:"request_max_entries,omitempty"` // The maximum number of bytes sent in one request. Defaults `0` for unbounded. - RequestMaxBytes *int32 `json:"request_max_bytes,omitempty"` + RequestMaxBytes *int32 `json:"request_max_bytes,omitempty"` AdditionalProperties map[string]any } @@ -136,7 +135,7 @@ func (o LoggingRequestCapsCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingRequestCapsCommon) UnmarshalJSON(bytes []byte) (err error) { varLoggingRequestCapsCommon := _LoggingRequestCapsCommon{} @@ -155,7 +154,7 @@ func (o *LoggingRequestCapsCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingRequestCapsCommon is a helper abstraction for handling nullable loggingrequestcapscommon types. +// NullableLoggingRequestCapsCommon is a helper abstraction for handling nullable loggingrequestcapscommon types. type NullableLoggingRequestCapsCommon struct { value *LoggingRequestCapsCommon isSet bool @@ -195,7 +194,7 @@ func (v NullableLoggingRequestCapsCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingRequestCapsCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_s3_additional.go b/fastly/model_logging_s3_additional.go index 0500b77..c10e096 100644 --- a/fastly/model_logging_s3_additional.go +++ b/fastly/model_logging_s3_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -42,7 +41,7 @@ type LoggingS3Additional struct { // Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. ServerSideEncryption NullableString `json:"server_side_encryption,omitempty"` // The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) - FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` + FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` AdditionalProperties map[string]any } @@ -98,7 +97,7 @@ func (o *LoggingS3Additional) GetAccessKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetAccessKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AccessKey.Get(), o.AccessKey.IsSet() @@ -117,6 +116,7 @@ func (o *LoggingS3Additional) HasAccessKey() bool { func (o *LoggingS3Additional) SetAccessKey(v string) { o.AccessKey.Set(&v) } + // SetAccessKeyNil sets the value for AccessKey to be an explicit nil func (o *LoggingS3Additional) SetAccessKeyNil() { o.AccessKey.Set(nil) @@ -236,7 +236,7 @@ func (o *LoggingS3Additional) GetIamRole() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetIamRoleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.IamRole.Get(), o.IamRole.IsSet() @@ -255,6 +255,7 @@ func (o *LoggingS3Additional) HasIamRole() bool { func (o *LoggingS3Additional) SetIamRole(v string) { o.IamRole.Set(&v) } + // SetIamRoleNil sets the value for IamRole to be an explicit nil func (o *LoggingS3Additional) SetIamRoleNil() { o.IamRole.Set(nil) @@ -278,7 +279,7 @@ func (o *LoggingS3Additional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -297,6 +298,7 @@ func (o *LoggingS3Additional) HasPath() bool { func (o *LoggingS3Additional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingS3Additional) SetPathNil() { o.Path.Set(nil) @@ -320,7 +322,7 @@ func (o *LoggingS3Additional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -339,6 +341,7 @@ func (o *LoggingS3Additional) HasPublicKey() bool { func (o *LoggingS3Additional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingS3Additional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -362,7 +365,7 @@ func (o *LoggingS3Additional) GetRedundancy() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetRedundancyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Redundancy.Get(), o.Redundancy.IsSet() @@ -381,6 +384,7 @@ func (o *LoggingS3Additional) HasRedundancy() bool { func (o *LoggingS3Additional) SetRedundancy(v string) { o.Redundancy.Set(&v) } + // SetRedundancyNil sets the value for Redundancy to be an explicit nil func (o *LoggingS3Additional) SetRedundancyNil() { o.Redundancy.Set(nil) @@ -404,7 +408,7 @@ func (o *LoggingS3Additional) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -423,6 +427,7 @@ func (o *LoggingS3Additional) HasSecretKey() bool { func (o *LoggingS3Additional) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingS3Additional) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -446,7 +451,7 @@ func (o *LoggingS3Additional) GetServerSideEncryptionKmsKeyID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetServerSideEncryptionKmsKeyIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServerSideEncryptionKmsKeyID.Get(), o.ServerSideEncryptionKmsKeyID.IsSet() @@ -465,6 +470,7 @@ func (o *LoggingS3Additional) HasServerSideEncryptionKmsKeyID() bool { func (o *LoggingS3Additional) SetServerSideEncryptionKmsKeyID(v string) { o.ServerSideEncryptionKmsKeyID.Set(&v) } + // SetServerSideEncryptionKmsKeyIDNil sets the value for ServerSideEncryptionKmsKeyID to be an explicit nil func (o *LoggingS3Additional) SetServerSideEncryptionKmsKeyIDNil() { o.ServerSideEncryptionKmsKeyID.Set(nil) @@ -488,7 +494,7 @@ func (o *LoggingS3Additional) GetServerSideEncryption() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Additional) GetServerSideEncryptionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServerSideEncryption.Get(), o.ServerSideEncryption.IsSet() @@ -507,6 +513,7 @@ func (o *LoggingS3Additional) HasServerSideEncryption() bool { func (o *LoggingS3Additional) SetServerSideEncryption(v string) { o.ServerSideEncryption.Set(&v) } + // SetServerSideEncryptionNil sets the value for ServerSideEncryption to be an explicit nil func (o *LoggingS3Additional) SetServerSideEncryptionNil() { o.ServerSideEncryption.Set(nil) @@ -598,7 +605,7 @@ func (o LoggingS3Additional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingS3Additional) UnmarshalJSON(bytes []byte) (err error) { varLoggingS3Additional := _LoggingS3Additional{} @@ -627,7 +634,7 @@ func (o *LoggingS3Additional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingS3Additional is a helper abstraction for handling nullable loggings3additional types. +// NullableLoggingS3Additional is a helper abstraction for handling nullable loggings3additional types. type NullableLoggingS3Additional struct { value *LoggingS3Additional isSet bool @@ -667,7 +674,7 @@ func (v NullableLoggingS3Additional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingS3Additional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_s3_response.go b/fastly/model_logging_s3_response.go index 319d6bb..ca668fe 100644 --- a/fastly/model_logging_s3_response.go +++ b/fastly/model_logging_s3_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingS3Response struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -46,8 +45,8 @@ type LoggingS3Response struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The access key for your S3 account. Not required if `iam_role` is provided. AccessKey NullableString `json:"access_key,omitempty"` // The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. @@ -71,7 +70,7 @@ type LoggingS3Response struct { // Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. ServerSideEncryption NullableString `json:"server_side_encryption,omitempty"` // The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) - FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` + FileMaxBytes *int32 `json:"file_max_bytes,omitempty"` AdditionalProperties map[string]any } @@ -179,7 +178,7 @@ func (o *LoggingS3Response) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -198,6 +197,7 @@ func (o *LoggingS3Response) HasPlacement() bool { func (o *LoggingS3Response) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingS3Response) SetPlacementNil() { o.Placement.Set(nil) @@ -221,7 +221,7 @@ func (o *LoggingS3Response) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -240,6 +240,7 @@ func (o *LoggingS3Response) HasResponseCondition() bool { func (o *LoggingS3Response) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingS3Response) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -359,7 +360,7 @@ func (o *LoggingS3Response) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -378,6 +379,7 @@ func (o *LoggingS3Response) HasTimestampFormat() bool { func (o *LoggingS3Response) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingS3Response) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -497,7 +499,7 @@ func (o *LoggingS3Response) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -516,6 +518,7 @@ func (o *LoggingS3Response) HasCreatedAt() bool { func (o *LoggingS3Response) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingS3Response) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -539,7 +542,7 @@ func (o *LoggingS3Response) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -558,6 +561,7 @@ func (o *LoggingS3Response) HasDeletedAt() bool { func (o *LoggingS3Response) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingS3Response) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -581,7 +585,7 @@ func (o *LoggingS3Response) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -600,6 +604,7 @@ func (o *LoggingS3Response) HasUpdatedAt() bool { func (o *LoggingS3Response) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingS3Response) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -687,7 +692,7 @@ func (o *LoggingS3Response) GetAccessKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetAccessKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.AccessKey.Get(), o.AccessKey.IsSet() @@ -706,6 +711,7 @@ func (o *LoggingS3Response) HasAccessKey() bool { func (o *LoggingS3Response) SetAccessKey(v string) { o.AccessKey.Set(&v) } + // SetAccessKeyNil sets the value for AccessKey to be an explicit nil func (o *LoggingS3Response) SetAccessKeyNil() { o.AccessKey.Set(nil) @@ -825,7 +831,7 @@ func (o *LoggingS3Response) GetIamRole() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetIamRoleOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.IamRole.Get(), o.IamRole.IsSet() @@ -844,6 +850,7 @@ func (o *LoggingS3Response) HasIamRole() bool { func (o *LoggingS3Response) SetIamRole(v string) { o.IamRole.Set(&v) } + // SetIamRoleNil sets the value for IamRole to be an explicit nil func (o *LoggingS3Response) SetIamRoleNil() { o.IamRole.Set(nil) @@ -867,7 +874,7 @@ func (o *LoggingS3Response) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -886,6 +893,7 @@ func (o *LoggingS3Response) HasPath() bool { func (o *LoggingS3Response) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingS3Response) SetPathNil() { o.Path.Set(nil) @@ -909,7 +917,7 @@ func (o *LoggingS3Response) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -928,6 +936,7 @@ func (o *LoggingS3Response) HasPublicKey() bool { func (o *LoggingS3Response) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingS3Response) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -951,7 +960,7 @@ func (o *LoggingS3Response) GetRedundancy() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetRedundancyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Redundancy.Get(), o.Redundancy.IsSet() @@ -970,6 +979,7 @@ func (o *LoggingS3Response) HasRedundancy() bool { func (o *LoggingS3Response) SetRedundancy(v string) { o.Redundancy.Set(&v) } + // SetRedundancyNil sets the value for Redundancy to be an explicit nil func (o *LoggingS3Response) SetRedundancyNil() { o.Redundancy.Set(nil) @@ -993,7 +1003,7 @@ func (o *LoggingS3Response) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -1012,6 +1022,7 @@ func (o *LoggingS3Response) HasSecretKey() bool { func (o *LoggingS3Response) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingS3Response) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -1035,7 +1046,7 @@ func (o *LoggingS3Response) GetServerSideEncryptionKmsKeyID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetServerSideEncryptionKmsKeyIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServerSideEncryptionKmsKeyID.Get(), o.ServerSideEncryptionKmsKeyID.IsSet() @@ -1054,6 +1065,7 @@ func (o *LoggingS3Response) HasServerSideEncryptionKmsKeyID() bool { func (o *LoggingS3Response) SetServerSideEncryptionKmsKeyID(v string) { o.ServerSideEncryptionKmsKeyID.Set(&v) } + // SetServerSideEncryptionKmsKeyIDNil sets the value for ServerSideEncryptionKmsKeyID to be an explicit nil func (o *LoggingS3Response) SetServerSideEncryptionKmsKeyIDNil() { o.ServerSideEncryptionKmsKeyID.Set(nil) @@ -1077,7 +1089,7 @@ func (o *LoggingS3Response) GetServerSideEncryption() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingS3Response) GetServerSideEncryptionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ServerSideEncryption.Get(), o.ServerSideEncryption.IsSet() @@ -1096,6 +1108,7 @@ func (o *LoggingS3Response) HasServerSideEncryption() bool { func (o *LoggingS3Response) SetServerSideEncryption(v string) { o.ServerSideEncryption.Set(&v) } + // SetServerSideEncryptionNil sets the value for ServerSideEncryption to be an explicit nil func (o *LoggingS3Response) SetServerSideEncryptionNil() { o.ServerSideEncryption.Set(nil) @@ -1232,7 +1245,7 @@ func (o LoggingS3Response) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingS3Response) UnmarshalJSON(bytes []byte) (err error) { varLoggingS3Response := _LoggingS3Response{} @@ -1276,7 +1289,7 @@ func (o *LoggingS3Response) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingS3Response is a helper abstraction for handling nullable loggings3response types. +// NullableLoggingS3Response is a helper abstraction for handling nullable loggings3response types. type NullableLoggingS3Response struct { value *LoggingS3Response isSet bool @@ -1316,7 +1329,7 @@ func (v NullableLoggingS3Response) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingS3Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_scalyr_additional.go b/fastly/model_logging_scalyr_additional.go index e04402a..7b9d5d1 100644 --- a/fastly/model_logging_scalyr_additional.go +++ b/fastly/model_logging_scalyr_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type LoggingScalyrAdditional struct { // The token to use for authentication. Token *string `json:"token,omitempty"` // The name of the logfile within Scalyr. - ProjectID *string `json:"project_id,omitempty"` + ProjectID *string `json:"project_id,omitempty"` AdditionalProperties map[string]any } @@ -173,7 +172,7 @@ func (o LoggingScalyrAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingScalyrAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingScalyrAdditional := _LoggingScalyrAdditional{} @@ -193,7 +192,7 @@ func (o *LoggingScalyrAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingScalyrAdditional is a helper abstraction for handling nullable loggingscalyradditional types. +// NullableLoggingScalyrAdditional is a helper abstraction for handling nullable loggingscalyradditional types. type NullableLoggingScalyrAdditional struct { value *LoggingScalyrAdditional isSet bool @@ -233,7 +232,7 @@ func (v NullableLoggingScalyrAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingScalyrAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_scalyr_response.go b/fastly/model_logging_scalyr_response.go index b5b3476..8ca6a52 100644 --- a/fastly/model_logging_scalyr_response.go +++ b/fastly/model_logging_scalyr_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingScalyrResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // The region that log data will be sent to. Region *string `json:"region,omitempty"` @@ -41,9 +40,9 @@ type LoggingScalyrResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o *LoggingScalyrResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingScalyrResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -146,6 +145,7 @@ func (o *LoggingScalyrResponse) HasPlacement() bool { func (o *LoggingScalyrResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingScalyrResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -169,7 +169,7 @@ func (o *LoggingScalyrResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingScalyrResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -188,6 +188,7 @@ func (o *LoggingScalyrResponse) HasResponseCondition() bool { func (o *LoggingScalyrResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingScalyrResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -371,7 +372,7 @@ func (o *LoggingScalyrResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingScalyrResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -390,6 +391,7 @@ func (o *LoggingScalyrResponse) HasCreatedAt() bool { func (o *LoggingScalyrResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingScalyrResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -413,7 +415,7 @@ func (o *LoggingScalyrResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingScalyrResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -432,6 +434,7 @@ func (o *LoggingScalyrResponse) HasDeletedAt() bool { func (o *LoggingScalyrResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingScalyrResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -455,7 +458,7 @@ func (o *LoggingScalyrResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingScalyrResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -474,6 +477,7 @@ func (o *LoggingScalyrResponse) HasUpdatedAt() bool { func (o *LoggingScalyrResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingScalyrResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -600,7 +604,7 @@ func (o LoggingScalyrResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingScalyrResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingScalyrResponse := _LoggingScalyrResponse{} @@ -630,7 +634,7 @@ func (o *LoggingScalyrResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingScalyrResponse is a helper abstraction for handling nullable loggingscalyrresponse types. +// NullableLoggingScalyrResponse is a helper abstraction for handling nullable loggingscalyrresponse types. type NullableLoggingScalyrResponse struct { value *LoggingScalyrResponse isSet bool @@ -670,7 +674,7 @@ func (v NullableLoggingScalyrResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingScalyrResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_sftp_additional.go b/fastly/model_logging_sftp_additional.go index cb1b19f..550f955 100644 --- a/fastly/model_logging_sftp_additional.go +++ b/fastly/model_logging_sftp_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type LoggingSftpAdditional struct { // A list of host keys for all hosts we can connect to over SFTP. SSHKnownHosts *string `json:"ssh_known_hosts,omitempty"` // The username for the server. - User *string `json:"user,omitempty"` + User *string `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -110,7 +109,7 @@ func (o *LoggingSftpAdditional) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpAdditional) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -129,6 +128,7 @@ func (o *LoggingSftpAdditional) HasPath() bool { func (o *LoggingSftpAdditional) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingSftpAdditional) SetPathNil() { o.Path.Set(nil) @@ -152,7 +152,7 @@ func (o *LoggingSftpAdditional) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpAdditional) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -171,6 +171,7 @@ func (o *LoggingSftpAdditional) HasPublicKey() bool { func (o *LoggingSftpAdditional) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingSftpAdditional) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -194,7 +195,7 @@ func (o *LoggingSftpAdditional) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpAdditional) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -213,6 +214,7 @@ func (o *LoggingSftpAdditional) HasSecretKey() bool { func (o *LoggingSftpAdditional) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingSftpAdditional) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -318,7 +320,7 @@ func (o LoggingSftpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSftpAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingSftpAdditional := _LoggingSftpAdditional{} @@ -341,7 +343,7 @@ func (o *LoggingSftpAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSftpAdditional is a helper abstraction for handling nullable loggingsftpadditional types. +// NullableLoggingSftpAdditional is a helper abstraction for handling nullable loggingsftpadditional types. type NullableLoggingSftpAdditional struct { value *LoggingSftpAdditional isSet bool @@ -381,7 +383,7 @@ func (v NullableLoggingSftpAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSftpAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_sftp_response.go b/fastly/model_logging_sftp_response.go index 495fc50..8a03813 100644 --- a/fastly/model_logging_sftp_response.go +++ b/fastly/model_logging_sftp_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingSftpResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // How the message should be formatted. MessageType *string `json:"message_type,omitempty"` @@ -42,8 +41,8 @@ type LoggingSftpResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. Password *string `json:"password,omitempty"` // The path to upload logs to. @@ -63,7 +62,7 @@ type LoggingSftpResponse struct { // How frequently log files are finalized so they can be available for reading (in seconds). Period *string `json:"period,omitempty"` // The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - GzipLevel *int32 `json:"gzip_level,omitempty"` + GzipLevel *int32 `json:"gzip_level,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o *LoggingSftpResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -186,6 +185,7 @@ func (o *LoggingSftpResponse) HasPlacement() bool { func (o *LoggingSftpResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingSftpResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -209,7 +209,7 @@ func (o *LoggingSftpResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -228,6 +228,7 @@ func (o *LoggingSftpResponse) HasResponseCondition() bool { func (o *LoggingSftpResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingSftpResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -347,7 +348,7 @@ func (o *LoggingSftpResponse) GetTimestampFormat() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetTimestampFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimestampFormat.Get(), o.TimestampFormat.IsSet() @@ -366,6 +367,7 @@ func (o *LoggingSftpResponse) HasTimestampFormat() bool { func (o *LoggingSftpResponse) SetTimestampFormat(v string) { o.TimestampFormat.Set(&v) } + // SetTimestampFormatNil sets the value for TimestampFormat to be an explicit nil func (o *LoggingSftpResponse) SetTimestampFormatNil() { o.TimestampFormat.Set(nil) @@ -421,7 +423,7 @@ func (o *LoggingSftpResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -440,6 +442,7 @@ func (o *LoggingSftpResponse) HasCreatedAt() bool { func (o *LoggingSftpResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingSftpResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -463,7 +466,7 @@ func (o *LoggingSftpResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -482,6 +485,7 @@ func (o *LoggingSftpResponse) HasDeletedAt() bool { func (o *LoggingSftpResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingSftpResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -505,7 +509,7 @@ func (o *LoggingSftpResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -524,6 +528,7 @@ func (o *LoggingSftpResponse) HasUpdatedAt() bool { func (o *LoggingSftpResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingSftpResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -643,7 +648,7 @@ func (o *LoggingSftpResponse) GetPath() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetPathOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Path.Get(), o.Path.IsSet() @@ -662,6 +667,7 @@ func (o *LoggingSftpResponse) HasPath() bool { func (o *LoggingSftpResponse) SetPath(v string) { o.Path.Set(&v) } + // SetPathNil sets the value for Path to be an explicit nil func (o *LoggingSftpResponse) SetPathNil() { o.Path.Set(nil) @@ -685,7 +691,7 @@ func (o *LoggingSftpResponse) GetPublicKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetPublicKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.PublicKey.Get(), o.PublicKey.IsSet() @@ -704,6 +710,7 @@ func (o *LoggingSftpResponse) HasPublicKey() bool { func (o *LoggingSftpResponse) SetPublicKey(v string) { o.PublicKey.Set(&v) } + // SetPublicKeyNil sets the value for PublicKey to be an explicit nil func (o *LoggingSftpResponse) SetPublicKeyNil() { o.PublicKey.Set(nil) @@ -727,7 +734,7 @@ func (o *LoggingSftpResponse) GetSecretKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSftpResponse) GetSecretKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.SecretKey.Get(), o.SecretKey.IsSet() @@ -746,6 +753,7 @@ func (o *LoggingSftpResponse) HasSecretKey() bool { func (o *LoggingSftpResponse) SetSecretKey(v string) { o.SecretKey.Set(&v) } + // SetSecretKeyNil sets the value for SecretKey to be an explicit nil func (o *LoggingSftpResponse) SetSecretKeyNil() { o.SecretKey.Set(nil) @@ -1030,7 +1038,7 @@ func (o LoggingSftpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSftpResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingSftpResponse := _LoggingSftpResponse{} @@ -1070,7 +1078,7 @@ func (o *LoggingSftpResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSftpResponse is a helper abstraction for handling nullable loggingsftpresponse types. +// NullableLoggingSftpResponse is a helper abstraction for handling nullable loggingsftpresponse types. type NullableLoggingSftpResponse struct { value *LoggingSftpResponse isSet bool @@ -1110,7 +1118,7 @@ func (v NullableLoggingSftpResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSftpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_sftp_response_all_of.go b/fastly/model_logging_sftp_response_all_of.go index 7565080..17fe294 100644 --- a/fastly/model_logging_sftp_response_all_of.go +++ b/fastly/model_logging_sftp_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type LoggingSftpResponseAllOf struct { // How frequently log files are finalized so they can be available for reading (in seconds). Period *string `json:"period,omitempty"` // The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - GzipLevel *int32 `json:"gzip_level,omitempty"` + GzipLevel *int32 `json:"gzip_level,omitempty"` AdditionalProperties map[string]any } @@ -214,7 +213,7 @@ func (o LoggingSftpResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSftpResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varLoggingSftpResponseAllOf := _LoggingSftpResponseAllOf{} @@ -235,7 +234,7 @@ func (o *LoggingSftpResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSftpResponseAllOf is a helper abstraction for handling nullable loggingsftpresponseallof types. +// NullableLoggingSftpResponseAllOf is a helper abstraction for handling nullable loggingsftpresponseallof types. type NullableLoggingSftpResponseAllOf struct { value *LoggingSftpResponseAllOf isSet bool @@ -275,7 +274,7 @@ func (v NullableLoggingSftpResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSftpResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_splunk_additional.go b/fastly/model_logging_splunk_additional.go index 4293ddb..74fbc7a 100644 --- a/fastly/model_logging_splunk_additional.go +++ b/fastly/model_logging_splunk_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,8 +21,8 @@ type LoggingSplunkAdditional struct { // The URL to post logs to. URL *string `json:"url,omitempty"` // A Splunk token for use in posting logs over HTTP to your collector. - Token *string `json:"token,omitempty"` - UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` + Token *string `json:"token,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -168,7 +167,7 @@ func (o LoggingSplunkAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSplunkAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingSplunkAdditional := _LoggingSplunkAdditional{} @@ -188,7 +187,7 @@ func (o *LoggingSplunkAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSplunkAdditional is a helper abstraction for handling nullable loggingsplunkadditional types. +// NullableLoggingSplunkAdditional is a helper abstraction for handling nullable loggingsplunkadditional types. type NullableLoggingSplunkAdditional struct { value *LoggingSplunkAdditional isSet bool @@ -228,7 +227,7 @@ func (v NullableLoggingSplunkAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSplunkAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_splunk_response.go b/fastly/model_logging_splunk_response.go index ea2984e..c6fb366 100644 --- a/fastly/model_logging_splunk_response.go +++ b/fastly/model_logging_splunk_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingSplunkResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -45,16 +44,16 @@ type LoggingSplunkResponse struct { // The URL to post logs to. URL *string `json:"url,omitempty"` // A Splunk token for use in posting logs over HTTP to your collector. - Token *string `json:"token,omitempty"` + Token *string `json:"token,omitempty"` UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -158,7 +157,7 @@ func (o *LoggingSplunkResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -177,6 +176,7 @@ func (o *LoggingSplunkResponse) HasPlacement() bool { func (o *LoggingSplunkResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingSplunkResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -200,7 +200,7 @@ func (o *LoggingSplunkResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -219,6 +219,7 @@ func (o *LoggingSplunkResponse) HasResponseCondition() bool { func (o *LoggingSplunkResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingSplunkResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -306,7 +307,7 @@ func (o *LoggingSplunkResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -325,6 +326,7 @@ func (o *LoggingSplunkResponse) HasTLSCaCert() bool { func (o *LoggingSplunkResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingSplunkResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -348,7 +350,7 @@ func (o *LoggingSplunkResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -367,6 +369,7 @@ func (o *LoggingSplunkResponse) HasTLSClientCert() bool { func (o *LoggingSplunkResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingSplunkResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -390,7 +393,7 @@ func (o *LoggingSplunkResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -409,6 +412,7 @@ func (o *LoggingSplunkResponse) HasTLSClientKey() bool { func (o *LoggingSplunkResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingSplunkResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -432,7 +436,7 @@ func (o *LoggingSplunkResponse) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -451,6 +455,7 @@ func (o *LoggingSplunkResponse) HasTLSHostname() bool { func (o *LoggingSplunkResponse) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingSplunkResponse) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -634,7 +639,7 @@ func (o *LoggingSplunkResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -653,6 +658,7 @@ func (o *LoggingSplunkResponse) HasCreatedAt() bool { func (o *LoggingSplunkResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingSplunkResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -676,7 +682,7 @@ func (o *LoggingSplunkResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -695,6 +701,7 @@ func (o *LoggingSplunkResponse) HasDeletedAt() bool { func (o *LoggingSplunkResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingSplunkResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -718,7 +725,7 @@ func (o *LoggingSplunkResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSplunkResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -737,6 +744,7 @@ func (o *LoggingSplunkResponse) HasUpdatedAt() bool { func (o *LoggingSplunkResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingSplunkResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -881,7 +889,7 @@ func (o LoggingSplunkResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSplunkResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingSplunkResponse := _LoggingSplunkResponse{} @@ -917,7 +925,7 @@ func (o *LoggingSplunkResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSplunkResponse is a helper abstraction for handling nullable loggingsplunkresponse types. +// NullableLoggingSplunkResponse is a helper abstraction for handling nullable loggingsplunkresponse types. type NullableLoggingSplunkResponse struct { value *LoggingSplunkResponse isSet bool @@ -957,7 +965,7 @@ func (v NullableLoggingSplunkResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSplunkResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_sumologic_additional.go b/fastly/model_logging_sumologic_additional.go index 4b10921..3d89b9a 100644 --- a/fastly/model_logging_sumologic_additional.go +++ b/fastly/model_logging_sumologic_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type LoggingSumologicAdditional struct { MessageType *LoggingMessageType `json:"message_type,omitempty"` // The URL to post logs to. - URL *string `json:"url,omitempty"` + URL *string `json:"url,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o LoggingSumologicAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSumologicAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingSumologicAdditional := _LoggingSumologicAdditional{} @@ -150,7 +149,7 @@ func (o *LoggingSumologicAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSumologicAdditional is a helper abstraction for handling nullable loggingsumologicadditional types. +// NullableLoggingSumologicAdditional is a helper abstraction for handling nullable loggingsumologicadditional types. type NullableLoggingSumologicAdditional struct { value *LoggingSumologicAdditional isSet bool @@ -190,7 +189,7 @@ func (v NullableLoggingSumologicAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSumologicAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_sumologic_response.go b/fastly/model_logging_sumologic_response.go index 8e3494b..07a1fcd 100644 --- a/fastly/model_logging_sumologic_response.go +++ b/fastly/model_logging_sumologic_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,15 +21,15 @@ import ( type LoggingSumologicResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - FormatVersion *string `json:"format_version,omitempty"` - MessageType *LoggingMessageType `json:"message_type,omitempty"` + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + FormatVersion *string `json:"format_version,omitempty"` + MessageType *LoggingMessageType `json:"message_type,omitempty"` // The URL to post logs to. URL *string `json:"url,omitempty"` // Date and time in ISO 8601 format. @@ -38,9 +37,9 @@ type LoggingSumologicResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -120,7 +119,7 @@ func (o *LoggingSumologicResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSumologicResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -139,6 +138,7 @@ func (o *LoggingSumologicResponse) HasPlacement() bool { func (o *LoggingSumologicResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingSumologicResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -162,7 +162,7 @@ func (o *LoggingSumologicResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSumologicResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -181,6 +181,7 @@ func (o *LoggingSumologicResponse) HasResponseCondition() bool { func (o *LoggingSumologicResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingSumologicResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -332,7 +333,7 @@ func (o *LoggingSumologicResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSumologicResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -351,6 +352,7 @@ func (o *LoggingSumologicResponse) HasCreatedAt() bool { func (o *LoggingSumologicResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingSumologicResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -374,7 +376,7 @@ func (o *LoggingSumologicResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSumologicResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -393,6 +395,7 @@ func (o *LoggingSumologicResponse) HasDeletedAt() bool { func (o *LoggingSumologicResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingSumologicResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -416,7 +419,7 @@ func (o *LoggingSumologicResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSumologicResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -435,6 +438,7 @@ func (o *LoggingSumologicResponse) HasUpdatedAt() bool { func (o *LoggingSumologicResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingSumologicResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -558,7 +562,7 @@ func (o LoggingSumologicResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSumologicResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingSumologicResponse := _LoggingSumologicResponse{} @@ -587,7 +591,7 @@ func (o *LoggingSumologicResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSumologicResponse is a helper abstraction for handling nullable loggingsumologicresponse types. +// NullableLoggingSumologicResponse is a helper abstraction for handling nullable loggingsumologicresponse types. type NullableLoggingSumologicResponse struct { value *LoggingSumologicResponse isSet bool @@ -627,7 +631,7 @@ func (v NullableLoggingSumologicResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSumologicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_syslog_additional.go b/fastly/model_logging_syslog_additional.go index 9df212c..9fd76aa 100644 --- a/fastly/model_logging_syslog_additional.go +++ b/fastly/model_logging_syslog_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -25,8 +24,8 @@ type LoggingSyslogAdditional struct { // The IPv4 address used for the syslog endpoint. Ipv4 NullableString `json:"ipv4,omitempty"` // Whether to prepend each message with a specific token. - Token NullableString `json:"token,omitempty"` - UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` + Token NullableString `json:"token,omitempty"` + UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -138,7 +137,7 @@ func (o *LoggingSyslogAdditional) GetIpv4() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogAdditional) GetIpv4Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv4.Get(), o.Ipv4.IsSet() @@ -157,6 +156,7 @@ func (o *LoggingSyslogAdditional) HasIpv4() bool { func (o *LoggingSyslogAdditional) SetIpv4(v string) { o.Ipv4.Set(&v) } + // SetIpv4Nil sets the value for Ipv4 to be an explicit nil func (o *LoggingSyslogAdditional) SetIpv4Nil() { o.Ipv4.Set(nil) @@ -180,7 +180,7 @@ func (o *LoggingSyslogAdditional) GetToken() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogAdditional) GetTokenOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Token.Get(), o.Token.IsSet() @@ -199,6 +199,7 @@ func (o *LoggingSyslogAdditional) HasToken() bool { func (o *LoggingSyslogAdditional) SetToken(v string) { o.Token.Set(&v) } + // SetTokenNil sets the value for Token to be an explicit nil func (o *LoggingSyslogAdditional) SetTokenNil() { o.Token.Set(nil) @@ -269,7 +270,7 @@ func (o LoggingSyslogAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSyslogAdditional) UnmarshalJSON(bytes []byte) (err error) { varLoggingSyslogAdditional := _LoggingSyslogAdditional{} @@ -291,7 +292,7 @@ func (o *LoggingSyslogAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSyslogAdditional is a helper abstraction for handling nullable loggingsyslogadditional types. +// NullableLoggingSyslogAdditional is a helper abstraction for handling nullable loggingsyslogadditional types. type NullableLoggingSyslogAdditional struct { value *LoggingSyslogAdditional isSet bool @@ -331,7 +332,7 @@ func (v NullableLoggingSyslogAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSyslogAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_syslog_response.go b/fastly/model_logging_syslog_response.go index e856f3e..b1fa156 100644 --- a/fastly/model_logging_syslog_response.go +++ b/fastly/model_logging_syslog_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -22,13 +21,13 @@ import ( type LoggingSyslogResponse struct { // The name for the real-time logging configuration. Name *string `json:"name,omitempty"` - // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. + // Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. Placement NullableString `json:"placement,omitempty"` // The name of an existing condition in the configured endpoint, or leave blank to always execute. ResponseCondition NullableString `json:"response_condition,omitempty"` // A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Format *string `json:"format,omitempty"` - // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + // The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. FormatVersion *string `json:"format_version,omitempty"` // A secure certificate to authenticate a server with. Must be in PEM format. TLSCaCert NullableString `json:"tls_ca_cert,omitempty"` @@ -41,23 +40,23 @@ type LoggingSyslogResponse struct { // A hostname or IPv4 address. Address *string `json:"address,omitempty"` // The port number. - Port *int32 `json:"port,omitempty"` + Port *int32 `json:"port,omitempty"` MessageType *LoggingMessageType `json:"message_type,omitempty"` // The hostname used for the syslog endpoint. Hostname *string `json:"hostname,omitempty"` // The IPv4 address used for the syslog endpoint. Ipv4 NullableString `json:"ipv4,omitempty"` // Whether to prepend each message with a specific token. - Token NullableString `json:"token,omitempty"` + Token NullableString `json:"token,omitempty"` UseTLS *LoggingUseTLSString `json:"use_tls,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o *LoggingSyslogResponse) GetPlacement() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetPlacementOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Placement.Get(), o.Placement.IsSet() @@ -184,6 +183,7 @@ func (o *LoggingSyslogResponse) HasPlacement() bool { func (o *LoggingSyslogResponse) SetPlacement(v string) { o.Placement.Set(&v) } + // SetPlacementNil sets the value for Placement to be an explicit nil func (o *LoggingSyslogResponse) SetPlacementNil() { o.Placement.Set(nil) @@ -207,7 +207,7 @@ func (o *LoggingSyslogResponse) GetResponseCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetResponseConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseCondition.Get(), o.ResponseCondition.IsSet() @@ -226,6 +226,7 @@ func (o *LoggingSyslogResponse) HasResponseCondition() bool { func (o *LoggingSyslogResponse) SetResponseCondition(v string) { o.ResponseCondition.Set(&v) } + // SetResponseConditionNil sets the value for ResponseCondition to be an explicit nil func (o *LoggingSyslogResponse) SetResponseConditionNil() { o.ResponseCondition.Set(nil) @@ -313,7 +314,7 @@ func (o *LoggingSyslogResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -332,6 +333,7 @@ func (o *LoggingSyslogResponse) HasTLSCaCert() bool { func (o *LoggingSyslogResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingSyslogResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -355,7 +357,7 @@ func (o *LoggingSyslogResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -374,6 +376,7 @@ func (o *LoggingSyslogResponse) HasTLSClientCert() bool { func (o *LoggingSyslogResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingSyslogResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -397,7 +400,7 @@ func (o *LoggingSyslogResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -416,6 +419,7 @@ func (o *LoggingSyslogResponse) HasTLSClientKey() bool { func (o *LoggingSyslogResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingSyslogResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -439,7 +443,7 @@ func (o *LoggingSyslogResponse) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -458,6 +462,7 @@ func (o *LoggingSyslogResponse) HasTLSHostname() bool { func (o *LoggingSyslogResponse) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingSyslogResponse) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -609,7 +614,7 @@ func (o *LoggingSyslogResponse) GetIpv4() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetIpv4Ok() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Ipv4.Get(), o.Ipv4.IsSet() @@ -628,6 +633,7 @@ func (o *LoggingSyslogResponse) HasIpv4() bool { func (o *LoggingSyslogResponse) SetIpv4(v string) { o.Ipv4.Set(&v) } + // SetIpv4Nil sets the value for Ipv4 to be an explicit nil func (o *LoggingSyslogResponse) SetIpv4Nil() { o.Ipv4.Set(nil) @@ -651,7 +657,7 @@ func (o *LoggingSyslogResponse) GetToken() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetTokenOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Token.Get(), o.Token.IsSet() @@ -670,6 +676,7 @@ func (o *LoggingSyslogResponse) HasToken() bool { func (o *LoggingSyslogResponse) SetToken(v string) { o.Token.Set(&v) } + // SetTokenNil sets the value for Token to be an explicit nil func (o *LoggingSyslogResponse) SetTokenNil() { o.Token.Set(nil) @@ -725,7 +732,7 @@ func (o *LoggingSyslogResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -744,6 +751,7 @@ func (o *LoggingSyslogResponse) HasCreatedAt() bool { func (o *LoggingSyslogResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *LoggingSyslogResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -767,7 +775,7 @@ func (o *LoggingSyslogResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -786,6 +794,7 @@ func (o *LoggingSyslogResponse) HasDeletedAt() bool { func (o *LoggingSyslogResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *LoggingSyslogResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -809,7 +818,7 @@ func (o *LoggingSyslogResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingSyslogResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -828,6 +837,7 @@ func (o *LoggingSyslogResponse) HasUpdatedAt() bool { func (o *LoggingSyslogResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *LoggingSyslogResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -978,7 +988,7 @@ func (o LoggingSyslogResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingSyslogResponse) UnmarshalJSON(bytes []byte) (err error) { varLoggingSyslogResponse := _LoggingSyslogResponse{} @@ -1016,7 +1026,7 @@ func (o *LoggingSyslogResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingSyslogResponse is a helper abstraction for handling nullable loggingsyslogresponse types. +// NullableLoggingSyslogResponse is a helper abstraction for handling nullable loggingsyslogresponse types. type NullableLoggingSyslogResponse struct { value *LoggingSyslogResponse isSet bool @@ -1056,7 +1066,7 @@ func (v NullableLoggingSyslogResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingSyslogResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_tls_common.go b/fastly/model_logging_tls_common.go index 3a2f2e9..1c1a44f 100644 --- a/fastly/model_logging_tls_common.go +++ b/fastly/model_logging_tls_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type LoggingTLSCommon struct { // The client private key used to make authenticated requests. Must be in PEM format. TLSClientKey NullableString `json:"tls_client_key,omitempty"` // The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. - TLSHostname NullableString `json:"tls_hostname,omitempty"` + TLSHostname NullableString `json:"tls_hostname,omitempty"` AdditionalProperties map[string]any } @@ -78,7 +77,7 @@ func (o *LoggingTLSCommon) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingTLSCommon) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -97,6 +96,7 @@ func (o *LoggingTLSCommon) HasTLSCaCert() bool { func (o *LoggingTLSCommon) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *LoggingTLSCommon) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -120,7 +120,7 @@ func (o *LoggingTLSCommon) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingTLSCommon) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -139,6 +139,7 @@ func (o *LoggingTLSCommon) HasTLSClientCert() bool { func (o *LoggingTLSCommon) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *LoggingTLSCommon) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -162,7 +163,7 @@ func (o *LoggingTLSCommon) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingTLSCommon) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -181,6 +182,7 @@ func (o *LoggingTLSCommon) HasTLSClientKey() bool { func (o *LoggingTLSCommon) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *LoggingTLSCommon) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -204,7 +206,7 @@ func (o *LoggingTLSCommon) GetTLSHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *LoggingTLSCommon) GetTLSHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSHostname.Get(), o.TLSHostname.IsSet() @@ -223,6 +225,7 @@ func (o *LoggingTLSCommon) HasTLSHostname() bool { func (o *LoggingTLSCommon) SetTLSHostname(v string) { o.TLSHostname.Set(&v) } + // SetTLSHostnameNil sets the value for TLSHostname to be an explicit nil func (o *LoggingTLSCommon) SetTLSHostnameNil() { o.TLSHostname.Set(nil) @@ -258,7 +261,7 @@ func (o LoggingTLSCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *LoggingTLSCommon) UnmarshalJSON(bytes []byte) (err error) { varLoggingTLSCommon := _LoggingTLSCommon{} @@ -279,7 +282,7 @@ func (o *LoggingTLSCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableLoggingTLSCommon is a helper abstraction for handling nullable loggingtlscommon types. +// NullableLoggingTLSCommon is a helper abstraction for handling nullable loggingtlscommon types. type NullableLoggingTLSCommon struct { value *LoggingTLSCommon isSet bool @@ -319,7 +322,7 @@ func (v NullableLoggingTLSCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingTLSCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_logging_use_tls_string.go b/fastly/model_logging_use_tls_string.go index 42373ef..c9ce8d4 100644 --- a/fastly/model_logging_use_tls_string.go +++ b/fastly/model_logging_use_tls_string.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -23,7 +22,7 @@ type LoggingUseTLSString string // List of logging_use_tls_string const ( - LOGGINGUSETLSSTRING_no_tls LoggingUseTLSString = "0" + LOGGINGUSETLSSTRING_no_tls LoggingUseTLSString = "0" LOGGINGUSETLSSTRING_use_tls LoggingUseTLSString = "1" ) @@ -34,7 +33,7 @@ var AllowedLoggingUseTLSStringEnumValues = []LoggingUseTLSString{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *LoggingUseTLSString) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -59,7 +58,7 @@ func NewLoggingUseTLSStringFromValue(v string) (*LoggingUseTLSString, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for LoggingUseTLSString: valid values are %v", v, AllowedLoggingUseTLSStringEnumValues) + return nil, fmt.Errorf("invalid value '%v' for LoggingUseTLSString: valid values are %v", v, AllowedLoggingUseTLSStringEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -77,7 +76,7 @@ func (v LoggingUseTLSString) Ptr() *LoggingUseTLSString { return &v } -// NullableLoggingUseTLSString is a helper abstraction for handling nullable loggingusetlsstring types. +// NullableLoggingUseTLSString is a helper abstraction for handling nullable loggingusetlsstring types. type NullableLoggingUseTLSString struct { value *LoggingUseTLSString isSet bool @@ -117,7 +116,7 @@ func (v NullableLoggingUseTLSString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableLoggingUseTLSString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_metadata.go b/fastly/model_metadata.go index 07137b6..2db4e35 100644 --- a/fastly/model_metadata.go +++ b/fastly/model_metadata.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type Metadata struct { // The sort order of the invoices in the response. Sort *string `json:"sort,omitempty"` // Total number of records available on the backend. - Total *int32 `json:"total,omitempty"` + Total *int32 `json:"total,omitempty"` AdditionalProperties map[string]any } @@ -206,7 +205,7 @@ func (o Metadata) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Metadata) UnmarshalJSON(bytes []byte) (err error) { varMetadata := _Metadata{} @@ -227,7 +226,7 @@ func (o *Metadata) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMetadata is a helper abstraction for handling nullable metadata types. +// NullableMetadata is a helper abstraction for handling nullable metadata types. type NullableMetadata struct { value *Metadata isSet bool @@ -267,7 +266,7 @@ func (v NullableMetadata) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mtd_invoice_response.go b/fastly/model_mtd_invoice_response.go index 7f9e696..41cced9 100644 --- a/fastly/model_mtd_invoice_response.go +++ b/fastly/model_mtd_invoice_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,9 +28,9 @@ type MtdInvoiceResponse struct { // The date and time (in ISO 8601 format) for the termination point of a billing cycle, signifying the end of charges for a service or subscription. BillingEndDate *time.Time `json:"billing_end_date,omitempty"` // The total billable amount for invoiced services charged within a single month. - MonthlyTransactionAmount *string `json:"monthly_transaction_amount,omitempty"` - TransactionLineItems []Mtdlineitems `json:"transaction_line_items,omitempty"` - AdditionalProperties map[string]any + MonthlyTransactionAmount *string `json:"monthly_transaction_amount,omitempty"` + TransactionLineItems []Mtdlineitems `json:"transaction_line_items,omitempty"` + AdditionalProperties map[string]any } type _MtdInvoiceResponse MtdInvoiceResponse @@ -276,7 +275,7 @@ func (o MtdInvoiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MtdInvoiceResponse) UnmarshalJSON(bytes []byte) (err error) { varMtdInvoiceResponse := _MtdInvoiceResponse{} @@ -299,7 +298,7 @@ func (o *MtdInvoiceResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMtdInvoiceResponse is a helper abstraction for handling nullable mtdinvoiceresponse types. +// NullableMtdInvoiceResponse is a helper abstraction for handling nullable mtdinvoiceresponse types. type NullableMtdInvoiceResponse struct { value *MtdInvoiceResponse isSet bool @@ -339,7 +338,7 @@ func (v NullableMtdInvoiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMtdInvoiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mtdinvoice.go b/fastly/model_mtdinvoice.go index dcac2d5..20ad5f0 100644 --- a/fastly/model_mtdinvoice.go +++ b/fastly/model_mtdinvoice.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,9 +28,9 @@ type Mtdinvoice struct { // The date and time (in ISO 8601 format) for the termination point of a billing cycle, signifying the end of charges for a service or subscription. BillingEndDate *time.Time `json:"billing_end_date,omitempty"` // The total billable amount for invoiced services charged within a single month. - MonthlyTransactionAmount *string `json:"monthly_transaction_amount,omitempty"` - TransactionLineItems []Mtdlineitems `json:"transaction_line_items,omitempty"` - AdditionalProperties map[string]any + MonthlyTransactionAmount *string `json:"monthly_transaction_amount,omitempty"` + TransactionLineItems []Mtdlineitems `json:"transaction_line_items,omitempty"` + AdditionalProperties map[string]any } type _Mtdinvoice Mtdinvoice @@ -276,7 +275,7 @@ func (o Mtdinvoice) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Mtdinvoice) UnmarshalJSON(bytes []byte) (err error) { varMtdinvoice := _Mtdinvoice{} @@ -299,7 +298,7 @@ func (o *Mtdinvoice) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMtdinvoice is a helper abstraction for handling nullable mtdinvoice types. +// NullableMtdinvoice is a helper abstraction for handling nullable mtdinvoice types. type NullableMtdinvoice struct { value *Mtdinvoice isSet bool @@ -339,7 +338,7 @@ func (v NullableMtdinvoice) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMtdinvoice) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mtdlineitems.go b/fastly/model_mtdlineitems.go index 611fdb3..3e4130f 100644 --- a/fastly/model_mtdlineitems.go +++ b/fastly/model_mtdlineitems.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -36,7 +35,7 @@ type Mtdlineitems struct { // The geographical area applicable for regionally based products. Region *string `json:"region,omitempty"` // The unit of measure (e.g., `requests` or `bandwidth`). - UsageType *string `json:"usage_type,omitempty"` + UsageType *string `json:"usage_type,omitempty"` AdditionalProperties map[string]any } @@ -387,7 +386,7 @@ func (o Mtdlineitems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Mtdlineitems) UnmarshalJSON(bytes []byte) (err error) { varMtdlineitems := _Mtdlineitems{} @@ -413,7 +412,7 @@ func (o *Mtdlineitems) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMtdlineitems is a helper abstraction for handling nullable mtdlineitems types. +// NullableMtdlineitems is a helper abstraction for handling nullable mtdlineitems types. type NullableMtdlineitems struct { value *Mtdlineitems isSet bool @@ -453,7 +452,7 @@ func (v NullableMtdlineitems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMtdlineitems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication.go b/fastly/model_mutual_authentication.go index f78379e..2d80f0e 100644 --- a/fastly/model_mutual_authentication.go +++ b/fastly/model_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthentication struct for MutualAuthentication type MutualAuthentication struct { - Data *MutualAuthenticationData `json:"data,omitempty"` + Data *MutualAuthenticationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o MutualAuthentication) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthentication) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthentication := _MutualAuthentication{} @@ -108,7 +107,7 @@ func (o *MutualAuthentication) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMutualAuthentication is a helper abstraction for handling nullable mutualauthentication types. +// NullableMutualAuthentication is a helper abstraction for handling nullable mutualauthentication types. type NullableMutualAuthentication struct { value *MutualAuthentication isSet bool @@ -148,7 +147,7 @@ func (v NullableMutualAuthentication) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_data.go b/fastly/model_mutual_authentication_data.go index 113d4f3..e901652 100644 --- a/fastly/model_mutual_authentication_data.go +++ b/fastly/model_mutual_authentication_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationData struct for MutualAuthenticationData type MutualAuthenticationData struct { - Type *TypeMutualAuthentication `json:"type,omitempty"` - Attributes *MutualAuthenticationDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForMutualAuthentication `json:"relationships,omitempty"` + Type *TypeMutualAuthentication `json:"type,omitempty"` + Attributes *MutualAuthenticationDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForMutualAuthentication `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o MutualAuthenticationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationData) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationData := _MutualAuthenticationData{} @@ -186,7 +185,7 @@ func (o *MutualAuthenticationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMutualAuthenticationData is a helper abstraction for handling nullable mutualauthenticationdata types. +// NullableMutualAuthenticationData is a helper abstraction for handling nullable mutualauthenticationdata types. type NullableMutualAuthenticationData struct { value *MutualAuthenticationData isSet bool @@ -226,7 +225,7 @@ func (v NullableMutualAuthenticationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_data_attributes.go b/fastly/model_mutual_authentication_data_attributes.go index 0a20c95..dc925b1 100644 --- a/fastly/model_mutual_authentication_data_attributes.go +++ b/fastly/model_mutual_authentication_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type MutualAuthenticationDataAttributes struct { // Determines whether Mutual TLS will fail closed (enforced) or fail open. A true value will require a successful Mutual TLS handshake for the connection to continue and will fail closed if unsuccessful. A false value will fail open and allow the connection to proceed. Optional. Defaults to true. Enforced *bool `json:"enforced,omitempty"` // A custom name for your mutual authentication. Optional. If name is not supplied we will auto-generate one. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o MutualAuthenticationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationDataAttributes := _MutualAuthenticationDataAttributes{} @@ -185,7 +184,7 @@ func (o *MutualAuthenticationDataAttributes) UnmarshalJSON(bytes []byte) (err er return err } -// NullableMutualAuthenticationDataAttributes is a helper abstraction for handling nullable mutualauthenticationdataattributes types. +// NullableMutualAuthenticationDataAttributes is a helper abstraction for handling nullable mutualauthenticationdataattributes types. type NullableMutualAuthenticationDataAttributes struct { value *MutualAuthenticationDataAttributes isSet bool @@ -225,7 +224,7 @@ func (v NullableMutualAuthenticationDataAttributes) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_response.go b/fastly/model_mutual_authentication_response.go index c2b214f..a794004 100644 --- a/fastly/model_mutual_authentication_response.go +++ b/fastly/model_mutual_authentication_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationResponse struct for MutualAuthenticationResponse type MutualAuthenticationResponse struct { - Data *MutualAuthenticationResponseData `json:"data,omitempty"` + Data *MutualAuthenticationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o MutualAuthenticationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationResponse) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationResponse := _MutualAuthenticationResponse{} @@ -108,7 +107,7 @@ func (o *MutualAuthenticationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableMutualAuthenticationResponse is a helper abstraction for handling nullable mutualauthenticationresponse types. +// NullableMutualAuthenticationResponse is a helper abstraction for handling nullable mutualauthenticationresponse types. type NullableMutualAuthenticationResponse struct { value *MutualAuthenticationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableMutualAuthenticationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_response_attributes.go b/fastly/model_mutual_authentication_response_attributes.go index ad3d20a..ae23a3a 100644 --- a/fastly/model_mutual_authentication_response_attributes.go +++ b/fastly/model_mutual_authentication_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -27,7 +26,7 @@ type MutualAuthenticationResponseAttributes struct { // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` // Determines whether Mutual TLS will fail closed (enforced) or fail open. - Enforced *bool `json:"enforced,omitempty"` + Enforced *bool `json:"enforced,omitempty"` AdditionalProperties map[string]any } @@ -63,7 +62,7 @@ func (o *MutualAuthenticationResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *MutualAuthenticationResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -82,6 +81,7 @@ func (o *MutualAuthenticationResponseAttributes) HasCreatedAt() bool { func (o *MutualAuthenticationResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *MutualAuthenticationResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -105,7 +105,7 @@ func (o *MutualAuthenticationResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *MutualAuthenticationResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -124,6 +124,7 @@ func (o *MutualAuthenticationResponseAttributes) HasDeletedAt() bool { func (o *MutualAuthenticationResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *MutualAuthenticationResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -147,7 +148,7 @@ func (o *MutualAuthenticationResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *MutualAuthenticationResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -166,6 +167,7 @@ func (o *MutualAuthenticationResponseAttributes) HasUpdatedAt() bool { func (o *MutualAuthenticationResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *MutualAuthenticationResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -233,7 +235,7 @@ func (o MutualAuthenticationResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationResponseAttributes := _MutualAuthenticationResponseAttributes{} @@ -254,7 +256,7 @@ func (o *MutualAuthenticationResponseAttributes) UnmarshalJSON(bytes []byte) (er return err } -// NullableMutualAuthenticationResponseAttributes is a helper abstraction for handling nullable mutualauthenticationresponseattributes types. +// NullableMutualAuthenticationResponseAttributes is a helper abstraction for handling nullable mutualauthenticationresponseattributes types. type NullableMutualAuthenticationResponseAttributes struct { value *MutualAuthenticationResponseAttributes isSet bool @@ -294,7 +296,7 @@ func (v NullableMutualAuthenticationResponseAttributes) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_response_attributes_all_of.go b/fastly/model_mutual_authentication_response_attributes_all_of.go index 9c03437..ee9a5a6 100644 --- a/fastly/model_mutual_authentication_response_attributes_all_of.go +++ b/fastly/model_mutual_authentication_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // MutualAuthenticationResponseAttributesAllOf struct for MutualAuthenticationResponseAttributesAllOf type MutualAuthenticationResponseAttributesAllOf struct { // Determines whether Mutual TLS will fail closed (enforced) or fail open. - Enforced *bool `json:"enforced,omitempty"` + Enforced *bool `json:"enforced,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o MutualAuthenticationResponseAttributesAllOf) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationResponseAttributesAllOf := _MutualAuthenticationResponseAttributesAllOf{} @@ -109,7 +108,7 @@ func (o *MutualAuthenticationResponseAttributesAllOf) UnmarshalJSON(bytes []byte return err } -// NullableMutualAuthenticationResponseAttributesAllOf is a helper abstraction for handling nullable mutualauthenticationresponseattributesallof types. +// NullableMutualAuthenticationResponseAttributesAllOf is a helper abstraction for handling nullable mutualauthenticationresponseattributesallof types. type NullableMutualAuthenticationResponseAttributesAllOf struct { value *MutualAuthenticationResponseAttributesAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableMutualAuthenticationResponseAttributesAllOf) MarshalJSON() ([]by } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_response_data.go b/fastly/model_mutual_authentication_response_data.go index 65e52bf..f04104b 100644 --- a/fastly/model_mutual_authentication_response_data.go +++ b/fastly/model_mutual_authentication_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationResponseData struct for MutualAuthenticationResponseData type MutualAuthenticationResponseData struct { - Type *TypeMutualAuthentication `json:"type,omitempty"` - Attributes *MutualAuthenticationResponseAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForMutualAuthentication `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeMutualAuthentication `json:"type,omitempty"` + Attributes *MutualAuthenticationResponseAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForMutualAuthentication `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o MutualAuthenticationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationResponseData) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationResponseData := _MutualAuthenticationResponseData{} @@ -223,7 +222,7 @@ func (o *MutualAuthenticationResponseData) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableMutualAuthenticationResponseData is a helper abstraction for handling nullable mutualauthenticationresponsedata types. +// NullableMutualAuthenticationResponseData is a helper abstraction for handling nullable mutualauthenticationresponsedata types. type NullableMutualAuthenticationResponseData struct { value *MutualAuthenticationResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableMutualAuthenticationResponseData) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentication_response_data_all_of.go b/fastly/model_mutual_authentication_response_data_all_of.go index 4b9a9c5..f7c48a2 100644 --- a/fastly/model_mutual_authentication_response_data_all_of.go +++ b/fastly/model_mutual_authentication_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationResponseDataAllOf struct for MutualAuthenticationResponseDataAllOf type MutualAuthenticationResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *MutualAuthenticationResponseAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *MutualAuthenticationResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o MutualAuthenticationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationResponseDataAllOf := _MutualAuthenticationResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *MutualAuthenticationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableMutualAuthenticationResponseDataAllOf is a helper abstraction for handling nullable mutualauthenticationresponsedataallof types. +// NullableMutualAuthenticationResponseDataAllOf is a helper abstraction for handling nullable mutualauthenticationresponsedataallof types. type NullableMutualAuthenticationResponseDataAllOf struct { value *MutualAuthenticationResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableMutualAuthenticationResponseDataAllOf) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentications_response.go b/fastly/model_mutual_authentications_response.go index 4726e2c..c2f6134 100644 --- a/fastly/model_mutual_authentications_response.go +++ b/fastly/model_mutual_authentications_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationsResponse struct for MutualAuthenticationsResponse type MutualAuthenticationsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []MutualAuthenticationResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []MutualAuthenticationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o MutualAuthenticationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationsResponse) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationsResponse := _MutualAuthenticationsResponse{} @@ -182,7 +181,7 @@ func (o *MutualAuthenticationsResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableMutualAuthenticationsResponse is a helper abstraction for handling nullable mutualauthenticationsresponse types. +// NullableMutualAuthenticationsResponse is a helper abstraction for handling nullable mutualauthenticationsresponse types. type NullableMutualAuthenticationsResponse struct { value *MutualAuthenticationsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableMutualAuthenticationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_mutual_authentications_response_all_of.go b/fastly/model_mutual_authentications_response_all_of.go index f6c35a6..45b39a1 100644 --- a/fastly/model_mutual_authentications_response_all_of.go +++ b/fastly/model_mutual_authentications_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // MutualAuthenticationsResponseAllOf struct for MutualAuthenticationsResponseAllOf type MutualAuthenticationsResponseAllOf struct { - Data []MutualAuthenticationResponseData `json:"data,omitempty"` + Data []MutualAuthenticationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o MutualAuthenticationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *MutualAuthenticationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varMutualAuthenticationsResponseAllOf := _MutualAuthenticationsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *MutualAuthenticationsResponseAllOf) UnmarshalJSON(bytes []byte) (err er return err } -// NullableMutualAuthenticationsResponseAllOf is a helper abstraction for handling nullable mutualauthenticationsresponseallof types. +// NullableMutualAuthenticationsResponseAllOf is a helper abstraction for handling nullable mutualauthenticationsresponseallof types. type NullableMutualAuthenticationsResponseAllOf struct { value *MutualAuthenticationsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableMutualAuthenticationsResponseAllOf) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableMutualAuthenticationsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector.go b/fastly/model_origin_inspector.go index 4d7f5a3..8e85d11 100644 --- a/fastly/model_origin_inspector.go +++ b/fastly/model_origin_inspector.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type OriginInspector struct { // Offset of entry timestamps from the current time due to processing time. AggregateDelay *int32 `json:"AggregateDelay,omitempty"` // A list of report [entries](#entry-data-model), each representing one second of time. - Data []OriginInspectorRealtimeEntry `json:"Data,omitempty"` + Data []OriginInspectorRealtimeEntry `json:"Data,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o OriginInspector) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspector) UnmarshalJSON(bytes []byte) (err error) { varOriginInspector := _OriginInspector{} @@ -185,7 +184,7 @@ func (o *OriginInspector) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspector is a helper abstraction for handling nullable origininspector types. +// NullableOriginInspector is a helper abstraction for handling nullable origininspector types. type NullableOriginInspector struct { value *OriginInspector isSet bool @@ -225,7 +224,7 @@ func (v NullableOriginInspector) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_dimensions.go b/fastly/model_origin_inspector_dimensions.go index fccb9b2..4d73783 100644 --- a/fastly/model_origin_inspector_dimensions.go +++ b/fastly/model_origin_inspector_dimensions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type OriginInspectorDimensions struct { // The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. Datacenter *string `json:"datacenter,omitempty"` // The origin host from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across origin hosts. - Host *string `json:"host,omitempty"` + Host *string `json:"host,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o OriginInspectorDimensions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorDimensions) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorDimensions := _OriginInspectorDimensions{} @@ -185,7 +184,7 @@ func (o *OriginInspectorDimensions) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorDimensions is a helper abstraction for handling nullable origininspectordimensions types. +// NullableOriginInspectorDimensions is a helper abstraction for handling nullable origininspectordimensions types. type NullableOriginInspectorDimensions struct { value *OriginInspectorDimensions isSet bool @@ -225,7 +224,7 @@ func (v NullableOriginInspectorDimensions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorDimensions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_entry.go b/fastly/model_origin_inspector_entry.go index 6212648..1ccb92a 100644 --- a/fastly/model_origin_inspector_entry.go +++ b/fastly/model_origin_inspector_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // OriginInspectorEntry struct for OriginInspectorEntry type OriginInspectorEntry struct { Dimensions *OriginInspectorDimensions `json:"dimensions,omitempty"` - // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. - Values []OriginInspectorValues `json:"values,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []OriginInspectorValues `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o OriginInspectorEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorEntry := _OriginInspectorEntry{} @@ -146,7 +145,7 @@ func (o *OriginInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorEntry is a helper abstraction for handling nullable origininspectorentry types. +// NullableOriginInspectorEntry is a helper abstraction for handling nullable origininspectorentry types. type NullableOriginInspectorEntry struct { value *OriginInspectorEntry isSet bool @@ -186,7 +185,7 @@ func (v NullableOriginInspectorEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_historical.go b/fastly/model_origin_inspector_historical.go index 4afb460..fa8935f 100644 --- a/fastly/model_origin_inspector_historical.go +++ b/fastly/model_origin_inspector_historical.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // OriginInspectorHistorical struct for OriginInspectorHistorical type OriginInspectorHistorical struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as origin host, region or POP. - Data []OriginInspectorHistoricalData `json:"data,omitempty"` + Data []OriginInspectorHistoricalData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *OriginInspectorHistorical) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *OriginInspectorHistorical) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *OriginInspectorHistorical) HasMsg() bool { func (o *OriginInspectorHistorical) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *OriginInspectorHistorical) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o OriginInspectorHistorical) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorHistorical) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorHistorical := _OriginInspectorHistorical{} @@ -232,7 +232,7 @@ func (o *OriginInspectorHistorical) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorHistorical is a helper abstraction for handling nullable origininspectorhistorical types. +// NullableOriginInspectorHistorical is a helper abstraction for handling nullable origininspectorhistorical types. type NullableOriginInspectorHistorical struct { value *OriginInspectorHistorical isSet bool @@ -272,7 +272,7 @@ func (v NullableOriginInspectorHistorical) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorHistorical) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_historical_data.go b/fastly/model_origin_inspector_historical_data.go index 252fa92..2bf9337 100644 --- a/fastly/model_origin_inspector_historical_data.go +++ b/fastly/model_origin_inspector_historical_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // OriginInspectorHistoricalData struct for OriginInspectorHistoricalData type OriginInspectorHistoricalData struct { Dimensions *OriginInspectorDimensions `json:"dimensions,omitempty"` - // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. - Values []OriginInspectorValues `json:"values,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []OriginInspectorValues `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o OriginInspectorHistoricalData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorHistoricalData) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorHistoricalData := _OriginInspectorHistoricalData{} @@ -146,7 +145,7 @@ func (o *OriginInspectorHistoricalData) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableOriginInspectorHistoricalData is a helper abstraction for handling nullable origininspectorhistoricaldata types. +// NullableOriginInspectorHistoricalData is a helper abstraction for handling nullable origininspectorhistoricaldata types. type NullableOriginInspectorHistoricalData struct { value *OriginInspectorHistoricalData isSet bool @@ -186,7 +185,7 @@ func (v NullableOriginInspectorHistoricalData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorHistoricalData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_historical_meta.go b/fastly/model_origin_inspector_historical_meta.go index 890324b..328dcca 100644 --- a/fastly/model_origin_inspector_historical_meta.go +++ b/fastly/model_origin_inspector_historical_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -34,8 +33,8 @@ type OriginInspectorHistoricalMeta struct { // A comma-separated list of keys the results are sorted by. Sort *string `json:"sort,omitempty"` // A comma-separated list of dimensions being summed over in the query. - GroupBy *string `json:"group_by,omitempty"` - Filters *OriginInspectorHistoricalMetaFilters `json:"filters,omitempty"` + GroupBy *string `json:"group_by,omitempty"` + Filters *OriginInspectorHistoricalMetaFilters `json:"filters,omitempty"` AdditionalProperties map[string]any } @@ -386,7 +385,7 @@ func (o OriginInspectorHistoricalMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorHistoricalMeta) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorHistoricalMeta := _OriginInspectorHistoricalMeta{} @@ -412,7 +411,7 @@ func (o *OriginInspectorHistoricalMeta) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableOriginInspectorHistoricalMeta is a helper abstraction for handling nullable origininspectorhistoricalmeta types. +// NullableOriginInspectorHistoricalMeta is a helper abstraction for handling nullable origininspectorhistoricalmeta types. type NullableOriginInspectorHistoricalMeta struct { value *OriginInspectorHistoricalMeta isSet bool @@ -452,7 +451,7 @@ func (v NullableOriginInspectorHistoricalMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorHistoricalMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_historical_meta_filters.go b/fastly/model_origin_inspector_historical_meta_filters.go index 6b6e201..6c2b67b 100644 --- a/fastly/model_origin_inspector_historical_meta_filters.go +++ b/fastly/model_origin_inspector_historical_meta_filters.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // OriginInspectorHistoricalMetaFilters Filters that were applied when calculating the results for this query. type OriginInspectorHistoricalMetaFilters struct { - Region *string `json:"region,omitempty"` - Datacenter *string `json:"datacenter,omitempty"` - Host *string `json:"host,omitempty"` + Region *string `json:"region,omitempty"` + Datacenter *string `json:"datacenter,omitempty"` + Host *string `json:"host,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o OriginInspectorHistoricalMetaFilters) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorHistoricalMetaFilters) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorHistoricalMetaFilters := _OriginInspectorHistoricalMetaFilters{} @@ -182,7 +181,7 @@ func (o *OriginInspectorHistoricalMetaFilters) UnmarshalJSON(bytes []byte) (err return err } -// NullableOriginInspectorHistoricalMetaFilters is a helper abstraction for handling nullable origininspectorhistoricalmetafilters types. +// NullableOriginInspectorHistoricalMetaFilters is a helper abstraction for handling nullable origininspectorhistoricalmetafilters types. type NullableOriginInspectorHistoricalMetaFilters struct { value *OriginInspectorHistoricalMetaFilters isSet bool @@ -222,7 +221,7 @@ func (v NullableOriginInspectorHistoricalMetaFilters) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorHistoricalMetaFilters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_measurements.go b/fastly/model_origin_inspector_measurements.go index db66772..8bc24ea 100644 --- a/fastly/model_origin_inspector_measurements.go +++ b/fastly/model_origin_inspector_measurements.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,12 +12,11 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// OriginInspectorMeasurements A measurements object provides a count of the total number of `responses` received by Fastly from your origin servers in the reported time period, for the relevant POP and backend name as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. +// OriginInspectorMeasurements A measurements object provides a count of the total number of `responses` received by Fastly from your origin servers in the reported time period, for the relevant POP and backend name as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. type OriginInspectorMeasurements struct { // Number of responses from origin. Responses *int32 `json:"responses,omitempty"` @@ -322,7 +321,7 @@ type OriginInspectorMeasurements struct { // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. AllLatency10000To60000ms *int32 `json:"all_latency_10000_to_60000ms,omitempty"` // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. - AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` + AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` AdditionalProperties map[string]any } @@ -5678,7 +5677,7 @@ func (o OriginInspectorMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorMeasurements := _OriginInspectorMeasurements{} @@ -5847,7 +5846,7 @@ func (o *OriginInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorMeasurements is a helper abstraction for handling nullable origininspectormeasurements types. +// NullableOriginInspectorMeasurements is a helper abstraction for handling nullable origininspectormeasurements types. type NullableOriginInspectorMeasurements struct { value *OriginInspectorMeasurements isSet bool @@ -5887,7 +5886,7 @@ func (v NullableOriginInspectorMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorMeasurements) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_realtime_entry.go b/fastly/model_origin_inspector_realtime_entry.go index e086c94..49c8856 100644 --- a/fastly/model_origin_inspector_realtime_entry.go +++ b/fastly/model_origin_inspector_realtime_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// OriginInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped by origin name and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs. +// OriginInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped by origin name and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs. type OriginInspectorRealtimeEntry struct { // The Unix timestamp at which this record's data was generated. Recorded *int32 `json:"recorded,omitempty"` // Groups [measurements](#measurements-data-model) by backend name. Aggregated *map[string]OriginInspectorMeasurements `json:"aggregated,omitempty"` // Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details about POP identifiers. - Datacenter *map[string]map[string]OriginInspectorMeasurements `json:"datacenter,omitempty"` + Datacenter *map[string]map[string]OriginInspectorMeasurements `json:"datacenter,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o OriginInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorRealtimeEntry := _OriginInspectorRealtimeEntry{} @@ -185,7 +184,7 @@ func (o *OriginInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorRealtimeEntry is a helper abstraction for handling nullable origininspectorrealtimeentry types. +// NullableOriginInspectorRealtimeEntry is a helper abstraction for handling nullable origininspectorrealtimeentry types. type NullableOriginInspectorRealtimeEntry struct { value *OriginInspectorRealtimeEntry isSet bool @@ -225,7 +224,7 @@ func (v NullableOriginInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorRealtimeEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_origin_inspector_values.go b/fastly/model_origin_inspector_values.go index b048cd2..c8471af 100644 --- a/fastly/model_origin_inspector_values.go +++ b/fastly/model_origin_inspector_values.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -322,7 +321,7 @@ type OriginInspectorValues struct { // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. AllLatency10000To60000ms *int32 `json:"all_latency_10000_to_60000ms,omitempty"` // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. - AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` + AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` AdditionalProperties map[string]any } @@ -5678,7 +5677,7 @@ func (o OriginInspectorValues) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *OriginInspectorValues) UnmarshalJSON(bytes []byte) (err error) { varOriginInspectorValues := _OriginInspectorValues{} @@ -5847,7 +5846,7 @@ func (o *OriginInspectorValues) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableOriginInspectorValues is a helper abstraction for handling nullable origininspectorvalues types. +// NullableOriginInspectorValues is a helper abstraction for handling nullable origininspectorvalues types. type NullableOriginInspectorValues struct { value *OriginInspectorValues isSet bool @@ -5887,7 +5886,7 @@ func (v NullableOriginInspectorValues) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableOriginInspectorValues) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_package.go b/fastly/model_package.go index e6bb909..726b0d0 100644 --- a/fastly/model_package.go +++ b/fastly/model_package.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ModelPackage struct for ModelPackage type ModelPackage struct { - Metadata *PackageMetadata `json:"metadata,omitempty"` + Metadata *PackageMetadata `json:"metadata,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ModelPackage) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ModelPackage) UnmarshalJSON(bytes []byte) (err error) { varModelPackage := _ModelPackage{} @@ -108,7 +107,7 @@ func (o *ModelPackage) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableModelPackage is a helper abstraction for handling nullable modelpackage types. +// NullableModelPackage is a helper abstraction for handling nullable modelpackage types. type NullableModelPackage struct { value *ModelPackage isSet bool @@ -148,7 +147,7 @@ func (v NullableModelPackage) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableModelPackage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_package_metadata.go b/fastly/model_package_metadata.go index 1860402..b08f65a 100644 --- a/fastly/model_package_metadata.go +++ b/fastly/model_package_metadata.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,12 +12,11 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) -// PackageMetadata [Package metadata](#metadata-model) that has been extracted from the uploaded package. +// PackageMetadata [Package metadata](#metadata-model) that has been extracted from the uploaded package. type PackageMetadata struct { // Name of the Compute package. Name *string `json:"name,omitempty"` @@ -32,7 +31,7 @@ type PackageMetadata struct { // Hash of the Compute package. Hashsum *string `json:"hashsum,omitempty"` // Hash of the files within the Compute package. - FilesHash *string `json:"files_hash,omitempty"` + FilesHash *string `json:"files_hash,omitempty"` AdditionalProperties map[string]any } @@ -313,7 +312,7 @@ func (o PackageMetadata) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PackageMetadata) UnmarshalJSON(bytes []byte) (err error) { varPackageMetadata := _PackageMetadata{} @@ -337,7 +336,7 @@ func (o *PackageMetadata) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePackageMetadata is a helper abstraction for handling nullable packagemetadata types. +// NullablePackageMetadata is a helper abstraction for handling nullable packagemetadata types. type NullablePackageMetadata struct { value *PackageMetadata isSet bool @@ -377,7 +376,7 @@ func (v NullablePackageMetadata) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePackageMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_package_response.go b/fastly/model_package_response.go index d623b1b..6bdd758 100644 --- a/fastly/model_package_response.go +++ b/fastly/model_package_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,9 +19,9 @@ import ( // PackageResponse struct for PackageResponse type PackageResponse struct { - Metadata *PackageMetadata `json:"metadata,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Metadata *PackageMetadata `json:"metadata,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -30,7 +29,7 @@ type PackageResponse struct { // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` // Alphanumeric string identifying the package. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o *PackageResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PackageResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -181,6 +180,7 @@ func (o *PackageResponse) HasCreatedAt() bool { func (o *PackageResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *PackageResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -204,7 +204,7 @@ func (o *PackageResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PackageResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -223,6 +223,7 @@ func (o *PackageResponse) HasDeletedAt() bool { func (o *PackageResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *PackageResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -246,7 +247,7 @@ func (o *PackageResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PackageResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -265,6 +266,7 @@ func (o *PackageResponse) HasUpdatedAt() bool { func (o *PackageResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *PackageResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -341,7 +343,7 @@ func (o PackageResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PackageResponse) UnmarshalJSON(bytes []byte) (err error) { varPackageResponse := _PackageResponse{} @@ -365,7 +367,7 @@ func (o *PackageResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePackageResponse is a helper abstraction for handling nullable packageresponse types. +// NullablePackageResponse is a helper abstraction for handling nullable packageresponse types. type NullablePackageResponse struct { value *PackageResponse isSet bool @@ -405,7 +407,7 @@ func (v NullablePackageResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePackageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_package_response_all_of.go b/fastly/model_package_response_all_of.go index 7585e2c..a8d9021 100644 --- a/fastly/model_package_response_all_of.go +++ b/fastly/model_package_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // PackageResponseAllOf struct for PackageResponseAllOf type PackageResponseAllOf struct { // Alphanumeric string identifying the package. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o PackageResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PackageResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varPackageResponseAllOf := _PackageResponseAllOf{} @@ -109,7 +108,7 @@ func (o *PackageResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePackageResponseAllOf is a helper abstraction for handling nullable packageresponseallof types. +// NullablePackageResponseAllOf is a helper abstraction for handling nullable packageresponseallof types. type NullablePackageResponseAllOf struct { value *PackageResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullablePackageResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePackageResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pagination.go b/fastly/model_pagination.go index e1f2f93..c6da8a6 100644 --- a/fastly/model_pagination.go +++ b/fastly/model_pagination.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Pagination struct for Pagination type Pagination struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o Pagination) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Pagination) UnmarshalJSON(bytes []byte) (err error) { varPagination := _Pagination{} @@ -145,7 +144,7 @@ func (o *Pagination) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePagination is a helper abstraction for handling nullable pagination types. +// NullablePagination is a helper abstraction for handling nullable pagination types. type NullablePagination struct { value *Pagination isSet bool @@ -185,7 +184,7 @@ func (v NullablePagination) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePagination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pagination_cursor_meta.go b/fastly/model_pagination_cursor_meta.go index a707206..eaf8165 100644 --- a/fastly/model_pagination_cursor_meta.go +++ b/fastly/model_pagination_cursor_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type PaginationCursorMeta struct { // Cursor for the next page. NextCursor *string `json:"next_cursor,omitempty"` // Maximum number of results returned. - Limit *int32 `json:"limit,omitempty"` + Limit *int32 `json:"limit,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o PaginationCursorMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PaginationCursorMeta) UnmarshalJSON(bytes []byte) (err error) { varPaginationCursorMeta := _PaginationCursorMeta{} @@ -147,7 +146,7 @@ func (o *PaginationCursorMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePaginationCursorMeta is a helper abstraction for handling nullable paginationcursormeta types. +// NullablePaginationCursorMeta is a helper abstraction for handling nullable paginationcursormeta types. type NullablePaginationCursorMeta struct { value *PaginationCursorMeta isSet bool @@ -187,7 +186,7 @@ func (v NullablePaginationCursorMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePaginationCursorMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pagination_links.go b/fastly/model_pagination_links.go index 0d6e60a..a4089a0 100644 --- a/fastly/model_pagination_links.go +++ b/fastly/model_pagination_links.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type PaginationLinks struct { // The previous page of data. Prev NullableString `json:"prev,omitempty"` // The next page of data. - Next NullableString `json:"next,omitempty"` + Next NullableString `json:"next,omitempty"` AdditionalProperties map[string]any } @@ -62,7 +61,7 @@ func (o *PaginationLinks) GetFirst() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PaginationLinks) GetFirstOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.First.Get(), o.First.IsSet() @@ -81,6 +80,7 @@ func (o *PaginationLinks) HasFirst() bool { func (o *PaginationLinks) SetFirst(v string) { o.First.Set(&v) } + // SetFirstNil sets the value for First to be an explicit nil func (o *PaginationLinks) SetFirstNil() { o.First.Set(nil) @@ -104,7 +104,7 @@ func (o *PaginationLinks) GetLast() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PaginationLinks) GetLastOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Last.Get(), o.Last.IsSet() @@ -123,6 +123,7 @@ func (o *PaginationLinks) HasLast() bool { func (o *PaginationLinks) SetLast(v string) { o.Last.Set(&v) } + // SetLastNil sets the value for Last to be an explicit nil func (o *PaginationLinks) SetLastNil() { o.Last.Set(nil) @@ -146,7 +147,7 @@ func (o *PaginationLinks) GetPrev() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PaginationLinks) GetPrevOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Prev.Get(), o.Prev.IsSet() @@ -165,6 +166,7 @@ func (o *PaginationLinks) HasPrev() bool { func (o *PaginationLinks) SetPrev(v string) { o.Prev.Set(&v) } + // SetPrevNil sets the value for Prev to be an explicit nil func (o *PaginationLinks) SetPrevNil() { o.Prev.Set(nil) @@ -188,7 +190,7 @@ func (o *PaginationLinks) GetNext() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PaginationLinks) GetNextOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Next.Get(), o.Next.IsSet() @@ -207,6 +209,7 @@ func (o *PaginationLinks) HasNext() bool { func (o *PaginationLinks) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginationLinks) SetNextNil() { o.Next.Set(nil) @@ -242,7 +245,7 @@ func (o PaginationLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PaginationLinks) UnmarshalJSON(bytes []byte) (err error) { varPaginationLinks := _PaginationLinks{} @@ -263,7 +266,7 @@ func (o *PaginationLinks) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePaginationLinks is a helper abstraction for handling nullable paginationlinks types. +// NullablePaginationLinks is a helper abstraction for handling nullable paginationlinks types. type NullablePaginationLinks struct { value *PaginationLinks isSet bool @@ -303,7 +306,7 @@ func (v NullablePaginationLinks) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePaginationLinks) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pagination_meta.go b/fastly/model_pagination_meta.go index d3d66b6..d7ee5a3 100644 --- a/fastly/model_pagination_meta.go +++ b/fastly/model_pagination_meta.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type PaginationMeta struct { // Total records in result set. RecordCount *int32 `json:"record_count,omitempty"` // Total pages in result set. - TotalPages *int32 `json:"total_pages,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` AdditionalProperties map[string]any } @@ -206,7 +205,7 @@ func (o PaginationMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PaginationMeta) UnmarshalJSON(bytes []byte) (err error) { varPaginationMeta := _PaginationMeta{} @@ -227,7 +226,7 @@ func (o *PaginationMeta) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePaginationMeta is a helper abstraction for handling nullable paginationmeta types. +// NullablePaginationMeta is a helper abstraction for handling nullable paginationmeta types. type NullablePaginationMeta struct { value *PaginationMeta isSet bool @@ -267,7 +266,7 @@ func (v NullablePaginationMeta) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePaginationMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_permission.go b/fastly/model_permission.go index 3fc1342..83d4b31 100644 --- a/fastly/model_permission.go +++ b/fastly/model_permission.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -23,10 +22,10 @@ type Permission string // List of permission const ( - PERMISSION_FULL Permission = "full" - PERMISSION_READ_ONLY Permission = "read_only" + PERMISSION_FULL Permission = "full" + PERMISSION_READ_ONLY Permission = "read_only" PERMISSION_PURGE_SELECT Permission = "purge_select" - PERMISSION_PURGE_ALL Permission = "purge_all" + PERMISSION_PURGE_ALL Permission = "purge_all" ) // AllowedPermissionEnumValues All allowed values of Permission enum @@ -38,7 +37,7 @@ var AllowedPermissionEnumValues = []Permission{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *Permission) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -63,7 +62,7 @@ func NewPermissionFromValue(v string) (*Permission, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for Permission: valid values are %v", v, AllowedPermissionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for Permission: valid values are %v", v, AllowedPermissionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -81,7 +80,7 @@ func (v Permission) Ptr() *Permission { return &v } -// NullablePermission is a helper abstraction for handling nullable permission types. +// NullablePermission is a helper abstraction for handling nullable permission types. type NullablePermission struct { value *Permission isSet bool @@ -121,7 +120,7 @@ func (v NullablePermission) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePermission) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_platform_ddos_data_items.go b/fastly/model_platform_ddos_data_items.go index 1d39e32..fcda643 100644 --- a/fastly/model_platform_ddos_data_items.go +++ b/fastly/model_platform_ddos_data_items.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PlatformDdosDataItems struct for PlatformDdosDataItems type PlatformDdosDataItems struct { - Values *Values `json:"values,omitempty"` + Values *Values `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o PlatformDdosDataItems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PlatformDdosDataItems) UnmarshalJSON(bytes []byte) (err error) { varPlatformDdosDataItems := _PlatformDdosDataItems{} @@ -108,7 +107,7 @@ func (o *PlatformDdosDataItems) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePlatformDdosDataItems is a helper abstraction for handling nullable platformddosdataitems types. +// NullablePlatformDdosDataItems is a helper abstraction for handling nullable platformddosdataitems types. type NullablePlatformDdosDataItems struct { value *PlatformDdosDataItems isSet bool @@ -148,7 +147,7 @@ func (v NullablePlatformDdosDataItems) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePlatformDdosDataItems) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_platform_ddos_entry.go b/fastly/model_platform_ddos_entry.go index ecc7c6e..e785541 100644 --- a/fastly/model_platform_ddos_entry.go +++ b/fastly/model_platform_ddos_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PlatformDdosEntry struct for PlatformDdosEntry type PlatformDdosEntry struct { - // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. - Values []ValuesDdos `json:"values,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []ValuesDdos `json:"values,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o PlatformDdosEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PlatformDdosEntry) UnmarshalJSON(bytes []byte) (err error) { varPlatformDdosEntry := _PlatformDdosEntry{} @@ -109,7 +108,7 @@ func (o *PlatformDdosEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePlatformDdosEntry is a helper abstraction for handling nullable platformddosentry types. +// NullablePlatformDdosEntry is a helper abstraction for handling nullable platformddosentry types. type NullablePlatformDdosEntry struct { value *PlatformDdosEntry isSet bool @@ -149,7 +148,7 @@ func (v NullablePlatformDdosEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePlatformDdosEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_platform_ddos_response.go b/fastly/model_platform_ddos_response.go index 7b7be75..0bf3d5f 100644 --- a/fastly/model_platform_ddos_response.go +++ b/fastly/model_platform_ddos_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,12 +19,12 @@ import ( // PlatformDdosResponse struct for PlatformDdosResponse type PlatformDdosResponse struct { // Whether or not we were able to successfully execute the query. - Status *string `json:"status,omitempty"` - Meta *HistoricalDdosMeta `json:"meta,omitempty"` + Status *string `json:"status,omitempty"` + Meta *HistoricalDdosMeta `json:"meta,omitempty"` // If the query was not successful, this will provide a string that explains why. Msg NullableString `json:"msg,omitempty"` // A list of timeseries. - Data []PlatformDdosEntry `json:"data,omitempty"` + Data []PlatformDdosEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *PlatformDdosResponse) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PlatformDdosResponse) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -144,6 +143,7 @@ func (o *PlatformDdosResponse) HasMsg() bool { func (o *PlatformDdosResponse) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *PlatformDdosResponse) SetMsgNil() { o.Msg.Set(nil) @@ -211,7 +211,7 @@ func (o PlatformDdosResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PlatformDdosResponse) UnmarshalJSON(bytes []byte) (err error) { varPlatformDdosResponse := _PlatformDdosResponse{} @@ -232,7 +232,7 @@ func (o *PlatformDdosResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePlatformDdosResponse is a helper abstraction for handling nullable platformddosresponse types. +// NullablePlatformDdosResponse is a helper abstraction for handling nullable platformddosresponse types. type NullablePlatformDdosResponse struct { value *PlatformDdosResponse isSet bool @@ -272,7 +272,7 @@ func (v NullablePlatformDdosResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePlatformDdosResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_platform_ddos_response_all_of.go b/fastly/model_platform_ddos_response_all_of.go index bbe7739..495cdaa 100644 --- a/fastly/model_platform_ddos_response_all_of.go +++ b/fastly/model_platform_ddos_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // PlatformDdosResponseAllOf struct for PlatformDdosResponseAllOf type PlatformDdosResponseAllOf struct { // A list of timeseries. - Data []PlatformDdosEntry `json:"data,omitempty"` + Data []PlatformDdosEntry `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o PlatformDdosResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PlatformDdosResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varPlatformDdosResponseAllOf := _PlatformDdosResponseAllOf{} @@ -109,7 +108,7 @@ func (o *PlatformDdosResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePlatformDdosResponseAllOf is a helper abstraction for handling nullable platformddosresponseallof types. +// NullablePlatformDdosResponseAllOf is a helper abstraction for handling nullable platformddosresponseallof types. type NullablePlatformDdosResponseAllOf struct { value *PlatformDdosResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullablePlatformDdosResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePlatformDdosResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_additional.go b/fastly/model_pool_additional.go index a9d29db..89dbeb1 100644 --- a/fastly/model_pool_additional.go +++ b/fastly/model_pool_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -40,7 +39,7 @@ type PoolAdditional struct { // What type of load balance group to use. Type *string `json:"type,omitempty"` // The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. - OverrideHost NullableString `json:"override_host,omitempty"` + OverrideHost NullableString `json:"override_host,omitempty"` AdditionalProperties map[string]any } @@ -116,7 +115,7 @@ func (o *PoolAdditional) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -135,6 +134,7 @@ func (o *PoolAdditional) HasShield() bool { func (o *PoolAdditional) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *PoolAdditional) SetShieldNil() { o.Shield.Set(nil) @@ -158,7 +158,7 @@ func (o *PoolAdditional) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -177,6 +177,7 @@ func (o *PoolAdditional) HasRequestCondition() bool { func (o *PoolAdditional) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *PoolAdditional) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -200,7 +201,7 @@ func (o *PoolAdditional) GetTLSCiphers() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetTLSCiphersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCiphers.Get(), o.TLSCiphers.IsSet() @@ -219,6 +220,7 @@ func (o *PoolAdditional) HasTLSCiphers() bool { func (o *PoolAdditional) SetTLSCiphers(v string) { o.TLSCiphers.Set(&v) } + // SetTLSCiphersNil sets the value for TLSCiphers to be an explicit nil func (o *PoolAdditional) SetTLSCiphersNil() { o.TLSCiphers.Set(nil) @@ -242,7 +244,7 @@ func (o *PoolAdditional) GetTLSSniHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetTLSSniHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSSniHostname.Get(), o.TLSSniHostname.IsSet() @@ -261,6 +263,7 @@ func (o *PoolAdditional) HasTLSSniHostname() bool { func (o *PoolAdditional) SetTLSSniHostname(v string) { o.TLSSniHostname.Set(&v) } + // SetTLSSniHostnameNil sets the value for TLSSniHostname to be an explicit nil func (o *PoolAdditional) SetTLSSniHostnameNil() { o.TLSSniHostname.Set(nil) @@ -284,7 +287,7 @@ func (o *PoolAdditional) GetMinTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetMinTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet() @@ -303,6 +306,7 @@ func (o *PoolAdditional) HasMinTLSVersion() bool { func (o *PoolAdditional) SetMinTLSVersion(v int32) { o.MinTLSVersion.Set(&v) } + // SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil func (o *PoolAdditional) SetMinTLSVersionNil() { o.MinTLSVersion.Set(nil) @@ -326,7 +330,7 @@ func (o *PoolAdditional) GetMaxTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetMaxTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet() @@ -345,6 +349,7 @@ func (o *PoolAdditional) HasMaxTLSVersion() bool { func (o *PoolAdditional) SetMaxTLSVersion(v int32) { o.MaxTLSVersion.Set(&v) } + // SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil func (o *PoolAdditional) SetMaxTLSVersionNil() { o.MaxTLSVersion.Set(nil) @@ -368,7 +373,7 @@ func (o *PoolAdditional) GetHealthcheck() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetHealthcheckOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Healthcheck.Get(), o.Healthcheck.IsSet() @@ -387,6 +392,7 @@ func (o *PoolAdditional) HasHealthcheck() bool { func (o *PoolAdditional) SetHealthcheck(v string) { o.Healthcheck.Set(&v) } + // SetHealthcheckNil sets the value for Healthcheck to be an explicit nil func (o *PoolAdditional) SetHealthcheckNil() { o.Healthcheck.Set(nil) @@ -410,7 +416,7 @@ func (o *PoolAdditional) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -429,6 +435,7 @@ func (o *PoolAdditional) HasComment() bool { func (o *PoolAdditional) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *PoolAdditional) SetCommentNil() { o.Comment.Set(nil) @@ -484,7 +491,7 @@ func (o *PoolAdditional) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolAdditional) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -503,6 +510,7 @@ func (o *PoolAdditional) HasOverrideHost() bool { func (o *PoolAdditional) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *PoolAdditional) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -559,7 +567,7 @@ func (o PoolAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolAdditional) UnmarshalJSON(bytes []byte) (err error) { varPoolAdditional := _PoolAdditional{} @@ -587,7 +595,7 @@ func (o *PoolAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolAdditional is a helper abstraction for handling nullable pooladditional types. +// NullablePoolAdditional is a helper abstraction for handling nullable pooladditional types. type NullablePoolAdditional struct { value *PoolAdditional isSet bool @@ -627,7 +635,7 @@ func (v NullablePoolAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_response.go b/fastly/model_pool_response.go index 6bba847..bbbb843 100644 --- a/fastly/model_pool_response.go +++ b/fastly/model_pool_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -36,8 +35,8 @@ type PoolResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Name for the Pool. Name *string `json:"name,omitempty"` // Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. @@ -70,9 +69,9 @@ type PoolResponse struct { MaxConnDefault *string `json:"max_conn_default,omitempty"` // Be strict on checking TLS certs. TLSCheckCert NullableString `json:"tls_check_cert,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. - Quorum *string `json:"quorum,omitempty"` + Quorum *string `json:"quorum,omitempty"` AdditionalProperties map[string]any } @@ -144,7 +143,7 @@ func (o *PoolResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -163,6 +162,7 @@ func (o *PoolResponse) HasTLSCaCert() bool { func (o *PoolResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *PoolResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -186,7 +186,7 @@ func (o *PoolResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -205,6 +205,7 @@ func (o *PoolResponse) HasTLSClientCert() bool { func (o *PoolResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *PoolResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -228,7 +229,7 @@ func (o *PoolResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -247,6 +248,7 @@ func (o *PoolResponse) HasTLSClientKey() bool { func (o *PoolResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *PoolResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -270,7 +272,7 @@ func (o *PoolResponse) GetTLSCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCertHostname.Get(), o.TLSCertHostname.IsSet() @@ -289,6 +291,7 @@ func (o *PoolResponse) HasTLSCertHostname() bool { func (o *PoolResponse) SetTLSCertHostname(v string) { o.TLSCertHostname.Set(&v) } + // SetTLSCertHostnameNil sets the value for TLSCertHostname to be an explicit nil func (o *PoolResponse) SetTLSCertHostnameNil() { o.TLSCertHostname.Set(nil) @@ -344,7 +347,7 @@ func (o *PoolResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -363,6 +366,7 @@ func (o *PoolResponse) HasCreatedAt() bool { func (o *PoolResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *PoolResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -386,7 +390,7 @@ func (o *PoolResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -405,6 +409,7 @@ func (o *PoolResponse) HasDeletedAt() bool { func (o *PoolResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *PoolResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -428,7 +433,7 @@ func (o *PoolResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -447,6 +452,7 @@ func (o *PoolResponse) HasUpdatedAt() bool { func (o *PoolResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *PoolResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -566,7 +572,7 @@ func (o *PoolResponse) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -585,6 +591,7 @@ func (o *PoolResponse) HasShield() bool { func (o *PoolResponse) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *PoolResponse) SetShieldNil() { o.Shield.Set(nil) @@ -608,7 +615,7 @@ func (o *PoolResponse) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -627,6 +634,7 @@ func (o *PoolResponse) HasRequestCondition() bool { func (o *PoolResponse) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *PoolResponse) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -650,7 +658,7 @@ func (o *PoolResponse) GetTLSCiphers() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSCiphersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCiphers.Get(), o.TLSCiphers.IsSet() @@ -669,6 +677,7 @@ func (o *PoolResponse) HasTLSCiphers() bool { func (o *PoolResponse) SetTLSCiphers(v string) { o.TLSCiphers.Set(&v) } + // SetTLSCiphersNil sets the value for TLSCiphers to be an explicit nil func (o *PoolResponse) SetTLSCiphersNil() { o.TLSCiphers.Set(nil) @@ -692,7 +701,7 @@ func (o *PoolResponse) GetTLSSniHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSSniHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSSniHostname.Get(), o.TLSSniHostname.IsSet() @@ -711,6 +720,7 @@ func (o *PoolResponse) HasTLSSniHostname() bool { func (o *PoolResponse) SetTLSSniHostname(v string) { o.TLSSniHostname.Set(&v) } + // SetTLSSniHostnameNil sets the value for TLSSniHostname to be an explicit nil func (o *PoolResponse) SetTLSSniHostnameNil() { o.TLSSniHostname.Set(nil) @@ -734,7 +744,7 @@ func (o *PoolResponse) GetMinTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetMinTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet() @@ -753,6 +763,7 @@ func (o *PoolResponse) HasMinTLSVersion() bool { func (o *PoolResponse) SetMinTLSVersion(v int32) { o.MinTLSVersion.Set(&v) } + // SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil func (o *PoolResponse) SetMinTLSVersionNil() { o.MinTLSVersion.Set(nil) @@ -776,7 +787,7 @@ func (o *PoolResponse) GetMaxTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetMaxTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet() @@ -795,6 +806,7 @@ func (o *PoolResponse) HasMaxTLSVersion() bool { func (o *PoolResponse) SetMaxTLSVersion(v int32) { o.MaxTLSVersion.Set(&v) } + // SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil func (o *PoolResponse) SetMaxTLSVersionNil() { o.MaxTLSVersion.Set(nil) @@ -818,7 +830,7 @@ func (o *PoolResponse) GetHealthcheck() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetHealthcheckOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Healthcheck.Get(), o.Healthcheck.IsSet() @@ -837,6 +849,7 @@ func (o *PoolResponse) HasHealthcheck() bool { func (o *PoolResponse) SetHealthcheck(v string) { o.Healthcheck.Set(&v) } + // SetHealthcheckNil sets the value for Healthcheck to be an explicit nil func (o *PoolResponse) SetHealthcheckNil() { o.Healthcheck.Set(nil) @@ -860,7 +873,7 @@ func (o *PoolResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -879,6 +892,7 @@ func (o *PoolResponse) HasComment() bool { func (o *PoolResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *PoolResponse) SetCommentNil() { o.Comment.Set(nil) @@ -934,7 +948,7 @@ func (o *PoolResponse) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -953,6 +967,7 @@ func (o *PoolResponse) HasOverrideHost() bool { func (o *PoolResponse) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *PoolResponse) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -1104,7 +1119,7 @@ func (o *PoolResponse) GetTLSCheckCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponse) GetTLSCheckCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCheckCert.Get(), o.TLSCheckCert.IsSet() @@ -1123,6 +1138,7 @@ func (o *PoolResponse) HasTLSCheckCert() bool { func (o *PoolResponse) SetTLSCheckCert(v string) { o.TLSCheckCert.Set(&v) } + // SetTLSCheckCertNil sets the value for TLSCheckCert to be an explicit nil func (o *PoolResponse) SetTLSCheckCertNil() { o.TLSCheckCert.Set(nil) @@ -1294,7 +1310,7 @@ func (o PoolResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolResponse) UnmarshalJSON(bytes []byte) (err error) { varPoolResponse := _PoolResponse{} @@ -1339,7 +1355,7 @@ func (o *PoolResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolResponse is a helper abstraction for handling nullable poolresponse types. +// NullablePoolResponse is a helper abstraction for handling nullable poolresponse types. type NullablePoolResponse struct { value *PoolResponse isSet bool @@ -1379,7 +1395,7 @@ func (v NullablePoolResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_response_all_of.go b/fastly/model_pool_response_all_of.go index 0cfb9ab..1e211b7 100644 --- a/fastly/model_pool_response_all_of.go +++ b/fastly/model_pool_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // PoolResponseAllOf struct for PoolResponseAllOf type PoolResponseAllOf struct { // Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. - Quorum *string `json:"quorum,omitempty"` + Quorum *string `json:"quorum,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o PoolResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varPoolResponseAllOf := _PoolResponseAllOf{} @@ -113,7 +112,7 @@ func (o *PoolResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolResponseAllOf is a helper abstraction for handling nullable poolresponseallof types. +// NullablePoolResponseAllOf is a helper abstraction for handling nullable poolresponseallof types. type NullablePoolResponseAllOf struct { value *PoolResponseAllOf isSet bool @@ -153,7 +152,7 @@ func (v NullablePoolResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_response_common.go b/fastly/model_pool_response_common.go index e7e53b8..32ea831 100644 --- a/fastly/model_pool_response_common.go +++ b/fastly/model_pool_response_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,8 +27,8 @@ type PoolResponseCommon struct { // Maximum number of connections. MaxConnDefault *string `json:"max_conn_default,omitempty"` // Be strict on checking TLS certs. - TLSCheckCert NullableString `json:"tls_check_cert,omitempty"` - ID *string `json:"id,omitempty"` + TLSCheckCert NullableString `json:"tls_check_cert,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -197,7 +196,7 @@ func (o *PoolResponseCommon) GetTLSCheckCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponseCommon) GetTLSCheckCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCheckCert.Get(), o.TLSCheckCert.IsSet() @@ -216,6 +215,7 @@ func (o *PoolResponseCommon) HasTLSCheckCert() bool { func (o *PoolResponseCommon) SetTLSCheckCert(v string) { o.TLSCheckCert.Set(&v) } + // SetTLSCheckCertNil sets the value for TLSCheckCert to be an explicit nil func (o *PoolResponseCommon) SetTLSCheckCertNil() { o.TLSCheckCert.Set(nil) @@ -289,7 +289,7 @@ func (o PoolResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolResponseCommon) UnmarshalJSON(bytes []byte) (err error) { varPoolResponseCommon := _PoolResponseCommon{} @@ -312,7 +312,7 @@ func (o *PoolResponseCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolResponseCommon is a helper abstraction for handling nullable poolresponsecommon types. +// NullablePoolResponseCommon is a helper abstraction for handling nullable poolresponsecommon types. type NullablePoolResponseCommon struct { value *PoolResponseCommon isSet bool @@ -352,7 +352,7 @@ func (v NullablePoolResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolResponseCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_response_post.go b/fastly/model_pool_response_post.go index 9ae3410..d9e0967 100644 --- a/fastly/model_pool_response_post.go +++ b/fastly/model_pool_response_post.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -36,8 +35,8 @@ type PoolResponsePost struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Name for the Pool. Name *string `json:"name,omitempty"` // Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. @@ -70,9 +69,9 @@ type PoolResponsePost struct { MaxConnDefault *string `json:"max_conn_default,omitempty"` // Be strict on checking TLS certs. TLSCheckCert NullableString `json:"tls_check_cert,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. - Quorum *int32 `json:"quorum,omitempty"` + Quorum *int32 `json:"quorum,omitempty"` AdditionalProperties map[string]any } @@ -144,7 +143,7 @@ func (o *PoolResponsePost) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -163,6 +162,7 @@ func (o *PoolResponsePost) HasTLSCaCert() bool { func (o *PoolResponsePost) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *PoolResponsePost) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -186,7 +186,7 @@ func (o *PoolResponsePost) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -205,6 +205,7 @@ func (o *PoolResponsePost) HasTLSClientCert() bool { func (o *PoolResponsePost) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *PoolResponsePost) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -228,7 +229,7 @@ func (o *PoolResponsePost) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -247,6 +248,7 @@ func (o *PoolResponsePost) HasTLSClientKey() bool { func (o *PoolResponsePost) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *PoolResponsePost) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -270,7 +272,7 @@ func (o *PoolResponsePost) GetTLSCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCertHostname.Get(), o.TLSCertHostname.IsSet() @@ -289,6 +291,7 @@ func (o *PoolResponsePost) HasTLSCertHostname() bool { func (o *PoolResponsePost) SetTLSCertHostname(v string) { o.TLSCertHostname.Set(&v) } + // SetTLSCertHostnameNil sets the value for TLSCertHostname to be an explicit nil func (o *PoolResponsePost) SetTLSCertHostnameNil() { o.TLSCertHostname.Set(nil) @@ -344,7 +347,7 @@ func (o *PoolResponsePost) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -363,6 +366,7 @@ func (o *PoolResponsePost) HasCreatedAt() bool { func (o *PoolResponsePost) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *PoolResponsePost) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -386,7 +390,7 @@ func (o *PoolResponsePost) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -405,6 +409,7 @@ func (o *PoolResponsePost) HasDeletedAt() bool { func (o *PoolResponsePost) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *PoolResponsePost) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -428,7 +433,7 @@ func (o *PoolResponsePost) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -447,6 +452,7 @@ func (o *PoolResponsePost) HasUpdatedAt() bool { func (o *PoolResponsePost) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *PoolResponsePost) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -566,7 +572,7 @@ func (o *PoolResponsePost) GetShield() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetShieldOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Shield.Get(), o.Shield.IsSet() @@ -585,6 +591,7 @@ func (o *PoolResponsePost) HasShield() bool { func (o *PoolResponsePost) SetShield(v string) { o.Shield.Set(&v) } + // SetShieldNil sets the value for Shield to be an explicit nil func (o *PoolResponsePost) SetShieldNil() { o.Shield.Set(nil) @@ -608,7 +615,7 @@ func (o *PoolResponsePost) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -627,6 +634,7 @@ func (o *PoolResponsePost) HasRequestCondition() bool { func (o *PoolResponsePost) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *PoolResponsePost) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -650,7 +658,7 @@ func (o *PoolResponsePost) GetTLSCiphers() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSCiphersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCiphers.Get(), o.TLSCiphers.IsSet() @@ -669,6 +677,7 @@ func (o *PoolResponsePost) HasTLSCiphers() bool { func (o *PoolResponsePost) SetTLSCiphers(v string) { o.TLSCiphers.Set(&v) } + // SetTLSCiphersNil sets the value for TLSCiphers to be an explicit nil func (o *PoolResponsePost) SetTLSCiphersNil() { o.TLSCiphers.Set(nil) @@ -692,7 +701,7 @@ func (o *PoolResponsePost) GetTLSSniHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSSniHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSSniHostname.Get(), o.TLSSniHostname.IsSet() @@ -711,6 +720,7 @@ func (o *PoolResponsePost) HasTLSSniHostname() bool { func (o *PoolResponsePost) SetTLSSniHostname(v string) { o.TLSSniHostname.Set(&v) } + // SetTLSSniHostnameNil sets the value for TLSSniHostname to be an explicit nil func (o *PoolResponsePost) SetTLSSniHostnameNil() { o.TLSSniHostname.Set(nil) @@ -734,7 +744,7 @@ func (o *PoolResponsePost) GetMinTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetMinTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet() @@ -753,6 +763,7 @@ func (o *PoolResponsePost) HasMinTLSVersion() bool { func (o *PoolResponsePost) SetMinTLSVersion(v int32) { o.MinTLSVersion.Set(&v) } + // SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil func (o *PoolResponsePost) SetMinTLSVersionNil() { o.MinTLSVersion.Set(nil) @@ -776,7 +787,7 @@ func (o *PoolResponsePost) GetMaxTLSVersion() int32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetMaxTLSVersionOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet() @@ -795,6 +806,7 @@ func (o *PoolResponsePost) HasMaxTLSVersion() bool { func (o *PoolResponsePost) SetMaxTLSVersion(v int32) { o.MaxTLSVersion.Set(&v) } + // SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil func (o *PoolResponsePost) SetMaxTLSVersionNil() { o.MaxTLSVersion.Set(nil) @@ -818,7 +830,7 @@ func (o *PoolResponsePost) GetHealthcheck() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetHealthcheckOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Healthcheck.Get(), o.Healthcheck.IsSet() @@ -837,6 +849,7 @@ func (o *PoolResponsePost) HasHealthcheck() bool { func (o *PoolResponsePost) SetHealthcheck(v string) { o.Healthcheck.Set(&v) } + // SetHealthcheckNil sets the value for Healthcheck to be an explicit nil func (o *PoolResponsePost) SetHealthcheckNil() { o.Healthcheck.Set(nil) @@ -860,7 +873,7 @@ func (o *PoolResponsePost) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -879,6 +892,7 @@ func (o *PoolResponsePost) HasComment() bool { func (o *PoolResponsePost) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *PoolResponsePost) SetCommentNil() { o.Comment.Set(nil) @@ -934,7 +948,7 @@ func (o *PoolResponsePost) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -953,6 +967,7 @@ func (o *PoolResponsePost) HasOverrideHost() bool { func (o *PoolResponsePost) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *PoolResponsePost) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -1104,7 +1119,7 @@ func (o *PoolResponsePost) GetTLSCheckCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PoolResponsePost) GetTLSCheckCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCheckCert.Get(), o.TLSCheckCert.IsSet() @@ -1123,6 +1138,7 @@ func (o *PoolResponsePost) HasTLSCheckCert() bool { func (o *PoolResponsePost) SetTLSCheckCert(v string) { o.TLSCheckCert.Set(&v) } + // SetTLSCheckCertNil sets the value for TLSCheckCert to be an explicit nil func (o *PoolResponsePost) SetTLSCheckCertNil() { o.TLSCheckCert.Set(nil) @@ -1294,7 +1310,7 @@ func (o PoolResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolResponsePost) UnmarshalJSON(bytes []byte) (err error) { varPoolResponsePost := _PoolResponsePost{} @@ -1339,7 +1355,7 @@ func (o *PoolResponsePost) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolResponsePost is a helper abstraction for handling nullable poolresponsepost types. +// NullablePoolResponsePost is a helper abstraction for handling nullable poolresponsepost types. type NullablePoolResponsePost struct { value *PoolResponsePost isSet bool @@ -1379,7 +1395,7 @@ func (v NullablePoolResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolResponsePost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pool_response_post_all_of.go b/fastly/model_pool_response_post_all_of.go index 3ad03b6..e875965 100644 --- a/fastly/model_pool_response_post_all_of.go +++ b/fastly/model_pool_response_post_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // PoolResponsePostAllOf struct for PoolResponsePostAllOf type PoolResponsePostAllOf struct { // Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. - Quorum *int32 `json:"quorum,omitempty"` + Quorum *int32 `json:"quorum,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o PoolResponsePostAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PoolResponsePostAllOf) UnmarshalJSON(bytes []byte) (err error) { varPoolResponsePostAllOf := _PoolResponsePostAllOf{} @@ -113,7 +112,7 @@ func (o *PoolResponsePostAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePoolResponsePostAllOf is a helper abstraction for handling nullable poolresponsepostallof types. +// NullablePoolResponsePostAllOf is a helper abstraction for handling nullable poolresponsepostallof types. type NullablePoolResponsePostAllOf struct { value *PoolResponsePostAllOf isSet bool @@ -153,7 +152,7 @@ func (v NullablePoolResponsePostAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePoolResponsePostAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pop.go b/fastly/model_pop.go index d54e965..be6dc0b 100644 --- a/fastly/model_pop.go +++ b/fastly/model_pop.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,16 +21,16 @@ type Pop struct { // the three-letter code for the [POP](https://www.fastly.com/documentation/learning/concepts/pop/) Code string `json:"code"` // the name of the POP - Name string `json:"name"` - Group string `json:"group"` + Name string `json:"name"` + Group string `json:"group"` Region string `json:"region"` // the region used for stats reporting StatsRegion string `json:"stats_region"` // the region used for billing - BillingRegion string `json:"billing_region"` - Coordinates *PopCoordinates `json:"coordinates,omitempty"` + BillingRegion string `json:"billing_region"` + Coordinates *PopCoordinates `json:"coordinates,omitempty"` // the name of the [shield code](https://www.fastly.com/documentation/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding - Shield *string `json:"shield,omitempty"` + Shield *string `json:"shield,omitempty"` AdditionalProperties map[string]any } @@ -73,7 +72,7 @@ func (o *Pop) GetCode() string { // GetCodeOk returns a tuple with the Code field value // and a boolean to check if the value has been set. func (o *Pop) GetCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Code, true @@ -97,7 +96,7 @@ func (o *Pop) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *Pop) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Name, true @@ -121,7 +120,7 @@ func (o *Pop) GetGroup() string { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. func (o *Pop) GetGroupOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Group, true @@ -145,7 +144,7 @@ func (o *Pop) GetRegion() string { // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. func (o *Pop) GetRegionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Region, true @@ -169,7 +168,7 @@ func (o *Pop) GetStatsRegion() string { // GetStatsRegionOk returns a tuple with the StatsRegion field value // and a boolean to check if the value has been set. func (o *Pop) GetStatsRegionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.StatsRegion, true @@ -193,7 +192,7 @@ func (o *Pop) GetBillingRegion() string { // GetBillingRegionOk returns a tuple with the BillingRegion field value // and a boolean to check if the value has been set. func (o *Pop) GetBillingRegionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BillingRegion, true @@ -305,7 +304,7 @@ func (o Pop) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Pop) UnmarshalJSON(bytes []byte) (err error) { varPop := _Pop{} @@ -330,7 +329,7 @@ func (o *Pop) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePop is a helper abstraction for handling nullable pop types. +// NullablePop is a helper abstraction for handling nullable pop types. type NullablePop struct { value *Pop isSet bool @@ -370,7 +369,7 @@ func (v NullablePop) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePop) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_pop_coordinates.go b/fastly/model_pop_coordinates.go index cf69703..0e2d75c 100644 --- a/fastly/model_pop_coordinates.go +++ b/fastly/model_pop_coordinates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PopCoordinates the geographic location of the POP type PopCoordinates struct { - Latitude float32 `json:"latitude"` - Longitude float32 `json:"longitude"` + Latitude float32 `json:"latitude"` + Longitude float32 `json:"longitude"` AdditionalProperties map[string]any } @@ -58,7 +57,7 @@ func (o *PopCoordinates) GetLatitude() float32 { // GetLatitudeOk returns a tuple with the Latitude field value // and a boolean to check if the value has been set. func (o *PopCoordinates) GetLatitudeOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Latitude, true @@ -82,7 +81,7 @@ func (o *PopCoordinates) GetLongitude() float32 { // GetLongitudeOk returns a tuple with the Longitude field value // and a boolean to check if the value has been set. func (o *PopCoordinates) GetLongitudeOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Longitude, true @@ -112,7 +111,7 @@ func (o PopCoordinates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PopCoordinates) UnmarshalJSON(bytes []byte) (err error) { varPopCoordinates := _PopCoordinates{} @@ -131,7 +130,7 @@ func (o *PopCoordinates) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePopCoordinates is a helper abstraction for handling nullable popcoordinates types. +// NullablePopCoordinates is a helper abstraction for handling nullable popcoordinates types. type NullablePopCoordinates struct { value *PopCoordinates isSet bool @@ -171,7 +170,7 @@ func (v NullablePopCoordinates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePopCoordinates) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_public_ip_list.go b/fastly/model_public_ip_list.go index 27810a2..3b061c8 100644 --- a/fastly/model_public_ip_list.go +++ b/fastly/model_public_ip_list.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type PublicIPList struct { // Fastly's IPv4 ranges. Addresses []string `json:"addresses,omitempty"` // Fastly's IPv6 ranges. - Ipv6Addresses []string `json:"ipv6_addresses,omitempty"` + Ipv6Addresses []string `json:"ipv6_addresses,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o PublicIPList) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PublicIPList) UnmarshalJSON(bytes []byte) (err error) { varPublicIPList := _PublicIPList{} @@ -147,7 +146,7 @@ func (o *PublicIPList) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePublicIPList is a helper abstraction for handling nullable publiciplist types. +// NullablePublicIPList is a helper abstraction for handling nullable publiciplist types. type NullablePublicIPList struct { value *PublicIPList isSet bool @@ -187,7 +186,7 @@ func (v NullablePublicIPList) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePublicIPList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_publish_item.go b/fastly/model_publish_item.go index 8d429c9..aa396a1 100644 --- a/fastly/model_publish_item.go +++ b/fastly/model_publish_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,8 +23,8 @@ type PublishItem struct { // The ID of the message. ID *string `json:"id,omitempty"` // The ID of the previous message published on the same channel. - PrevID *string `json:"prev-id,omitempty"` - Formats PublishItemFormats `json:"formats"` + PrevID *string `json:"prev-id,omitempty"` + Formats PublishItemFormats `json:"formats"` AdditionalProperties map[string]any } @@ -63,7 +62,7 @@ func (o *PublishItem) GetChannel() string { // GetChannelOk returns a tuple with the Channel field value // and a boolean to check if the value has been set. func (o *PublishItem) GetChannelOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Channel, true @@ -151,7 +150,7 @@ func (o *PublishItem) GetFormats() PublishItemFormats { // GetFormatsOk returns a tuple with the Formats field value // and a boolean to check if the value has been set. func (o *PublishItem) GetFormatsOk() (*PublishItemFormats, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Formats, true @@ -187,7 +186,7 @@ func (o PublishItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PublishItem) UnmarshalJSON(bytes []byte) (err error) { varPublishItem := _PublishItem{} @@ -208,7 +207,7 @@ func (o *PublishItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePublishItem is a helper abstraction for handling nullable publishitem types. +// NullablePublishItem is a helper abstraction for handling nullable publishitem types. type NullablePublishItem struct { value *PublishItem isSet bool @@ -248,7 +247,7 @@ func (v NullablePublishItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePublishItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_publish_item_formats.go b/fastly/model_publish_item_formats.go index 0ea69bc..b94c5fb 100644 --- a/fastly/model_publish_item_formats.go +++ b/fastly/model_publish_item_formats.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PublishItemFormats Transport-specific message payload representations to be used for delivery. At least one format (`http-response`, `http-stream`, and/or `ws-message`) must be specified. Messages are only delivered to subscribers interested in the provided formats. For example, the `ws-message` format will only be sent to WebSocket clients. type PublishItemFormats struct { - HTTPResponse *HTTPResponseFormat `json:"http-response,omitempty"` - HTTPStream *HTTPStreamFormat `json:"http-stream,omitempty"` - WsMessage *WsMessageFormat `json:"ws-message,omitempty"` + HTTPResponse *HTTPResponseFormat `json:"http-response,omitempty"` + HTTPStream *HTTPStreamFormat `json:"http-stream,omitempty"` + WsMessage *WsMessageFormat `json:"ws-message,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o PublishItemFormats) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PublishItemFormats) UnmarshalJSON(bytes []byte) (err error) { varPublishItemFormats := _PublishItemFormats{} @@ -182,7 +181,7 @@ func (o *PublishItemFormats) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePublishItemFormats is a helper abstraction for handling nullable publishitemformats types. +// NullablePublishItemFormats is a helper abstraction for handling nullable publishitemformats types. type NullablePublishItemFormats struct { value *PublishItemFormats isSet bool @@ -222,7 +221,7 @@ func (v NullablePublishItemFormats) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePublishItemFormats) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_publish_request.go b/fastly/model_publish_request.go index dab57ad..9fd4fac 100644 --- a/fastly/model_publish_request.go +++ b/fastly/model_publish_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // PublishRequest Contains a batch of messages to publish. type PublishRequest struct { // The messages to publish. - Items []PublishItem `json:"items"` + Items []PublishItem `json:"items"` AdditionalProperties map[string]any } @@ -57,7 +56,7 @@ func (o *PublishRequest) GetItems() []PublishItem { // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. func (o *PublishRequest) GetItemsOk() ([]PublishItem, bool) { - if o == nil { + if o == nil { return nil, false } return o.Items, true @@ -84,7 +83,7 @@ func (o PublishRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PublishRequest) UnmarshalJSON(bytes []byte) (err error) { varPublishRequest := _PublishRequest{} @@ -102,7 +101,7 @@ func (o *PublishRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePublishRequest is a helper abstraction for handling nullable publishrequest types. +// NullablePublishRequest is a helper abstraction for handling nullable publishrequest types. type NullablePublishRequest struct { value *PublishRequest isSet bool @@ -142,7 +141,7 @@ func (v NullablePublishRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePublishRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_purge_keys.go b/fastly/model_purge_keys.go index 63ff5c6..f649472 100644 --- a/fastly/model_purge_keys.go +++ b/fastly/model_purge_keys.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PurgeKeys Purge multiple surrogate key tags using a JSON POST body. Not required if the `Surrogate-Key` header is specified. type PurgeKeys struct { - SurrogateKeys []string `json:"surrogate_keys,omitempty"` + SurrogateKeys []string `json:"surrogate_keys,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o PurgeKeys) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PurgeKeys) UnmarshalJSON(bytes []byte) (err error) { varPurgeKeys := _PurgeKeys{} @@ -108,7 +107,7 @@ func (o *PurgeKeys) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePurgeKeys is a helper abstraction for handling nullable purgekeys types. +// NullablePurgeKeys is a helper abstraction for handling nullable purgekeys types. type NullablePurgeKeys struct { value *PurgeKeys isSet bool @@ -148,7 +147,7 @@ func (v NullablePurgeKeys) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePurgeKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_purge_response.go b/fastly/model_purge_response.go index 39d4c5d..d92a9a6 100644 --- a/fastly/model_purge_response.go +++ b/fastly/model_purge_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // PurgeResponse struct for PurgeResponse type PurgeResponse struct { - Status *string `json:"status,omitempty"` - ID *string `json:"id,omitempty"` + Status *string `json:"status,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o PurgeResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *PurgeResponse) UnmarshalJSON(bytes []byte) (err error) { varPurgeResponse := _PurgeResponse{} @@ -145,7 +144,7 @@ func (o *PurgeResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullablePurgeResponse is a helper abstraction for handling nullable purgeresponse types. +// NullablePurgeResponse is a helper abstraction for handling nullable purgeresponse types. type NullablePurgeResponse struct { value *PurgeResponse isSet bool @@ -185,7 +184,7 @@ func (v NullablePurgeResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullablePurgeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_rate_limiter.go b/fastly/model_rate_limiter.go index 8b892fe..e11ff80 100644 --- a/fastly/model_rate_limiter.go +++ b/fastly/model_rate_limiter.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -42,7 +41,7 @@ type RateLimiter struct { // Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. LoggerType *string `json:"logger_type,omitempty"` // Revision number of the rate limiting feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` AdditionalProperties map[string]any } @@ -110,7 +109,7 @@ func (o *RateLimiter) GetURIDictionaryName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiter) GetURIDictionaryNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.URIDictionaryName.Get(), o.URIDictionaryName.IsSet() @@ -129,6 +128,7 @@ func (o *RateLimiter) HasURIDictionaryName() bool { func (o *RateLimiter) SetURIDictionaryName(v string) { o.URIDictionaryName.Set(&v) } + // SetURIDictionaryNameNil sets the value for URIDictionaryName to be an explicit nil func (o *RateLimiter) SetURIDictionaryNameNil() { o.URIDictionaryName.Set(nil) @@ -333,7 +333,7 @@ func (o *RateLimiter) SetAction(v string) { // GetResponse returns the Response field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RateLimiter) GetResponse() map[string]string { - if o == nil { + if o == nil { var ret map[string]string return ret } @@ -377,7 +377,7 @@ func (o *RateLimiter) GetResponseObjectName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiter) GetResponseObjectNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseObjectName.Get(), o.ResponseObjectName.IsSet() @@ -396,6 +396,7 @@ func (o *RateLimiter) HasResponseObjectName() bool { func (o *RateLimiter) SetResponseObjectName(v string) { o.ResponseObjectName.Set(&v) } + // SetResponseObjectNameNil sets the value for ResponseObjectName to be an explicit nil func (o *RateLimiter) SetResponseObjectNameNil() { o.ResponseObjectName.Set(nil) @@ -519,7 +520,7 @@ func (o RateLimiter) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RateLimiter) UnmarshalJSON(bytes []byte) (err error) { varRateLimiter := _RateLimiter{} @@ -548,7 +549,7 @@ func (o *RateLimiter) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRateLimiter is a helper abstraction for handling nullable ratelimiter types. +// NullableRateLimiter is a helper abstraction for handling nullable ratelimiter types. type NullableRateLimiter struct { value *RateLimiter isSet bool @@ -588,7 +589,7 @@ func (v NullableRateLimiter) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRateLimiter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_rate_limiter_response.go b/fastly/model_rate_limiter_response.go index 158f935..37e86d9 100644 --- a/fastly/model_rate_limiter_response.go +++ b/fastly/model_rate_limiter_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -43,9 +42,9 @@ type RateLimiterResponse struct { // Name of the type of logging endpoint to be used when action is `log_only`. The logging endpoint type is used to determine the appropriate log format to use when emitting log entries. LoggerType *string `json:"logger_type,omitempty"` // Revision number of the rate limiting feature implementation. Defaults to the most recent revision. - FeatureRevision *int32 `json:"feature_revision,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + FeatureRevision *int32 `json:"feature_revision,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. @@ -53,7 +52,7 @@ type RateLimiterResponse struct { // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` // Alphanumeric string identifying the rate limiter. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -121,7 +120,7 @@ func (o *RateLimiterResponse) GetURIDictionaryName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiterResponse) GetURIDictionaryNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.URIDictionaryName.Get(), o.URIDictionaryName.IsSet() @@ -140,6 +139,7 @@ func (o *RateLimiterResponse) HasURIDictionaryName() bool { func (o *RateLimiterResponse) SetURIDictionaryName(v string) { o.URIDictionaryName.Set(&v) } + // SetURIDictionaryNameNil sets the value for URIDictionaryName to be an explicit nil func (o *RateLimiterResponse) SetURIDictionaryNameNil() { o.URIDictionaryName.Set(nil) @@ -344,7 +344,7 @@ func (o *RateLimiterResponse) SetAction(v string) { // GetResponse returns the Response field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RateLimiterResponse) GetResponse() map[string]string { - if o == nil { + if o == nil { var ret map[string]string return ret } @@ -388,7 +388,7 @@ func (o *RateLimiterResponse) GetResponseObjectName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiterResponse) GetResponseObjectNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ResponseObjectName.Get(), o.ResponseObjectName.IsSet() @@ -407,6 +407,7 @@ func (o *RateLimiterResponse) HasResponseObjectName() bool { func (o *RateLimiterResponse) SetResponseObjectName(v string) { o.ResponseObjectName.Set(&v) } + // SetResponseObjectNameNil sets the value for ResponseObjectName to be an explicit nil func (o *RateLimiterResponse) SetResponseObjectNameNil() { o.ResponseObjectName.Set(nil) @@ -558,7 +559,7 @@ func (o *RateLimiterResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiterResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -577,6 +578,7 @@ func (o *RateLimiterResponse) HasCreatedAt() bool { func (o *RateLimiterResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *RateLimiterResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -600,7 +602,7 @@ func (o *RateLimiterResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiterResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -619,6 +621,7 @@ func (o *RateLimiterResponse) HasDeletedAt() bool { func (o *RateLimiterResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *RateLimiterResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -642,7 +645,7 @@ func (o *RateLimiterResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RateLimiterResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -661,6 +664,7 @@ func (o *RateLimiterResponse) HasUpdatedAt() bool { func (o *RateLimiterResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *RateLimiterResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -770,7 +774,7 @@ func (o RateLimiterResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RateLimiterResponse) UnmarshalJSON(bytes []byte) (err error) { varRateLimiterResponse := _RateLimiterResponse{} @@ -805,7 +809,7 @@ func (o *RateLimiterResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRateLimiterResponse is a helper abstraction for handling nullable ratelimiterresponse types. +// NullableRateLimiterResponse is a helper abstraction for handling nullable ratelimiterresponse types. type NullableRateLimiterResponse struct { value *RateLimiterResponse isSet bool @@ -845,7 +849,7 @@ func (v NullableRateLimiterResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRateLimiterResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_rate_limiter_response_all_of.go b/fastly/model_rate_limiter_response_all_of.go index f079276..3fbfff9 100644 --- a/fastly/model_rate_limiter_response_all_of.go +++ b/fastly/model_rate_limiter_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // RateLimiterResponseAllOf struct for RateLimiterResponseAllOf type RateLimiterResponseAllOf struct { // Alphanumeric string identifying the rate limiter. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o RateLimiterResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RateLimiterResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varRateLimiterResponseAllOf := _RateLimiterResponseAllOf{} @@ -109,7 +108,7 @@ func (o *RateLimiterResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRateLimiterResponseAllOf is a helper abstraction for handling nullable ratelimiterresponseallof types. +// NullableRateLimiterResponseAllOf is a helper abstraction for handling nullable ratelimiterresponseallof types. type NullableRateLimiterResponseAllOf struct { value *RateLimiterResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableRateLimiterResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRateLimiterResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_read_only_customer_id.go b/fastly/model_read_only_customer_id.go index 2a7a301..95f0205 100644 --- a/fastly/model_read_only_customer_id.go +++ b/fastly/model_read_only_customer_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o ReadOnlyCustomerID) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableReadOnlyCustomerID is a helper abstraction for handling nullable readonlycustomerid types. +// NullableReadOnlyCustomerID is a helper abstraction for handling nullable readonlycustomerid types. type NullableReadOnlyCustomerID struct { value *ReadOnlyCustomerID isSet bool @@ -85,7 +84,7 @@ func (v NullableReadOnlyCustomerID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableReadOnlyCustomerID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_read_only_id.go b/fastly/model_read_only_id.go index 7d8643e..04b7b2c 100644 --- a/fastly/model_read_only_id.go +++ b/fastly/model_read_only_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o ReadOnlyID) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableReadOnlyID is a helper abstraction for handling nullable readonlyid types. +// NullableReadOnlyID is a helper abstraction for handling nullable readonlyid types. type NullableReadOnlyID struct { value *ReadOnlyID isSet bool @@ -85,7 +84,7 @@ func (v NullableReadOnlyID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableReadOnlyID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_read_only_service_id.go b/fastly/model_read_only_service_id.go index d795960..40f8987 100644 --- a/fastly/model_read_only_service_id.go +++ b/fastly/model_read_only_service_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o ReadOnlyServiceID) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableReadOnlyServiceID is a helper abstraction for handling nullable readonlyserviceid types. +// NullableReadOnlyServiceID is a helper abstraction for handling nullable readonlyserviceid types. type NullableReadOnlyServiceID struct { value *ReadOnlyServiceID isSet bool @@ -85,7 +84,7 @@ func (v NullableReadOnlyServiceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableReadOnlyServiceID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_read_only_user_id.go b/fastly/model_read_only_user_id.go index 3294812..f4a409b 100644 --- a/fastly/model_read_only_user_id.go +++ b/fastly/model_read_only_user_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o ReadOnlyUserID) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableReadOnlyUserID is a helper abstraction for handling nullable readonlyuserid types. +// NullableReadOnlyUserID is a helper abstraction for handling nullable readonlyuserid types. type NullableReadOnlyUserID struct { value *ReadOnlyUserID isSet bool @@ -85,7 +84,7 @@ func (v NullableReadOnlyUserID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableReadOnlyUserID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_read_only_version.go b/fastly/model_read_only_version.go index f4d6616..2f8f229 100644 --- a/fastly/model_read_only_version.go +++ b/fastly/model_read_only_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o ReadOnlyVersion) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableReadOnlyVersion is a helper abstraction for handling nullable readonlyversion types. +// NullableReadOnlyVersion is a helper abstraction for handling nullable readonlyversion types. type NullableReadOnlyVersion struct { value *ReadOnlyVersion isSet bool @@ -85,7 +84,7 @@ func (v NullableReadOnlyVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableReadOnlyVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_realtime.go b/fastly/model_realtime.go index 832d390..5d37da3 100644 --- a/fastly/model_realtime.go +++ b/fastly/model_realtime.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type Realtime struct { // How long the system will wait before aggregating messages for each second. The most recent data returned will have happened at the moment of the request, minus the aggregation delay. AggregateDelay *int32 `json:"AggregateDelay,omitempty"` // A list of [records](#record-data-model), each representing one second of time. - Data []RealtimeEntry `json:"Data,omitempty"` + Data []RealtimeEntry `json:"Data,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o Realtime) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Realtime) UnmarshalJSON(bytes []byte) (err error) { varRealtime := _Realtime{} @@ -185,7 +184,7 @@ func (o *Realtime) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRealtime is a helper abstraction for handling nullable realtime types. +// NullableRealtime is a helper abstraction for handling nullable realtime types. type NullableRealtime struct { value *Realtime isSet bool @@ -225,7 +224,7 @@ func (v NullableRealtime) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRealtime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_realtime_entry.go b/fastly/model_realtime_entry.go index 7d1f1eb..6f3a36e 100644 --- a/fastly/model_realtime_entry.go +++ b/fastly/model_realtime_entry.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RealtimeEntry A list of records, each representing one second of time. The `Data` property provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways. type RealtimeEntry struct { - Recorded *RealtimeEntryRecorded `json:"recorded,omitempty"` + Recorded *RealtimeEntryRecorded `json:"recorded,omitempty"` Aggregated *RealtimeEntryAggregated `json:"aggregated,omitempty"` // Groups [measurements](#measurements-data-model) by POP. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details of POP identifiers. - Datacenter *map[string]RealtimeMeasurements `json:"datacenter,omitempty"` + Datacenter *map[string]RealtimeMeasurements `json:"datacenter,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o RealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { varRealtimeEntry := _RealtimeEntry{} @@ -183,7 +182,7 @@ func (o *RealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRealtimeEntry is a helper abstraction for handling nullable realtimeentry types. +// NullableRealtimeEntry is a helper abstraction for handling nullable realtimeentry types. type NullableRealtimeEntry struct { value *RealtimeEntry isSet bool @@ -223,7 +222,7 @@ func (v NullableRealtimeEntry) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRealtimeEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_realtime_entry_aggregated.go b/fastly/model_realtime_entry_aggregated.go index 3034053..6c1f3b2 100644 --- a/fastly/model_realtime_entry_aggregated.go +++ b/fastly/model_realtime_entry_aggregated.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -521,7 +520,7 @@ type RealtimeEntryAggregated struct { OriginOffload *float32 `json:"origin_offload,omitempty"` // Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body. RequestDeniedGetHeadBody *int32 `json:"request_denied_get_head_body,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _RealtimeEntryAggregated RealtimeEntryAggregated @@ -9312,7 +9311,7 @@ func (o RealtimeEntryAggregated) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RealtimeEntryAggregated) UnmarshalJSON(bytes []byte) (err error) { varRealtimeEntryAggregated := _RealtimeEntryAggregated{} @@ -9579,7 +9578,7 @@ func (o *RealtimeEntryAggregated) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRealtimeEntryAggregated is a helper abstraction for handling nullable realtimeentryaggregated types. +// NullableRealtimeEntryAggregated is a helper abstraction for handling nullable realtimeentryaggregated types. type NullableRealtimeEntryAggregated struct { value *RealtimeEntryAggregated isSet bool @@ -9619,7 +9618,7 @@ func (v NullableRealtimeEntryAggregated) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRealtimeEntryAggregated) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_realtime_entry_recorded.go b/fastly/model_realtime_entry_recorded.go index 410d826..9187164 100644 --- a/fastly/model_realtime_entry_recorded.go +++ b/fastly/model_realtime_entry_recorded.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -45,7 +44,7 @@ func (o RealtimeEntryRecorded) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -// NullableRealtimeEntryRecorded is a helper abstraction for handling nullable realtimeentryrecorded types. +// NullableRealtimeEntryRecorded is a helper abstraction for handling nullable realtimeentryrecorded types. type NullableRealtimeEntryRecorded struct { value *RealtimeEntryRecorded isSet bool @@ -85,7 +84,7 @@ func (v NullableRealtimeEntryRecorded) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRealtimeEntryRecorded) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_realtime_measurements.go b/fastly/model_realtime_measurements.go index 44ac364..a351491 100644 --- a/fastly/model_realtime_measurements.go +++ b/fastly/model_realtime_measurements.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -521,7 +520,7 @@ type RealtimeMeasurements struct { OriginOffload *float32 `json:"origin_offload,omitempty"` // Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body. RequestDeniedGetHeadBody *int32 `json:"request_denied_get_head_body,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _RealtimeMeasurements RealtimeMeasurements @@ -9312,7 +9311,7 @@ func (o RealtimeMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RealtimeMeasurements) UnmarshalJSON(bytes []byte) (err error) { varRealtimeMeasurements := _RealtimeMeasurements{} @@ -9579,7 +9578,7 @@ func (o *RealtimeMeasurements) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRealtimeMeasurements is a helper abstraction for handling nullable realtimemeasurements types. +// NullableRealtimeMeasurements is a helper abstraction for handling nullable realtimemeasurements types. type NullableRealtimeMeasurements struct { value *RealtimeMeasurements isSet bool @@ -9619,7 +9618,7 @@ func (v NullableRealtimeMeasurements) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRealtimeMeasurements) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_common_name.go b/fastly/model_relationship_common_name.go index 4712bfe..cf9f02c 100644 --- a/fastly/model_relationship_common_name.go +++ b/fastly/model_relationship_common_name.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipCommonName The common name associated with the subscription generated by Fastly TLS. Optional. If you do not pass a common name on create, we will default to the first TLS domain included. If provided, the domain chosen as the common name must be included in TLS domains. type RelationshipCommonName struct { - CommonName *RelationshipMemberTLSDomain `json:"common_name,omitempty"` + CommonName *RelationshipMemberTLSDomain `json:"common_name,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipCommonName) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipCommonName) UnmarshalJSON(bytes []byte) (err error) { varRelationshipCommonName := _RelationshipCommonName{} @@ -108,7 +107,7 @@ func (o *RelationshipCommonName) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipCommonName is a helper abstraction for handling nullable relationshipcommonname types. +// NullableRelationshipCommonName is a helper abstraction for handling nullable relationshipcommonname types. type NullableRelationshipCommonName struct { value *RelationshipCommonName isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipCommonName) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipCommonName) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_customer.go b/fastly/model_relationship_customer.go index b90e5f4..d86aaa7 100644 --- a/fastly/model_relationship_customer.go +++ b/fastly/model_relationship_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipCustomer struct for RelationshipCustomer type RelationshipCustomer struct { - Customer *RelationshipCustomerCustomer `json:"customer,omitempty"` + Customer *RelationshipCustomerCustomer `json:"customer,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipCustomer) UnmarshalJSON(bytes []byte) (err error) { varRelationshipCustomer := _RelationshipCustomer{} @@ -108,7 +107,7 @@ func (o *RelationshipCustomer) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipCustomer is a helper abstraction for handling nullable relationshipcustomer types. +// NullableRelationshipCustomer is a helper abstraction for handling nullable relationshipcustomer types. type NullableRelationshipCustomer struct { value *RelationshipCustomer isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipCustomer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_customer_customer.go b/fastly/model_relationship_customer_customer.go index 7f215ac..409435f 100644 --- a/fastly/model_relationship_customer_customer.go +++ b/fastly/model_relationship_customer_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipCustomerCustomer struct for RelationshipCustomerCustomer type RelationshipCustomerCustomer struct { - Data *RelationshipMemberCustomer `json:"data,omitempty"` + Data *RelationshipMemberCustomer `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipCustomerCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipCustomerCustomer) UnmarshalJSON(bytes []byte) (err error) { varRelationshipCustomerCustomer := _RelationshipCustomerCustomer{} @@ -108,7 +107,7 @@ func (o *RelationshipCustomerCustomer) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipCustomerCustomer is a helper abstraction for handling nullable relationshipcustomercustomer types. +// NullableRelationshipCustomerCustomer is a helper abstraction for handling nullable relationshipcustomercustomer types. type NullableRelationshipCustomerCustomer struct { value *RelationshipCustomerCustomer isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipCustomerCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipCustomerCustomer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_ecdsa_tls_certificate.go b/fastly/model_relationship_default_ecdsa_tls_certificate.go index 3ffde12..c053a3c 100644 --- a/fastly/model_relationship_default_ecdsa_tls_certificate.go +++ b/fastly/model_relationship_default_ecdsa_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // RelationshipDefaultEcdsaTLSCertificate struct for RelationshipDefaultEcdsaTLSCertificate type RelationshipDefaultEcdsaTLSCertificate struct { DefaultEcdsaCertificate *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate `json:"default_ecdsa_certificate,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _RelationshipDefaultEcdsaTLSCertificate RelationshipDefaultEcdsaTLSCertificate @@ -90,7 +89,7 @@ func (o RelationshipDefaultEcdsaTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultEcdsaTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultEcdsaTLSCertificate := _RelationshipDefaultEcdsaTLSCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipDefaultEcdsaTLSCertificate) UnmarshalJSON(bytes []byte) (er return err } -// NullableRelationshipDefaultEcdsaTLSCertificate is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificate types. +// NullableRelationshipDefaultEcdsaTLSCertificate is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificate types. type NullableRelationshipDefaultEcdsaTLSCertificate struct { value *RelationshipDefaultEcdsaTLSCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipDefaultEcdsaTLSCertificate) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultEcdsaTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.go b/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.go index 171fb13..a772f69 100644 --- a/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.go +++ b/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate struct for RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate type RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate struct { - Data *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData `json:"data,omitempty"` + Data *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate) MarshalJS } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate := _RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate) Unmarsha return err } -// NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificatedefaultecdsacertificate types. +// NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificatedefaultecdsacertificate types. type NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate struct { value *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate) M } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.go b/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.go index 9e1832e..a81dd50 100644 --- a/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.go +++ b/fastly/model_relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData struct { Type *TypeTLSCertificate `json:"type,omitempty"` // Alphanumeric string identifying the default ECDSA TLS certificate. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData) Marsh } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData := _RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData{} @@ -150,7 +149,7 @@ func (o *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData) Unma return err } -// NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificatedefaultecdsacertificatedata types. +// NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData is a helper abstraction for handling nullable relationshipdefaultecdsatlscertificatedefaultecdsacertificatedata types. type NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData struct { value *RelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateDat } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultEcdsaTLSCertificateDefaultEcdsaCertificateData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_tls_certificate.go b/fastly/model_relationship_default_tls_certificate.go index 345712f..58ca80c 100644 --- a/fastly/model_relationship_default_tls_certificate.go +++ b/fastly/model_relationship_default_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipDefaultTLSCertificate struct for RelationshipDefaultTLSCertificate type RelationshipDefaultTLSCertificate struct { - DefaultCertificate *RelationshipDefaultTLSCertificateDefaultCertificate `json:"default_certificate,omitempty"` + DefaultCertificate *RelationshipDefaultTLSCertificateDefaultCertificate `json:"default_certificate,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipDefaultTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultTLSCertificate := _RelationshipDefaultTLSCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipDefaultTLSCertificate) UnmarshalJSON(bytes []byte) (err err return err } -// NullableRelationshipDefaultTLSCertificate is a helper abstraction for handling nullable relationshipdefaulttlscertificate types. +// NullableRelationshipDefaultTLSCertificate is a helper abstraction for handling nullable relationshipdefaulttlscertificate types. type NullableRelationshipDefaultTLSCertificate struct { value *RelationshipDefaultTLSCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipDefaultTLSCertificate) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_tls_certificate_default_certificate.go b/fastly/model_relationship_default_tls_certificate_default_certificate.go index a088aee..e9b4573 100644 --- a/fastly/model_relationship_default_tls_certificate_default_certificate.go +++ b/fastly/model_relationship_default_tls_certificate_default_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipDefaultTLSCertificateDefaultCertificate struct for RelationshipDefaultTLSCertificateDefaultCertificate type RelationshipDefaultTLSCertificateDefaultCertificate struct { - Data *RelationshipDefaultTLSCertificateDefaultCertificateData `json:"data,omitempty"` + Data *RelationshipDefaultTLSCertificateDefaultCertificateData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipDefaultTLSCertificateDefaultCertificate) MarshalJSON() ([]by } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultTLSCertificateDefaultCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultTLSCertificateDefaultCertificate := _RelationshipDefaultTLSCertificateDefaultCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipDefaultTLSCertificateDefaultCertificate) UnmarshalJSON(byte return err } -// NullableRelationshipDefaultTLSCertificateDefaultCertificate is a helper abstraction for handling nullable relationshipdefaulttlscertificatedefaultcertificate types. +// NullableRelationshipDefaultTLSCertificateDefaultCertificate is a helper abstraction for handling nullable relationshipdefaulttlscertificatedefaultcertificate types. type NullableRelationshipDefaultTLSCertificateDefaultCertificate struct { value *RelationshipDefaultTLSCertificateDefaultCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipDefaultTLSCertificateDefaultCertificate) MarshalJSON } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultTLSCertificateDefaultCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_default_tls_certificate_default_certificate_data.go b/fastly/model_relationship_default_tls_certificate_default_certificate_data.go index d57f0d4..8e8bcbc 100644 --- a/fastly/model_relationship_default_tls_certificate_default_certificate_data.go +++ b/fastly/model_relationship_default_tls_certificate_default_certificate_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipDefaultTLSCertificateDefaultCertificateData struct { Type *TypeTLSCertificate `json:"type,omitempty"` // Alphanumeric string identifying the default TLS certificate. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipDefaultTLSCertificateDefaultCertificateData) MarshalJSON() ( } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipDefaultTLSCertificateDefaultCertificateData) UnmarshalJSON(bytes []byte) (err error) { varRelationshipDefaultTLSCertificateDefaultCertificateData := _RelationshipDefaultTLSCertificateDefaultCertificateData{} @@ -150,7 +149,7 @@ func (o *RelationshipDefaultTLSCertificateDefaultCertificateData) UnmarshalJSON( return err } -// NullableRelationshipDefaultTLSCertificateDefaultCertificateData is a helper abstraction for handling nullable relationshipdefaulttlscertificatedefaultcertificatedata types. +// NullableRelationshipDefaultTLSCertificateDefaultCertificateData is a helper abstraction for handling nullable relationshipdefaulttlscertificatedefaultcertificatedata types. type NullableRelationshipDefaultTLSCertificateDefaultCertificateData struct { value *RelationshipDefaultTLSCertificateDefaultCertificateData isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipDefaultTLSCertificateDefaultCertificateData) Marshal } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipDefaultTLSCertificateDefaultCertificateData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_customer.go b/fastly/model_relationship_member_customer.go index 388bf11..7f326c2 100644 --- a/fastly/model_relationship_member_customer.go +++ b/fastly/model_relationship_member_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberCustomer struct for RelationshipMemberCustomer type RelationshipMemberCustomer struct { - Type *TypeCustomer `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeCustomer `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberCustomer) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberCustomer := _RelationshipMemberCustomer{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberCustomer) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipMemberCustomer is a helper abstraction for handling nullable relationshipmembercustomer types. +// NullableRelationshipMemberCustomer is a helper abstraction for handling nullable relationshipmembercustomer types. type NullableRelationshipMemberCustomer struct { value *RelationshipMemberCustomer isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberCustomer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_mutual_authentication.go b/fastly/model_relationship_member_mutual_authentication.go index 550e75f..a42ebea 100644 --- a/fastly/model_relationship_member_mutual_authentication.go +++ b/fastly/model_relationship_member_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberMutualAuthentication struct for RelationshipMemberMutualAuthentication type RelationshipMemberMutualAuthentication struct { - Type *TypeMutualAuthentication `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeMutualAuthentication `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberMutualAuthentication) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberMutualAuthentication) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberMutualAuthentication := _RelationshipMemberMutualAuthentication{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberMutualAuthentication) UnmarshalJSON(bytes []byte) (er return err } -// NullableRelationshipMemberMutualAuthentication is a helper abstraction for handling nullable relationshipmembermutualauthentication types. +// NullableRelationshipMemberMutualAuthentication is a helper abstraction for handling nullable relationshipmembermutualauthentication types. type NullableRelationshipMemberMutualAuthentication struct { value *RelationshipMemberMutualAuthentication isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberMutualAuthentication) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_service.go b/fastly/model_relationship_member_service.go index a372b1b..8fda985 100644 --- a/fastly/model_relationship_member_service.go +++ b/fastly/model_relationship_member_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberService struct for RelationshipMemberService type RelationshipMemberService struct { - Type *TypeService `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeService `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberService) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberService := _RelationshipMemberService{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberService) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipMemberService is a helper abstraction for handling nullable relationshipmemberservice types. +// NullableRelationshipMemberService is a helper abstraction for handling nullable relationshipmemberservice types. type NullableRelationshipMemberService struct { value *RelationshipMemberService isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_service_invitation.go b/fastly/model_relationship_member_service_invitation.go index fb686a7..c6d976c 100644 --- a/fastly/model_relationship_member_service_invitation.go +++ b/fastly/model_relationship_member_service_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipMemberServiceInvitation struct { Type *TypeServiceInvitation `json:"type,omitempty"` // Alphanumeric string identifying a service invitation. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipMemberServiceInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberServiceInvitation) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberServiceInvitation := _RelationshipMemberServiceInvitation{} @@ -150,7 +149,7 @@ func (o *RelationshipMemberServiceInvitation) UnmarshalJSON(bytes []byte) (err e return err } -// NullableRelationshipMemberServiceInvitation is a helper abstraction for handling nullable relationshipmemberserviceinvitation types. +// NullableRelationshipMemberServiceInvitation is a helper abstraction for handling nullable relationshipmemberserviceinvitation types. type NullableRelationshipMemberServiceInvitation struct { value *RelationshipMemberServiceInvitation isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipMemberServiceInvitation) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberServiceInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_activation.go b/fastly/model_relationship_member_tls_activation.go index 6780cea..e118bed 100644 --- a/fastly/model_relationship_member_tls_activation.go +++ b/fastly/model_relationship_member_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSActivation struct for RelationshipMemberTLSActivation type RelationshipMemberTLSActivation struct { - Type *TypeTLSActivation `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSActivation `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSActivation) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSActivation := _RelationshipMemberTLSActivation{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSActivation) UnmarshalJSON(bytes []byte) (err error return err } -// NullableRelationshipMemberTLSActivation is a helper abstraction for handling nullable relationshipmembertlsactivation types. +// NullableRelationshipMemberTLSActivation is a helper abstraction for handling nullable relationshipmembertlsactivation types. type NullableRelationshipMemberTLSActivation struct { value *RelationshipMemberTLSActivation isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_bulk_certificate.go b/fastly/model_relationship_member_tls_bulk_certificate.go index f44df30..727944b 100644 --- a/fastly/model_relationship_member_tls_bulk_certificate.go +++ b/fastly/model_relationship_member_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSBulkCertificate struct for RelationshipMemberTLSBulkCertificate type RelationshipMemberTLSBulkCertificate struct { - Type *TypeTLSBulkCertificate `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSBulkCertificate `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSBulkCertificate := _RelationshipMemberTLSBulkCertificate{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSBulkCertificate) UnmarshalJSON(bytes []byte) (err return err } -// NullableRelationshipMemberTLSBulkCertificate is a helper abstraction for handling nullable relationshipmembertlsbulkcertificate types. +// NullableRelationshipMemberTLSBulkCertificate is a helper abstraction for handling nullable relationshipmembertlsbulkcertificate types. type NullableRelationshipMemberTLSBulkCertificate struct { value *RelationshipMemberTLSBulkCertificate isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSBulkCertificate) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_certificate.go b/fastly/model_relationship_member_tls_certificate.go index 3fc0a07..88caa61 100644 --- a/fastly/model_relationship_member_tls_certificate.go +++ b/fastly/model_relationship_member_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSCertificate struct for RelationshipMemberTLSCertificate type RelationshipMemberTLSCertificate struct { - Type *TypeTLSCertificate `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSCertificate `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSCertificate := _RelationshipMemberTLSCertificate{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSCertificate) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableRelationshipMemberTLSCertificate is a helper abstraction for handling nullable relationshipmembertlscertificate types. +// NullableRelationshipMemberTLSCertificate is a helper abstraction for handling nullable relationshipmembertlscertificate types. type NullableRelationshipMemberTLSCertificate struct { value *RelationshipMemberTLSCertificate isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSCertificate) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_configuration.go b/fastly/model_relationship_member_tls_configuration.go index dfb0598..ff7fbee 100644 --- a/fastly/model_relationship_member_tls_configuration.go +++ b/fastly/model_relationship_member_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSConfiguration struct for RelationshipMemberTLSConfiguration type RelationshipMemberTLSConfiguration struct { - Type *TypeTLSConfiguration `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSConfiguration `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSConfiguration := _RelationshipMemberTLSConfiguration{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSConfiguration) UnmarshalJSON(bytes []byte) (err er return err } -// NullableRelationshipMemberTLSConfiguration is a helper abstraction for handling nullable relationshipmembertlsconfiguration types. +// NullableRelationshipMemberTLSConfiguration is a helper abstraction for handling nullable relationshipmembertlsconfiguration types. type NullableRelationshipMemberTLSConfiguration struct { value *RelationshipMemberTLSConfiguration isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSConfiguration) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_domain.go b/fastly/model_relationship_member_tls_domain.go index 07e33a8..9d3c533 100644 --- a/fastly/model_relationship_member_tls_domain.go +++ b/fastly/model_relationship_member_tls_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipMemberTLSDomain struct { Type *TypeTLSDomain `json:"type,omitempty"` // The domain name. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipMemberTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSDomain) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSDomain := _RelationshipMemberTLSDomain{} @@ -150,7 +149,7 @@ func (o *RelationshipMemberTLSDomain) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipMemberTLSDomain is a helper abstraction for handling nullable relationshipmembertlsdomain types. +// NullableRelationshipMemberTLSDomain is a helper abstraction for handling nullable relationshipmembertlsdomain types. type NullableRelationshipMemberTLSDomain struct { value *RelationshipMemberTLSDomain isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipMemberTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_private_key.go b/fastly/model_relationship_member_tls_private_key.go index 4f2ba67..7ad14d0 100644 --- a/fastly/model_relationship_member_tls_private_key.go +++ b/fastly/model_relationship_member_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSPrivateKey struct for RelationshipMemberTLSPrivateKey type RelationshipMemberTLSPrivateKey struct { - Type *TypeTLSPrivateKey `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSPrivateKey `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSPrivateKey := _RelationshipMemberTLSPrivateKey{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSPrivateKey) UnmarshalJSON(bytes []byte) (err error return err } -// NullableRelationshipMemberTLSPrivateKey is a helper abstraction for handling nullable relationshipmembertlsprivatekey types. +// NullableRelationshipMemberTLSPrivateKey is a helper abstraction for handling nullable relationshipmembertlsprivatekey types. type NullableRelationshipMemberTLSPrivateKey struct { value *RelationshipMemberTLSPrivateKey isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_tls_subscription.go b/fastly/model_relationship_member_tls_subscription.go index 9b3732b..06543c8 100644 --- a/fastly/model_relationship_member_tls_subscription.go +++ b/fastly/model_relationship_member_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberTLSSubscription struct for RelationshipMemberTLSSubscription type RelationshipMemberTLSSubscription struct { - Type *TypeTLSSubscription `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSSubscription `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberTLSSubscription) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberTLSSubscription := _RelationshipMemberTLSSubscription{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberTLSSubscription) UnmarshalJSON(bytes []byte) (err err return err } -// NullableRelationshipMemberTLSSubscription is a helper abstraction for handling nullable relationshipmembertlssubscription types. +// NullableRelationshipMemberTLSSubscription is a helper abstraction for handling nullable relationshipmembertlssubscription types. type NullableRelationshipMemberTLSSubscription struct { value *RelationshipMemberTLSSubscription isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberTLSSubscription) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_active_rule.go b/fastly/model_relationship_member_waf_active_rule.go index 939477e..729d375 100644 --- a/fastly/model_relationship_member_waf_active_rule.go +++ b/fastly/model_relationship_member_waf_active_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberWafActiveRule struct for RelationshipMemberWafActiveRule type RelationshipMemberWafActiveRule struct { - Type *TypeWafActiveRule `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeWafActiveRule `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberWafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafActiveRule) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafActiveRule := _RelationshipMemberWafActiveRule{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberWafActiveRule) UnmarshalJSON(bytes []byte) (err error return err } -// NullableRelationshipMemberWafActiveRule is a helper abstraction for handling nullable relationshipmemberwafactiverule types. +// NullableRelationshipMemberWafActiveRule is a helper abstraction for handling nullable relationshipmemberwafactiverule types. type NullableRelationshipMemberWafActiveRule struct { value *RelationshipMemberWafActiveRule isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberWafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafActiveRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_firewall.go b/fastly/model_relationship_member_waf_firewall.go index 3c9f8bf..453819e 100644 --- a/fastly/model_relationship_member_waf_firewall.go +++ b/fastly/model_relationship_member_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberWafFirewall struct for RelationshipMemberWafFirewall type RelationshipMemberWafFirewall struct { - Type *TypeWafFirewall `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeWafFirewall `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafFirewall) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafFirewall := _RelationshipMemberWafFirewall{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberWafFirewall) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipMemberWafFirewall is a helper abstraction for handling nullable relationshipmemberwaffirewall types. +// NullableRelationshipMemberWafFirewall is a helper abstraction for handling nullable relationshipmemberwaffirewall types. type NullableRelationshipMemberWafFirewall struct { value *RelationshipMemberWafFirewall isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_firewall_version.go b/fastly/model_relationship_member_waf_firewall_version.go index 7017283..ddccfed 100644 --- a/fastly/model_relationship_member_waf_firewall_version.go +++ b/fastly/model_relationship_member_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipMemberWafFirewallVersion struct { Type *TypeWafFirewallVersion `json:"type,omitempty"` // Alphanumeric string identifying a Firewall version. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipMemberWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafFirewallVersion := _RelationshipMemberWafFirewallVersion{} @@ -150,7 +149,7 @@ func (o *RelationshipMemberWafFirewallVersion) UnmarshalJSON(bytes []byte) (err return err } -// NullableRelationshipMemberWafFirewallVersion is a helper abstraction for handling nullable relationshipmemberwaffirewallversion types. +// NullableRelationshipMemberWafFirewallVersion is a helper abstraction for handling nullable relationshipmemberwaffirewallversion types. type NullableRelationshipMemberWafFirewallVersion struct { value *RelationshipMemberWafFirewallVersion isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipMemberWafFirewallVersion) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_rule.go b/fastly/model_relationship_member_waf_rule.go index 03695e2..079ae38 100644 --- a/fastly/model_relationship_member_waf_rule.go +++ b/fastly/model_relationship_member_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMemberWafRule struct for RelationshipMemberWafRule type RelationshipMemberWafRule struct { - Type *TypeWafRule `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeWafRule `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipMemberWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafRule) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafRule := _RelationshipMemberWafRule{} @@ -149,7 +148,7 @@ func (o *RelationshipMemberWafRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipMemberWafRule is a helper abstraction for handling nullable relationshipmemberwafrule types. +// NullableRelationshipMemberWafRule is a helper abstraction for handling nullable relationshipmemberwafrule types. type NullableRelationshipMemberWafRule struct { value *RelationshipMemberWafRule isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipMemberWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_rule_revision.go b/fastly/model_relationship_member_waf_rule_revision.go index f43e9fe..f8169b1 100644 --- a/fastly/model_relationship_member_waf_rule_revision.go +++ b/fastly/model_relationship_member_waf_rule_revision.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipMemberWafRuleRevision struct { Type *TypeWafRuleRevision `json:"type,omitempty"` // Alphanumeric string identifying a WAF rule revision. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipMemberWafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafRuleRevision) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafRuleRevision := _RelationshipMemberWafRuleRevision{} @@ -150,7 +149,7 @@ func (o *RelationshipMemberWafRuleRevision) UnmarshalJSON(bytes []byte) (err err return err } -// NullableRelationshipMemberWafRuleRevision is a helper abstraction for handling nullable relationshipmemberwafrulerevision types. +// NullableRelationshipMemberWafRuleRevision is a helper abstraction for handling nullable relationshipmemberwafrulerevision types. type NullableRelationshipMemberWafRuleRevision struct { value *RelationshipMemberWafRuleRevision isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipMemberWafRuleRevision) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafRuleRevision) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_member_waf_tag.go b/fastly/model_relationship_member_waf_tag.go index d4253b5..c1e1440 100644 --- a/fastly/model_relationship_member_waf_tag.go +++ b/fastly/model_relationship_member_waf_tag.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type RelationshipMemberWafTag struct { Type *TypeWafTag `json:"type,omitempty"` // Alphanumeric string identifying a WAF tag. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -131,7 +130,7 @@ func (o RelationshipMemberWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMemberWafTag) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMemberWafTag := _RelationshipMemberWafTag{} @@ -150,7 +149,7 @@ func (o *RelationshipMemberWafTag) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipMemberWafTag is a helper abstraction for handling nullable relationshipmemberwaftag types. +// NullableRelationshipMemberWafTag is a helper abstraction for handling nullable relationshipmemberwaftag types. type NullableRelationshipMemberWafTag struct { value *RelationshipMemberWafTag isSet bool @@ -190,7 +189,7 @@ func (v NullableRelationshipMemberWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMemberWafTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_mutual_authentication.go b/fastly/model_relationship_mutual_authentication.go index 3488125..9aa36ae 100644 --- a/fastly/model_relationship_mutual_authentication.go +++ b/fastly/model_relationship_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -90,7 +89,7 @@ func (o RelationshipMutualAuthentication) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMutualAuthentication) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMutualAuthentication := _RelationshipMutualAuthentication{} @@ -108,7 +107,7 @@ func (o *RelationshipMutualAuthentication) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableRelationshipMutualAuthentication is a helper abstraction for handling nullable relationshipmutualauthentication types. +// NullableRelationshipMutualAuthentication is a helper abstraction for handling nullable relationshipmutualauthentication types. type NullableRelationshipMutualAuthentication struct { value *RelationshipMutualAuthentication isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipMutualAuthentication) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_mutual_authentication_mutual_authentication.go b/fastly/model_relationship_mutual_authentication_mutual_authentication.go index 3facb7d..e435cac 100644 --- a/fastly/model_relationship_mutual_authentication_mutual_authentication.go +++ b/fastly/model_relationship_mutual_authentication_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMutualAuthenticationMutualAuthentication struct for RelationshipMutualAuthenticationMutualAuthentication type RelationshipMutualAuthenticationMutualAuthentication struct { - Data *RelationshipMemberMutualAuthentication `json:"data,omitempty"` + Data *RelationshipMemberMutualAuthentication `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipMutualAuthenticationMutualAuthentication) MarshalJSON() ([]b } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMutualAuthenticationMutualAuthentication) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMutualAuthenticationMutualAuthentication := _RelationshipMutualAuthenticationMutualAuthentication{} @@ -108,7 +107,7 @@ func (o *RelationshipMutualAuthenticationMutualAuthentication) UnmarshalJSON(byt return err } -// NullableRelationshipMutualAuthenticationMutualAuthentication is a helper abstraction for handling nullable relationshipmutualauthenticationmutualauthentication types. +// NullableRelationshipMutualAuthenticationMutualAuthentication is a helper abstraction for handling nullable relationshipmutualauthenticationmutualauthentication types. type NullableRelationshipMutualAuthenticationMutualAuthentication struct { value *RelationshipMutualAuthenticationMutualAuthentication isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipMutualAuthenticationMutualAuthentication) MarshalJSO } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMutualAuthenticationMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_mutual_authentications.go b/fastly/model_relationship_mutual_authentications.go index 928e329..8203e00 100644 --- a/fastly/model_relationship_mutual_authentications.go +++ b/fastly/model_relationship_mutual_authentications.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // RelationshipMutualAuthentications struct for RelationshipMutualAuthentications type RelationshipMutualAuthentications struct { MutualAuthentications *RelationshipMutualAuthenticationsMutualAuthentications `json:"mutual_authentications,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _RelationshipMutualAuthentications RelationshipMutualAuthentications @@ -90,7 +89,7 @@ func (o RelationshipMutualAuthentications) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMutualAuthentications) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMutualAuthentications := _RelationshipMutualAuthentications{} @@ -108,7 +107,7 @@ func (o *RelationshipMutualAuthentications) UnmarshalJSON(bytes []byte) (err err return err } -// NullableRelationshipMutualAuthentications is a helper abstraction for handling nullable relationshipmutualauthentications types. +// NullableRelationshipMutualAuthentications is a helper abstraction for handling nullable relationshipmutualauthentications types. type NullableRelationshipMutualAuthentications struct { value *RelationshipMutualAuthentications isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipMutualAuthentications) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMutualAuthentications) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_mutual_authentications_mutual_authentications.go b/fastly/model_relationship_mutual_authentications_mutual_authentications.go index 0f7ce1d..e2708ec 100644 --- a/fastly/model_relationship_mutual_authentications_mutual_authentications.go +++ b/fastly/model_relationship_mutual_authentications_mutual_authentications.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipMutualAuthenticationsMutualAuthentications struct for RelationshipMutualAuthenticationsMutualAuthentications type RelationshipMutualAuthenticationsMutualAuthentications struct { - Data []RelationshipMemberMutualAuthentication `json:"data,omitempty"` + Data []RelationshipMemberMutualAuthentication `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipMutualAuthenticationsMutualAuthentications) MarshalJSON() ([ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipMutualAuthenticationsMutualAuthentications) UnmarshalJSON(bytes []byte) (err error) { varRelationshipMutualAuthenticationsMutualAuthentications := _RelationshipMutualAuthenticationsMutualAuthentications{} @@ -108,7 +107,7 @@ func (o *RelationshipMutualAuthenticationsMutualAuthentications) UnmarshalJSON(b return err } -// NullableRelationshipMutualAuthenticationsMutualAuthentications is a helper abstraction for handling nullable relationshipmutualauthenticationsmutualauthentications types. +// NullableRelationshipMutualAuthenticationsMutualAuthentications is a helper abstraction for handling nullable relationshipmutualauthenticationsmutualauthentications types. type NullableRelationshipMutualAuthenticationsMutualAuthentications struct { value *RelationshipMutualAuthenticationsMutualAuthentications isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipMutualAuthenticationsMutualAuthentications) MarshalJ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipMutualAuthenticationsMutualAuthentications) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_service.go b/fastly/model_relationship_service.go index afde034..a30125e 100644 --- a/fastly/model_relationship_service.go +++ b/fastly/model_relationship_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipService struct for RelationshipService type RelationshipService struct { - Service *RelationshipMemberService `json:"service,omitempty"` + Service *RelationshipMemberService `json:"service,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipService) UnmarshalJSON(bytes []byte) (err error) { varRelationshipService := _RelationshipService{} @@ -108,7 +107,7 @@ func (o *RelationshipService) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipService is a helper abstraction for handling nullable relationshipservice types. +// NullableRelationshipService is a helper abstraction for handling nullable relationshipservice types. type NullableRelationshipService struct { value *RelationshipService isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_service_invitations.go b/fastly/model_relationship_service_invitations.go index c75d317..46fbe05 100644 --- a/fastly/model_relationship_service_invitations.go +++ b/fastly/model_relationship_service_invitations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServiceInvitations struct for RelationshipServiceInvitations type RelationshipServiceInvitations struct { - ServiceInvitations *RelationshipServiceInvitationsServiceInvitations `json:"service_invitations,omitempty"` + ServiceInvitations *RelationshipServiceInvitationsServiceInvitations `json:"service_invitations,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServiceInvitations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServiceInvitations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServiceInvitations := _RelationshipServiceInvitations{} @@ -108,7 +107,7 @@ func (o *RelationshipServiceInvitations) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitations types. +// NullableRelationshipServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitations types. type NullableRelationshipServiceInvitations struct { value *RelationshipServiceInvitations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServiceInvitations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServiceInvitations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_service_invitations_create.go b/fastly/model_relationship_service_invitations_create.go index fae6a24..0986a05 100644 --- a/fastly/model_relationship_service_invitations_create.go +++ b/fastly/model_relationship_service_invitations_create.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServiceInvitationsCreate struct for RelationshipServiceInvitationsCreate type RelationshipServiceInvitationsCreate struct { - ServiceInvitations *RelationshipServiceInvitationsCreateServiceInvitations `json:"service_invitations,omitempty"` + ServiceInvitations *RelationshipServiceInvitationsCreateServiceInvitations `json:"service_invitations,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServiceInvitationsCreate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServiceInvitationsCreate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServiceInvitationsCreate := _RelationshipServiceInvitationsCreate{} @@ -108,7 +107,7 @@ func (o *RelationshipServiceInvitationsCreate) UnmarshalJSON(bytes []byte) (err return err } -// NullableRelationshipServiceInvitationsCreate is a helper abstraction for handling nullable relationshipserviceinvitationscreate types. +// NullableRelationshipServiceInvitationsCreate is a helper abstraction for handling nullable relationshipserviceinvitationscreate types. type NullableRelationshipServiceInvitationsCreate struct { value *RelationshipServiceInvitationsCreate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServiceInvitationsCreate) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServiceInvitationsCreate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_service_invitations_create_service_invitations.go b/fastly/model_relationship_service_invitations_create_service_invitations.go index 2e61fc3..9da523d 100644 --- a/fastly/model_relationship_service_invitations_create_service_invitations.go +++ b/fastly/model_relationship_service_invitations_create_service_invitations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServiceInvitationsCreateServiceInvitations struct for RelationshipServiceInvitationsCreateServiceInvitations type RelationshipServiceInvitationsCreateServiceInvitations struct { - Data []ServiceInvitation `json:"data,omitempty"` + Data []ServiceInvitation `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServiceInvitationsCreateServiceInvitations) MarshalJSON() ([ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServiceInvitationsCreateServiceInvitations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServiceInvitationsCreateServiceInvitations := _RelationshipServiceInvitationsCreateServiceInvitations{} @@ -108,7 +107,7 @@ func (o *RelationshipServiceInvitationsCreateServiceInvitations) UnmarshalJSON(b return err } -// NullableRelationshipServiceInvitationsCreateServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitationscreateserviceinvitations types. +// NullableRelationshipServiceInvitationsCreateServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitationscreateserviceinvitations types. type NullableRelationshipServiceInvitationsCreateServiceInvitations struct { value *RelationshipServiceInvitationsCreateServiceInvitations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServiceInvitationsCreateServiceInvitations) MarshalJ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServiceInvitationsCreateServiceInvitations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_service_invitations_service_invitations.go b/fastly/model_relationship_service_invitations_service_invitations.go index 7e4d672..fac6343 100644 --- a/fastly/model_relationship_service_invitations_service_invitations.go +++ b/fastly/model_relationship_service_invitations_service_invitations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServiceInvitationsServiceInvitations struct for RelationshipServiceInvitationsServiceInvitations type RelationshipServiceInvitationsServiceInvitations struct { - Data []RelationshipMemberServiceInvitation `json:"data,omitempty"` + Data []RelationshipMemberServiceInvitation `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServiceInvitationsServiceInvitations) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServiceInvitationsServiceInvitations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServiceInvitationsServiceInvitations := _RelationshipServiceInvitationsServiceInvitations{} @@ -108,7 +107,7 @@ func (o *RelationshipServiceInvitationsServiceInvitations) UnmarshalJSON(bytes [ return err } -// NullableRelationshipServiceInvitationsServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitationsserviceinvitations types. +// NullableRelationshipServiceInvitationsServiceInvitations is a helper abstraction for handling nullable relationshipserviceinvitationsserviceinvitations types. type NullableRelationshipServiceInvitationsServiceInvitations struct { value *RelationshipServiceInvitationsServiceInvitations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServiceInvitationsServiceInvitations) MarshalJSON() } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServiceInvitationsServiceInvitations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_services.go b/fastly/model_relationship_services.go index 1d65ee3..75ced1b 100644 --- a/fastly/model_relationship_services.go +++ b/fastly/model_relationship_services.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServices struct for RelationshipServices type RelationshipServices struct { - Services *RelationshipServicesServices `json:"services,omitempty"` + Services *RelationshipServicesServices `json:"services,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServices) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServices := _RelationshipServices{} @@ -108,7 +107,7 @@ func (o *RelationshipServices) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipServices is a helper abstraction for handling nullable relationshipservices types. +// NullableRelationshipServices is a helper abstraction for handling nullable relationshipservices types. type NullableRelationshipServices struct { value *RelationshipServices isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServices) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_services_services.go b/fastly/model_relationship_services_services.go index c1a89ea..566f24c 100644 --- a/fastly/model_relationship_services_services.go +++ b/fastly/model_relationship_services_services.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipServicesServices struct for RelationshipServicesServices type RelationshipServicesServices struct { - Data []RelationshipMemberService `json:"data,omitempty"` + Data []RelationshipMemberService `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipServicesServices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipServicesServices) UnmarshalJSON(bytes []byte) (err error) { varRelationshipServicesServices := _RelationshipServicesServices{} @@ -108,7 +107,7 @@ func (o *RelationshipServicesServices) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipServicesServices is a helper abstraction for handling nullable relationshipservicesservices types. +// NullableRelationshipServicesServices is a helper abstraction for handling nullable relationshipservicesservices types. type NullableRelationshipServicesServices struct { value *RelationshipServicesServices isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipServicesServices) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipServicesServices) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_activation.go b/fastly/model_relationship_tls_activation.go index 4ff1fd0..045a608 100644 --- a/fastly/model_relationship_tls_activation.go +++ b/fastly/model_relationship_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSActivation struct for RelationshipTLSActivation type RelationshipTLSActivation struct { - TLSActivation *RelationshipTLSActivationTLSActivation `json:"tls_activation,omitempty"` + TLSActivation *RelationshipTLSActivationTLSActivation `json:"tls_activation,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSActivation) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSActivation := _RelationshipTLSActivation{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSActivation) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSActivation is a helper abstraction for handling nullable relationshiptlsactivation types. +// NullableRelationshipTLSActivation is a helper abstraction for handling nullable relationshiptlsactivation types. type NullableRelationshipTLSActivation struct { value *RelationshipTLSActivation isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_activation_tls_activation.go b/fastly/model_relationship_tls_activation_tls_activation.go index 2d1830d..42d11e6 100644 --- a/fastly/model_relationship_tls_activation_tls_activation.go +++ b/fastly/model_relationship_tls_activation_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSActivationTLSActivation struct for RelationshipTLSActivationTLSActivation type RelationshipTLSActivationTLSActivation struct { - Data []RelationshipMemberTLSActivation `json:"data,omitempty"` + Data []RelationshipMemberTLSActivation `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSActivationTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSActivationTLSActivation) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSActivationTLSActivation := _RelationshipTLSActivationTLSActivation{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSActivationTLSActivation) UnmarshalJSON(bytes []byte) (er return err } -// NullableRelationshipTLSActivationTLSActivation is a helper abstraction for handling nullable relationshiptlsactivationtlsactivation types. +// NullableRelationshipTLSActivationTLSActivation is a helper abstraction for handling nullable relationshiptlsactivationtlsactivation types. type NullableRelationshipTLSActivationTLSActivation struct { value *RelationshipTLSActivationTLSActivation isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSActivationTLSActivation) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSActivationTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_activations.go b/fastly/model_relationship_tls_activations.go index dd150b0..f05aedb 100644 --- a/fastly/model_relationship_tls_activations.go +++ b/fastly/model_relationship_tls_activations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSActivations struct for RelationshipTLSActivations type RelationshipTLSActivations struct { - TLSActivations *RelationshipTLSActivationTLSActivation `json:"tls_activations,omitempty"` + TLSActivations *RelationshipTLSActivationTLSActivation `json:"tls_activations,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSActivations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSActivations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSActivations := _RelationshipTLSActivations{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSActivations) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSActivations is a helper abstraction for handling nullable relationshiptlsactivations types. +// NullableRelationshipTLSActivations is a helper abstraction for handling nullable relationshiptlsactivations types. type NullableRelationshipTLSActivations struct { value *RelationshipTLSActivations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSActivations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSActivations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_bulk_certificate.go b/fastly/model_relationship_tls_bulk_certificate.go index 431a115..5668ed9 100644 --- a/fastly/model_relationship_tls_bulk_certificate.go +++ b/fastly/model_relationship_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSBulkCertificate struct for RelationshipTLSBulkCertificate type RelationshipTLSBulkCertificate struct { - TLSBulkCertificate *RelationshipTLSBulkCertificateTLSBulkCertificate `json:"tls_bulk_certificate,omitempty"` + TLSBulkCertificate *RelationshipTLSBulkCertificateTLSBulkCertificate `json:"tls_bulk_certificate,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSBulkCertificate := _RelationshipTLSBulkCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipTLSBulkCertificate is a helper abstraction for handling nullable relationshiptlsbulkcertificate types. +// NullableRelationshipTLSBulkCertificate is a helper abstraction for handling nullable relationshiptlsbulkcertificate types. type NullableRelationshipTLSBulkCertificate struct { value *RelationshipTLSBulkCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_bulk_certificate_tls_bulk_certificate.go b/fastly/model_relationship_tls_bulk_certificate_tls_bulk_certificate.go index 367e83f..76e5bbc 100644 --- a/fastly/model_relationship_tls_bulk_certificate_tls_bulk_certificate.go +++ b/fastly/model_relationship_tls_bulk_certificate_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSBulkCertificateTLSBulkCertificate struct for RelationshipTLSBulkCertificateTLSBulkCertificate type RelationshipTLSBulkCertificateTLSBulkCertificate struct { - Data []RelationshipMemberTLSBulkCertificate `json:"data,omitempty"` + Data []RelationshipMemberTLSBulkCertificate `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSBulkCertificateTLSBulkCertificate) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSBulkCertificateTLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSBulkCertificateTLSBulkCertificate := _RelationshipTLSBulkCertificateTLSBulkCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSBulkCertificateTLSBulkCertificate) UnmarshalJSON(bytes [ return err } -// NullableRelationshipTLSBulkCertificateTLSBulkCertificate is a helper abstraction for handling nullable relationshiptlsbulkcertificatetlsbulkcertificate types. +// NullableRelationshipTLSBulkCertificateTLSBulkCertificate is a helper abstraction for handling nullable relationshiptlsbulkcertificatetlsbulkcertificate types. type NullableRelationshipTLSBulkCertificateTLSBulkCertificate struct { value *RelationshipTLSBulkCertificateTLSBulkCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSBulkCertificateTLSBulkCertificate) MarshalJSON() } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSBulkCertificateTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_bulk_certificates.go b/fastly/model_relationship_tls_bulk_certificates.go index 2fab68f..d56c3d9 100644 --- a/fastly/model_relationship_tls_bulk_certificates.go +++ b/fastly/model_relationship_tls_bulk_certificates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSBulkCertificates struct for RelationshipTLSBulkCertificates type RelationshipTLSBulkCertificates struct { - TLSBulkCertificates *RelationshipTLSBulkCertificateTLSBulkCertificate `json:"tls_bulk_certificates,omitempty"` + TLSBulkCertificates *RelationshipTLSBulkCertificateTLSBulkCertificate `json:"tls_bulk_certificates,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSBulkCertificates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSBulkCertificates) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSBulkCertificates := _RelationshipTLSBulkCertificates{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSBulkCertificates) UnmarshalJSON(bytes []byte) (err error return err } -// NullableRelationshipTLSBulkCertificates is a helper abstraction for handling nullable relationshiptlsbulkcertificates types. +// NullableRelationshipTLSBulkCertificates is a helper abstraction for handling nullable relationshiptlsbulkcertificates types. type NullableRelationshipTLSBulkCertificates struct { value *RelationshipTLSBulkCertificates isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSBulkCertificates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSBulkCertificates) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_certificate.go b/fastly/model_relationship_tls_certificate.go index fd1e35a..0ecc19f 100644 --- a/fastly/model_relationship_tls_certificate.go +++ b/fastly/model_relationship_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSCertificate The [TLS certificate](https://www.fastly.com/documentation/reference/api/tls/custom-certs/certificates/) being used to terminate TLS traffic for a domain. Required. type RelationshipTLSCertificate struct { - TLSCertificate *RelationshipTLSCertificateTLSCertificate `json:"tls_certificate,omitempty"` + TLSCertificate *RelationshipTLSCertificateTLSCertificate `json:"tls_certificate,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSCertificate := _RelationshipTLSCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSCertificate is a helper abstraction for handling nullable relationshiptlscertificate types. +// NullableRelationshipTLSCertificate is a helper abstraction for handling nullable relationshiptlscertificate types. type NullableRelationshipTLSCertificate struct { value *RelationshipTLSCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_certificate_tls_certificate.go b/fastly/model_relationship_tls_certificate_tls_certificate.go index a7693dc..135b2b9 100644 --- a/fastly/model_relationship_tls_certificate_tls_certificate.go +++ b/fastly/model_relationship_tls_certificate_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSCertificateTLSCertificate struct for RelationshipTLSCertificateTLSCertificate type RelationshipTLSCertificateTLSCertificate struct { - Data *RelationshipMemberTLSCertificate `json:"data,omitempty"` + Data *RelationshipMemberTLSCertificate `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSCertificateTLSCertificate) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSCertificateTLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSCertificateTLSCertificate := _RelationshipTLSCertificateTLSCertificate{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSCertificateTLSCertificate) UnmarshalJSON(bytes []byte) ( return err } -// NullableRelationshipTLSCertificateTLSCertificate is a helper abstraction for handling nullable relationshiptlscertificatetlscertificate types. +// NullableRelationshipTLSCertificateTLSCertificate is a helper abstraction for handling nullable relationshiptlscertificatetlscertificate types. type NullableRelationshipTLSCertificateTLSCertificate struct { value *RelationshipTLSCertificateTLSCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSCertificateTLSCertificate) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSCertificateTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_certificates.go b/fastly/model_relationship_tls_certificates.go index de23672..e6ba3a0 100644 --- a/fastly/model_relationship_tls_certificates.go +++ b/fastly/model_relationship_tls_certificates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSCertificates struct for RelationshipTLSCertificates type RelationshipTLSCertificates struct { - TLSCertificates *RelationshipTLSCertificatesTLSCertificates `json:"tls_certificates,omitempty"` + TLSCertificates *RelationshipTLSCertificatesTLSCertificates `json:"tls_certificates,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSCertificates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSCertificates) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSCertificates := _RelationshipTLSCertificates{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSCertificates) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSCertificates is a helper abstraction for handling nullable relationshiptlscertificates types. +// NullableRelationshipTLSCertificates is a helper abstraction for handling nullable relationshiptlscertificates types. type NullableRelationshipTLSCertificates struct { value *RelationshipTLSCertificates isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSCertificates) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSCertificates) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_certificates_tls_certificates.go b/fastly/model_relationship_tls_certificates_tls_certificates.go index f6f556d..d69b936 100644 --- a/fastly/model_relationship_tls_certificates_tls_certificates.go +++ b/fastly/model_relationship_tls_certificates_tls_certificates.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSCertificatesTLSCertificates struct for RelationshipTLSCertificatesTLSCertificates type RelationshipTLSCertificatesTLSCertificates struct { - Data []RelationshipMemberTLSCertificate `json:"data,omitempty"` + Data []RelationshipMemberTLSCertificate `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSCertificatesTLSCertificates) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSCertificatesTLSCertificates) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSCertificatesTLSCertificates := _RelationshipTLSCertificatesTLSCertificates{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSCertificatesTLSCertificates) UnmarshalJSON(bytes []byte) return err } -// NullableRelationshipTLSCertificatesTLSCertificates is a helper abstraction for handling nullable relationshiptlscertificatestlscertificates types. +// NullableRelationshipTLSCertificatesTLSCertificates is a helper abstraction for handling nullable relationshiptlscertificatestlscertificates types. type NullableRelationshipTLSCertificatesTLSCertificates struct { value *RelationshipTLSCertificatesTLSCertificates isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSCertificatesTLSCertificates) MarshalJSON() ([]byt } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSCertificatesTLSCertificates) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_configuration.go b/fastly/model_relationship_tls_configuration.go index da94077..3551fa4 100644 --- a/fastly/model_relationship_tls_configuration.go +++ b/fastly/model_relationship_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSConfiguration The [TLS configuration](https://www.fastly.com/documentation/reference/api/tls/custom-certs/configuration/) being used to terminate TLS traffic. Optional. type RelationshipTLSConfiguration struct { - TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` + TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSConfiguration := _RelationshipTLSConfiguration{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSConfiguration is a helper abstraction for handling nullable relationshiptlsconfiguration types. +// NullableRelationshipTLSConfiguration is a helper abstraction for handling nullable relationshiptlsconfiguration types. type NullableRelationshipTLSConfiguration struct { value *RelationshipTLSConfiguration isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_configuration_for_tls_subscription.go b/fastly/model_relationship_tls_configuration_for_tls_subscription.go index 9befd1d..798f6b6 100644 --- a/fastly/model_relationship_tls_configuration_for_tls_subscription.go +++ b/fastly/model_relationship_tls_configuration_for_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSConfigurationForTLSSubscription The unique identifier for the set of TLS configuration options that apply to the enabled domains on this subscription. Write-only on create. type RelationshipTLSConfigurationForTLSSubscription struct { - TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` + TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSConfigurationForTLSSubscription) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSConfigurationForTLSSubscription) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSConfigurationForTLSSubscription := _RelationshipTLSConfigurationForTLSSubscription{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSConfigurationForTLSSubscription) UnmarshalJSON(bytes []b return err } -// NullableRelationshipTLSConfigurationForTLSSubscription is a helper abstraction for handling nullable relationshiptlsconfigurationfortlssubscription types. +// NullableRelationshipTLSConfigurationForTLSSubscription is a helper abstraction for handling nullable relationshiptlsconfigurationfortlssubscription types. type NullableRelationshipTLSConfigurationForTLSSubscription struct { value *RelationshipTLSConfigurationForTLSSubscription isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSConfigurationForTLSSubscription) MarshalJSON() ([ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSConfigurationForTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_configuration_tls_configuration.go b/fastly/model_relationship_tls_configuration_tls_configuration.go index 150865c..c3f6e24 100644 --- a/fastly/model_relationship_tls_configuration_tls_configuration.go +++ b/fastly/model_relationship_tls_configuration_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSConfigurationTLSConfiguration struct for RelationshipTLSConfigurationTLSConfiguration type RelationshipTLSConfigurationTLSConfiguration struct { - Data *RelationshipMemberTLSConfiguration `json:"data,omitempty"` + Data *RelationshipMemberTLSConfiguration `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSConfigurationTLSConfiguration) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSConfigurationTLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSConfigurationTLSConfiguration := _RelationshipTLSConfigurationTLSConfiguration{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSConfigurationTLSConfiguration) UnmarshalJSON(bytes []byt return err } -// NullableRelationshipTLSConfigurationTLSConfiguration is a helper abstraction for handling nullable relationshiptlsconfigurationtlsconfiguration types. +// NullableRelationshipTLSConfigurationTLSConfiguration is a helper abstraction for handling nullable relationshiptlsconfigurationtlsconfiguration types. type NullableRelationshipTLSConfigurationTLSConfiguration struct { value *RelationshipTLSConfigurationTLSConfiguration isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSConfigurationTLSConfiguration) MarshalJSON() ([]b } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSConfigurationTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_configurations.go b/fastly/model_relationship_tls_configurations.go index 85be5cf..ad12d45 100644 --- a/fastly/model_relationship_tls_configurations.go +++ b/fastly/model_relationship_tls_configurations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSConfigurations struct for RelationshipTLSConfigurations type RelationshipTLSConfigurations struct { - TLSConfigurations *RelationshipTLSConfigurationsTLSConfigurations `json:"tls_configurations,omitempty"` + TLSConfigurations *RelationshipTLSConfigurationsTLSConfigurations `json:"tls_configurations,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSConfigurations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSConfigurations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSConfigurations := _RelationshipTLSConfigurations{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSConfigurations) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipTLSConfigurations is a helper abstraction for handling nullable relationshiptlsconfigurations types. +// NullableRelationshipTLSConfigurations is a helper abstraction for handling nullable relationshiptlsconfigurations types. type NullableRelationshipTLSConfigurations struct { value *RelationshipTLSConfigurations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSConfigurations) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSConfigurations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_configurations_tls_configurations.go b/fastly/model_relationship_tls_configurations_tls_configurations.go index fc41247..a0c932c 100644 --- a/fastly/model_relationship_tls_configurations_tls_configurations.go +++ b/fastly/model_relationship_tls_configurations_tls_configurations.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSConfigurationsTLSConfigurations struct for RelationshipTLSConfigurationsTLSConfigurations type RelationshipTLSConfigurationsTLSConfigurations struct { - Data []RelationshipMemberTLSConfiguration `json:"data,omitempty"` + Data []RelationshipMemberTLSConfiguration `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSConfigurationsTLSConfigurations) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSConfigurationsTLSConfigurations) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSConfigurationsTLSConfigurations := _RelationshipTLSConfigurationsTLSConfigurations{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSConfigurationsTLSConfigurations) UnmarshalJSON(bytes []b return err } -// NullableRelationshipTLSConfigurationsTLSConfigurations is a helper abstraction for handling nullable relationshiptlsconfigurationstlsconfigurations types. +// NullableRelationshipTLSConfigurationsTLSConfigurations is a helper abstraction for handling nullable relationshiptlsconfigurationstlsconfigurations types. type NullableRelationshipTLSConfigurationsTLSConfigurations struct { value *RelationshipTLSConfigurationsTLSConfigurations isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSConfigurationsTLSConfigurations) MarshalJSON() ([ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSConfigurationsTLSConfigurations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_request.go b/fastly/model_relationship_tls_dns_records_request.go index 26f96df..1da5d6d 100644 --- a/fastly/model_relationship_tls_dns_records_request.go +++ b/fastly/model_relationship_tls_dns_records_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsRequest struct for RelationshipTLSDNSRecordsRequest type RelationshipTLSDNSRecordsRequest struct { - DNSRecords *RelationshipTLSDNSRecordsRequestDNSRecords `json:"dns_records,omitempty"` + DNSRecords *RelationshipTLSDNSRecordsRequestDNSRecords `json:"dns_records,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDNSRecordsRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsRequest) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsRequest := _RelationshipTLSDNSRecordsRequest{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDNSRecordsRequest) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableRelationshipTLSDNSRecordsRequest is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequest types. +// NullableRelationshipTLSDNSRecordsRequest is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequest types. type NullableRelationshipTLSDNSRecordsRequest struct { value *RelationshipTLSDNSRecordsRequest isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDNSRecordsRequest) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_request_dns_records.go b/fastly/model_relationship_tls_dns_records_request_dns_records.go index b9742c1..2293759 100644 --- a/fastly/model_relationship_tls_dns_records_request_dns_records.go +++ b/fastly/model_relationship_tls_dns_records_request_dns_records.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsRequestDNSRecords struct for RelationshipTLSDNSRecordsRequestDNSRecords type RelationshipTLSDNSRecordsRequestDNSRecords struct { - Data []RelationshipTLSDNSRecordsRequestDNSRecordsData `json:"data,omitempty"` + Data []RelationshipTLSDNSRecordsRequestDNSRecordsData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDNSRecordsRequestDNSRecords) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsRequestDNSRecords) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsRequestDNSRecords := _RelationshipTLSDNSRecordsRequestDNSRecords{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDNSRecordsRequestDNSRecords) UnmarshalJSON(bytes []byte) return err } -// NullableRelationshipTLSDNSRecordsRequestDNSRecords is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequestdnsrecords types. +// NullableRelationshipTLSDNSRecordsRequestDNSRecords is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequestdnsrecords types. type NullableRelationshipTLSDNSRecordsRequestDNSRecords struct { value *RelationshipTLSDNSRecordsRequestDNSRecords isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDNSRecordsRequestDNSRecords) MarshalJSON() ([]byt } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsRequestDNSRecords) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_request_dns_records_data.go b/fastly/model_relationship_tls_dns_records_request_dns_records_data.go index 2a8417b..e3211cd 100644 --- a/fastly/model_relationship_tls_dns_records_request_dns_records_data.go +++ b/fastly/model_relationship_tls_dns_records_request_dns_records_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsRequestDNSRecordsData struct for RelationshipTLSDNSRecordsRequestDNSRecordsData type RelationshipTLSDNSRecordsRequestDNSRecordsData struct { - Type *TypeTLSDNSRecord `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSDNSRecord `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipTLSDNSRecordsRequestDNSRecordsData) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsRequestDNSRecordsData) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsRequestDNSRecordsData := _RelationshipTLSDNSRecordsRequestDNSRecordsData{} @@ -149,7 +148,7 @@ func (o *RelationshipTLSDNSRecordsRequestDNSRecordsData) UnmarshalJSON(bytes []b return err } -// NullableRelationshipTLSDNSRecordsRequestDNSRecordsData is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequestdnsrecordsdata types. +// NullableRelationshipTLSDNSRecordsRequestDNSRecordsData is a helper abstraction for handling nullable relationshiptlsdnsrecordsrequestdnsrecordsdata types. type NullableRelationshipTLSDNSRecordsRequestDNSRecordsData struct { value *RelationshipTLSDNSRecordsRequestDNSRecordsData isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipTLSDNSRecordsRequestDNSRecordsData) MarshalJSON() ([ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsRequestDNSRecordsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_response.go b/fastly/model_relationship_tls_dns_records_response.go index 2f3afb5..8abd9e6 100644 --- a/fastly/model_relationship_tls_dns_records_response.go +++ b/fastly/model_relationship_tls_dns_records_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsResponse struct for RelationshipTLSDNSRecordsResponse type RelationshipTLSDNSRecordsResponse struct { - DNSRecords *RelationshipTLSDNSRecordsResponseDNSRecords `json:"dns_records,omitempty"` + DNSRecords *RelationshipTLSDNSRecordsResponseDNSRecords `json:"dns_records,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDNSRecordsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsResponse) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsResponse := _RelationshipTLSDNSRecordsResponse{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDNSRecordsResponse) UnmarshalJSON(bytes []byte) (err err return err } -// NullableRelationshipTLSDNSRecordsResponse is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponse types. +// NullableRelationshipTLSDNSRecordsResponse is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponse types. type NullableRelationshipTLSDNSRecordsResponse struct { value *RelationshipTLSDNSRecordsResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDNSRecordsResponse) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_response_dns_records.go b/fastly/model_relationship_tls_dns_records_response_dns_records.go index 3cff70e..1a7376c 100644 --- a/fastly/model_relationship_tls_dns_records_response_dns_records.go +++ b/fastly/model_relationship_tls_dns_records_response_dns_records.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsResponseDNSRecords struct for RelationshipTLSDNSRecordsResponseDNSRecords type RelationshipTLSDNSRecordsResponseDNSRecords struct { - Data []RelationshipTLSDNSRecordsResponseDNSRecordsData `json:"data,omitempty"` + Data []RelationshipTLSDNSRecordsResponseDNSRecordsData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDNSRecordsResponseDNSRecords) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsResponseDNSRecords) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsResponseDNSRecords := _RelationshipTLSDNSRecordsResponseDNSRecords{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDNSRecordsResponseDNSRecords) UnmarshalJSON(bytes []byte return err } -// NullableRelationshipTLSDNSRecordsResponseDNSRecords is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponsednsrecords types. +// NullableRelationshipTLSDNSRecordsResponseDNSRecords is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponsednsrecords types. type NullableRelationshipTLSDNSRecordsResponseDNSRecords struct { value *RelationshipTLSDNSRecordsResponseDNSRecords isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDNSRecordsResponseDNSRecords) MarshalJSON() ([]by } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsResponseDNSRecords) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_dns_records_response_dns_records_data.go b/fastly/model_relationship_tls_dns_records_response_dns_records_data.go index 67e4396..6dea0dc 100644 --- a/fastly/model_relationship_tls_dns_records_response_dns_records_data.go +++ b/fastly/model_relationship_tls_dns_records_response_dns_records_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDNSRecordsResponseDNSRecordsData struct for RelationshipTLSDNSRecordsResponseDNSRecordsData type RelationshipTLSDNSRecordsResponseDNSRecordsData struct { - Type *TypeTLSDNSRecord `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSDNSRecord `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o RelationshipTLSDNSRecordsResponseDNSRecordsData) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDNSRecordsResponseDNSRecordsData) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDNSRecordsResponseDNSRecordsData := _RelationshipTLSDNSRecordsResponseDNSRecordsData{} @@ -149,7 +148,7 @@ func (o *RelationshipTLSDNSRecordsResponseDNSRecordsData) UnmarshalJSON(bytes [] return err } -// NullableRelationshipTLSDNSRecordsResponseDNSRecordsData is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponsednsrecordsdata types. +// NullableRelationshipTLSDNSRecordsResponseDNSRecordsData is a helper abstraction for handling nullable relationshiptlsdnsrecordsresponsednsrecordsdata types. type NullableRelationshipTLSDNSRecordsResponseDNSRecordsData struct { value *RelationshipTLSDNSRecordsResponseDNSRecordsData isSet bool @@ -189,7 +188,7 @@ func (v NullableRelationshipTLSDNSRecordsResponseDNSRecordsData) MarshalJSON() ( } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDNSRecordsResponseDNSRecordsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_domain.go b/fastly/model_relationship_tls_domain.go index 9905b3c..ac3269c 100644 --- a/fastly/model_relationship_tls_domain.go +++ b/fastly/model_relationship_tls_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDomain The TLS domain being enabled for TLS traffic. Required. type RelationshipTLSDomain struct { - TLSDomain *RelationshipTLSDomainTLSDomain `json:"tls_domain,omitempty"` + TLSDomain *RelationshipTLSDomainTLSDomain `json:"tls_domain,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDomain) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDomain := _RelationshipTLSDomain{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDomain) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSDomain is a helper abstraction for handling nullable relationshiptlsdomain types. +// NullableRelationshipTLSDomain is a helper abstraction for handling nullable relationshiptlsdomain types. type NullableRelationshipTLSDomain struct { value *RelationshipTLSDomain isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_domain_tls_domain.go b/fastly/model_relationship_tls_domain_tls_domain.go index 0c6eb80..f10b64d 100644 --- a/fastly/model_relationship_tls_domain_tls_domain.go +++ b/fastly/model_relationship_tls_domain_tls_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDomainTLSDomain struct for RelationshipTLSDomainTLSDomain type RelationshipTLSDomainTLSDomain struct { - Data *RelationshipMemberTLSDomain `json:"data,omitempty"` + Data *RelationshipMemberTLSDomain `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDomainTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDomainTLSDomain) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDomainTLSDomain := _RelationshipTLSDomainTLSDomain{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDomainTLSDomain) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipTLSDomainTLSDomain is a helper abstraction for handling nullable relationshiptlsdomaintlsdomain types. +// NullableRelationshipTLSDomainTLSDomain is a helper abstraction for handling nullable relationshiptlsdomaintlsdomain types. type NullableRelationshipTLSDomainTLSDomain struct { value *RelationshipTLSDomainTLSDomain isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDomainTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDomainTLSDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_domains.go b/fastly/model_relationship_tls_domains.go index a67a705..da3c457 100644 --- a/fastly/model_relationship_tls_domains.go +++ b/fastly/model_relationship_tls_domains.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDomains struct for RelationshipTLSDomains type RelationshipTLSDomains struct { - TLSDomains *RelationshipTLSDomainsTLSDomains `json:"tls_domains,omitempty"` + TLSDomains *RelationshipTLSDomainsTLSDomains `json:"tls_domains,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDomains) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDomains) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDomains := _RelationshipTLSDomains{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDomains) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSDomains is a helper abstraction for handling nullable relationshiptlsdomains types. +// NullableRelationshipTLSDomains is a helper abstraction for handling nullable relationshiptlsdomains types. type NullableRelationshipTLSDomains struct { value *RelationshipTLSDomains isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDomains) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDomains) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_domains_tls_domains.go b/fastly/model_relationship_tls_domains_tls_domains.go index f53eb2d..4f81412 100644 --- a/fastly/model_relationship_tls_domains_tls_domains.go +++ b/fastly/model_relationship_tls_domains_tls_domains.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSDomainsTLSDomains struct for RelationshipTLSDomainsTLSDomains type RelationshipTLSDomainsTLSDomains struct { - Data []RelationshipMemberTLSDomain `json:"data,omitempty"` + Data []RelationshipMemberTLSDomain `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSDomainsTLSDomains) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSDomainsTLSDomains) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSDomainsTLSDomains := _RelationshipTLSDomainsTLSDomains{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSDomainsTLSDomains) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableRelationshipTLSDomainsTLSDomains is a helper abstraction for handling nullable relationshiptlsdomainstlsdomains types. +// NullableRelationshipTLSDomainsTLSDomains is a helper abstraction for handling nullable relationshiptlsdomainstlsdomains types. type NullableRelationshipTLSDomainsTLSDomains struct { value *RelationshipTLSDomainsTLSDomains isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSDomainsTLSDomains) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSDomainsTLSDomains) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_private_key.go b/fastly/model_relationship_tls_private_key.go index b516539..ffc2984 100644 --- a/fastly/model_relationship_tls_private_key.go +++ b/fastly/model_relationship_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSPrivateKey struct for RelationshipTLSPrivateKey type RelationshipTLSPrivateKey struct { - TLSPrivateKey *RelationshipTLSPrivateKeyTLSPrivateKey `json:"tls_private_key,omitempty"` + TLSPrivateKey *RelationshipTLSPrivateKeyTLSPrivateKey `json:"tls_private_key,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSPrivateKey := _RelationshipTLSPrivateKey{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSPrivateKey is a helper abstraction for handling nullable relationshiptlsprivatekey types. +// NullableRelationshipTLSPrivateKey is a helper abstraction for handling nullable relationshiptlsprivatekey types. type NullableRelationshipTLSPrivateKey struct { value *RelationshipTLSPrivateKey isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_private_key_tls_private_key.go b/fastly/model_relationship_tls_private_key_tls_private_key.go index 4255529..1eee866 100644 --- a/fastly/model_relationship_tls_private_key_tls_private_key.go +++ b/fastly/model_relationship_tls_private_key_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSPrivateKeyTLSPrivateKey struct for RelationshipTLSPrivateKeyTLSPrivateKey type RelationshipTLSPrivateKeyTLSPrivateKey struct { - Data *RelationshipMemberTLSPrivateKey `json:"data,omitempty"` + Data *RelationshipMemberTLSPrivateKey `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSPrivateKeyTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSPrivateKeyTLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSPrivateKeyTLSPrivateKey := _RelationshipTLSPrivateKeyTLSPrivateKey{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSPrivateKeyTLSPrivateKey) UnmarshalJSON(bytes []byte) (er return err } -// NullableRelationshipTLSPrivateKeyTLSPrivateKey is a helper abstraction for handling nullable relationshiptlsprivatekeytlsprivatekey types. +// NullableRelationshipTLSPrivateKeyTLSPrivateKey is a helper abstraction for handling nullable relationshiptlsprivatekeytlsprivatekey types. type NullableRelationshipTLSPrivateKeyTLSPrivateKey struct { value *RelationshipTLSPrivateKeyTLSPrivateKey isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSPrivateKeyTLSPrivateKey) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSPrivateKeyTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_private_keys.go b/fastly/model_relationship_tls_private_keys.go index 042c7b4..3ffaf39 100644 --- a/fastly/model_relationship_tls_private_keys.go +++ b/fastly/model_relationship_tls_private_keys.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSPrivateKeys struct for RelationshipTLSPrivateKeys type RelationshipTLSPrivateKeys struct { - TLSPrivateKeys *RelationshipTLSPrivateKeysTLSPrivateKeys `json:"tls_private_keys,omitempty"` + TLSPrivateKeys *RelationshipTLSPrivateKeysTLSPrivateKeys `json:"tls_private_keys,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSPrivateKeys) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSPrivateKeys) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSPrivateKeys := _RelationshipTLSPrivateKeys{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSPrivateKeys) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSPrivateKeys is a helper abstraction for handling nullable relationshiptlsprivatekeys types. +// NullableRelationshipTLSPrivateKeys is a helper abstraction for handling nullable relationshiptlsprivatekeys types. type NullableRelationshipTLSPrivateKeys struct { value *RelationshipTLSPrivateKeys isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSPrivateKeys) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSPrivateKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_private_keys_tls_private_keys.go b/fastly/model_relationship_tls_private_keys_tls_private_keys.go index 226accd..5b83d90 100644 --- a/fastly/model_relationship_tls_private_keys_tls_private_keys.go +++ b/fastly/model_relationship_tls_private_keys_tls_private_keys.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSPrivateKeysTLSPrivateKeys struct for RelationshipTLSPrivateKeysTLSPrivateKeys type RelationshipTLSPrivateKeysTLSPrivateKeys struct { - Data []RelationshipMemberTLSPrivateKey `json:"data,omitempty"` + Data []RelationshipMemberTLSPrivateKey `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSPrivateKeysTLSPrivateKeys) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSPrivateKeysTLSPrivateKeys) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSPrivateKeysTLSPrivateKeys := _RelationshipTLSPrivateKeysTLSPrivateKeys{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSPrivateKeysTLSPrivateKeys) UnmarshalJSON(bytes []byte) ( return err } -// NullableRelationshipTLSPrivateKeysTLSPrivateKeys is a helper abstraction for handling nullable relationshiptlsprivatekeystlsprivatekeys types. +// NullableRelationshipTLSPrivateKeysTLSPrivateKeys is a helper abstraction for handling nullable relationshiptlsprivatekeystlsprivatekeys types. type NullableRelationshipTLSPrivateKeysTLSPrivateKeys struct { value *RelationshipTLSPrivateKeysTLSPrivateKeys isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSPrivateKeysTLSPrivateKeys) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSPrivateKeysTLSPrivateKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_subscription.go b/fastly/model_relationship_tls_subscription.go index 454b48d..55c60ee 100644 --- a/fastly/model_relationship_tls_subscription.go +++ b/fastly/model_relationship_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSSubscription struct for RelationshipTLSSubscription type RelationshipTLSSubscription struct { - TLSSubscription *RelationshipTLSSubscriptionTLSSubscription `json:"tls_subscription,omitempty"` + TLSSubscription *RelationshipTLSSubscriptionTLSSubscription `json:"tls_subscription,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSSubscription) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSSubscription := _RelationshipTLSSubscription{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSSubscription) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSSubscription is a helper abstraction for handling nullable relationshiptlssubscription types. +// NullableRelationshipTLSSubscription is a helper abstraction for handling nullable relationshiptlssubscription types. type NullableRelationshipTLSSubscription struct { value *RelationshipTLSSubscription isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_subscription_tls_subscription.go b/fastly/model_relationship_tls_subscription_tls_subscription.go index 0f41e58..ec4489e 100644 --- a/fastly/model_relationship_tls_subscription_tls_subscription.go +++ b/fastly/model_relationship_tls_subscription_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSSubscriptionTLSSubscription struct for RelationshipTLSSubscriptionTLSSubscription type RelationshipTLSSubscriptionTLSSubscription struct { - Data []RelationshipMemberTLSSubscription `json:"data,omitempty"` + Data []RelationshipMemberTLSSubscription `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSSubscriptionTLSSubscription) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSSubscriptionTLSSubscription) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSSubscriptionTLSSubscription := _RelationshipTLSSubscriptionTLSSubscription{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSSubscriptionTLSSubscription) UnmarshalJSON(bytes []byte) return err } -// NullableRelationshipTLSSubscriptionTLSSubscription is a helper abstraction for handling nullable relationshiptlssubscriptiontlssubscription types. +// NullableRelationshipTLSSubscriptionTLSSubscription is a helper abstraction for handling nullable relationshiptlssubscriptiontlssubscription types. type NullableRelationshipTLSSubscriptionTLSSubscription struct { value *RelationshipTLSSubscriptionTLSSubscription isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSSubscriptionTLSSubscription) MarshalJSON() ([]byt } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSSubscriptionTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_tls_subscriptions.go b/fastly/model_relationship_tls_subscriptions.go index 5d33200..f97b17b 100644 --- a/fastly/model_relationship_tls_subscriptions.go +++ b/fastly/model_relationship_tls_subscriptions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipTLSSubscriptions struct for RelationshipTLSSubscriptions type RelationshipTLSSubscriptions struct { - TLSSubscriptions *RelationshipTLSSubscriptionTLSSubscription `json:"tls_subscriptions,omitempty"` + TLSSubscriptions *RelationshipTLSSubscriptionTLSSubscription `json:"tls_subscriptions,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipTLSSubscriptions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipTLSSubscriptions) UnmarshalJSON(bytes []byte) (err error) { varRelationshipTLSSubscriptions := _RelationshipTLSSubscriptions{} @@ -108,7 +107,7 @@ func (o *RelationshipTLSSubscriptions) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipTLSSubscriptions is a helper abstraction for handling nullable relationshiptlssubscriptions types. +// NullableRelationshipTLSSubscriptions is a helper abstraction for handling nullable relationshiptlssubscriptions types. type NullableRelationshipTLSSubscriptions struct { value *RelationshipTLSSubscriptions isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipTLSSubscriptions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipTLSSubscriptions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_user.go b/fastly/model_relationship_user.go index e978ee2..a191161 100644 --- a/fastly/model_relationship_user.go +++ b/fastly/model_relationship_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipUser struct for RelationshipUser type RelationshipUser struct { - User *RelationshipUserUser `json:"user,omitempty"` + User *RelationshipUserUser `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipUser) UnmarshalJSON(bytes []byte) (err error) { varRelationshipUser := _RelationshipUser{} @@ -108,7 +107,7 @@ func (o *RelationshipUser) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipUser is a helper abstraction for handling nullable relationshipuser types. +// NullableRelationshipUser is a helper abstraction for handling nullable relationshipuser types. type NullableRelationshipUser struct { value *RelationshipUser isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_user_user.go b/fastly/model_relationship_user_user.go index 74953be..66bf474 100644 --- a/fastly/model_relationship_user_user.go +++ b/fastly/model_relationship_user_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipUserUser struct for RelationshipUserUser type RelationshipUserUser struct { - Data *ServiceAuthorizationDataRelationshipsUserData `json:"data,omitempty"` + Data *ServiceAuthorizationDataRelationshipsUserData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipUserUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipUserUser) UnmarshalJSON(bytes []byte) (err error) { varRelationshipUserUser := _RelationshipUserUser{} @@ -108,7 +107,7 @@ func (o *RelationshipUserUser) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipUserUser is a helper abstraction for handling nullable relationshipuseruser types. +// NullableRelationshipUserUser is a helper abstraction for handling nullable relationshipuseruser types. type NullableRelationshipUserUser struct { value *RelationshipUserUser isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipUserUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipUserUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_active_rules.go b/fastly/model_relationship_waf_active_rules.go index d44f5de..6233e29 100644 --- a/fastly/model_relationship_waf_active_rules.go +++ b/fastly/model_relationship_waf_active_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafActiveRules struct for RelationshipWafActiveRules type RelationshipWafActiveRules struct { - WafActiveRules *RelationshipWafActiveRulesWafActiveRules `json:"waf_active_rules,omitempty"` + WafActiveRules *RelationshipWafActiveRulesWafActiveRules `json:"waf_active_rules,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafActiveRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafActiveRules) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafActiveRules := _RelationshipWafActiveRules{} @@ -108,7 +107,7 @@ func (o *RelationshipWafActiveRules) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafActiveRules is a helper abstraction for handling nullable relationshipwafactiverules types. +// NullableRelationshipWafActiveRules is a helper abstraction for handling nullable relationshipwafactiverules types. type NullableRelationshipWafActiveRules struct { value *RelationshipWafActiveRules isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafActiveRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafActiveRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_active_rules_waf_active_rules.go b/fastly/model_relationship_waf_active_rules_waf_active_rules.go index d336b42..dbbcb3f 100644 --- a/fastly/model_relationship_waf_active_rules_waf_active_rules.go +++ b/fastly/model_relationship_waf_active_rules_waf_active_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafActiveRulesWafActiveRules struct for RelationshipWafActiveRulesWafActiveRules type RelationshipWafActiveRulesWafActiveRules struct { - Data []RelationshipMemberWafActiveRule `json:"data,omitempty"` + Data []RelationshipMemberWafActiveRule `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafActiveRulesWafActiveRules) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafActiveRulesWafActiveRules) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafActiveRulesWafActiveRules := _RelationshipWafActiveRulesWafActiveRules{} @@ -108,7 +107,7 @@ func (o *RelationshipWafActiveRulesWafActiveRules) UnmarshalJSON(bytes []byte) ( return err } -// NullableRelationshipWafActiveRulesWafActiveRules is a helper abstraction for handling nullable relationshipwafactiveruleswafactiverules types. +// NullableRelationshipWafActiveRulesWafActiveRules is a helper abstraction for handling nullable relationshipwafactiveruleswafactiverules types. type NullableRelationshipWafActiveRulesWafActiveRules struct { value *RelationshipWafActiveRulesWafActiveRules isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafActiveRulesWafActiveRules) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafActiveRulesWafActiveRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_firewall.go b/fastly/model_relationship_waf_firewall.go index 055725d..7ef582d 100644 --- a/fastly/model_relationship_waf_firewall.go +++ b/fastly/model_relationship_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafFirewall struct for RelationshipWafFirewall type RelationshipWafFirewall struct { - WafFirewall *RelationshipWafFirewallWafFirewall `json:"waf_firewall,omitempty"` + WafFirewall *RelationshipWafFirewallWafFirewall `json:"waf_firewall,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafFirewall) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafFirewall := _RelationshipWafFirewall{} @@ -108,7 +107,7 @@ func (o *RelationshipWafFirewall) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafFirewall is a helper abstraction for handling nullable relationshipwaffirewall types. +// NullableRelationshipWafFirewall is a helper abstraction for handling nullable relationshipwaffirewall types. type NullableRelationshipWafFirewall struct { value *RelationshipWafFirewall isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_firewall_version.go b/fastly/model_relationship_waf_firewall_version.go index 10a5c13..90cc083 100644 --- a/fastly/model_relationship_waf_firewall_version.go +++ b/fastly/model_relationship_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafFirewallVersion struct for RelationshipWafFirewallVersion type RelationshipWafFirewallVersion struct { - WafFirewallVersion *RelationshipWafFirewallVersionWafFirewallVersion `json:"waf_firewall_version,omitempty"` + WafFirewallVersion *RelationshipWafFirewallVersionWafFirewallVersion `json:"waf_firewall_version,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafFirewallVersion := _RelationshipWafFirewallVersion{} @@ -108,7 +107,7 @@ func (o *RelationshipWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipWafFirewallVersion is a helper abstraction for handling nullable relationshipwaffirewallversion types. +// NullableRelationshipWafFirewallVersion is a helper abstraction for handling nullable relationshipwaffirewallversion types. type NullableRelationshipWafFirewallVersion struct { value *RelationshipWafFirewallVersion isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_firewall_version_waf_firewall_version.go b/fastly/model_relationship_waf_firewall_version_waf_firewall_version.go index f7fdcc1..f5a0fa5 100644 --- a/fastly/model_relationship_waf_firewall_version_waf_firewall_version.go +++ b/fastly/model_relationship_waf_firewall_version_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafFirewallVersionWafFirewallVersion struct for RelationshipWafFirewallVersionWafFirewallVersion type RelationshipWafFirewallVersionWafFirewallVersion struct { - Data []RelationshipMemberWafFirewallVersion `json:"data,omitempty"` + Data []RelationshipMemberWafFirewallVersion `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafFirewallVersionWafFirewallVersion) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafFirewallVersionWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafFirewallVersionWafFirewallVersion := _RelationshipWafFirewallVersionWafFirewallVersion{} @@ -108,7 +107,7 @@ func (o *RelationshipWafFirewallVersionWafFirewallVersion) UnmarshalJSON(bytes [ return err } -// NullableRelationshipWafFirewallVersionWafFirewallVersion is a helper abstraction for handling nullable relationshipwaffirewallversionwaffirewallversion types. +// NullableRelationshipWafFirewallVersionWafFirewallVersion is a helper abstraction for handling nullable relationshipwaffirewallversionwaffirewallversion types. type NullableRelationshipWafFirewallVersionWafFirewallVersion struct { value *RelationshipWafFirewallVersionWafFirewallVersion isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafFirewallVersionWafFirewallVersion) MarshalJSON() } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafFirewallVersionWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_firewall_versions.go b/fastly/model_relationship_waf_firewall_versions.go index 4800cec..097cb54 100644 --- a/fastly/model_relationship_waf_firewall_versions.go +++ b/fastly/model_relationship_waf_firewall_versions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafFirewallVersions struct for RelationshipWafFirewallVersions type RelationshipWafFirewallVersions struct { - WafFirewallVersions *RelationshipWafFirewallVersionWafFirewallVersion `json:"waf_firewall_versions,omitempty"` + WafFirewallVersions *RelationshipWafFirewallVersionWafFirewallVersion `json:"waf_firewall_versions,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafFirewallVersions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafFirewallVersions) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafFirewallVersions := _RelationshipWafFirewallVersions{} @@ -108,7 +107,7 @@ func (o *RelationshipWafFirewallVersions) UnmarshalJSON(bytes []byte) (err error return err } -// NullableRelationshipWafFirewallVersions is a helper abstraction for handling nullable relationshipwaffirewallversions types. +// NullableRelationshipWafFirewallVersions is a helper abstraction for handling nullable relationshipwaffirewallversions types. type NullableRelationshipWafFirewallVersions struct { value *RelationshipWafFirewallVersions isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafFirewallVersions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafFirewallVersions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_firewall_waf_firewall.go b/fastly/model_relationship_waf_firewall_waf_firewall.go index 0fb03b0..d492e6d 100644 --- a/fastly/model_relationship_waf_firewall_waf_firewall.go +++ b/fastly/model_relationship_waf_firewall_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafFirewallWafFirewall struct for RelationshipWafFirewallWafFirewall type RelationshipWafFirewallWafFirewall struct { - Data []RelationshipMemberWafFirewall `json:"data,omitempty"` + Data []RelationshipMemberWafFirewall `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafFirewallWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafFirewallWafFirewall) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafFirewallWafFirewall := _RelationshipWafFirewallWafFirewall{} @@ -108,7 +107,7 @@ func (o *RelationshipWafFirewallWafFirewall) UnmarshalJSON(bytes []byte) (err er return err } -// NullableRelationshipWafFirewallWafFirewall is a helper abstraction for handling nullable relationshipwaffirewallwaffirewall types. +// NullableRelationshipWafFirewallWafFirewall is a helper abstraction for handling nullable relationshipwaffirewallwaffirewall types. type NullableRelationshipWafFirewallWafFirewall struct { value *RelationshipWafFirewallWafFirewall isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafFirewallWafFirewall) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafFirewallWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rule.go b/fastly/model_relationship_waf_rule.go index 694cea5..f191312 100644 --- a/fastly/model_relationship_waf_rule.go +++ b/fastly/model_relationship_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRule struct for RelationshipWafRule type RelationshipWafRule struct { - WafRule *RelationshipWafRuleWafRule `json:"waf_rule,omitempty"` + WafRule *RelationshipWafRuleWafRule `json:"waf_rule,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRule) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRule := _RelationshipWafRule{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafRule is a helper abstraction for handling nullable relationshipwafrule types. +// NullableRelationshipWafRule is a helper abstraction for handling nullable relationshipwafrule types. type NullableRelationshipWafRule struct { value *RelationshipWafRule isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rule_revision.go b/fastly/model_relationship_waf_rule_revision.go index b6ce833..2bcead7 100644 --- a/fastly/model_relationship_waf_rule_revision.go +++ b/fastly/model_relationship_waf_rule_revision.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRuleRevision struct for RelationshipWafRuleRevision type RelationshipWafRuleRevision struct { - WafRuleRevisions *RelationshipWafRuleRevisionWafRuleRevisions `json:"waf_rule_revisions,omitempty"` + WafRuleRevisions *RelationshipWafRuleRevisionWafRuleRevisions `json:"waf_rule_revisions,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRuleRevision) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRuleRevision := _RelationshipWafRuleRevision{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRuleRevision) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafRuleRevision is a helper abstraction for handling nullable relationshipwafrulerevision types. +// NullableRelationshipWafRuleRevision is a helper abstraction for handling nullable relationshipwafrulerevision types. type NullableRelationshipWafRuleRevision struct { value *RelationshipWafRuleRevision isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRuleRevision) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rule_revision_waf_rule_revisions.go b/fastly/model_relationship_waf_rule_revision_waf_rule_revisions.go index bf1b00c..94f4d45 100644 --- a/fastly/model_relationship_waf_rule_revision_waf_rule_revisions.go +++ b/fastly/model_relationship_waf_rule_revision_waf_rule_revisions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRuleRevisionWafRuleRevisions struct for RelationshipWafRuleRevisionWafRuleRevisions type RelationshipWafRuleRevisionWafRuleRevisions struct { - Data []RelationshipMemberWafRuleRevision `json:"data,omitempty"` + Data []RelationshipMemberWafRuleRevision `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRuleRevisionWafRuleRevisions) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRuleRevisionWafRuleRevisions) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRuleRevisionWafRuleRevisions := _RelationshipWafRuleRevisionWafRuleRevisions{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRuleRevisionWafRuleRevisions) UnmarshalJSON(bytes []byte return err } -// NullableRelationshipWafRuleRevisionWafRuleRevisions is a helper abstraction for handling nullable relationshipwafrulerevisionwafrulerevisions types. +// NullableRelationshipWafRuleRevisionWafRuleRevisions is a helper abstraction for handling nullable relationshipwafrulerevisionwafrulerevisions types. type NullableRelationshipWafRuleRevisionWafRuleRevisions struct { value *RelationshipWafRuleRevisionWafRuleRevisions isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRuleRevisionWafRuleRevisions) MarshalJSON() ([]by } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRuleRevisionWafRuleRevisions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rule_revisions.go b/fastly/model_relationship_waf_rule_revisions.go index d4d201c..61e6269 100644 --- a/fastly/model_relationship_waf_rule_revisions.go +++ b/fastly/model_relationship_waf_rule_revisions.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRuleRevisions struct for RelationshipWafRuleRevisions type RelationshipWafRuleRevisions struct { - WafRuleRevisions *RelationshipWafRuleRevisionWafRuleRevisions `json:"waf_rule_revisions,omitempty"` + WafRuleRevisions *RelationshipWafRuleRevisionWafRuleRevisions `json:"waf_rule_revisions,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRuleRevisions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRuleRevisions) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRuleRevisions := _RelationshipWafRuleRevisions{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRuleRevisions) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafRuleRevisions is a helper abstraction for handling nullable relationshipwafrulerevisions types. +// NullableRelationshipWafRuleRevisions is a helper abstraction for handling nullable relationshipwafrulerevisions types. type NullableRelationshipWafRuleRevisions struct { value *RelationshipWafRuleRevisions isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRuleRevisions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRuleRevisions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rule_waf_rule.go b/fastly/model_relationship_waf_rule_waf_rule.go index e1d49b2..277820c 100644 --- a/fastly/model_relationship_waf_rule_waf_rule.go +++ b/fastly/model_relationship_waf_rule_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRuleWafRule struct for RelationshipWafRuleWafRule type RelationshipWafRuleWafRule struct { - Data []RelationshipMemberWafRule `json:"data,omitempty"` + Data []RelationshipMemberWafRule `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRuleWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRuleWafRule) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRuleWafRule := _RelationshipWafRuleWafRule{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRuleWafRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafRuleWafRule is a helper abstraction for handling nullable relationshipwafrulewafrule types. +// NullableRelationshipWafRuleWafRule is a helper abstraction for handling nullable relationshipwafrulewafrule types. type NullableRelationshipWafRuleWafRule struct { value *RelationshipWafRuleWafRule isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRuleWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRuleWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_rules.go b/fastly/model_relationship_waf_rules.go index 3293e71..d261fc3 100644 --- a/fastly/model_relationship_waf_rules.go +++ b/fastly/model_relationship_waf_rules.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafRules struct for RelationshipWafRules type RelationshipWafRules struct { - WafRules *RelationshipWafRuleWafRule `json:"waf_rules,omitempty"` + WafRules *RelationshipWafRuleWafRule `json:"waf_rules,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafRules) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafRules := _RelationshipWafRules{} @@ -108,7 +107,7 @@ func (o *RelationshipWafRules) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafRules is a helper abstraction for handling nullable relationshipwafrules types. +// NullableRelationshipWafRules is a helper abstraction for handling nullable relationshipwafrules types. type NullableRelationshipWafRules struct { value *RelationshipWafRules isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafRules) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_tags.go b/fastly/model_relationship_waf_tags.go index d6c3beb..95beabf 100644 --- a/fastly/model_relationship_waf_tags.go +++ b/fastly/model_relationship_waf_tags.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafTags struct for RelationshipWafTags type RelationshipWafTags struct { - WafTags *RelationshipWafTagsWafTags `json:"waf_tags,omitempty"` + WafTags *RelationshipWafTagsWafTags `json:"waf_tags,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafTags) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafTags) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafTags := _RelationshipWafTags{} @@ -108,7 +107,7 @@ func (o *RelationshipWafTags) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafTags is a helper abstraction for handling nullable relationshipwaftags types. +// NullableRelationshipWafTags is a helper abstraction for handling nullable relationshipwaftags types. type NullableRelationshipWafTags struct { value *RelationshipWafTags isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafTags) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafTags) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationship_waf_tags_waf_tags.go b/fastly/model_relationship_waf_tags_waf_tags.go index b963a94..de2ee00 100644 --- a/fastly/model_relationship_waf_tags_waf_tags.go +++ b/fastly/model_relationship_waf_tags_waf_tags.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipWafTagsWafTags struct for RelationshipWafTagsWafTags type RelationshipWafTagsWafTags struct { - Data []RelationshipMemberWafTag `json:"data,omitempty"` + Data []RelationshipMemberWafTag `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o RelationshipWafTagsWafTags) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipWafTagsWafTags) UnmarshalJSON(bytes []byte) (err error) { varRelationshipWafTagsWafTags := _RelationshipWafTagsWafTags{} @@ -108,7 +107,7 @@ func (o *RelationshipWafTagsWafTags) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipWafTagsWafTags is a helper abstraction for handling nullable relationshipwaftagswaftags types. +// NullableRelationshipWafTagsWafTags is a helper abstraction for handling nullable relationshipwaftagswaftags types. type NullableRelationshipWafTagsWafTags struct { value *RelationshipWafTagsWafTags isSet bool @@ -148,7 +147,7 @@ func (v NullableRelationshipWafTagsWafTags) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipWafTagsWafTags) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_invitation.go b/fastly/model_relationships_for_invitation.go index aaf9575..34d341d 100644 --- a/fastly/model_relationships_for_invitation.go +++ b/fastly/model_relationships_for_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,34 +19,34 @@ import ( // RelationshipsForInvitation struct for RelationshipsForInvitation type RelationshipsForInvitation struct { - RelationshipCustomer *RelationshipCustomer + RelationshipCustomer *RelationshipCustomer RelationshipServiceInvitations *RelationshipServiceInvitations } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForInvitation) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipCustomer - err = json.Unmarshal(data, &o.RelationshipCustomer); + err = json.Unmarshal(data, &o.RelationshipCustomer) if err == nil { jsonRelationshipCustomer, _ := json.Marshal(o.RelationshipCustomer) if string(jsonRelationshipCustomer) != "{}" { // empty struct return nil // data stored in o.RelationshipCustomer, return on the first match } - o.RelationshipCustomer = nil + o.RelationshipCustomer = nil } else { o.RelationshipCustomer = nil } // try to unmarshal JSON data into RelationshipServiceInvitations - err = json.Unmarshal(data, &o.RelationshipServiceInvitations); + err = json.Unmarshal(data, &o.RelationshipServiceInvitations) if err == nil { jsonRelationshipServiceInvitations, _ := json.Marshal(o.RelationshipServiceInvitations) if string(jsonRelationshipServiceInvitations) != "{}" { // empty struct return nil // data stored in o.RelationshipServiceInvitations, return on the first match } - o.RelationshipServiceInvitations = nil + o.RelationshipServiceInvitations = nil } else { o.RelationshipServiceInvitations = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForInvitation) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForInvitation is a helper abstraction for handling nullable relationshipsforinvitation types. +// NullableRelationshipsForInvitation is a helper abstraction for handling nullable relationshipsforinvitation types. type NullableRelationshipsForInvitation struct { value *RelationshipsForInvitation isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_mutual_authentication.go b/fastly/model_relationships_for_mutual_authentication.go index 46cefa5..013d117 100644 --- a/fastly/model_relationships_for_mutual_authentication.go +++ b/fastly/model_relationships_for_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -24,17 +23,17 @@ type RelationshipsForMutualAuthentication struct { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForMutualAuthentication) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipTLSActivations - err = json.Unmarshal(data, &o.RelationshipTLSActivations); + err = json.Unmarshal(data, &o.RelationshipTLSActivations) if err == nil { jsonRelationshipTLSActivations, _ := json.Marshal(o.RelationshipTLSActivations) if string(jsonRelationshipTLSActivations) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSActivations, return on the first match } - o.RelationshipTLSActivations = nil + o.RelationshipTLSActivations = nil } else { o.RelationshipTLSActivations = nil } @@ -52,7 +51,7 @@ func (o *RelationshipsForMutualAuthentication) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForMutualAuthentication is a helper abstraction for handling nullable relationshipsformutualauthentication types. +// NullableRelationshipsForMutualAuthentication is a helper abstraction for handling nullable relationshipsformutualauthentication types. type NullableRelationshipsForMutualAuthentication struct { value *RelationshipsForMutualAuthentication isSet bool @@ -92,7 +91,7 @@ func (v NullableRelationshipsForMutualAuthentication) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_star.go b/fastly/model_relationships_for_star.go index f749080..64e7fc7 100644 --- a/fastly/model_relationships_for_star.go +++ b/fastly/model_relationships_for_star.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipsForStar struct for RelationshipsForStar type RelationshipsForStar struct { - User *RelationshipUserUser `json:"user,omitempty"` - Service *RelationshipMemberService `json:"service,omitempty"` + User *RelationshipUserUser `json:"user,omitempty"` + Service *RelationshipMemberService `json:"service,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o RelationshipsForStar) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForStar) UnmarshalJSON(bytes []byte) (err error) { varRelationshipsForStar := _RelationshipsForStar{} @@ -145,7 +144,7 @@ func (o *RelationshipsForStar) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRelationshipsForStar is a helper abstraction for handling nullable relationshipsforstar types. +// NullableRelationshipsForStar is a helper abstraction for handling nullable relationshipsforstar types. type NullableRelationshipsForStar struct { value *RelationshipsForStar isSet bool @@ -185,7 +184,7 @@ func (v NullableRelationshipsForStar) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForStar) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_activation.go b/fastly/model_relationships_for_tls_activation.go index d2d4c57..4d41727 100644 --- a/fastly/model_relationships_for_tls_activation.go +++ b/fastly/model_relationships_for_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // RelationshipsForTLSActivation struct for RelationshipsForTLSActivation type RelationshipsForTLSActivation struct { - TLSCertificate *RelationshipTLSCertificateTLSCertificate `json:"tls_certificate,omitempty"` - TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` - TLSDomain *RelationshipTLSDomainTLSDomain `json:"tls_domain,omitempty"` + TLSCertificate *RelationshipTLSCertificateTLSCertificate `json:"tls_certificate,omitempty"` + TLSConfiguration *RelationshipTLSConfigurationTLSConfiguration `json:"tls_configuration,omitempty"` + TLSDomain *RelationshipTLSDomainTLSDomain `json:"tls_domain,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o RelationshipsForTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSActivation) UnmarshalJSON(bytes []byte) (err error) { varRelationshipsForTLSActivation := _RelationshipsForTLSActivation{} @@ -182,7 +181,7 @@ func (o *RelationshipsForTLSActivation) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableRelationshipsForTLSActivation is a helper abstraction for handling nullable relationshipsfortlsactivation types. +// NullableRelationshipsForTLSActivation is a helper abstraction for handling nullable relationshipsfortlsactivation types. type NullableRelationshipsForTLSActivation struct { value *RelationshipsForTLSActivation isSet bool @@ -222,7 +221,7 @@ func (v NullableRelationshipsForTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_bulk_certificate.go b/fastly/model_relationships_for_tls_bulk_certificate.go index 3ec6949..3e00bf8 100644 --- a/fastly/model_relationships_for_tls_bulk_certificate.go +++ b/fastly/model_relationships_for_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // RelationshipsForTLSBulkCertificate struct for RelationshipsForTLSBulkCertificate type RelationshipsForTLSBulkCertificate struct { RelationshipTLSConfigurations *RelationshipTLSConfigurations - RelationshipTLSDomains *RelationshipTLSDomains + RelationshipTLSDomains *RelationshipTLSDomains } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSBulkCertificate) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipTLSConfigurations - err = json.Unmarshal(data, &o.RelationshipTLSConfigurations); + err = json.Unmarshal(data, &o.RelationshipTLSConfigurations) if err == nil { jsonRelationshipTLSConfigurations, _ := json.Marshal(o.RelationshipTLSConfigurations) if string(jsonRelationshipTLSConfigurations) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSConfigurations, return on the first match } - o.RelationshipTLSConfigurations = nil + o.RelationshipTLSConfigurations = nil } else { o.RelationshipTLSConfigurations = nil } // try to unmarshal JSON data into RelationshipTLSDomains - err = json.Unmarshal(data, &o.RelationshipTLSDomains); + err = json.Unmarshal(data, &o.RelationshipTLSDomains) if err == nil { jsonRelationshipTLSDomains, _ := json.Marshal(o.RelationshipTLSDomains) if string(jsonRelationshipTLSDomains) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSDomains, return on the first match } - o.RelationshipTLSDomains = nil + o.RelationshipTLSDomains = nil } else { o.RelationshipTLSDomains = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForTLSBulkCertificate) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForTLSBulkCertificate is a helper abstraction for handling nullable relationshipsfortlsbulkcertificate types. +// NullableRelationshipsForTLSBulkCertificate is a helper abstraction for handling nullable relationshipsfortlsbulkcertificate types. type NullableRelationshipsForTLSBulkCertificate struct { value *RelationshipsForTLSBulkCertificate isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForTLSBulkCertificate) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_configuration.go b/fastly/model_relationships_for_tls_configuration.go index 110c265..a90215e 100644 --- a/fastly/model_relationships_for_tls_configuration.go +++ b/fastly/model_relationships_for_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,34 +19,34 @@ import ( // RelationshipsForTLSConfiguration struct for RelationshipsForTLSConfiguration type RelationshipsForTLSConfiguration struct { - RelationshipService *RelationshipService + RelationshipService *RelationshipService RelationshipTLSDNSRecordsResponse *RelationshipTLSDNSRecordsResponse } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSConfiguration) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipService - err = json.Unmarshal(data, &o.RelationshipService); + err = json.Unmarshal(data, &o.RelationshipService) if err == nil { jsonRelationshipService, _ := json.Marshal(o.RelationshipService) if string(jsonRelationshipService) != "{}" { // empty struct return nil // data stored in o.RelationshipService, return on the first match } - o.RelationshipService = nil + o.RelationshipService = nil } else { o.RelationshipService = nil } // try to unmarshal JSON data into RelationshipTLSDNSRecordsResponse - err = json.Unmarshal(data, &o.RelationshipTLSDNSRecordsResponse); + err = json.Unmarshal(data, &o.RelationshipTLSDNSRecordsResponse) if err == nil { jsonRelationshipTLSDNSRecordsResponse, _ := json.Marshal(o.RelationshipTLSDNSRecordsResponse) if string(jsonRelationshipTLSDNSRecordsResponse) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSDNSRecordsResponse, return on the first match } - o.RelationshipTLSDNSRecordsResponse = nil + o.RelationshipTLSDNSRecordsResponse = nil } else { o.RelationshipTLSDNSRecordsResponse = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForTLSConfiguration) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForTLSConfiguration is a helper abstraction for handling nullable relationshipsfortlsconfiguration types. +// NullableRelationshipsForTLSConfiguration is a helper abstraction for handling nullable relationshipsfortlsconfiguration types. type NullableRelationshipsForTLSConfiguration struct { value *RelationshipsForTLSConfiguration isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForTLSConfiguration) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_domain.go b/fastly/model_relationships_for_tls_domain.go index 0c3e164..6075128 100644 --- a/fastly/model_relationships_for_tls_domain.go +++ b/fastly/model_relationships_for_tls_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,47 +19,47 @@ import ( // RelationshipsForTLSDomain struct for RelationshipsForTLSDomain type RelationshipsForTLSDomain struct { - RelationshipTLSActivations *RelationshipTLSActivations - RelationshipTLSCertificates *RelationshipTLSCertificates + RelationshipTLSActivations *RelationshipTLSActivations + RelationshipTLSCertificates *RelationshipTLSCertificates RelationshipTLSSubscriptions *RelationshipTLSSubscriptions } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSDomain) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipTLSActivations - err = json.Unmarshal(data, &o.RelationshipTLSActivations); + err = json.Unmarshal(data, &o.RelationshipTLSActivations) if err == nil { jsonRelationshipTLSActivations, _ := json.Marshal(o.RelationshipTLSActivations) if string(jsonRelationshipTLSActivations) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSActivations, return on the first match } - o.RelationshipTLSActivations = nil + o.RelationshipTLSActivations = nil } else { o.RelationshipTLSActivations = nil } // try to unmarshal JSON data into RelationshipTLSCertificates - err = json.Unmarshal(data, &o.RelationshipTLSCertificates); + err = json.Unmarshal(data, &o.RelationshipTLSCertificates) if err == nil { jsonRelationshipTLSCertificates, _ := json.Marshal(o.RelationshipTLSCertificates) if string(jsonRelationshipTLSCertificates) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSCertificates, return on the first match } - o.RelationshipTLSCertificates = nil + o.RelationshipTLSCertificates = nil } else { o.RelationshipTLSCertificates = nil } // try to unmarshal JSON data into RelationshipTLSSubscriptions - err = json.Unmarshal(data, &o.RelationshipTLSSubscriptions); + err = json.Unmarshal(data, &o.RelationshipTLSSubscriptions) if err == nil { jsonRelationshipTLSSubscriptions, _ := json.Marshal(o.RelationshipTLSSubscriptions) if string(jsonRelationshipTLSSubscriptions) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSSubscriptions, return on the first match } - o.RelationshipTLSSubscriptions = nil + o.RelationshipTLSSubscriptions = nil } else { o.RelationshipTLSSubscriptions = nil } @@ -86,7 +85,7 @@ func (o *RelationshipsForTLSDomain) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForTLSDomain is a helper abstraction for handling nullable relationshipsfortlsdomain types. +// NullableRelationshipsForTLSDomain is a helper abstraction for handling nullable relationshipsfortlsdomain types. type NullableRelationshipsForTLSDomain struct { value *RelationshipsForTLSDomain isSet bool @@ -126,7 +125,7 @@ func (v NullableRelationshipsForTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_private_key.go b/fastly/model_relationships_for_tls_private_key.go index cc5543b..dfbc089 100644 --- a/fastly/model_relationships_for_tls_private_key.go +++ b/fastly/model_relationships_for_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // RelationshipsForTLSPrivateKey struct for RelationshipsForTLSPrivateKey type RelationshipsForTLSPrivateKey struct { RelationshipTLSActivations *RelationshipTLSActivations - RelationshipTLSDomains *RelationshipTLSDomains + RelationshipTLSDomains *RelationshipTLSDomains } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSPrivateKey) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipTLSActivations - err = json.Unmarshal(data, &o.RelationshipTLSActivations); + err = json.Unmarshal(data, &o.RelationshipTLSActivations) if err == nil { jsonRelationshipTLSActivations, _ := json.Marshal(o.RelationshipTLSActivations) if string(jsonRelationshipTLSActivations) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSActivations, return on the first match } - o.RelationshipTLSActivations = nil + o.RelationshipTLSActivations = nil } else { o.RelationshipTLSActivations = nil } // try to unmarshal JSON data into RelationshipTLSDomains - err = json.Unmarshal(data, &o.RelationshipTLSDomains); + err = json.Unmarshal(data, &o.RelationshipTLSDomains) if err == nil { jsonRelationshipTLSDomains, _ := json.Marshal(o.RelationshipTLSDomains) if string(jsonRelationshipTLSDomains) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSDomains, return on the first match } - o.RelationshipTLSDomains = nil + o.RelationshipTLSDomains = nil } else { o.RelationshipTLSDomains = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForTLSPrivateKey) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForTLSPrivateKey is a helper abstraction for handling nullable relationshipsfortlsprivatekey types. +// NullableRelationshipsForTLSPrivateKey is a helper abstraction for handling nullable relationshipsfortlsprivatekey types. type NullableRelationshipsForTLSPrivateKey struct { value *RelationshipsForTLSPrivateKey isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_tls_subscription.go b/fastly/model_relationships_for_tls_subscription.go index be15378..dc97b9a 100644 --- a/fastly/model_relationships_for_tls_subscription.go +++ b/fastly/model_relationships_for_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,60 +19,60 @@ import ( // RelationshipsForTLSSubscription struct for RelationshipsForTLSSubscription type RelationshipsForTLSSubscription struct { - RelationshipCommonName *RelationshipCommonName - RelationshipTLSCertificates *RelationshipTLSCertificates + RelationshipCommonName *RelationshipCommonName + RelationshipTLSCertificates *RelationshipTLSCertificates RelationshipTLSConfigurationForTLSSubscription *RelationshipTLSConfigurationForTLSSubscription - RelationshipTLSDomains *RelationshipTLSDomains + RelationshipTLSDomains *RelationshipTLSDomains } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForTLSSubscription) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipCommonName - err = json.Unmarshal(data, &o.RelationshipCommonName); + err = json.Unmarshal(data, &o.RelationshipCommonName) if err == nil { jsonRelationshipCommonName, _ := json.Marshal(o.RelationshipCommonName) if string(jsonRelationshipCommonName) != "{}" { // empty struct return nil // data stored in o.RelationshipCommonName, return on the first match } - o.RelationshipCommonName = nil + o.RelationshipCommonName = nil } else { o.RelationshipCommonName = nil } // try to unmarshal JSON data into RelationshipTLSCertificates - err = json.Unmarshal(data, &o.RelationshipTLSCertificates); + err = json.Unmarshal(data, &o.RelationshipTLSCertificates) if err == nil { jsonRelationshipTLSCertificates, _ := json.Marshal(o.RelationshipTLSCertificates) if string(jsonRelationshipTLSCertificates) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSCertificates, return on the first match } - o.RelationshipTLSCertificates = nil + o.RelationshipTLSCertificates = nil } else { o.RelationshipTLSCertificates = nil } // try to unmarshal JSON data into RelationshipTLSConfigurationForTLSSubscription - err = json.Unmarshal(data, &o.RelationshipTLSConfigurationForTLSSubscription); + err = json.Unmarshal(data, &o.RelationshipTLSConfigurationForTLSSubscription) if err == nil { jsonRelationshipTLSConfigurationForTLSSubscription, _ := json.Marshal(o.RelationshipTLSConfigurationForTLSSubscription) if string(jsonRelationshipTLSConfigurationForTLSSubscription) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSConfigurationForTLSSubscription, return on the first match } - o.RelationshipTLSConfigurationForTLSSubscription = nil + o.RelationshipTLSConfigurationForTLSSubscription = nil } else { o.RelationshipTLSConfigurationForTLSSubscription = nil } // try to unmarshal JSON data into RelationshipTLSDomains - err = json.Unmarshal(data, &o.RelationshipTLSDomains); + err = json.Unmarshal(data, &o.RelationshipTLSDomains) if err == nil { jsonRelationshipTLSDomains, _ := json.Marshal(o.RelationshipTLSDomains) if string(jsonRelationshipTLSDomains) != "{}" { // empty struct return nil // data stored in o.RelationshipTLSDomains, return on the first match } - o.RelationshipTLSDomains = nil + o.RelationshipTLSDomains = nil } else { o.RelationshipTLSDomains = nil } @@ -103,7 +102,7 @@ func (o *RelationshipsForTLSSubscription) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForTLSSubscription is a helper abstraction for handling nullable relationshipsfortlssubscription types. +// NullableRelationshipsForTLSSubscription is a helper abstraction for handling nullable relationshipsfortlssubscription types. type NullableRelationshipsForTLSSubscription struct { value *RelationshipsForTLSSubscription isSet bool @@ -143,7 +142,7 @@ func (v NullableRelationshipsForTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_waf_active_rule.go b/fastly/model_relationships_for_waf_active_rule.go index f8c471f..7a69290 100644 --- a/fastly/model_relationships_for_waf_active_rule.go +++ b/fastly/model_relationships_for_waf_active_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // RelationshipsForWafActiveRule struct for RelationshipsForWafActiveRule type RelationshipsForWafActiveRule struct { RelationshipWafFirewallVersion *RelationshipWafFirewallVersion - RelationshipWafRuleRevision *RelationshipWafRuleRevision + RelationshipWafRuleRevision *RelationshipWafRuleRevision } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForWafActiveRule) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafFirewallVersion - err = json.Unmarshal(data, &o.RelationshipWafFirewallVersion); + err = json.Unmarshal(data, &o.RelationshipWafFirewallVersion) if err == nil { jsonRelationshipWafFirewallVersion, _ := json.Marshal(o.RelationshipWafFirewallVersion) if string(jsonRelationshipWafFirewallVersion) != "{}" { // empty struct return nil // data stored in o.RelationshipWafFirewallVersion, return on the first match } - o.RelationshipWafFirewallVersion = nil + o.RelationshipWafFirewallVersion = nil } else { o.RelationshipWafFirewallVersion = nil } // try to unmarshal JSON data into RelationshipWafRuleRevision - err = json.Unmarshal(data, &o.RelationshipWafRuleRevision); + err = json.Unmarshal(data, &o.RelationshipWafRuleRevision) if err == nil { jsonRelationshipWafRuleRevision, _ := json.Marshal(o.RelationshipWafRuleRevision) if string(jsonRelationshipWafRuleRevision) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRuleRevision, return on the first match } - o.RelationshipWafRuleRevision = nil + o.RelationshipWafRuleRevision = nil } else { o.RelationshipWafRuleRevision = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForWafActiveRule) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForWafActiveRule is a helper abstraction for handling nullable relationshipsforwafactiverule types. +// NullableRelationshipsForWafActiveRule is a helper abstraction for handling nullable relationshipsforwafactiverule types. type NullableRelationshipsForWafActiveRule struct { value *RelationshipsForWafActiveRule isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForWafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForWafActiveRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_waf_exclusion.go b/fastly/model_relationships_for_waf_exclusion.go index acd079d..ed55c8c 100644 --- a/fastly/model_relationships_for_waf_exclusion.go +++ b/fastly/model_relationships_for_waf_exclusion.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // RelationshipsForWafExclusion struct for RelationshipsForWafExclusion type RelationshipsForWafExclusion struct { RelationshipWafRuleRevisions *RelationshipWafRuleRevisions - RelationshipWafRules *RelationshipWafRules + RelationshipWafRules *RelationshipWafRules } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForWafExclusion) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafRuleRevisions - err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions); + err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions) if err == nil { jsonRelationshipWafRuleRevisions, _ := json.Marshal(o.RelationshipWafRuleRevisions) if string(jsonRelationshipWafRuleRevisions) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRuleRevisions, return on the first match } - o.RelationshipWafRuleRevisions = nil + o.RelationshipWafRuleRevisions = nil } else { o.RelationshipWafRuleRevisions = nil } // try to unmarshal JSON data into RelationshipWafRules - err = json.Unmarshal(data, &o.RelationshipWafRules); + err = json.Unmarshal(data, &o.RelationshipWafRules) if err == nil { jsonRelationshipWafRules, _ := json.Marshal(o.RelationshipWafRules) if string(jsonRelationshipWafRules) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRules, return on the first match } - o.RelationshipWafRules = nil + o.RelationshipWafRules = nil } else { o.RelationshipWafRules = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForWafExclusion) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForWafExclusion is a helper abstraction for handling nullable relationshipsforwafexclusion types. +// NullableRelationshipsForWafExclusion is a helper abstraction for handling nullable relationshipsforwafexclusion types. type NullableRelationshipsForWafExclusion struct { value *RelationshipsForWafExclusion isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForWafExclusion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForWafExclusion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_waf_firewall_version.go b/fastly/model_relationships_for_waf_firewall_version.go index e38f311..32b2695 100644 --- a/fastly/model_relationships_for_waf_firewall_version.go +++ b/fastly/model_relationships_for_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,34 +19,34 @@ import ( // RelationshipsForWafFirewallVersion struct for RelationshipsForWafFirewallVersion type RelationshipsForWafFirewallVersion struct { - RelationshipWafActiveRules *RelationshipWafActiveRules + RelationshipWafActiveRules *RelationshipWafActiveRules RelationshipWafFirewallVersions *RelationshipWafFirewallVersions } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForWafFirewallVersion) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafActiveRules - err = json.Unmarshal(data, &o.RelationshipWafActiveRules); + err = json.Unmarshal(data, &o.RelationshipWafActiveRules) if err == nil { jsonRelationshipWafActiveRules, _ := json.Marshal(o.RelationshipWafActiveRules) if string(jsonRelationshipWafActiveRules) != "{}" { // empty struct return nil // data stored in o.RelationshipWafActiveRules, return on the first match } - o.RelationshipWafActiveRules = nil + o.RelationshipWafActiveRules = nil } else { o.RelationshipWafActiveRules = nil } // try to unmarshal JSON data into RelationshipWafFirewallVersions - err = json.Unmarshal(data, &o.RelationshipWafFirewallVersions); + err = json.Unmarshal(data, &o.RelationshipWafFirewallVersions) if err == nil { jsonRelationshipWafFirewallVersions, _ := json.Marshal(o.RelationshipWafFirewallVersions) if string(jsonRelationshipWafFirewallVersions) != "{}" { // empty struct return nil // data stored in o.RelationshipWafFirewallVersions, return on the first match } - o.RelationshipWafFirewallVersions = nil + o.RelationshipWafFirewallVersions = nil } else { o.RelationshipWafFirewallVersions = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForWafFirewallVersion) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForWafFirewallVersion is a helper abstraction for handling nullable relationshipsforwaffirewallversion types. +// NullableRelationshipsForWafFirewallVersion is a helper abstraction for handling nullable relationshipsforwaffirewallversion types. type NullableRelationshipsForWafFirewallVersion struct { value *RelationshipsForWafFirewallVersion isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForWafFirewallVersion) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_relationships_for_waf_rule.go b/fastly/model_relationships_for_waf_rule.go index e9f1c7a..d8b422c 100644 --- a/fastly/model_relationships_for_waf_rule.go +++ b/fastly/model_relationships_for_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // RelationshipsForWafRule struct for RelationshipsForWafRule type RelationshipsForWafRule struct { RelationshipWafRuleRevisions *RelationshipWafRuleRevisions - RelationshipWafTags *RelationshipWafTags + RelationshipWafTags *RelationshipWafTags } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RelationshipsForWafRule) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafRuleRevisions - err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions); + err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions) if err == nil { jsonRelationshipWafRuleRevisions, _ := json.Marshal(o.RelationshipWafRuleRevisions) if string(jsonRelationshipWafRuleRevisions) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRuleRevisions, return on the first match } - o.RelationshipWafRuleRevisions = nil + o.RelationshipWafRuleRevisions = nil } else { o.RelationshipWafRuleRevisions = nil } // try to unmarshal JSON data into RelationshipWafTags - err = json.Unmarshal(data, &o.RelationshipWafTags); + err = json.Unmarshal(data, &o.RelationshipWafTags) if err == nil { jsonRelationshipWafTags, _ := json.Marshal(o.RelationshipWafTags) if string(jsonRelationshipWafTags) != "{}" { // empty struct return nil // data stored in o.RelationshipWafTags, return on the first match } - o.RelationshipWafTags = nil + o.RelationshipWafTags = nil } else { o.RelationshipWafTags = nil } @@ -69,7 +68,7 @@ func (o *RelationshipsForWafRule) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableRelationshipsForWafRule is a helper abstraction for handling nullable relationshipsforwafrule types. +// NullableRelationshipsForWafRule is a helper abstraction for handling nullable relationshipsforwafrule types. type NullableRelationshipsForWafRule struct { value *RelationshipsForWafRule isSet bool @@ -109,7 +108,7 @@ func (v NullableRelationshipsForWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRelationshipsForWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_request_settings_additional.go b/fastly/model_request_settings_additional.go index 544a822..0ca3c4c 100644 --- a/fastly/model_request_settings_additional.go +++ b/fastly/model_request_settings_additional.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type RequestSettingsAdditional struct { // Condition which, if met, will select this configuration during a request. Optional. RequestCondition NullableString `json:"request_condition,omitempty"` // Short for X-Forwarded-For. - Xff NullableString `json:"xff,omitempty"` + Xff NullableString `json:"xff,omitempty"` AdditionalProperties map[string]any } @@ -66,7 +65,7 @@ func (o *RequestSettingsAdditional) GetAction() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsAdditional) GetActionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Action.Get(), o.Action.IsSet() @@ -85,6 +84,7 @@ func (o *RequestSettingsAdditional) HasAction() bool { func (o *RequestSettingsAdditional) SetAction(v string) { o.Action.Set(&v) } + // SetActionNil sets the value for Action to be an explicit nil func (o *RequestSettingsAdditional) SetActionNil() { o.Action.Set(nil) @@ -108,7 +108,7 @@ func (o *RequestSettingsAdditional) GetDefaultHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsAdditional) GetDefaultHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.DefaultHost.Get(), o.DefaultHost.IsSet() @@ -127,6 +127,7 @@ func (o *RequestSettingsAdditional) HasDefaultHost() bool { func (o *RequestSettingsAdditional) SetDefaultHost(v string) { o.DefaultHost.Set(&v) } + // SetDefaultHostNil sets the value for DefaultHost to be an explicit nil func (o *RequestSettingsAdditional) SetDefaultHostNil() { o.DefaultHost.Set(nil) @@ -150,7 +151,7 @@ func (o *RequestSettingsAdditional) GetHashKeys() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsAdditional) GetHashKeysOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HashKeys.Get(), o.HashKeys.IsSet() @@ -169,6 +170,7 @@ func (o *RequestSettingsAdditional) HasHashKeys() bool { func (o *RequestSettingsAdditional) SetHashKeys(v string) { o.HashKeys.Set(&v) } + // SetHashKeysNil sets the value for HashKeys to be an explicit nil func (o *RequestSettingsAdditional) SetHashKeysNil() { o.HashKeys.Set(nil) @@ -224,7 +226,7 @@ func (o *RequestSettingsAdditional) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsAdditional) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -243,6 +245,7 @@ func (o *RequestSettingsAdditional) HasRequestCondition() bool { func (o *RequestSettingsAdditional) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *RequestSettingsAdditional) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -266,7 +269,7 @@ func (o *RequestSettingsAdditional) GetXff() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsAdditional) GetXffOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Xff.Get(), o.Xff.IsSet() @@ -285,6 +288,7 @@ func (o *RequestSettingsAdditional) HasXff() bool { func (o *RequestSettingsAdditional) SetXff(v string) { o.Xff.Set(&v) } + // SetXffNil sets the value for Xff to be an explicit nil func (o *RequestSettingsAdditional) SetXffNil() { o.Xff.Set(nil) @@ -326,7 +330,7 @@ func (o RequestSettingsAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RequestSettingsAdditional) UnmarshalJSON(bytes []byte) (err error) { varRequestSettingsAdditional := _RequestSettingsAdditional{} @@ -349,7 +353,7 @@ func (o *RequestSettingsAdditional) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRequestSettingsAdditional is a helper abstraction for handling nullable requestsettingsadditional types. +// NullableRequestSettingsAdditional is a helper abstraction for handling nullable requestsettingsadditional types. type NullableRequestSettingsAdditional struct { value *RequestSettingsAdditional isSet bool @@ -389,7 +393,7 @@ func (v NullableRequestSettingsAdditional) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRequestSettingsAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_request_settings_response.go b/fastly/model_request_settings_response.go index 763406c..8ad168f 100644 --- a/fastly/model_request_settings_response.go +++ b/fastly/model_request_settings_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -26,8 +25,8 @@ type RequestSettingsResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Allows you to terminate request handling and immediately perform an action. Action NullableString `json:"action,omitempty"` // Sets the host header. @@ -51,7 +50,7 @@ type RequestSettingsResponse struct { // How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. MaxStaleAge NullableString `json:"max_stale_age,omitempty"` // Injects the X-Timer info into the request for viewing origin fetch durations. - TimerSupport NullableString `json:"timer_support,omitempty"` + TimerSupport NullableString `json:"timer_support,omitempty"` AdditionalProperties map[string]any } @@ -87,7 +86,7 @@ func (o *RequestSettingsResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -106,6 +105,7 @@ func (o *RequestSettingsResponse) HasCreatedAt() bool { func (o *RequestSettingsResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *RequestSettingsResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -129,7 +129,7 @@ func (o *RequestSettingsResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -148,6 +148,7 @@ func (o *RequestSettingsResponse) HasDeletedAt() bool { func (o *RequestSettingsResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *RequestSettingsResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -171,7 +172,7 @@ func (o *RequestSettingsResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -190,6 +191,7 @@ func (o *RequestSettingsResponse) HasUpdatedAt() bool { func (o *RequestSettingsResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *RequestSettingsResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -277,7 +279,7 @@ func (o *RequestSettingsResponse) GetAction() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetActionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Action.Get(), o.Action.IsSet() @@ -296,6 +298,7 @@ func (o *RequestSettingsResponse) HasAction() bool { func (o *RequestSettingsResponse) SetAction(v string) { o.Action.Set(&v) } + // SetActionNil sets the value for Action to be an explicit nil func (o *RequestSettingsResponse) SetActionNil() { o.Action.Set(nil) @@ -319,7 +322,7 @@ func (o *RequestSettingsResponse) GetDefaultHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetDefaultHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.DefaultHost.Get(), o.DefaultHost.IsSet() @@ -338,6 +341,7 @@ func (o *RequestSettingsResponse) HasDefaultHost() bool { func (o *RequestSettingsResponse) SetDefaultHost(v string) { o.DefaultHost.Set(&v) } + // SetDefaultHostNil sets the value for DefaultHost to be an explicit nil func (o *RequestSettingsResponse) SetDefaultHostNil() { o.DefaultHost.Set(nil) @@ -361,7 +365,7 @@ func (o *RequestSettingsResponse) GetHashKeys() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetHashKeysOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.HashKeys.Get(), o.HashKeys.IsSet() @@ -380,6 +384,7 @@ func (o *RequestSettingsResponse) HasHashKeys() bool { func (o *RequestSettingsResponse) SetHashKeys(v string) { o.HashKeys.Set(&v) } + // SetHashKeysNil sets the value for HashKeys to be an explicit nil func (o *RequestSettingsResponse) SetHashKeysNil() { o.HashKeys.Set(nil) @@ -435,7 +440,7 @@ func (o *RequestSettingsResponse) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -454,6 +459,7 @@ func (o *RequestSettingsResponse) HasRequestCondition() bool { func (o *RequestSettingsResponse) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *RequestSettingsResponse) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -477,7 +483,7 @@ func (o *RequestSettingsResponse) GetXff() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetXffOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Xff.Get(), o.Xff.IsSet() @@ -496,6 +502,7 @@ func (o *RequestSettingsResponse) HasXff() bool { func (o *RequestSettingsResponse) SetXff(v string) { o.Xff.Set(&v) } + // SetXffNil sets the value for Xff to be an explicit nil func (o *RequestSettingsResponse) SetXffNil() { o.Xff.Set(nil) @@ -519,7 +526,7 @@ func (o *RequestSettingsResponse) GetBypassBusyWait() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetBypassBusyWaitOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BypassBusyWait.Get(), o.BypassBusyWait.IsSet() @@ -538,6 +545,7 @@ func (o *RequestSettingsResponse) HasBypassBusyWait() bool { func (o *RequestSettingsResponse) SetBypassBusyWait(v string) { o.BypassBusyWait.Set(&v) } + // SetBypassBusyWaitNil sets the value for BypassBusyWait to be an explicit nil func (o *RequestSettingsResponse) SetBypassBusyWaitNil() { o.BypassBusyWait.Set(nil) @@ -561,7 +569,7 @@ func (o *RequestSettingsResponse) GetForceMiss() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetForceMissOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ForceMiss.Get(), o.ForceMiss.IsSet() @@ -580,6 +588,7 @@ func (o *RequestSettingsResponse) HasForceMiss() bool { func (o *RequestSettingsResponse) SetForceMiss(v string) { o.ForceMiss.Set(&v) } + // SetForceMissNil sets the value for ForceMiss to be an explicit nil func (o *RequestSettingsResponse) SetForceMissNil() { o.ForceMiss.Set(nil) @@ -635,7 +644,7 @@ func (o *RequestSettingsResponse) GetGeoHeaders() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetGeoHeadersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.GeoHeaders.Get(), o.GeoHeaders.IsSet() @@ -654,6 +663,7 @@ func (o *RequestSettingsResponse) HasGeoHeaders() bool { func (o *RequestSettingsResponse) SetGeoHeaders(v string) { o.GeoHeaders.Set(&v) } + // SetGeoHeadersNil sets the value for GeoHeaders to be an explicit nil func (o *RequestSettingsResponse) SetGeoHeadersNil() { o.GeoHeaders.Set(nil) @@ -677,7 +687,7 @@ func (o *RequestSettingsResponse) GetMaxStaleAge() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetMaxStaleAgeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxStaleAge.Get(), o.MaxStaleAge.IsSet() @@ -696,6 +706,7 @@ func (o *RequestSettingsResponse) HasMaxStaleAge() bool { func (o *RequestSettingsResponse) SetMaxStaleAge(v string) { o.MaxStaleAge.Set(&v) } + // SetMaxStaleAgeNil sets the value for MaxStaleAge to be an explicit nil func (o *RequestSettingsResponse) SetMaxStaleAgeNil() { o.MaxStaleAge.Set(nil) @@ -719,7 +730,7 @@ func (o *RequestSettingsResponse) GetTimerSupport() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponse) GetTimerSupportOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimerSupport.Get(), o.TimerSupport.IsSet() @@ -738,6 +749,7 @@ func (o *RequestSettingsResponse) HasTimerSupport() bool { func (o *RequestSettingsResponse) SetTimerSupport(v string) { o.TimerSupport.Set(&v) } + // SetTimerSupportNil sets the value for TimerSupport to be an explicit nil func (o *RequestSettingsResponse) SetTimerSupportNil() { o.TimerSupport.Set(nil) @@ -812,7 +824,7 @@ func (o RequestSettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RequestSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { varRequestSettingsResponse := _RequestSettingsResponse{} @@ -846,7 +858,7 @@ func (o *RequestSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRequestSettingsResponse is a helper abstraction for handling nullable requestsettingsresponse types. +// NullableRequestSettingsResponse is a helper abstraction for handling nullable requestsettingsresponse types. type NullableRequestSettingsResponse struct { value *RequestSettingsResponse isSet bool @@ -886,7 +898,7 @@ func (v NullableRequestSettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRequestSettingsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_request_settings_response_all_of.go b/fastly/model_request_settings_response_all_of.go index 2e68578..807b228 100644 --- a/fastly/model_request_settings_response_all_of.go +++ b/fastly/model_request_settings_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type RequestSettingsResponseAllOf struct { // How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. MaxStaleAge NullableString `json:"max_stale_age,omitempty"` // Injects the X-Timer info into the request for viewing origin fetch durations. - TimerSupport NullableString `json:"timer_support,omitempty"` + TimerSupport NullableString `json:"timer_support,omitempty"` AdditionalProperties map[string]any } @@ -66,7 +65,7 @@ func (o *RequestSettingsResponseAllOf) GetBypassBusyWait() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponseAllOf) GetBypassBusyWaitOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.BypassBusyWait.Get(), o.BypassBusyWait.IsSet() @@ -85,6 +84,7 @@ func (o *RequestSettingsResponseAllOf) HasBypassBusyWait() bool { func (o *RequestSettingsResponseAllOf) SetBypassBusyWait(v string) { o.BypassBusyWait.Set(&v) } + // SetBypassBusyWaitNil sets the value for BypassBusyWait to be an explicit nil func (o *RequestSettingsResponseAllOf) SetBypassBusyWaitNil() { o.BypassBusyWait.Set(nil) @@ -108,7 +108,7 @@ func (o *RequestSettingsResponseAllOf) GetForceMiss() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponseAllOf) GetForceMissOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ForceMiss.Get(), o.ForceMiss.IsSet() @@ -127,6 +127,7 @@ func (o *RequestSettingsResponseAllOf) HasForceMiss() bool { func (o *RequestSettingsResponseAllOf) SetForceMiss(v string) { o.ForceMiss.Set(&v) } + // SetForceMissNil sets the value for ForceMiss to be an explicit nil func (o *RequestSettingsResponseAllOf) SetForceMissNil() { o.ForceMiss.Set(nil) @@ -182,7 +183,7 @@ func (o *RequestSettingsResponseAllOf) GetGeoHeaders() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponseAllOf) GetGeoHeadersOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.GeoHeaders.Get(), o.GeoHeaders.IsSet() @@ -201,6 +202,7 @@ func (o *RequestSettingsResponseAllOf) HasGeoHeaders() bool { func (o *RequestSettingsResponseAllOf) SetGeoHeaders(v string) { o.GeoHeaders.Set(&v) } + // SetGeoHeadersNil sets the value for GeoHeaders to be an explicit nil func (o *RequestSettingsResponseAllOf) SetGeoHeadersNil() { o.GeoHeaders.Set(nil) @@ -224,7 +226,7 @@ func (o *RequestSettingsResponseAllOf) GetMaxStaleAge() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponseAllOf) GetMaxStaleAgeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.MaxStaleAge.Get(), o.MaxStaleAge.IsSet() @@ -243,6 +245,7 @@ func (o *RequestSettingsResponseAllOf) HasMaxStaleAge() bool { func (o *RequestSettingsResponseAllOf) SetMaxStaleAge(v string) { o.MaxStaleAge.Set(&v) } + // SetMaxStaleAgeNil sets the value for MaxStaleAge to be an explicit nil func (o *RequestSettingsResponseAllOf) SetMaxStaleAgeNil() { o.MaxStaleAge.Set(nil) @@ -266,7 +269,7 @@ func (o *RequestSettingsResponseAllOf) GetTimerSupport() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RequestSettingsResponseAllOf) GetTimerSupportOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TimerSupport.Get(), o.TimerSupport.IsSet() @@ -285,6 +288,7 @@ func (o *RequestSettingsResponseAllOf) HasTimerSupport() bool { func (o *RequestSettingsResponseAllOf) SetTimerSupport(v string) { o.TimerSupport.Set(&v) } + // SetTimerSupportNil sets the value for TimerSupport to be an explicit nil func (o *RequestSettingsResponseAllOf) SetTimerSupportNil() { o.TimerSupport.Set(nil) @@ -326,7 +330,7 @@ func (o RequestSettingsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *RequestSettingsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varRequestSettingsResponseAllOf := _RequestSettingsResponseAllOf{} @@ -349,7 +353,7 @@ func (o *RequestSettingsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableRequestSettingsResponseAllOf is a helper abstraction for handling nullable requestsettingsresponseallof types. +// NullableRequestSettingsResponseAllOf is a helper abstraction for handling nullable requestsettingsresponseallof types. type NullableRequestSettingsResponseAllOf struct { value *RequestSettingsResponseAllOf isSet bool @@ -389,7 +393,7 @@ func (v NullableRequestSettingsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRequestSettingsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_resource.go b/fastly/model_resource.go index 630547f..6b1377c 100644 --- a/fastly/model_resource.go +++ b/fastly/model_resource.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type Resource struct { // The ID of the underlying linked resource. ResourceID *string `json:"resource_id,omitempty"` // The name of the resource link. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o Resource) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Resource) UnmarshalJSON(bytes []byte) (err error) { varResource := _Resource{} @@ -147,7 +146,7 @@ func (o *Resource) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResource is a helper abstraction for handling nullable resource types. +// NullableResource is a helper abstraction for handling nullable resource types. type NullableResource struct { value *Resource isSet bool @@ -187,7 +186,7 @@ func (v NullableResource) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_resource_response.go b/fastly/model_resource_response.go index 5ab27d9..ff4775d 100644 --- a/fastly/model_resource_response.go +++ b/fastly/model_resource_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -37,8 +36,8 @@ type ResourceResponse struct { // Alphanumeric string identifying the service. ServiceID *string `json:"service_id,omitempty"` // Integer identifying a service version. - Version *int32 `json:"version,omitempty"` - ResourceType *TypeResource `json:"resource_type,omitempty"` + Version *int32 `json:"version,omitempty"` + ResourceType *TypeResource `json:"resource_type,omitempty"` AdditionalProperties map[string]any } @@ -138,7 +137,7 @@ func (o *ResourceResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResourceResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -157,6 +156,7 @@ func (o *ResourceResponse) HasCreatedAt() bool { func (o *ResourceResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ResourceResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -180,7 +180,7 @@ func (o *ResourceResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResourceResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -199,6 +199,7 @@ func (o *ResourceResponse) HasDeletedAt() bool { func (o *ResourceResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ResourceResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -222,7 +223,7 @@ func (o *ResourceResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResourceResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -241,6 +242,7 @@ func (o *ResourceResponse) HasUpdatedAt() bool { func (o *ResourceResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ResourceResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -454,7 +456,7 @@ func (o ResourceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ResourceResponse) UnmarshalJSON(bytes []byte) (err error) { varResourceResponse := _ResourceResponse{} @@ -481,7 +483,7 @@ func (o *ResourceResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResourceResponse is a helper abstraction for handling nullable resourceresponse types. +// NullableResourceResponse is a helper abstraction for handling nullable resourceresponse types. type NullableResourceResponse struct { value *ResourceResponse isSet bool @@ -521,7 +523,7 @@ func (v NullableResourceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResourceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_resource_response_all_of.go b/fastly/model_resource_response_all_of.go index 2a986c5..c005099 100644 --- a/fastly/model_resource_response_all_of.go +++ b/fastly/model_resource_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,8 +25,8 @@ type ResourceResponseAllOf struct { // Alphanumeric string identifying the service. ServiceID *string `json:"service_id,omitempty"` // Integer identifying a service version. - Version *int32 `json:"version,omitempty"` - ResourceType *TypeResource `json:"resource_type,omitempty"` + Version *int32 `json:"version,omitempty"` + ResourceType *TypeResource `json:"resource_type,omitempty"` AdditionalProperties map[string]any } @@ -238,7 +237,7 @@ func (o ResourceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ResourceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varResourceResponseAllOf := _ResourceResponseAllOf{} @@ -260,7 +259,7 @@ func (o *ResourceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResourceResponseAllOf is a helper abstraction for handling nullable resourceresponseallof types. +// NullableResourceResponseAllOf is a helper abstraction for handling nullable resourceresponseallof types. type NullableResourceResponseAllOf struct { value *ResourceResponseAllOf isSet bool @@ -300,7 +299,7 @@ func (v NullableResourceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResourceResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_response_object.go b/fastly/model_response_object.go index 400e7f8..c79b3ad 100644 --- a/fastly/model_response_object.go +++ b/fastly/model_response_object.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type ResponseObject struct { // The HTTP response. Response *string `json:"response,omitempty"` // Condition which, if met, will select this configuration during a request. Optional. - RequestCondition NullableString `json:"request_condition,omitempty"` + RequestCondition NullableString `json:"request_condition,omitempty"` AdditionalProperties map[string]any } @@ -76,7 +75,7 @@ func (o *ResponseObject) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObject) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -95,6 +94,7 @@ func (o *ResponseObject) HasCacheCondition() bool { func (o *ResponseObject) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *ResponseObject) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -150,7 +150,7 @@ func (o *ResponseObject) GetContentType() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObject) GetContentTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentType.Get(), o.ContentType.IsSet() @@ -169,6 +169,7 @@ func (o *ResponseObject) HasContentType() bool { func (o *ResponseObject) SetContentType(v string) { o.ContentType.Set(&v) } + // SetContentTypeNil sets the value for ContentType to be an explicit nil func (o *ResponseObject) SetContentTypeNil() { o.ContentType.Set(nil) @@ -288,7 +289,7 @@ func (o *ResponseObject) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObject) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -307,6 +308,7 @@ func (o *ResponseObject) HasRequestCondition() bool { func (o *ResponseObject) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *ResponseObject) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -351,7 +353,7 @@ func (o ResponseObject) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ResponseObject) UnmarshalJSON(bytes []byte) (err error) { varResponseObject := _ResponseObject{} @@ -375,7 +377,7 @@ func (o *ResponseObject) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResponseObject is a helper abstraction for handling nullable responseobject types. +// NullableResponseObject is a helper abstraction for handling nullable responseobject types. type NullableResponseObject struct { value *ResponseObject isSet bool @@ -415,7 +417,7 @@ func (v NullableResponseObject) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResponseObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_response_object_response.go b/fastly/model_response_object_response.go index 64e5b34..4e094b1 100644 --- a/fastly/model_response_object_response.go +++ b/fastly/model_response_object_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -34,14 +33,14 @@ type ResponseObjectResponse struct { Response *string `json:"response,omitempty"` // Condition which, if met, will select this configuration during a request. Optional. RequestCondition NullableString `json:"request_condition,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -85,7 +84,7 @@ func (o *ResponseObjectResponse) GetCacheCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetCacheConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CacheCondition.Get(), o.CacheCondition.IsSet() @@ -104,6 +103,7 @@ func (o *ResponseObjectResponse) HasCacheCondition() bool { func (o *ResponseObjectResponse) SetCacheCondition(v string) { o.CacheCondition.Set(&v) } + // SetCacheConditionNil sets the value for CacheCondition to be an explicit nil func (o *ResponseObjectResponse) SetCacheConditionNil() { o.CacheCondition.Set(nil) @@ -159,7 +159,7 @@ func (o *ResponseObjectResponse) GetContentType() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetContentTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ContentType.Get(), o.ContentType.IsSet() @@ -178,6 +178,7 @@ func (o *ResponseObjectResponse) HasContentType() bool { func (o *ResponseObjectResponse) SetContentType(v string) { o.ContentType.Set(&v) } + // SetContentTypeNil sets the value for ContentType to be an explicit nil func (o *ResponseObjectResponse) SetContentTypeNil() { o.ContentType.Set(nil) @@ -297,7 +298,7 @@ func (o *ResponseObjectResponse) GetRequestCondition() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetRequestConditionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequestCondition.Get(), o.RequestCondition.IsSet() @@ -316,6 +317,7 @@ func (o *ResponseObjectResponse) HasRequestCondition() bool { func (o *ResponseObjectResponse) SetRequestCondition(v string) { o.RequestCondition.Set(&v) } + // SetRequestConditionNil sets the value for RequestCondition to be an explicit nil func (o *ResponseObjectResponse) SetRequestConditionNil() { o.RequestCondition.Set(nil) @@ -403,7 +405,7 @@ func (o *ResponseObjectResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -422,6 +424,7 @@ func (o *ResponseObjectResponse) HasCreatedAt() bool { func (o *ResponseObjectResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ResponseObjectResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -445,7 +448,7 @@ func (o *ResponseObjectResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -464,6 +467,7 @@ func (o *ResponseObjectResponse) HasDeletedAt() bool { func (o *ResponseObjectResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ResponseObjectResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -487,7 +491,7 @@ func (o *ResponseObjectResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ResponseObjectResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -506,6 +510,7 @@ func (o *ResponseObjectResponse) HasUpdatedAt() bool { func (o *ResponseObjectResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ResponseObjectResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -565,7 +570,7 @@ func (o ResponseObjectResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ResponseObjectResponse) UnmarshalJSON(bytes []byte) (err error) { varResponseObjectResponse := _ResponseObjectResponse{} @@ -594,7 +599,7 @@ func (o *ResponseObjectResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResponseObjectResponse is a helper abstraction for handling nullable responseobjectresponse types. +// NullableResponseObjectResponse is a helper abstraction for handling nullable responseobjectresponse types. type NullableResponseObjectResponse struct { value *ResponseObjectResponse isSet bool @@ -634,7 +639,7 @@ func (v NullableResponseObjectResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResponseObjectResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_results.go b/fastly/model_results.go index a3ea826..fc10d31 100644 --- a/fastly/model_results.go +++ b/fastly/model_results.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -520,10 +519,10 @@ type Results struct { // Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1. ((`edge_resp_body_bytes` + `edge_resp_header_bytes`) - (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes`)) / (`edge_resp_body_bytes` + `edge_resp_header_bytes`). OriginOffload *float32 `json:"origin_offload,omitempty"` // Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body. - RequestDeniedGetHeadBody *int32 `json:"request_denied_get_head_body,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + RequestDeniedGetHeadBody *int32 `json:"request_denied_get_head_body,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // Timestamp for the start of the time period being reported - StartTime *int32 `json:"start_time,omitempty"` + StartTime *int32 `json:"start_time,omitempty"` AdditionalProperties map[string]any } @@ -847,7 +846,7 @@ func (o *Results) GetHitRatio() float32 { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Results) GetHitRatioOk() (*float32, bool) { - if o == nil { + if o == nil { return nil, false } return o.HitRatio.Get(), o.HitRatio.IsSet() @@ -866,6 +865,7 @@ func (o *Results) HasHitRatio() bool { func (o *Results) SetHitRatio(v float32) { o.HitRatio.Set(&v) } + // SetHitRatioNil sets the value for HitRatio to be an explicit nil func (o *Results) SetHitRatioNil() { o.HitRatio.Set(nil) @@ -9395,7 +9395,7 @@ func (o Results) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Results) UnmarshalJSON(bytes []byte) (err error) { varResults := _Results{} @@ -9664,7 +9664,7 @@ func (o *Results) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableResults is a helper abstraction for handling nullable results types. +// NullableResults is a helper abstraction for handling nullable results types. type NullableResults struct { value *Results isSet bool @@ -9704,7 +9704,7 @@ func (v NullableResults) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableResults) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_role_user.go b/fastly/model_role_user.go index 121e915..1c29a48 100644 --- a/fastly/model_role_user.go +++ b/fastly/model_role_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -23,9 +22,9 @@ type RoleUser string // List of role_user const ( - ROLEUSER_USER RoleUser = "user" - ROLEUSER_BILLING RoleUser = "billing" - ROLEUSER_ENGINEER RoleUser = "engineer" + ROLEUSER_USER RoleUser = "user" + ROLEUSER_BILLING RoleUser = "billing" + ROLEUSER_ENGINEER RoleUser = "engineer" ROLEUSER_SUPERUSER RoleUser = "superuser" ) @@ -38,7 +37,7 @@ var AllowedRoleUserEnumValues = []RoleUser{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *RoleUser) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -63,7 +62,7 @@ func NewRoleUserFromValue(v string) (*RoleUser, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for RoleUser: valid values are %v", v, AllowedRoleUserEnumValues) + return nil, fmt.Errorf("invalid value '%v' for RoleUser: valid values are %v", v, AllowedRoleUserEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -81,7 +80,7 @@ func (v RoleUser) Ptr() *RoleUser { return &v } -// NullableRoleUser is a helper abstraction for handling nullable roleuser types. +// NullableRoleUser is a helper abstraction for handling nullable roleuser types. type NullableRoleUser struct { value *RoleUser isSet bool @@ -121,7 +120,7 @@ func (v NullableRoleUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableRoleUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_contact_response.go b/fastly/model_schemas_contact_response.go index bf20e22..fce8e85 100644 --- a/fastly/model_schemas_contact_response.go +++ b/fastly/model_schemas_contact_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -37,8 +36,8 @@ type SchemasContactResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -74,7 +73,7 @@ func (o *SchemasContactResponse) GetUserID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetUserIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.UserID.Get(), o.UserID.IsSet() @@ -93,6 +92,7 @@ func (o *SchemasContactResponse) HasUserID() bool { func (o *SchemasContactResponse) SetUserID(v string) { o.UserID.Set(&v) } + // SetUserIDNil sets the value for UserID to be an explicit nil func (o *SchemasContactResponse) SetUserIDNil() { o.UserID.Set(nil) @@ -148,7 +148,7 @@ func (o *SchemasContactResponse) GetName() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Name.Get(), o.Name.IsSet() @@ -167,6 +167,7 @@ func (o *SchemasContactResponse) HasName() bool { func (o *SchemasContactResponse) SetName(v string) { o.Name.Set(&v) } + // SetNameNil sets the value for Name to be an explicit nil func (o *SchemasContactResponse) SetNameNil() { o.Name.Set(nil) @@ -190,7 +191,7 @@ func (o *SchemasContactResponse) GetEmail() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Email.Get(), o.Email.IsSet() @@ -209,6 +210,7 @@ func (o *SchemasContactResponse) HasEmail() bool { func (o *SchemasContactResponse) SetEmail(v string) { o.Email.Set(&v) } + // SetEmailNil sets the value for Email to be an explicit nil func (o *SchemasContactResponse) SetEmailNil() { o.Email.Set(nil) @@ -232,7 +234,7 @@ func (o *SchemasContactResponse) GetPhone() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetPhoneOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Phone.Get(), o.Phone.IsSet() @@ -251,6 +253,7 @@ func (o *SchemasContactResponse) HasPhone() bool { func (o *SchemasContactResponse) SetPhone(v string) { o.Phone.Set(&v) } + // SetPhoneNil sets the value for Phone to be an explicit nil func (o *SchemasContactResponse) SetPhoneNil() { o.Phone.Set(nil) @@ -274,7 +277,7 @@ func (o *SchemasContactResponse) GetCustomerID() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetCustomerIDOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.CustomerID.Get(), o.CustomerID.IsSet() @@ -293,6 +296,7 @@ func (o *SchemasContactResponse) HasCustomerID() bool { func (o *SchemasContactResponse) SetCustomerID(v string) { o.CustomerID.Set(&v) } + // SetCustomerIDNil sets the value for CustomerID to be an explicit nil func (o *SchemasContactResponse) SetCustomerIDNil() { o.CustomerID.Set(nil) @@ -316,7 +320,7 @@ func (o *SchemasContactResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -335,6 +339,7 @@ func (o *SchemasContactResponse) HasCreatedAt() bool { func (o *SchemasContactResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasContactResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -358,7 +363,7 @@ func (o *SchemasContactResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -377,6 +382,7 @@ func (o *SchemasContactResponse) HasDeletedAt() bool { func (o *SchemasContactResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasContactResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -400,7 +406,7 @@ func (o *SchemasContactResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasContactResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -419,6 +425,7 @@ func (o *SchemasContactResponse) HasUpdatedAt() bool { func (o *SchemasContactResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasContactResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -504,7 +511,7 @@ func (o SchemasContactResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasContactResponse) UnmarshalJSON(bytes []byte) (err error) { varSchemasContactResponse := _SchemasContactResponse{} @@ -531,7 +538,7 @@ func (o *SchemasContactResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasContactResponse is a helper abstraction for handling nullable schemascontactresponse types. +// NullableSchemasContactResponse is a helper abstraction for handling nullable schemascontactresponse types. type NullableSchemasContactResponse struct { value *SchemasContactResponse isSet bool @@ -571,7 +578,7 @@ func (v NullableSchemasContactResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasContactResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_snippet_response.go b/fastly/model_schemas_snippet_response.go index b122479..1b98f08 100644 --- a/fastly/model_schemas_snippet_response.go +++ b/fastly/model_schemas_snippet_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -36,10 +35,10 @@ type SchemasSnippetResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o *SchemasSnippetResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -258,6 +257,7 @@ func (o *SchemasSnippetResponse) HasCreatedAt() bool { func (o *SchemasSnippetResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasSnippetResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -281,7 +281,7 @@ func (o *SchemasSnippetResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -300,6 +300,7 @@ func (o *SchemasSnippetResponse) HasDeletedAt() bool { func (o *SchemasSnippetResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasSnippetResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -323,7 +324,7 @@ func (o *SchemasSnippetResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -342,6 +343,7 @@ func (o *SchemasSnippetResponse) HasUpdatedAt() bool { func (o *SchemasSnippetResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasSnippetResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -494,7 +496,7 @@ func (o SchemasSnippetResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasSnippetResponse) UnmarshalJSON(bytes []byte) (err error) { varSchemasSnippetResponse := _SchemasSnippetResponse{} @@ -522,7 +524,7 @@ func (o *SchemasSnippetResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasSnippetResponse is a helper abstraction for handling nullable schemassnippetresponse types. +// NullableSchemasSnippetResponse is a helper abstraction for handling nullable schemassnippetresponse types. type NullableSchemasSnippetResponse struct { value *SchemasSnippetResponse isSet bool @@ -562,7 +564,7 @@ func (v NullableSchemasSnippetResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasSnippetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_snippet_response_common.go b/fastly/model_schemas_snippet_response_common.go index 4e6b4e2..bd6839b 100644 --- a/fastly/model_schemas_snippet_response_common.go +++ b/fastly/model_schemas_snippet_response_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -26,10 +25,10 @@ type SchemasSnippetResponseCommon struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *SchemasSnippetResponseCommon) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponseCommon) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -84,6 +83,7 @@ func (o *SchemasSnippetResponseCommon) HasCreatedAt() bool { func (o *SchemasSnippetResponseCommon) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasSnippetResponseCommon) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -107,7 +107,7 @@ func (o *SchemasSnippetResponseCommon) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponseCommon) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -126,6 +126,7 @@ func (o *SchemasSnippetResponseCommon) HasDeletedAt() bool { func (o *SchemasSnippetResponseCommon) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasSnippetResponseCommon) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -149,7 +150,7 @@ func (o *SchemasSnippetResponseCommon) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasSnippetResponseCommon) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -168,6 +169,7 @@ func (o *SchemasSnippetResponseCommon) HasUpdatedAt() bool { func (o *SchemasSnippetResponseCommon) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasSnippetResponseCommon) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -305,7 +307,7 @@ func (o SchemasSnippetResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasSnippetResponseCommon) UnmarshalJSON(bytes []byte) (err error) { varSchemasSnippetResponseCommon := _SchemasSnippetResponseCommon{} @@ -328,7 +330,7 @@ func (o *SchemasSnippetResponseCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasSnippetResponseCommon is a helper abstraction for handling nullable schemassnippetresponsecommon types. +// NullableSchemasSnippetResponseCommon is a helper abstraction for handling nullable schemassnippetresponsecommon types. type NullableSchemasSnippetResponseCommon struct { value *SchemasSnippetResponseCommon isSet bool @@ -368,7 +370,7 @@ func (v NullableSchemasSnippetResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasSnippetResponseCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_user_response.go b/fastly/model_schemas_user_response.go index 87a8576..7bd40c3 100644 --- a/fastly/model_schemas_user_response.go +++ b/fastly/model_schemas_user_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,7 +28,7 @@ type SchemasUserResponse struct { Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. RequireNewPassword NullableBool `json:"require_new_password,omitempty"` - Role *RoleUser `json:"role,omitempty"` + Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. @@ -40,10 +39,10 @@ type SchemasUserResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // The alphanumeric string identifying a email login. - EmailHash *string `json:"email_hash,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + EmailHash *string `json:"email_hash,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -175,7 +174,7 @@ func (o *SchemasUserResponse) GetLocked() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetLockedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.Locked.Get(), o.Locked.IsSet() @@ -194,6 +193,7 @@ func (o *SchemasUserResponse) HasLocked() bool { func (o *SchemasUserResponse) SetLocked(v bool) { o.Locked.Set(&v) } + // SetLockedNil sets the value for Locked to be an explicit nil func (o *SchemasUserResponse) SetLockedNil() { o.Locked.Set(nil) @@ -217,7 +217,7 @@ func (o *SchemasUserResponse) GetRequireNewPassword() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() @@ -236,6 +236,7 @@ func (o *SchemasUserResponse) HasRequireNewPassword() bool { func (o *SchemasUserResponse) SetRequireNewPassword(v bool) { o.RequireNewPassword.Set(&v) } + // SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil func (o *SchemasUserResponse) SetRequireNewPasswordNil() { o.RequireNewPassword.Set(nil) @@ -291,7 +292,7 @@ func (o *SchemasUserResponse) GetTwoFactorAuthEnabled() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() @@ -310,6 +311,7 @@ func (o *SchemasUserResponse) HasTwoFactorAuthEnabled() bool { func (o *SchemasUserResponse) SetTwoFactorAuthEnabled(v bool) { o.TwoFactorAuthEnabled.Set(&v) } + // SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil func (o *SchemasUserResponse) SetTwoFactorAuthEnabledNil() { o.TwoFactorAuthEnabled.Set(nil) @@ -365,7 +367,7 @@ func (o *SchemasUserResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -384,6 +386,7 @@ func (o *SchemasUserResponse) HasCreatedAt() bool { func (o *SchemasUserResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasUserResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -407,7 +410,7 @@ func (o *SchemasUserResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -426,6 +429,7 @@ func (o *SchemasUserResponse) HasDeletedAt() bool { func (o *SchemasUserResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasUserResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -449,7 +453,7 @@ func (o *SchemasUserResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasUserResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -468,6 +472,7 @@ func (o *SchemasUserResponse) HasUpdatedAt() bool { func (o *SchemasUserResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasUserResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -629,7 +634,7 @@ func (o SchemasUserResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasUserResponse) UnmarshalJSON(bytes []byte) (err error) { varSchemasUserResponse := _SchemasUserResponse{} @@ -660,7 +665,7 @@ func (o *SchemasUserResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasUserResponse is a helper abstraction for handling nullable schemasuserresponse types. +// NullableSchemasUserResponse is a helper abstraction for handling nullable schemasuserresponse types. type NullableSchemasUserResponse struct { value *SchemasUserResponse isSet bool @@ -700,7 +705,7 @@ func (v NullableSchemasUserResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasUserResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_user_response_read_only.go b/fastly/model_schemas_user_response_read_only.go index 6c746a2..b04a024 100644 --- a/fastly/model_schemas_user_response_read_only.go +++ b/fastly/model_schemas_user_response_read_only.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type SchemasUserResponseReadOnly struct { ID *string `json:"id,omitempty"` // The alphanumeric string identifying a email login. - EmailHash *string `json:"email_hash,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + EmailHash *string `json:"email_hash,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o SchemasUserResponseReadOnly) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasUserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { varSchemasUserResponseReadOnly := _SchemasUserResponseReadOnly{} @@ -183,7 +182,7 @@ func (o *SchemasUserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasUserResponseReadOnly is a helper abstraction for handling nullable schemasuserresponsereadonly types. +// NullableSchemasUserResponseReadOnly is a helper abstraction for handling nullable schemasuserresponsereadonly types. type NullableSchemasUserResponseReadOnly struct { value *SchemasUserResponseReadOnly isSet bool @@ -223,7 +222,7 @@ func (v NullableSchemasUserResponseReadOnly) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasUserResponseReadOnly) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_vcl_response.go b/fastly/model_schemas_vcl_response.go index bdbc6da..253370a 100644 --- a/fastly/model_schemas_vcl_response.go +++ b/fastly/model_schemas_vcl_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,15 +24,15 @@ type SchemasVclResponse struct { // Set to `true` when this is the main VCL, otherwise `false`. Main *bool `json:"main,omitempty"` // The name of this VCL. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -229,7 +228,7 @@ func (o *SchemasVclResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVclResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -248,6 +247,7 @@ func (o *SchemasVclResponse) HasCreatedAt() bool { func (o *SchemasVclResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasVclResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -271,7 +271,7 @@ func (o *SchemasVclResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVclResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -290,6 +290,7 @@ func (o *SchemasVclResponse) HasDeletedAt() bool { func (o *SchemasVclResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasVclResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -313,7 +314,7 @@ func (o *SchemasVclResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVclResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -332,6 +333,7 @@ func (o *SchemasVclResponse) HasUpdatedAt() bool { func (o *SchemasVclResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasVclResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -379,7 +381,7 @@ func (o SchemasVclResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasVclResponse) UnmarshalJSON(bytes []byte) (err error) { varSchemasVclResponse := _SchemasVclResponse{} @@ -404,7 +406,7 @@ func (o *SchemasVclResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasVclResponse is a helper abstraction for handling nullable schemasvclresponse types. +// NullableSchemasVclResponse is a helper abstraction for handling nullable schemasvclresponse types. type NullableSchemasVclResponse struct { value *SchemasVclResponse isSet bool @@ -444,7 +446,7 @@ func (v NullableSchemasVclResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasVclResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_version.go b/fastly/model_schemas_version.go index 9a172e5..2b91d1a 100644 --- a/fastly/model_schemas_version.go +++ b/fastly/model_schemas_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type SchemasVersion struct { // Unused at this time. Staging *bool `json:"staging,omitempty"` // Unused at this time. - Testing *bool `json:"testing,omitempty"` + Testing *bool `json:"testing,omitempty"` AdditionalProperties map[string]any } @@ -116,7 +115,7 @@ func (o *SchemasVersion) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVersion) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -135,6 +134,7 @@ func (o *SchemasVersion) HasComment() bool { func (o *SchemasVersion) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *SchemasVersion) SetCommentNil() { o.Comment.Set(nil) @@ -339,7 +339,7 @@ func (o SchemasVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasVersion) UnmarshalJSON(bytes []byte) (err error) { varSchemasVersion := _SchemasVersion{} @@ -363,7 +363,7 @@ func (o *SchemasVersion) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasVersion is a helper abstraction for handling nullable schemasversion types. +// NullableSchemasVersion is a helper abstraction for handling nullable schemasversion types. type NullableSchemasVersion struct { value *SchemasVersion isSet bool @@ -403,7 +403,7 @@ func (v NullableSchemasVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_version_response.go b/fastly/model_schemas_version_response.go index 42e4e5c..9b9616c 100644 --- a/fastly/model_schemas_version_response.go +++ b/fastly/model_schemas_version_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -40,9 +39,9 @@ type SchemasVersionResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o *SchemasVersionResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVersionResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -145,6 +144,7 @@ func (o *SchemasVersionResponse) HasComment() bool { func (o *SchemasVersionResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *SchemasVersionResponse) SetCommentNil() { o.Comment.Set(nil) @@ -328,7 +328,7 @@ func (o *SchemasVersionResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVersionResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -347,6 +347,7 @@ func (o *SchemasVersionResponse) HasCreatedAt() bool { func (o *SchemasVersionResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SchemasVersionResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -370,7 +371,7 @@ func (o *SchemasVersionResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVersionResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -389,6 +390,7 @@ func (o *SchemasVersionResponse) HasDeletedAt() bool { func (o *SchemasVersionResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SchemasVersionResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -412,7 +414,7 @@ func (o *SchemasVersionResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SchemasVersionResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -431,6 +433,7 @@ func (o *SchemasVersionResponse) HasUpdatedAt() bool { func (o *SchemasVersionResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SchemasVersionResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -554,7 +557,7 @@ func (o SchemasVersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasVersionResponse) UnmarshalJSON(bytes []byte) (err error) { varSchemasVersionResponse := _SchemasVersionResponse{} @@ -583,7 +586,7 @@ func (o *SchemasVersionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasVersionResponse is a helper abstraction for handling nullable schemasversionresponse types. +// NullableSchemasVersionResponse is a helper abstraction for handling nullable schemasversionresponse types. type NullableSchemasVersionResponse struct { value *SchemasVersionResponse isSet bool @@ -623,7 +626,7 @@ func (v NullableSchemasVersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasVersionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_waf_firewall_version.go b/fastly/model_schemas_waf_firewall_version.go index e9ef280..7f11e34 100644 --- a/fastly/model_schemas_waf_firewall_version.go +++ b/fastly/model_schemas_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // SchemasWafFirewallVersion struct for SchemasWafFirewallVersion type SchemasWafFirewallVersion struct { - Data *SchemasWafFirewallVersionData `json:"data,omitempty"` + Data *SchemasWafFirewallVersionData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o SchemasWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { varSchemasWafFirewallVersion := _SchemasWafFirewallVersion{} @@ -108,7 +107,7 @@ func (o *SchemasWafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSchemasWafFirewallVersion is a helper abstraction for handling nullable schemaswaffirewallversion types. +// NullableSchemasWafFirewallVersion is a helper abstraction for handling nullable schemaswaffirewallversion types. type NullableSchemasWafFirewallVersion struct { value *SchemasWafFirewallVersion isSet bool @@ -148,7 +147,7 @@ func (v NullableSchemasWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_schemas_waf_firewall_version_data.go b/fastly/model_schemas_waf_firewall_version_data.go index 52d6131..41f80b1 100644 --- a/fastly/model_schemas_waf_firewall_version_data.go +++ b/fastly/model_schemas_waf_firewall_version_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // SchemasWafFirewallVersionData struct for SchemasWafFirewallVersionData type SchemasWafFirewallVersionData struct { - Type *TypeWafFirewallVersion `json:"type,omitempty"` - Attributes *WafFirewallVersionDataAttributes `json:"attributes,omitempty"` + Type *TypeWafFirewallVersion `json:"type,omitempty"` + Attributes *WafFirewallVersionDataAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o SchemasWafFirewallVersionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SchemasWafFirewallVersionData) UnmarshalJSON(bytes []byte) (err error) { varSchemasWafFirewallVersionData := _SchemasWafFirewallVersionData{} @@ -149,7 +148,7 @@ func (o *SchemasWafFirewallVersionData) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableSchemasWafFirewallVersionData is a helper abstraction for handling nullable schemaswaffirewallversiondata types. +// NullableSchemasWafFirewallVersionData is a helper abstraction for handling nullable schemaswaffirewallversiondata types. type NullableSchemasWafFirewallVersionData struct { value *SchemasWafFirewallVersionData isSet bool @@ -189,7 +188,7 @@ func (v NullableSchemasWafFirewallVersionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSchemasWafFirewallVersionData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_secret.go b/fastly/model_secret.go index 313be52..263fa00 100644 --- a/fastly/model_secret.go +++ b/fastly/model_secret.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type Secret struct { // A Base64-encoded string containing either the secret or the encrypted secret (when using client_key). The maximum secret size (before Base64 encoding and optional local encryption) is 64KB. Secret *string `json:"secret,omitempty"` // The Base64-encoded string containing the client key used to encrypt the secret, if applicable. - ClientKey NullableString `json:"client_key,omitempty"` + ClientKey NullableString `json:"client_key,omitempty"` AdditionalProperties map[string]any } @@ -124,7 +123,7 @@ func (o *Secret) GetClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Secret) GetClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.ClientKey.Get(), o.ClientKey.IsSet() @@ -143,6 +142,7 @@ func (o *Secret) HasClientKey() bool { func (o *Secret) SetClientKey(v string) { o.ClientKey.Set(&v) } + // SetClientKeyNil sets the value for ClientKey to be an explicit nil func (o *Secret) SetClientKeyNil() { o.ClientKey.Set(nil) @@ -175,7 +175,7 @@ func (o Secret) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Secret) UnmarshalJSON(bytes []byte) (err error) { varSecret := _Secret{} @@ -195,7 +195,7 @@ func (o *Secret) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSecret is a helper abstraction for handling nullable secret types. +// NullableSecret is a helper abstraction for handling nullable secret types. type NullableSecret struct { value *Secret isSet bool @@ -235,7 +235,7 @@ func (v NullableSecret) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSecret) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_secret_response.go b/fastly/model_secret_response.go index d042e0b..2347e1b 100644 --- a/fastly/model_secret_response.go +++ b/fastly/model_secret_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -27,7 +26,7 @@ type SecretResponse struct { // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // True if the secret replaced a secret with the same name. - Recreated NullableBool `json:"recreated,omitempty"` + Recreated NullableBool `json:"recreated,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o *SecretResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SecretResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -146,6 +145,7 @@ func (o *SecretResponse) HasCreatedAt() bool { func (o *SecretResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SecretResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -169,7 +169,7 @@ func (o *SecretResponse) GetRecreated() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SecretResponse) GetRecreatedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.Recreated.Get(), o.Recreated.IsSet() @@ -188,6 +188,7 @@ func (o *SecretResponse) HasRecreated() bool { func (o *SecretResponse) SetRecreated(v bool) { o.Recreated.Set(&v) } + // SetRecreatedNil sets the value for Recreated to be an explicit nil func (o *SecretResponse) SetRecreatedNil() { o.Recreated.Set(nil) @@ -223,7 +224,7 @@ func (o SecretResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SecretResponse) UnmarshalJSON(bytes []byte) (err error) { varSecretResponse := _SecretResponse{} @@ -244,7 +245,7 @@ func (o *SecretResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSecretResponse is a helper abstraction for handling nullable secretresponse types. +// NullableSecretResponse is a helper abstraction for handling nullable secretresponse types. type NullableSecretResponse struct { value *SecretResponse isSet bool @@ -284,7 +285,7 @@ func (v NullableSecretResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSecretResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_secret_store.go b/fastly/model_secret_store.go index f446b4d..cfe1d0e 100644 --- a/fastly/model_secret_store.go +++ b/fastly/model_secret_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // SecretStore struct for SecretStore type SecretStore struct { // A human-readable name for the store. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), or periods (`.`). - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o SecretStore) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SecretStore) UnmarshalJSON(bytes []byte) (err error) { varSecretStore := _SecretStore{} @@ -109,7 +108,7 @@ func (o *SecretStore) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSecretStore is a helper abstraction for handling nullable secretstore types. +// NullableSecretStore is a helper abstraction for handling nullable secretstore types. type NullableSecretStore struct { value *SecretStore isSet bool @@ -149,7 +148,7 @@ func (v NullableSecretStore) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSecretStore) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_secret_store_response.go b/fastly/model_secret_store_response.go index b636bfb..a1a347d 100644 --- a/fastly/model_secret_store_response.go +++ b/fastly/model_secret_store_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,7 +24,7 @@ type SecretStoreResponse struct { // A human-readable name for the store. Name *string `json:"name,omitempty"` // Date and time in ISO 8601 format. - CreatedAt NullableTime `json:"created_at,omitempty"` + CreatedAt NullableTime `json:"created_at,omitempty"` AdditionalProperties map[string]any } @@ -125,7 +124,7 @@ func (o *SecretStoreResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SecretStoreResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -144,6 +143,7 @@ func (o *SecretStoreResponse) HasCreatedAt() bool { func (o *SecretStoreResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SecretStoreResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -176,7 +176,7 @@ func (o SecretStoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SecretStoreResponse) UnmarshalJSON(bytes []byte) (err error) { varSecretStoreResponse := _SecretStoreResponse{} @@ -196,7 +196,7 @@ func (o *SecretStoreResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSecretStoreResponse is a helper abstraction for handling nullable secretstoreresponse types. +// NullableSecretStoreResponse is a helper abstraction for handling nullable secretstoreresponse types. type NullableSecretStoreResponse struct { value *SecretStoreResponse isSet bool @@ -236,7 +236,7 @@ func (v NullableSecretStoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSecretStoreResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_server.go b/fastly/model_server.go index fe3d8de..921256b 100644 --- a/fastly/model_server.go +++ b/fastly/model_server.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type Server struct { // Allows servers to be enabled and disabled in a pool. Disabled *bool `json:"disabled,omitempty"` // The hostname to override the Host header. Defaults to `null` meaning no override of the Host header if not set. This setting can also be added to a Pool definition. However, the server setting will override the Pool setting. - OverrideHost NullableString `json:"override_host,omitempty"` + OverrideHost NullableString `json:"override_host,omitempty"` AdditionalProperties map[string]any } @@ -216,7 +215,7 @@ func (o *Server) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Server) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -235,6 +234,7 @@ func (o *Server) HasComment() bool { func (o *Server) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Server) SetCommentNil() { o.Comment.Set(nil) @@ -290,7 +290,7 @@ func (o *Server) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Server) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -309,6 +309,7 @@ func (o *Server) HasOverrideHost() bool { func (o *Server) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *Server) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -353,7 +354,7 @@ func (o Server) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Server) UnmarshalJSON(bytes []byte) (err error) { varServer := _Server{} @@ -377,7 +378,7 @@ func (o *Server) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServer is a helper abstraction for handling nullable server types. +// NullableServer is a helper abstraction for handling nullable server types. type NullableServer struct { value *Server isSet bool @@ -417,7 +418,7 @@ func (v NullableServer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_server_response.go b/fastly/model_server_response.go index 046062f..5a0bedb 100644 --- a/fastly/model_server_response.go +++ b/fastly/model_server_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -39,10 +38,10 @@ type ServerResponse struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - ID *string `json:"id,omitempty"` - PoolID *string `json:"pool_id,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + ID *string `json:"id,omitempty"` + PoolID *string `json:"pool_id,omitempty"` AdditionalProperties map[string]any } @@ -226,7 +225,7 @@ func (o *ServerResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServerResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -245,6 +244,7 @@ func (o *ServerResponse) HasComment() bool { func (o *ServerResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServerResponse) SetCommentNil() { o.Comment.Set(nil) @@ -300,7 +300,7 @@ func (o *ServerResponse) GetOverrideHost() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServerResponse) GetOverrideHostOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.OverrideHost.Get(), o.OverrideHost.IsSet() @@ -319,6 +319,7 @@ func (o *ServerResponse) HasOverrideHost() bool { func (o *ServerResponse) SetOverrideHost(v string) { o.OverrideHost.Set(&v) } + // SetOverrideHostNil sets the value for OverrideHost to be an explicit nil func (o *ServerResponse) SetOverrideHostNil() { o.OverrideHost.Set(nil) @@ -342,7 +343,7 @@ func (o *ServerResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServerResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -361,6 +362,7 @@ func (o *ServerResponse) HasCreatedAt() bool { func (o *ServerResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServerResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -384,7 +386,7 @@ func (o *ServerResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServerResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -403,6 +405,7 @@ func (o *ServerResponse) HasDeletedAt() bool { func (o *ServerResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServerResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -426,7 +429,7 @@ func (o *ServerResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServerResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -445,6 +448,7 @@ func (o *ServerResponse) HasUpdatedAt() bool { func (o *ServerResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServerResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -603,7 +607,7 @@ func (o ServerResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServerResponse) UnmarshalJSON(bytes []byte) (err error) { varServerResponse := _ServerResponse{} @@ -633,7 +637,7 @@ func (o *ServerResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServerResponse is a helper abstraction for handling nullable serverresponse types. +// NullableServerResponse is a helper abstraction for handling nullable serverresponse types. type NullableServerResponse struct { value *ServerResponse isSet bool @@ -673,7 +677,7 @@ func (v NullableServerResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_server_response_all_of.go b/fastly/model_server_response_all_of.go index fa0d42d..c087304 100644 --- a/fastly/model_server_response_all_of.go +++ b/fastly/model_server_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServerResponseAllOf struct for ServerResponseAllOf type ServerResponseAllOf struct { - ServiceID *string `json:"service_id,omitempty"` - ID *string `json:"id,omitempty"` - PoolID *string `json:"pool_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + ID *string `json:"id,omitempty"` + PoolID *string `json:"pool_id,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o ServerResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServerResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varServerResponseAllOf := _ServerResponseAllOf{} @@ -182,7 +181,7 @@ func (o *ServerResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServerResponseAllOf is a helper abstraction for handling nullable serverresponseallof types. +// NullableServerResponseAllOf is a helper abstraction for handling nullable serverresponseallof types. type NullableServerResponseAllOf struct { value *ServerResponseAllOf isSet bool @@ -222,7 +221,7 @@ func (v NullableServerResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServerResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service.go b/fastly/model_service.go index 3cfc738..fcdd85c 100644 --- a/fastly/model_service.go +++ b/fastly/model_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type Service struct { // The name of the service. Name *string `json:"name,omitempty"` // Alphanumeric string identifying the customer. - CustomerID *string `json:"customer_id,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -60,7 +59,7 @@ func (o *Service) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Service) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -79,6 +78,7 @@ func (o *Service) HasComment() bool { func (o *Service) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Service) SetCommentNil() { o.Comment.Set(nil) @@ -175,7 +175,7 @@ func (o Service) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Service) UnmarshalJSON(bytes []byte) (err error) { varService := _Service{} @@ -195,7 +195,7 @@ func (o *Service) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableService is a helper abstraction for handling nullable service types. +// NullableService is a helper abstraction for handling nullable service types. type NullableService struct { value *Service isSet bool @@ -235,7 +235,7 @@ func (v NullableService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization.go b/fastly/model_service_authorization.go index d5b6df8..aad63a4 100644 --- a/fastly/model_service_authorization.go +++ b/fastly/model_service_authorization.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorization struct for ServiceAuthorization type ServiceAuthorization struct { - Data *ServiceAuthorizationData `json:"data,omitempty"` + Data *ServiceAuthorizationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceAuthorization) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorization) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorization := _ServiceAuthorization{} @@ -108,7 +107,7 @@ func (o *ServiceAuthorization) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceAuthorization is a helper abstraction for handling nullable serviceauthorization types. +// NullableServiceAuthorization is a helper abstraction for handling nullable serviceauthorization types. type NullableServiceAuthorization struct { value *ServiceAuthorization isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceAuthorization) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_data.go b/fastly/model_service_authorization_data.go index 29f58a9..90bae65 100644 --- a/fastly/model_service_authorization_data.go +++ b/fastly/model_service_authorization_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationData struct for ServiceAuthorizationData type ServiceAuthorizationData struct { - Type *TypeServiceAuthorization `json:"type,omitempty"` - Attributes *ServiceAuthorizationDataAttributes `json:"attributes,omitempty"` - Relationships *ServiceAuthorizationDataRelationships `json:"relationships,omitempty"` + Type *TypeServiceAuthorization `json:"type,omitempty"` + Attributes *ServiceAuthorizationDataAttributes `json:"attributes,omitempty"` + Relationships *ServiceAuthorizationDataRelationships `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o ServiceAuthorizationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationData) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationData := _ServiceAuthorizationData{} @@ -186,7 +185,7 @@ func (o *ServiceAuthorizationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceAuthorizationData is a helper abstraction for handling nullable serviceauthorizationdata types. +// NullableServiceAuthorizationData is a helper abstraction for handling nullable serviceauthorizationdata types. type NullableServiceAuthorizationData struct { value *ServiceAuthorizationData isSet bool @@ -226,7 +225,7 @@ func (v NullableServiceAuthorizationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_data_attributes.go b/fastly/model_service_authorization_data_attributes.go index 745e9ba..e31a01f 100644 --- a/fastly/model_service_authorization_data_attributes.go +++ b/fastly/model_service_authorization_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationDataAttributes struct for ServiceAuthorizationDataAttributes type ServiceAuthorizationDataAttributes struct { - Permission *Permission `json:"permission,omitempty"` + Permission *Permission `json:"permission,omitempty"` AdditionalProperties map[string]any } @@ -94,7 +93,7 @@ func (o ServiceAuthorizationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationDataAttributes := _ServiceAuthorizationDataAttributes{} @@ -112,7 +111,7 @@ func (o *ServiceAuthorizationDataAttributes) UnmarshalJSON(bytes []byte) (err er return err } -// NullableServiceAuthorizationDataAttributes is a helper abstraction for handling nullable serviceauthorizationdataattributes types. +// NullableServiceAuthorizationDataAttributes is a helper abstraction for handling nullable serviceauthorizationdataattributes types. type NullableServiceAuthorizationDataAttributes struct { value *ServiceAuthorizationDataAttributes isSet bool @@ -152,7 +151,7 @@ func (v NullableServiceAuthorizationDataAttributes) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_data_relationships.go b/fastly/model_service_authorization_data_relationships.go index 9914a7f..a2a81ca 100644 --- a/fastly/model_service_authorization_data_relationships.go +++ b/fastly/model_service_authorization_data_relationships.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationDataRelationships struct for ServiceAuthorizationDataRelationships type ServiceAuthorizationDataRelationships struct { - Service *RelationshipMemberService `json:"service,omitempty"` - User *ServiceAuthorizationDataRelationshipsUser `json:"user,omitempty"` + Service *RelationshipMemberService `json:"service,omitempty"` + User *ServiceAuthorizationDataRelationshipsUser `json:"user,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ServiceAuthorizationDataRelationships) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationDataRelationships) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationDataRelationships := _ServiceAuthorizationDataRelationships{} @@ -145,7 +144,7 @@ func (o *ServiceAuthorizationDataRelationships) UnmarshalJSON(bytes []byte) (err return err } -// NullableServiceAuthorizationDataRelationships is a helper abstraction for handling nullable serviceauthorizationdatarelationships types. +// NullableServiceAuthorizationDataRelationships is a helper abstraction for handling nullable serviceauthorizationdatarelationships types. type NullableServiceAuthorizationDataRelationships struct { value *ServiceAuthorizationDataRelationships isSet bool @@ -185,7 +184,7 @@ func (v NullableServiceAuthorizationDataRelationships) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationDataRelationships) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_data_relationships_user.go b/fastly/model_service_authorization_data_relationships_user.go index 954f33a..d6a966a 100644 --- a/fastly/model_service_authorization_data_relationships_user.go +++ b/fastly/model_service_authorization_data_relationships_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationDataRelationshipsUser The ID of the user being given access to the service. type ServiceAuthorizationDataRelationshipsUser struct { - Data *ServiceAuthorizationDataRelationshipsUserData `json:"data,omitempty"` + Data *ServiceAuthorizationDataRelationshipsUserData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceAuthorizationDataRelationshipsUser) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationDataRelationshipsUser) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationDataRelationshipsUser := _ServiceAuthorizationDataRelationshipsUser{} @@ -108,7 +107,7 @@ func (o *ServiceAuthorizationDataRelationshipsUser) UnmarshalJSON(bytes []byte) return err } -// NullableServiceAuthorizationDataRelationshipsUser is a helper abstraction for handling nullable serviceauthorizationdatarelationshipsuser types. +// NullableServiceAuthorizationDataRelationshipsUser is a helper abstraction for handling nullable serviceauthorizationdatarelationshipsuser types. type NullableServiceAuthorizationDataRelationshipsUser struct { value *ServiceAuthorizationDataRelationshipsUser isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceAuthorizationDataRelationshipsUser) MarshalJSON() ([]byte } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationDataRelationshipsUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_data_relationships_user_data.go b/fastly/model_service_authorization_data_relationships_user_data.go index 5ca19c4..1849947 100644 --- a/fastly/model_service_authorization_data_relationships_user_data.go +++ b/fastly/model_service_authorization_data_relationships_user_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationDataRelationshipsUserData struct for ServiceAuthorizationDataRelationshipsUserData type ServiceAuthorizationDataRelationshipsUserData struct { - Type *TypeUser `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeUser `json:"type,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o ServiceAuthorizationDataRelationshipsUserData) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationDataRelationshipsUserData) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationDataRelationshipsUserData := _ServiceAuthorizationDataRelationshipsUserData{} @@ -149,7 +148,7 @@ func (o *ServiceAuthorizationDataRelationshipsUserData) UnmarshalJSON(bytes []by return err } -// NullableServiceAuthorizationDataRelationshipsUserData is a helper abstraction for handling nullable serviceauthorizationdatarelationshipsuserdata types. +// NullableServiceAuthorizationDataRelationshipsUserData is a helper abstraction for handling nullable serviceauthorizationdatarelationshipsuserdata types. type NullableServiceAuthorizationDataRelationshipsUserData struct { value *ServiceAuthorizationDataRelationshipsUserData isSet bool @@ -189,7 +188,7 @@ func (v NullableServiceAuthorizationDataRelationshipsUserData) MarshalJSON() ([] } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationDataRelationshipsUserData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_response.go b/fastly/model_service_authorization_response.go index 72cf143..983e064 100644 --- a/fastly/model_service_authorization_response.go +++ b/fastly/model_service_authorization_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationResponse struct for ServiceAuthorizationResponse type ServiceAuthorizationResponse struct { - Data *ServiceAuthorizationResponseData `json:"data,omitempty"` + Data *ServiceAuthorizationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceAuthorizationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationResponse) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationResponse := _ServiceAuthorizationResponse{} @@ -108,7 +107,7 @@ func (o *ServiceAuthorizationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceAuthorizationResponse is a helper abstraction for handling nullable serviceauthorizationresponse types. +// NullableServiceAuthorizationResponse is a helper abstraction for handling nullable serviceauthorizationresponse types. type NullableServiceAuthorizationResponse struct { value *ServiceAuthorizationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceAuthorizationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_response_data.go b/fastly/model_service_authorization_response_data.go index 4d52007..7893a89 100644 --- a/fastly/model_service_authorization_response_data.go +++ b/fastly/model_service_authorization_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationResponseData struct for ServiceAuthorizationResponseData type ServiceAuthorizationResponseData struct { - Type *TypeServiceAuthorization `json:"type,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` - Relationships *ServiceAuthorizationDataRelationships `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeServiceAuthorization `json:"type,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` + Relationships *ServiceAuthorizationDataRelationships `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o ServiceAuthorizationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationResponseData) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationResponseData := _ServiceAuthorizationResponseData{} @@ -223,7 +222,7 @@ func (o *ServiceAuthorizationResponseData) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableServiceAuthorizationResponseData is a helper abstraction for handling nullable serviceauthorizationresponsedata types. +// NullableServiceAuthorizationResponseData is a helper abstraction for handling nullable serviceauthorizationresponsedata types. type NullableServiceAuthorizationResponseData struct { value *ServiceAuthorizationResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableServiceAuthorizationResponseData) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorization_response_data_all_of.go b/fastly/model_service_authorization_response_data_all_of.go index 50ab6cc..914782b 100644 --- a/fastly/model_service_authorization_response_data_all_of.go +++ b/fastly/model_service_authorization_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationResponseDataAllOf struct for ServiceAuthorizationResponseDataAllOf type ServiceAuthorizationResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ServiceAuthorizationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationResponseDataAllOf := _ServiceAuthorizationResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *ServiceAuthorizationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableServiceAuthorizationResponseDataAllOf is a helper abstraction for handling nullable serviceauthorizationresponsedataallof types. +// NullableServiceAuthorizationResponseDataAllOf is a helper abstraction for handling nullable serviceauthorizationresponsedataallof types. type NullableServiceAuthorizationResponseDataAllOf struct { value *ServiceAuthorizationResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableServiceAuthorizationResponseDataAllOf) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorizations_response.go b/fastly/model_service_authorizations_response.go index 32c1851..8a91088 100644 --- a/fastly/model_service_authorizations_response.go +++ b/fastly/model_service_authorizations_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationsResponse struct for ServiceAuthorizationsResponse type ServiceAuthorizationsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []ServiceAuthorizationResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []ServiceAuthorizationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o ServiceAuthorizationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationsResponse) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationsResponse := _ServiceAuthorizationsResponse{} @@ -182,7 +181,7 @@ func (o *ServiceAuthorizationsResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableServiceAuthorizationsResponse is a helper abstraction for handling nullable serviceauthorizationsresponse types. +// NullableServiceAuthorizationsResponse is a helper abstraction for handling nullable serviceauthorizationsresponse types. type NullableServiceAuthorizationsResponse struct { value *ServiceAuthorizationsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableServiceAuthorizationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_authorizations_response_all_of.go b/fastly/model_service_authorizations_response_all_of.go index b2736eb..09008ad 100644 --- a/fastly/model_service_authorizations_response_all_of.go +++ b/fastly/model_service_authorizations_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceAuthorizationsResponseAllOf struct for ServiceAuthorizationsResponseAllOf type ServiceAuthorizationsResponseAllOf struct { - Data []ServiceAuthorizationResponseData `json:"data,omitempty"` + Data []ServiceAuthorizationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceAuthorizationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceAuthorizationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceAuthorizationsResponseAllOf := _ServiceAuthorizationsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *ServiceAuthorizationsResponseAllOf) UnmarshalJSON(bytes []byte) (err er return err } -// NullableServiceAuthorizationsResponseAllOf is a helper abstraction for handling nullable serviceauthorizationsresponseallof types. +// NullableServiceAuthorizationsResponseAllOf is a helper abstraction for handling nullable serviceauthorizationsresponseallof types. type NullableServiceAuthorizationsResponseAllOf struct { value *ServiceAuthorizationsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceAuthorizationsResponseAllOf) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceAuthorizationsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_create.go b/fastly/model_service_create.go index 6c2e0cd..c869dbc 100644 --- a/fastly/model_service_create.go +++ b/fastly/model_service_create.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type ServiceCreate struct { // Alphanumeric string identifying the customer. CustomerID *string `json:"customer_id,omitempty"` // The type of this service. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]any } @@ -62,7 +61,7 @@ func (o *ServiceCreate) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceCreate) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -81,6 +80,7 @@ func (o *ServiceCreate) HasComment() bool { func (o *ServiceCreate) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceCreate) SetCommentNil() { o.Comment.Set(nil) @@ -212,7 +212,7 @@ func (o ServiceCreate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceCreate) UnmarshalJSON(bytes []byte) (err error) { varServiceCreate := _ServiceCreate{} @@ -233,7 +233,7 @@ func (o *ServiceCreate) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceCreate is a helper abstraction for handling nullable servicecreate types. +// NullableServiceCreate is a helper abstraction for handling nullable servicecreate types. type NullableServiceCreate struct { value *ServiceCreate isSet bool @@ -273,7 +273,7 @@ func (v NullableServiceCreate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceCreate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_create_all_of.go b/fastly/model_service_create_all_of.go index 5642a66..4775294 100644 --- a/fastly/model_service_create_all_of.go +++ b/fastly/model_service_create_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ServiceCreateAllOf struct for ServiceCreateAllOf type ServiceCreateAllOf struct { // The type of this service. - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o ServiceCreateAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceCreateAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceCreateAllOf := _ServiceCreateAllOf{} @@ -109,7 +108,7 @@ func (o *ServiceCreateAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceCreateAllOf is a helper abstraction for handling nullable servicecreateallof types. +// NullableServiceCreateAllOf is a helper abstraction for handling nullable servicecreateallof types. type NullableServiceCreateAllOf struct { value *ServiceCreateAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableServiceCreateAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceCreateAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_detail.go b/fastly/model_service_detail.go index 3e8d2ae..91c5aca 100644 --- a/fastly/model_service_detail.go +++ b/fastly/model_service_detail.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -34,7 +33,7 @@ type ServiceDetail struct { CustomerID *string `json:"customer_id,omitempty"` // The type of this service. Type *string `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // Unused at this time. PublishKey *string `json:"publish_key,omitempty"` // Whether the service is paused. Services are paused due to a lack of traffic for an extended period of time. Services are resumed either when a draft version is activated or a locked version is cloned and reactivated. @@ -42,9 +41,9 @@ type ServiceDetail struct { // A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. Versions []SchemasVersionResponse `json:"versions,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` - ActiveVersion NullableServiceVersionDetailOrNull `json:"active_version,omitempty"` - Version *ServiceVersionDetail `json:"version,omitempty"` + Environments []Environment `json:"environments,omitempty"` + ActiveVersion NullableServiceVersionDetailOrNull `json:"active_version,omitempty"` + Version *ServiceVersionDetail `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -80,7 +79,7 @@ func (o *ServiceDetail) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetail) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -99,6 +98,7 @@ func (o *ServiceDetail) HasCreatedAt() bool { func (o *ServiceDetail) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServiceDetail) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -122,7 +122,7 @@ func (o *ServiceDetail) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetail) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -141,6 +141,7 @@ func (o *ServiceDetail) HasDeletedAt() bool { func (o *ServiceDetail) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServiceDetail) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -164,7 +165,7 @@ func (o *ServiceDetail) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetail) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -183,6 +184,7 @@ func (o *ServiceDetail) HasUpdatedAt() bool { func (o *ServiceDetail) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServiceDetail) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -206,7 +208,7 @@ func (o *ServiceDetail) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetail) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -225,6 +227,7 @@ func (o *ServiceDetail) HasComment() bool { func (o *ServiceDetail) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceDetail) SetCommentNil() { o.Comment.Set(nil) @@ -504,7 +507,7 @@ func (o *ServiceDetail) GetActiveVersion() ServiceVersionDetailOrNull { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetail) GetActiveVersionOk() (*ServiceVersionDetailOrNull, bool) { - if o == nil { + if o == nil { return nil, false } return o.ActiveVersion.Get(), o.ActiveVersion.IsSet() @@ -523,6 +526,7 @@ func (o *ServiceDetail) HasActiveVersion() bool { func (o *ServiceDetail) SetActiveVersion(v ServiceVersionDetailOrNull) { o.ActiveVersion.Set(&v) } + // SetActiveVersionNil sets the value for ActiveVersion to be an explicit nil func (o *ServiceDetail) SetActiveVersionNil() { o.ActiveVersion.Set(nil) @@ -620,7 +624,7 @@ func (o ServiceDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceDetail) UnmarshalJSON(bytes []byte) (err error) { varServiceDetail := _ServiceDetail{} @@ -651,7 +655,7 @@ func (o *ServiceDetail) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceDetail is a helper abstraction for handling nullable servicedetail types. +// NullableServiceDetail is a helper abstraction for handling nullable servicedetail types. type NullableServiceDetail struct { value *ServiceDetail isSet bool @@ -691,7 +695,7 @@ func (v NullableServiceDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceDetail) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_detail_all_of.go b/fastly/model_service_detail_all_of.go index 53d3aa5..a3dd5f4 100644 --- a/fastly/model_service_detail_all_of.go +++ b/fastly/model_service_detail_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceDetailAllOf struct for ServiceDetailAllOf type ServiceDetailAllOf struct { - ActiveVersion NullableServiceVersionDetailOrNull `json:"active_version,omitempty"` - Version *ServiceVersionDetail `json:"version,omitempty"` + ActiveVersion NullableServiceVersionDetailOrNull `json:"active_version,omitempty"` + Version *ServiceVersionDetail `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -56,7 +55,7 @@ func (o *ServiceDetailAllOf) GetActiveVersion() ServiceVersionDetailOrNull { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceDetailAllOf) GetActiveVersionOk() (*ServiceVersionDetailOrNull, bool) { - if o == nil { + if o == nil { return nil, false } return o.ActiveVersion.Get(), o.ActiveVersion.IsSet() @@ -75,6 +74,7 @@ func (o *ServiceDetailAllOf) HasActiveVersion() bool { func (o *ServiceDetailAllOf) SetActiveVersion(v ServiceVersionDetailOrNull) { o.ActiveVersion.Set(&v) } + // SetActiveVersionNil sets the value for ActiveVersion to be an explicit nil func (o *ServiceDetailAllOf) SetActiveVersionNil() { o.ActiveVersion.Set(nil) @@ -136,7 +136,7 @@ func (o ServiceDetailAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceDetailAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceDetailAllOf := _ServiceDetailAllOf{} @@ -155,7 +155,7 @@ func (o *ServiceDetailAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceDetailAllOf is a helper abstraction for handling nullable servicedetailallof types. +// NullableServiceDetailAllOf is a helper abstraction for handling nullable servicedetailallof types. type NullableServiceDetailAllOf struct { value *ServiceDetailAllOf isSet bool @@ -195,7 +195,7 @@ func (v NullableServiceDetailAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceDetailAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_id_and_version.go b/fastly/model_service_id_and_version.go index 3315966..4b5a3f3 100644 --- a/fastly/model_service_id_and_version.go +++ b/fastly/model_service_id_and_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceIDAndVersion struct for ServiceIDAndVersion type ServiceIDAndVersion struct { - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ServiceIDAndVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceIDAndVersion) UnmarshalJSON(bytes []byte) (err error) { varServiceIDAndVersion := _ServiceIDAndVersion{} @@ -145,7 +144,7 @@ func (o *ServiceIDAndVersion) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceIDAndVersion is a helper abstraction for handling nullable serviceidandversion types. +// NullableServiceIDAndVersion is a helper abstraction for handling nullable serviceidandversion types. type NullableServiceIDAndVersion struct { value *ServiceIDAndVersion isSet bool @@ -185,7 +184,7 @@ func (v NullableServiceIDAndVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceIDAndVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_id_and_version_string.go b/fastly/model_service_id_and_version_string.go index 5adc153..1d78d1a 100644 --- a/fastly/model_service_id_and_version_string.go +++ b/fastly/model_service_id_and_version_string.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceIDAndVersionString struct for ServiceIDAndVersionString type ServiceIDAndVersionString struct { - ServiceID *string `json:"service_id,omitempty"` - Version *string `json:"version,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *string `json:"version,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ServiceIDAndVersionString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceIDAndVersionString) UnmarshalJSON(bytes []byte) (err error) { varServiceIDAndVersionString := _ServiceIDAndVersionString{} @@ -145,7 +144,7 @@ func (o *ServiceIDAndVersionString) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceIDAndVersionString is a helper abstraction for handling nullable serviceidandversionstring types. +// NullableServiceIDAndVersionString is a helper abstraction for handling nullable serviceidandversionstring types. type NullableServiceIDAndVersionString struct { value *ServiceIDAndVersionString isSet bool @@ -185,7 +184,7 @@ func (v NullableServiceIDAndVersionString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceIDAndVersionString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation.go b/fastly/model_service_invitation.go index 72e226e..5979a23 100644 --- a/fastly/model_service_invitation.go +++ b/fastly/model_service_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitation struct for ServiceInvitation type ServiceInvitation struct { - Data *ServiceInvitationData `json:"data,omitempty"` + Data *ServiceInvitationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitation) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitation := _ServiceInvitation{} @@ -108,7 +107,7 @@ func (o *ServiceInvitation) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceInvitation is a helper abstraction for handling nullable serviceinvitation types. +// NullableServiceInvitation is a helper abstraction for handling nullable serviceinvitation types. type NullableServiceInvitation struct { value *ServiceInvitation isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_data.go b/fastly/model_service_invitation_data.go index a0d1581..052cff2 100644 --- a/fastly/model_service_invitation_data.go +++ b/fastly/model_service_invitation_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitationData struct for ServiceInvitationData type ServiceInvitationData struct { - Type *TypeServiceInvitation `json:"type,omitempty"` - Attributes *ServiceInvitationDataAttributes `json:"attributes,omitempty"` - Relationships *ServiceInvitationDataRelationships `json:"relationships,omitempty"` + Type *TypeServiceInvitation `json:"type,omitempty"` + Attributes *ServiceInvitationDataAttributes `json:"attributes,omitempty"` + Relationships *ServiceInvitationDataRelationships `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o ServiceInvitationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationData) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationData := _ServiceInvitationData{} @@ -186,7 +185,7 @@ func (o *ServiceInvitationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceInvitationData is a helper abstraction for handling nullable serviceinvitationdata types. +// NullableServiceInvitationData is a helper abstraction for handling nullable serviceinvitationdata types. type NullableServiceInvitationData struct { value *ServiceInvitationData isSet bool @@ -226,7 +225,7 @@ func (v NullableServiceInvitationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_data_attributes.go b/fastly/model_service_invitation_data_attributes.go index 405d3a0..754c246 100644 --- a/fastly/model_service_invitation_data_attributes.go +++ b/fastly/model_service_invitation_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // ServiceInvitationDataAttributes struct for ServiceInvitationDataAttributes type ServiceInvitationDataAttributes struct { // The permission the accepting user will have in relation to the service. - Permission *string `json:"permission,omitempty"` + Permission *string `json:"permission,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o ServiceInvitationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationDataAttributes := _ServiceInvitationDataAttributes{} @@ -113,7 +112,7 @@ func (o *ServiceInvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error return err } -// NullableServiceInvitationDataAttributes is a helper abstraction for handling nullable serviceinvitationdataattributes types. +// NullableServiceInvitationDataAttributes is a helper abstraction for handling nullable serviceinvitationdataattributes types. type NullableServiceInvitationDataAttributes struct { value *ServiceInvitationDataAttributes isSet bool @@ -153,7 +152,7 @@ func (v NullableServiceInvitationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_data_relationships.go b/fastly/model_service_invitation_data_relationships.go index d8f9fc5..e255236 100644 --- a/fastly/model_service_invitation_data_relationships.go +++ b/fastly/model_service_invitation_data_relationships.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitationDataRelationships Service the accepting user will have access to. type ServiceInvitationDataRelationships struct { - Service *RelationshipMemberService `json:"service,omitempty"` + Service *RelationshipMemberService `json:"service,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceInvitationDataRelationships) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationDataRelationships) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationDataRelationships := _ServiceInvitationDataRelationships{} @@ -108,7 +107,7 @@ func (o *ServiceInvitationDataRelationships) UnmarshalJSON(bytes []byte) (err er return err } -// NullableServiceInvitationDataRelationships is a helper abstraction for handling nullable serviceinvitationdatarelationships types. +// NullableServiceInvitationDataRelationships is a helper abstraction for handling nullable serviceinvitationdatarelationships types. type NullableServiceInvitationDataRelationships struct { value *ServiceInvitationDataRelationships isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceInvitationDataRelationships) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationDataRelationships) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_response.go b/fastly/model_service_invitation_response.go index aa63323..6a167d7 100644 --- a/fastly/model_service_invitation_response.go +++ b/fastly/model_service_invitation_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitationResponse struct for ServiceInvitationResponse type ServiceInvitationResponse struct { - Data *ServiceInvitationResponseAllOfData `json:"data,omitempty"` + Data *ServiceInvitationResponseAllOfData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceInvitationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationResponse) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationResponse := _ServiceInvitationResponse{} @@ -108,7 +107,7 @@ func (o *ServiceInvitationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceInvitationResponse is a helper abstraction for handling nullable serviceinvitationresponse types. +// NullableServiceInvitationResponse is a helper abstraction for handling nullable serviceinvitationresponse types. type NullableServiceInvitationResponse struct { value *ServiceInvitationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceInvitationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_response_all_of.go b/fastly/model_service_invitation_response_all_of.go index 774835a..f5aaf2d 100644 --- a/fastly/model_service_invitation_response_all_of.go +++ b/fastly/model_service_invitation_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitationResponseAllOf struct for ServiceInvitationResponseAllOf type ServiceInvitationResponseAllOf struct { - Data *ServiceInvitationResponseAllOfData `json:"data,omitempty"` + Data *ServiceInvitationResponseAllOfData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ServiceInvitationResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationResponseAllOf := _ServiceInvitationResponseAllOf{} @@ -108,7 +107,7 @@ func (o *ServiceInvitationResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableServiceInvitationResponseAllOf is a helper abstraction for handling nullable serviceinvitationresponseallof types. +// NullableServiceInvitationResponseAllOf is a helper abstraction for handling nullable serviceinvitationresponseallof types. type NullableServiceInvitationResponseAllOf struct { value *ServiceInvitationResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceInvitationResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_invitation_response_all_of_data.go b/fastly/model_service_invitation_response_all_of_data.go index e438726..344549a 100644 --- a/fastly/model_service_invitation_response_all_of_data.go +++ b/fastly/model_service_invitation_response_all_of_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ServiceInvitationResponseAllOfData struct for ServiceInvitationResponseAllOfData type ServiceInvitationResponseAllOfData struct { - ID *string `json:"id,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o ServiceInvitationResponseAllOfData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceInvitationResponseAllOfData) UnmarshalJSON(bytes []byte) (err error) { varServiceInvitationResponseAllOfData := _ServiceInvitationResponseAllOfData{} @@ -145,7 +144,7 @@ func (o *ServiceInvitationResponseAllOfData) UnmarshalJSON(bytes []byte) (err er return err } -// NullableServiceInvitationResponseAllOfData is a helper abstraction for handling nullable serviceinvitationresponseallofdata types. +// NullableServiceInvitationResponseAllOfData is a helper abstraction for handling nullable serviceinvitationresponseallofdata types. type NullableServiceInvitationResponseAllOfData struct { value *ServiceInvitationResponseAllOfData isSet bool @@ -185,7 +184,7 @@ func (v NullableServiceInvitationResponseAllOfData) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceInvitationResponseAllOfData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_list_response.go b/fastly/model_service_list_response.go index 15363d3..8fae1ab 100644 --- a/fastly/model_service_list_response.go +++ b/fastly/model_service_list_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -34,13 +33,13 @@ type ServiceListResponse struct { CustomerID *string `json:"customer_id,omitempty"` // The type of this service. Type *string `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // Current [version](https://www.fastly.com/documentation/reference/api/services/version/) of the service. Version *int32 `json:"version,omitempty"` // A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. Versions []SchemasVersionResponse `json:"versions,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -76,7 +75,7 @@ func (o *ServiceListResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceListResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -95,6 +94,7 @@ func (o *ServiceListResponse) HasCreatedAt() bool { func (o *ServiceListResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServiceListResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -118,7 +118,7 @@ func (o *ServiceListResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceListResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -137,6 +137,7 @@ func (o *ServiceListResponse) HasDeletedAt() bool { func (o *ServiceListResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServiceListResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -160,7 +161,7 @@ func (o *ServiceListResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceListResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -179,6 +180,7 @@ func (o *ServiceListResponse) HasUpdatedAt() bool { func (o *ServiceListResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServiceListResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -202,7 +204,7 @@ func (o *ServiceListResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceListResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -221,6 +223,7 @@ func (o *ServiceListResponse) HasComment() bool { func (o *ServiceListResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceListResponse) SetCommentNil() { o.Comment.Set(nil) @@ -501,7 +504,7 @@ func (o ServiceListResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceListResponse) UnmarshalJSON(bytes []byte) (err error) { varServiceListResponse := _ServiceListResponse{} @@ -529,7 +532,7 @@ func (o *ServiceListResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceListResponse is a helper abstraction for handling nullable servicelistresponse types. +// NullableServiceListResponse is a helper abstraction for handling nullable servicelistresponse types. type NullableServiceListResponse struct { value *ServiceListResponse isSet bool @@ -569,7 +572,7 @@ func (v NullableServiceListResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceListResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_list_response_all_of.go b/fastly/model_service_list_response_all_of.go index 33a35b5..475793a 100644 --- a/fastly/model_service_list_response_all_of.go +++ b/fastly/model_service_list_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -25,7 +24,7 @@ type ServiceListResponseAllOf struct { // A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. Versions []SchemasVersionResponse `json:"versions,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -201,7 +200,7 @@ func (o ServiceListResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceListResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceListResponseAllOf := _ServiceListResponseAllOf{} @@ -222,7 +221,7 @@ func (o *ServiceListResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceListResponseAllOf is a helper abstraction for handling nullable servicelistresponseallof types. +// NullableServiceListResponseAllOf is a helper abstraction for handling nullable servicelistresponseallof types. type NullableServiceListResponseAllOf struct { value *ServiceListResponseAllOf isSet bool @@ -262,7 +261,7 @@ func (v NullableServiceListResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceListResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_response.go b/fastly/model_service_response.go index bd6ac54..9715c48 100644 --- a/fastly/model_service_response.go +++ b/fastly/model_service_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -34,7 +33,7 @@ type ServiceResponse struct { CustomerID *string `json:"customer_id,omitempty"` // The type of this service. Type *string `json:"type,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // Unused at this time. PublishKey *string `json:"publish_key,omitempty"` // Whether the service is paused. Services are paused due to a lack of traffic for an extended period of time. Services are resumed either when a draft version is activated or a locked version is cloned and reactivated. @@ -42,7 +41,7 @@ type ServiceResponse struct { // A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. Versions []SchemasVersionResponse `json:"versions,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -78,7 +77,7 @@ func (o *ServiceResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -97,6 +96,7 @@ func (o *ServiceResponse) HasCreatedAt() bool { func (o *ServiceResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServiceResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -120,7 +120,7 @@ func (o *ServiceResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -139,6 +139,7 @@ func (o *ServiceResponse) HasDeletedAt() bool { func (o *ServiceResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServiceResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -162,7 +163,7 @@ func (o *ServiceResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -181,6 +182,7 @@ func (o *ServiceResponse) HasUpdatedAt() bool { func (o *ServiceResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServiceResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -204,7 +206,7 @@ func (o *ServiceResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -223,6 +225,7 @@ func (o *ServiceResponse) HasComment() bool { func (o *ServiceResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceResponse) SetCommentNil() { o.Comment.Set(nil) @@ -538,7 +541,7 @@ func (o ServiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceResponse) UnmarshalJSON(bytes []byte) (err error) { varServiceResponse := _ServiceResponse{} @@ -567,7 +570,7 @@ func (o *ServiceResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceResponse is a helper abstraction for handling nullable serviceresponse types. +// NullableServiceResponse is a helper abstraction for handling nullable serviceresponse types. type NullableServiceResponse struct { value *ServiceResponse isSet bool @@ -607,7 +610,7 @@ func (v NullableServiceResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_response_all_of.go b/fastly/model_service_response_all_of.go index 8cfbe58..75edc58 100644 --- a/fastly/model_service_response_all_of.go +++ b/fastly/model_service_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -27,7 +26,7 @@ type ServiceResponseAllOf struct { // A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. Versions []SchemasVersionResponse `json:"versions,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -238,7 +237,7 @@ func (o ServiceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varServiceResponseAllOf := _ServiceResponseAllOf{} @@ -260,7 +259,7 @@ func (o *ServiceResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceResponseAllOf is a helper abstraction for handling nullable serviceresponseallof types. +// NullableServiceResponseAllOf is a helper abstraction for handling nullable serviceresponseallof types. type NullableServiceResponseAllOf struct { value *ServiceResponseAllOf isSet bool @@ -300,7 +299,7 @@ func (v NullableServiceResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_version_detail.go b/fastly/model_service_version_detail.go index 3f84386..c4a2914 100644 --- a/fastly/model_service_version_detail.go +++ b/fastly/model_service_version_detail.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -40,7 +39,7 @@ type ServiceVersionDetail struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // A list of environments where the service has been deployed. Environments []Environment `json:"environments,omitempty"` // List of backends associated to this service. @@ -63,13 +62,13 @@ type ServiceVersionDetail struct { RequestSettings []RequestSettingsResponse `json:"request_settings,omitempty"` // List of response objects for this service. ResponseObjects []ResponseObjectResponse `json:"response_objects,omitempty"` - Settings *VersionDetailSettings `json:"settings,omitempty"` + Settings *VersionDetailSettings `json:"settings,omitempty"` // List of VCL snippets for this service. Snippets []SchemasSnippetResponse `json:"snippets,omitempty"` // List of VCL files for this service. Vcls []SchemasVclResponse `json:"vcls,omitempty"` // A list of Wordpress rules with this service. - Wordpress []*map[string]any `json:"wordpress,omitempty"` + Wordpress []*map[string]any `json:"wordpress,omitempty"` AdditionalProperties map[string]any } @@ -153,7 +152,7 @@ func (o *ServiceVersionDetail) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetail) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -172,6 +171,7 @@ func (o *ServiceVersionDetail) HasComment() bool { func (o *ServiceVersionDetail) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceVersionDetail) SetCommentNil() { o.Comment.Set(nil) @@ -355,7 +355,7 @@ func (o *ServiceVersionDetail) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetail) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -374,6 +374,7 @@ func (o *ServiceVersionDetail) HasCreatedAt() bool { func (o *ServiceVersionDetail) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServiceVersionDetail) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -397,7 +398,7 @@ func (o *ServiceVersionDetail) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetail) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -416,6 +417,7 @@ func (o *ServiceVersionDetail) HasDeletedAt() bool { func (o *ServiceVersionDetail) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServiceVersionDetail) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -439,7 +441,7 @@ func (o *ServiceVersionDetail) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetail) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -458,6 +460,7 @@ func (o *ServiceVersionDetail) HasUpdatedAt() bool { func (o *ServiceVersionDetail) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServiceVersionDetail) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -1071,7 +1074,7 @@ func (o ServiceVersionDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceVersionDetail) UnmarshalJSON(bytes []byte) (err error) { varServiceVersionDetail := _ServiceVersionDetail{} @@ -1114,7 +1117,7 @@ func (o *ServiceVersionDetail) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceVersionDetail is a helper abstraction for handling nullable serviceversiondetail types. +// NullableServiceVersionDetail is a helper abstraction for handling nullable serviceversiondetail types. type NullableServiceVersionDetail struct { value *ServiceVersionDetail isSet bool @@ -1154,7 +1157,7 @@ func (v NullableServiceVersionDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceVersionDetail) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_service_version_detail_or_null.go b/fastly/model_service_version_detail_or_null.go index fe4c6fa..6d5c71d 100644 --- a/fastly/model_service_version_detail_or_null.go +++ b/fastly/model_service_version_detail_or_null.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -40,7 +39,7 @@ type ServiceVersionDetailOrNull struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // A list of environments where the service has been deployed. Environments []Environment `json:"environments,omitempty"` // List of backends associated to this service. @@ -63,13 +62,13 @@ type ServiceVersionDetailOrNull struct { RequestSettings []RequestSettingsResponse `json:"request_settings,omitempty"` // List of response objects for this service. ResponseObjects []ResponseObjectResponse `json:"response_objects,omitempty"` - Settings *VersionDetailSettings `json:"settings,omitempty"` + Settings *VersionDetailSettings `json:"settings,omitempty"` // List of VCL snippets for this service. Snippets []SchemasSnippetResponse `json:"snippets,omitempty"` // List of VCL files for this service. Vcls []SchemasVclResponse `json:"vcls,omitempty"` // A list of Wordpress rules with this service. - Wordpress []*map[string]any `json:"wordpress,omitempty"` + Wordpress []*map[string]any `json:"wordpress,omitempty"` AdditionalProperties map[string]any } @@ -153,7 +152,7 @@ func (o *ServiceVersionDetailOrNull) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetailOrNull) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -172,6 +171,7 @@ func (o *ServiceVersionDetailOrNull) HasComment() bool { func (o *ServiceVersionDetailOrNull) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *ServiceVersionDetailOrNull) SetCommentNil() { o.Comment.Set(nil) @@ -355,7 +355,7 @@ func (o *ServiceVersionDetailOrNull) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetailOrNull) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -374,6 +374,7 @@ func (o *ServiceVersionDetailOrNull) HasCreatedAt() bool { func (o *ServiceVersionDetailOrNull) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *ServiceVersionDetailOrNull) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -397,7 +398,7 @@ func (o *ServiceVersionDetailOrNull) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetailOrNull) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -416,6 +417,7 @@ func (o *ServiceVersionDetailOrNull) HasDeletedAt() bool { func (o *ServiceVersionDetailOrNull) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *ServiceVersionDetailOrNull) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -439,7 +441,7 @@ func (o *ServiceVersionDetailOrNull) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ServiceVersionDetailOrNull) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -458,6 +460,7 @@ func (o *ServiceVersionDetailOrNull) HasUpdatedAt() bool { func (o *ServiceVersionDetailOrNull) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *ServiceVersionDetailOrNull) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -1071,7 +1074,7 @@ func (o ServiceVersionDetailOrNull) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceVersionDetailOrNull) UnmarshalJSON(bytes []byte) (err error) { varServiceVersionDetailOrNull := _ServiceVersionDetailOrNull{} @@ -1114,7 +1117,7 @@ func (o *ServiceVersionDetailOrNull) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceVersionDetailOrNull is a helper abstraction for handling nullable serviceversiondetailornull types. +// NullableServiceVersionDetailOrNull is a helper abstraction for handling nullable serviceversiondetailornull types. type NullableServiceVersionDetailOrNull struct { value *ServiceVersionDetailOrNull isSet bool @@ -1154,7 +1157,7 @@ func (v NullableServiceVersionDetailOrNull) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceVersionDetailOrNull) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_serviceusagemetric.go b/fastly/model_serviceusagemetric.go index 8025664..c4e67f2 100644 --- a/fastly/model_serviceusagemetric.go +++ b/fastly/model_serviceusagemetric.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -25,7 +24,7 @@ type Serviceusagemetric struct { // Name of the service associated with the usage. ServiceName *string `json:"service_name,omitempty"` // The quantity of the usage for the billing period. Amount will be in the units provided in the parent object (e.g., a quantity of `1.3` with a unit of `gb` would have a usage amount of 1.3 gigabytes). - UsageUnits *float32 `json:"usage_units,omitempty"` + UsageUnits *float32 `json:"usage_units,omitempty"` AdditionalProperties map[string]any } @@ -201,7 +200,7 @@ func (o Serviceusagemetric) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Serviceusagemetric) UnmarshalJSON(bytes []byte) (err error) { varServiceusagemetric := _Serviceusagemetric{} @@ -222,7 +221,7 @@ func (o *Serviceusagemetric) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceusagemetric is a helper abstraction for handling nullable serviceusagemetric types. +// NullableServiceusagemetric is a helper abstraction for handling nullable serviceusagemetric types. type NullableServiceusagemetric struct { value *Serviceusagemetric isSet bool @@ -262,7 +261,7 @@ func (v NullableServiceusagemetric) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceusagemetric) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_serviceusagemetrics.go b/fastly/model_serviceusagemetrics.go index 5af3a2b..f94f08a 100644 --- a/fastly/model_serviceusagemetrics.go +++ b/fastly/model_serviceusagemetrics.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Serviceusagemetrics struct for Serviceusagemetrics type Serviceusagemetrics struct { - Data *ServiceusagemetricsData `json:"data,omitempty"` + Data *ServiceusagemetricsData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o Serviceusagemetrics) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Serviceusagemetrics) UnmarshalJSON(bytes []byte) (err error) { varServiceusagemetrics := _Serviceusagemetrics{} @@ -108,7 +107,7 @@ func (o *Serviceusagemetrics) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceusagemetrics is a helper abstraction for handling nullable serviceusagemetrics types. +// NullableServiceusagemetrics is a helper abstraction for handling nullable serviceusagemetrics types. type NullableServiceusagemetrics struct { value *Serviceusagemetrics isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceusagemetrics) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceusagemetrics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_serviceusagemetrics_data.go b/fastly/model_serviceusagemetrics_data.go index d584321..ce748c8 100644 --- a/fastly/model_serviceusagemetrics_data.go +++ b/fastly/model_serviceusagemetrics_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -28,9 +27,9 @@ type ServiceusagemetricsData struct { // The usage type identifier for the usage. This is a single, billable metric for the product. UsageType *string `json:"usage_type,omitempty"` // The unit for the usage as shown on an invoice. If there is no explicit unit, this field will be \"unit\" (e.g., a request with `product_id` of 'cdn_usage' and `usage_type` of 'North America Requests' has no unit, and will return \"unit\"). - Unit *string `json:"unit,omitempty"` - Details []Serviceusagemetric `json:"details,omitempty"` - Meta *Metadata `json:"meta,omitempty"` + Unit *string `json:"unit,omitempty"` + Details []Serviceusagemetric `json:"details,omitempty"` + Meta *Metadata `json:"meta,omitempty"` AdditionalProperties map[string]any } @@ -311,7 +310,7 @@ func (o ServiceusagemetricsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ServiceusagemetricsData) UnmarshalJSON(bytes []byte) (err error) { varServiceusagemetricsData := _ServiceusagemetricsData{} @@ -335,7 +334,7 @@ func (o *ServiceusagemetricsData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceusagemetricsData is a helper abstraction for handling nullable serviceusagemetricsdata types. +// NullableServiceusagemetricsData is a helper abstraction for handling nullable serviceusagemetricsdata types. type NullableServiceusagemetricsData struct { value *ServiceusagemetricsData isSet bool @@ -375,7 +374,7 @@ func (v NullableServiceusagemetricsData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceusagemetricsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_serviceusagetype.go b/fastly/model_serviceusagetype.go index bcfbb7d..c23b32f 100644 --- a/fastly/model_serviceusagetype.go +++ b/fastly/model_serviceusagetype.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type Serviceusagetype struct { // The product identifier associated with the usage type. This corresponds to a Fastly product offering. ProductID *string `json:"product_id,omitempty"` // Full name of the product usage type as it might appear on a customer's invoice. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o Serviceusagetype) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Serviceusagetype) UnmarshalJSON(bytes []byte) (err error) { varServiceusagetype := _Serviceusagetype{} @@ -147,7 +146,7 @@ func (o *Serviceusagetype) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceusagetype is a helper abstraction for handling nullable serviceusagetype types. +// NullableServiceusagetype is a helper abstraction for handling nullable serviceusagetype types. type NullableServiceusagetype struct { value *Serviceusagetype isSet bool @@ -187,7 +186,7 @@ func (v NullableServiceusagetype) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceusagetype) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_serviceusagetypes.go b/fastly/model_serviceusagetypes.go index e1d80e5..03520b5 100644 --- a/fastly/model_serviceusagetypes.go +++ b/fastly/model_serviceusagetypes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Serviceusagetypes struct for Serviceusagetypes type Serviceusagetypes struct { - Data []Serviceusagetype `json:"data,omitempty"` + Data []Serviceusagetype `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o Serviceusagetypes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Serviceusagetypes) UnmarshalJSON(bytes []byte) (err error) { varServiceusagetypes := _Serviceusagetypes{} @@ -108,7 +107,7 @@ func (o *Serviceusagetypes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableServiceusagetypes is a helper abstraction for handling nullable serviceusagetypes types. +// NullableServiceusagetypes is a helper abstraction for handling nullable serviceusagetypes types. type NullableServiceusagetypes struct { value *Serviceusagetypes isSet bool @@ -148,7 +147,7 @@ func (v NullableServiceusagetypes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableServiceusagetypes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_set_configuration.go b/fastly/model_set_configuration.go index 9f733aa..2629bab 100644 --- a/fastly/model_set_configuration.go +++ b/fastly/model_set_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type SetConfiguration struct { // The new workspace_id. Required in the `PUT` request body when `product_id` is `ngwaf`. Optional in the `PATCH` request body for `ngwaf`. WorkspaceID *string `json:"workspace_id,omitempty"` // The new traffic ramp. Optional in the `PATCH` request body for `ngwaf`. - TrafficRamp *string `json:"traffic_ramp,omitempty"` + TrafficRamp *string `json:"traffic_ramp,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o SetConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SetConfiguration) UnmarshalJSON(bytes []byte) (err error) { varSetConfiguration := _SetConfiguration{} @@ -147,7 +146,7 @@ func (o *SetConfiguration) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSetConfiguration is a helper abstraction for handling nullable setconfiguration types. +// NullableSetConfiguration is a helper abstraction for handling nullable setconfiguration types. type NullableSetConfiguration struct { value *SetConfiguration isSet bool @@ -187,7 +186,7 @@ func (v NullableSetConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSetConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_set_workspace_id.go b/fastly/model_set_workspace_id.go index e7f8a65..badd9df 100644 --- a/fastly/model_set_workspace_id.go +++ b/fastly/model_set_workspace_id.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // SetWorkspaceID struct for SetWorkspaceID type SetWorkspaceID struct { // The workspace to link with the Next-Gen WAF product. Note this body is only supported and required when `product_id` is `ngwaf` - WorkspaceID *string `json:"workspace_id,omitempty"` + WorkspaceID *string `json:"workspace_id,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o SetWorkspaceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SetWorkspaceID) UnmarshalJSON(bytes []byte) (err error) { varSetWorkspaceID := _SetWorkspaceID{} @@ -109,7 +108,7 @@ func (o *SetWorkspaceID) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSetWorkspaceID is a helper abstraction for handling nullable setworkspaceid types. +// NullableSetWorkspaceID is a helper abstraction for handling nullable setworkspaceid types. type NullableSetWorkspaceID struct { value *SetWorkspaceID isSet bool @@ -149,7 +148,7 @@ func (v NullableSetWorkspaceID) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSetWorkspaceID) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_settings.go b/fastly/model_settings.go index 5283cfd..e0587df 100644 --- a/fastly/model_settings.go +++ b/fastly/model_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -27,7 +26,7 @@ type Settings struct { GeneralStaleIfError *bool `json:"general.stale_if_error,omitempty"` // The default time-to-live (TTL) for serving the stale object for the version. GeneralStaleIfErrorTTL *int32 `json:"general.stale_if_error_ttl,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _Settings Settings @@ -210,7 +209,7 @@ func (o Settings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Settings) UnmarshalJSON(bytes []byte) (err error) { varSettings := _Settings{} @@ -231,7 +230,7 @@ func (o *Settings) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSettings is a helper abstraction for handling nullable settings types. +// NullableSettings is a helper abstraction for handling nullable settings types. type NullableSettings struct { value *Settings isSet bool @@ -271,7 +270,7 @@ func (v NullableSettings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSettings) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_settings_response.go b/fastly/model_settings_response.go index d17c99b..cb7e1b4 100644 --- a/fastly/model_settings_response.go +++ b/fastly/model_settings_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,10 +25,10 @@ type SettingsResponse struct { // Enables serving a stale object if there is an error. GeneralStaleIfError *bool `json:"general.stale_if_error,omitempty"` // The default time-to-live (TTL) for serving the stale object for the version. - GeneralStaleIfErrorTTL *int32 `json:"general.stale_if_error_ttl,omitempty"` - ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` - AdditionalProperties map[string]any + GeneralStaleIfErrorTTL *int32 `json:"general.stale_if_error_ttl,omitempty"` + ServiceID *string `json:"service_id,omitempty"` + Version *int32 `json:"version,omitempty"` + AdditionalProperties map[string]any } type _SettingsResponse SettingsResponse @@ -282,7 +281,7 @@ func (o SettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SettingsResponse) UnmarshalJSON(bytes []byte) (err error) { varSettingsResponse := _SettingsResponse{} @@ -305,7 +304,7 @@ func (o *SettingsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSettingsResponse is a helper abstraction for handling nullable settingsresponse types. +// NullableSettingsResponse is a helper abstraction for handling nullable settingsresponse types. type NullableSettingsResponse struct { value *SettingsResponse isSet bool @@ -345,7 +344,7 @@ func (v NullableSettingsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSettingsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_signing_key.go b/fastly/model_signing_key.go index 7867251..078739b 100644 --- a/fastly/model_signing_key.go +++ b/fastly/model_signing_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // SigningKey Used to verify signatures of client keys. type SigningKey struct { // A Base64-encoded Ed25519 public key that can be used to verify signatures of client keys. - SigningKey *string `json:"signing_key,omitempty"` + SigningKey *string `json:"signing_key,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o SigningKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SigningKey) UnmarshalJSON(bytes []byte) (err error) { varSigningKey := _SigningKey{} @@ -109,7 +108,7 @@ func (o *SigningKey) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSigningKey is a helper abstraction for handling nullable signingkey types. +// NullableSigningKey is a helper abstraction for handling nullable signingkey types. type NullableSigningKey struct { value *SigningKey isSet bool @@ -149,7 +148,7 @@ func (v NullableSigningKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSigningKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet.go b/fastly/model_snippet.go index 2a197d4..e93a0b5 100644 --- a/fastly/model_snippet.go +++ b/fastly/model_snippet.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type Snippet struct { // Priority determines execution order. Lower numbers execute first. Priority *string `json:"priority,omitempty"` // Sets the snippet version. - Dynamic *string `json:"dynamic,omitempty"` + Dynamic *string `json:"dynamic,omitempty"` AdditionalProperties map[string]any } @@ -243,7 +242,7 @@ func (o Snippet) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Snippet) UnmarshalJSON(bytes []byte) (err error) { varSnippet := _Snippet{} @@ -265,7 +264,7 @@ func (o *Snippet) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippet is a helper abstraction for handling nullable snippet types. +// NullableSnippet is a helper abstraction for handling nullable snippet types. type NullableSnippet struct { value *Snippet isSet bool @@ -305,7 +304,7 @@ func (v NullableSnippet) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_all_of.go b/fastly/model_snippet_all_of.go index 70cf432..61afc21 100644 --- a/fastly/model_snippet_all_of.go +++ b/fastly/model_snippet_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // SnippetAllOf struct for SnippetAllOf type SnippetAllOf struct { // Sets the snippet version. - Dynamic *string `json:"dynamic,omitempty"` + Dynamic *string `json:"dynamic,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o SnippetAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetAllOf) UnmarshalJSON(bytes []byte) (err error) { varSnippetAllOf := _SnippetAllOf{} @@ -109,7 +108,7 @@ func (o *SnippetAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetAllOf is a helper abstraction for handling nullable snippetallof types. +// NullableSnippetAllOf is a helper abstraction for handling nullable snippetallof types. type NullableSnippetAllOf struct { value *SnippetAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableSnippetAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_common.go b/fastly/model_snippet_common.go index be148d5..9485377 100644 --- a/fastly/model_snippet_common.go +++ b/fastly/model_snippet_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type SnippetCommon struct { // The VCL code that specifies exactly what the snippet does. Content *string `json:"content,omitempty"` // Priority determines execution order. Lower numbers execute first. - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` AdditionalProperties map[string]any } @@ -206,7 +205,7 @@ func (o SnippetCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetCommon) UnmarshalJSON(bytes []byte) (err error) { varSnippetCommon := _SnippetCommon{} @@ -227,7 +226,7 @@ func (o *SnippetCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetCommon is a helper abstraction for handling nullable snippetcommon types. +// NullableSnippetCommon is a helper abstraction for handling nullable snippetcommon types. type NullableSnippetCommon struct { value *SnippetCommon isSet bool @@ -267,7 +266,7 @@ func (v NullableSnippetCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_response.go b/fastly/model_snippet_response.go index b032a50..779bd13 100644 --- a/fastly/model_snippet_response.go +++ b/fastly/model_snippet_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -36,10 +35,10 @@ type SnippetResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o *SnippetResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -258,6 +257,7 @@ func (o *SnippetResponse) HasCreatedAt() bool { func (o *SnippetResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SnippetResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -281,7 +281,7 @@ func (o *SnippetResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -300,6 +300,7 @@ func (o *SnippetResponse) HasDeletedAt() bool { func (o *SnippetResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SnippetResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -323,7 +324,7 @@ func (o *SnippetResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -342,6 +343,7 @@ func (o *SnippetResponse) HasUpdatedAt() bool { func (o *SnippetResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SnippetResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -494,7 +496,7 @@ func (o SnippetResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetResponse) UnmarshalJSON(bytes []byte) (err error) { varSnippetResponse := _SnippetResponse{} @@ -522,7 +524,7 @@ func (o *SnippetResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetResponse is a helper abstraction for handling nullable snippetresponse types. +// NullableSnippetResponse is a helper abstraction for handling nullable snippetresponse types. type NullableSnippetResponse struct { value *SnippetResponse isSet bool @@ -562,7 +564,7 @@ func (v NullableSnippetResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_response_common.go b/fastly/model_snippet_response_common.go index 1ef5e9a..77a3039 100644 --- a/fastly/model_snippet_response_common.go +++ b/fastly/model_snippet_response_common.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -26,10 +25,10 @@ type SnippetResponseCommon struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *SnippetResponseCommon) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponseCommon) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -84,6 +83,7 @@ func (o *SnippetResponseCommon) HasCreatedAt() bool { func (o *SnippetResponseCommon) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SnippetResponseCommon) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -107,7 +107,7 @@ func (o *SnippetResponseCommon) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponseCommon) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -126,6 +126,7 @@ func (o *SnippetResponseCommon) HasDeletedAt() bool { func (o *SnippetResponseCommon) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SnippetResponseCommon) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -149,7 +150,7 @@ func (o *SnippetResponseCommon) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponseCommon) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -168,6 +169,7 @@ func (o *SnippetResponseCommon) HasUpdatedAt() bool { func (o *SnippetResponseCommon) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SnippetResponseCommon) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -305,7 +307,7 @@ func (o SnippetResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetResponseCommon) UnmarshalJSON(bytes []byte) (err error) { varSnippetResponseCommon := _SnippetResponseCommon{} @@ -328,7 +330,7 @@ func (o *SnippetResponseCommon) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetResponseCommon is a helper abstraction for handling nullable snippetresponsecommon types. +// NullableSnippetResponseCommon is a helper abstraction for handling nullable snippetresponsecommon types. type NullableSnippetResponseCommon struct { value *SnippetResponseCommon isSet bool @@ -368,7 +370,7 @@ func (v NullableSnippetResponseCommon) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetResponseCommon) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_response_common_all_of.go b/fastly/model_snippet_response_common_all_of.go index 3426e76..2c15074 100644 --- a/fastly/model_snippet_response_common_all_of.go +++ b/fastly/model_snippet_response_common_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type SnippetResponseCommonAllOf struct { ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o SnippetResponseCommonAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetResponseCommonAllOf) UnmarshalJSON(bytes []byte) (err error) { varSnippetResponseCommonAllOf := _SnippetResponseCommonAllOf{} @@ -183,7 +182,7 @@ func (o *SnippetResponseCommonAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetResponseCommonAllOf is a helper abstraction for handling nullable snippetresponsecommonallof types. +// NullableSnippetResponseCommonAllOf is a helper abstraction for handling nullable snippetresponsecommonallof types. type NullableSnippetResponseCommonAllOf struct { value *SnippetResponseCommonAllOf isSet bool @@ -223,7 +222,7 @@ func (v NullableSnippetResponseCommonAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetResponseCommonAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_response_post.go b/fastly/model_snippet_response_post.go index cb59ea4..c1094fd 100644 --- a/fastly/model_snippet_response_post.go +++ b/fastly/model_snippet_response_post.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -36,10 +35,10 @@ type SnippetResponsePost struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // String representing the number identifying a version of the service. - Version *string `json:"version,omitempty"` - ID *string `json:"id,omitempty"` + Version *string `json:"version,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o *SnippetResponsePost) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponsePost) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -258,6 +257,7 @@ func (o *SnippetResponsePost) HasCreatedAt() bool { func (o *SnippetResponsePost) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *SnippetResponsePost) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -281,7 +281,7 @@ func (o *SnippetResponsePost) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponsePost) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -300,6 +300,7 @@ func (o *SnippetResponsePost) HasDeletedAt() bool { func (o *SnippetResponsePost) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *SnippetResponsePost) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -323,7 +324,7 @@ func (o *SnippetResponsePost) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnippetResponsePost) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -342,6 +343,7 @@ func (o *SnippetResponsePost) HasUpdatedAt() bool { func (o *SnippetResponsePost) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *SnippetResponsePost) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -494,7 +496,7 @@ func (o SnippetResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetResponsePost) UnmarshalJSON(bytes []byte) (err error) { varSnippetResponsePost := _SnippetResponsePost{} @@ -522,7 +524,7 @@ func (o *SnippetResponsePost) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetResponsePost is a helper abstraction for handling nullable snippetresponsepost types. +// NullableSnippetResponsePost is a helper abstraction for handling nullable snippetresponsepost types. type NullableSnippetResponsePost struct { value *SnippetResponsePost isSet bool @@ -562,7 +564,7 @@ func (v NullableSnippetResponsePost) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetResponsePost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_with_dynamic_number.go b/fastly/model_snippet_with_dynamic_number.go index 4d037db..c76d2c9 100644 --- a/fastly/model_snippet_with_dynamic_number.go +++ b/fastly/model_snippet_with_dynamic_number.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type SnippetWithDynamicNumber struct { // Priority determines execution order. Lower numbers execute first. Priority *string `json:"priority,omitempty"` // Sets the snippet version. - Dynamic *float32 `json:"dynamic,omitempty"` + Dynamic *float32 `json:"dynamic,omitempty"` AdditionalProperties map[string]any } @@ -243,7 +242,7 @@ func (o SnippetWithDynamicNumber) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetWithDynamicNumber) UnmarshalJSON(bytes []byte) (err error) { varSnippetWithDynamicNumber := _SnippetWithDynamicNumber{} @@ -265,7 +264,7 @@ func (o *SnippetWithDynamicNumber) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSnippetWithDynamicNumber is a helper abstraction for handling nullable snippetwithdynamicnumber types. +// NullableSnippetWithDynamicNumber is a helper abstraction for handling nullable snippetwithdynamicnumber types. type NullableSnippetWithDynamicNumber struct { value *SnippetWithDynamicNumber isSet bool @@ -305,7 +304,7 @@ func (v NullableSnippetWithDynamicNumber) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetWithDynamicNumber) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_snippet_with_dynamic_number_all_of.go b/fastly/model_snippet_with_dynamic_number_all_of.go index 6b456dd..074cdd0 100644 --- a/fastly/model_snippet_with_dynamic_number_all_of.go +++ b/fastly/model_snippet_with_dynamic_number_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // SnippetWithDynamicNumberAllOf struct for SnippetWithDynamicNumberAllOf type SnippetWithDynamicNumberAllOf struct { // Sets the snippet version. - Dynamic *float32 `json:"dynamic,omitempty"` + Dynamic *float32 `json:"dynamic,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o SnippetWithDynamicNumberAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SnippetWithDynamicNumberAllOf) UnmarshalJSON(bytes []byte) (err error) { varSnippetWithDynamicNumberAllOf := _SnippetWithDynamicNumberAllOf{} @@ -109,7 +108,7 @@ func (o *SnippetWithDynamicNumberAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableSnippetWithDynamicNumberAllOf is a helper abstraction for handling nullable snippetwithdynamicnumberallof types. +// NullableSnippetWithDynamicNumberAllOf is a helper abstraction for handling nullable snippetwithdynamicnumberallof types. type NullableSnippetWithDynamicNumberAllOf struct { value *SnippetWithDynamicNumberAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableSnippetWithDynamicNumberAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSnippetWithDynamicNumberAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_star.go b/fastly/model_star.go index 52af8ed..2460c55 100644 --- a/fastly/model_star.go +++ b/fastly/model_star.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Star struct for Star type Star struct { - Data *StarData `json:"data,omitempty"` + Data *StarData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o Star) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Star) UnmarshalJSON(bytes []byte) (err error) { varStar := _Star{} @@ -108,7 +107,7 @@ func (o *Star) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStar is a helper abstraction for handling nullable star types. +// NullableStar is a helper abstraction for handling nullable star types. type NullableStar struct { value *Star isSet bool @@ -148,7 +147,7 @@ func (v NullableStar) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStar) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_star_data.go b/fastly/model_star_data.go index 37fe1bf..48f4187 100644 --- a/fastly/model_star_data.go +++ b/fastly/model_star_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // StarData struct for StarData type StarData struct { - Type *TypeStar `json:"type,omitempty"` - Relationships *RelationshipsForStar `json:"relationships,omitempty"` + Type *TypeStar `json:"type,omitempty"` + Relationships *RelationshipsForStar `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o StarData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *StarData) UnmarshalJSON(bytes []byte) (err error) { varStarData := _StarData{} @@ -149,7 +148,7 @@ func (o *StarData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStarData is a helper abstraction for handling nullable stardata types. +// NullableStarData is a helper abstraction for handling nullable stardata types. type NullableStarData struct { value *StarData isSet bool @@ -189,7 +188,7 @@ func (v NullableStarData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStarData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_star_response.go b/fastly/model_star_response.go index 8c508c5..4f7ff38 100644 --- a/fastly/model_star_response.go +++ b/fastly/model_star_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // StarResponse struct for StarResponse type StarResponse struct { - Data any `json:"data,omitempty"` + Data any `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -44,7 +43,7 @@ func NewStarResponseWithDefaults() *StarResponse { // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StarResponse) GetData() any { - if o == nil { + if o == nil { var ret any return ret } @@ -91,7 +90,7 @@ func (o StarResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *StarResponse) UnmarshalJSON(bytes []byte) (err error) { varStarResponse := _StarResponse{} @@ -109,7 +108,7 @@ func (o *StarResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStarResponse is a helper abstraction for handling nullable starresponse types. +// NullableStarResponse is a helper abstraction for handling nullable starresponse types. type NullableStarResponse struct { value *StarResponse isSet bool @@ -149,7 +148,7 @@ func (v NullableStarResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStarResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_star_response_all_of.go b/fastly/model_star_response_all_of.go index eb1b62c..090b0f3 100644 --- a/fastly/model_star_response_all_of.go +++ b/fastly/model_star_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // StarResponseAllOf struct for StarResponseAllOf type StarResponseAllOf struct { - Data any `json:"data,omitempty"` + Data any `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -44,7 +43,7 @@ func NewStarResponseAllOfWithDefaults() *StarResponseAllOf { // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *StarResponseAllOf) GetData() any { - if o == nil { + if o == nil { var ret any return ret } @@ -91,7 +90,7 @@ func (o StarResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *StarResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varStarResponseAllOf := _StarResponseAllOf{} @@ -109,7 +108,7 @@ func (o *StarResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStarResponseAllOf is a helper abstraction for handling nullable starresponseallof types. +// NullableStarResponseAllOf is a helper abstraction for handling nullable starresponseallof types. type NullableStarResponseAllOf struct { value *StarResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableStarResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStarResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_stats.go b/fastly/model_stats.go index 2a96473..0156fa2 100644 --- a/fastly/model_stats.go +++ b/fastly/model_stats.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Stats struct for Stats type Stats struct { - Stats *map[string]Results `json:"stats,omitempty"` + Stats *map[string]Results `json:"stats,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o Stats) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Stats) UnmarshalJSON(bytes []byte) (err error) { varStats := _Stats{} @@ -108,7 +107,7 @@ func (o *Stats) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStats is a helper abstraction for handling nullable stats types. +// NullableStats is a helper abstraction for handling nullable stats types. type NullableStats struct { value *Stats isSet bool @@ -148,7 +147,7 @@ func (v NullableStats) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStats) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_store.go b/fastly/model_store.go index 4040bae..9a058c1 100644 --- a/fastly/model_store.go +++ b/fastly/model_store.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // Store struct for Store type Store struct { // A human-readable name for the store. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o Store) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Store) UnmarshalJSON(bytes []byte) (err error) { varStore := _Store{} @@ -109,7 +108,7 @@ func (o *Store) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStore is a helper abstraction for handling nullable store types. +// NullableStore is a helper abstraction for handling nullable store types. type NullableStore struct { value *Store isSet bool @@ -149,7 +148,7 @@ func (v NullableStore) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStore) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_store_response.go b/fastly/model_store_response.go index 5427b29..93d992d 100644 --- a/fastly/model_store_response.go +++ b/fastly/model_store_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type StoreResponse struct { // ID of the store. ID *string `json:"id,omitempty"` // A human-readable name for the store. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o StoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *StoreResponse) UnmarshalJSON(bytes []byte) (err error) { varStoreResponse := _StoreResponse{} @@ -147,7 +146,7 @@ func (o *StoreResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableStoreResponse is a helper abstraction for handling nullable storeresponse types. +// NullableStoreResponse is a helper abstraction for handling nullable storeresponse types. type NullableStoreResponse struct { value *StoreResponse isSet bool @@ -187,7 +186,7 @@ func (v NullableStoreResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableStoreResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_sudo_generic_token_error.go b/fastly/model_sudo_generic_token_error.go index 487a937..38ecaf4 100644 --- a/fastly/model_sudo_generic_token_error.go +++ b/fastly/model_sudo_generic_token_error.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // SudoGenericTokenError struct for SudoGenericTokenError type SudoGenericTokenError struct { - Msg *string `json:"msg,omitempty"` + Msg *string `json:"msg,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o SudoGenericTokenError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SudoGenericTokenError) UnmarshalJSON(bytes []byte) (err error) { varSudoGenericTokenError := _SudoGenericTokenError{} @@ -108,7 +107,7 @@ func (o *SudoGenericTokenError) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSudoGenericTokenError is a helper abstraction for handling nullable sudogenerictokenerror types. +// NullableSudoGenericTokenError is a helper abstraction for handling nullable sudogenerictokenerror types. type NullableSudoGenericTokenError struct { value *SudoGenericTokenError isSet bool @@ -148,7 +147,7 @@ func (v NullableSudoGenericTokenError) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSudoGenericTokenError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_sudo_request.go b/fastly/model_sudo_request.go index 2c61789..e20fac3 100644 --- a/fastly/model_sudo_request.go +++ b/fastly/model_sudo_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // SudoRequest struct for SudoRequest type SudoRequest struct { - Username string `json:"username"` - Password string `json:"password"` - ExpiryTime *string `json:"expiry_time,omitempty"` + Username string `json:"username"` + Password string `json:"password"` + ExpiryTime *string `json:"expiry_time,omitempty"` AdditionalProperties map[string]any } @@ -59,7 +58,7 @@ func (o *SudoRequest) GetUsername() string { // GetUsernameOk returns a tuple with the Username field value // and a boolean to check if the value has been set. func (o *SudoRequest) GetUsernameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Username, true @@ -83,7 +82,7 @@ func (o *SudoRequest) GetPassword() string { // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. func (o *SudoRequest) GetPasswordOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Password, true @@ -148,7 +147,7 @@ func (o SudoRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SudoRequest) UnmarshalJSON(bytes []byte) (err error) { varSudoRequest := _SudoRequest{} @@ -168,7 +167,7 @@ func (o *SudoRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSudoRequest is a helper abstraction for handling nullable sudorequest types. +// NullableSudoRequest is a helper abstraction for handling nullable sudorequest types. type NullableSudoRequest struct { value *SudoRequest isSet bool @@ -208,7 +207,7 @@ func (v NullableSudoRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSudoRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_sudo_response.go b/fastly/model_sudo_response.go index 076178e..a499d88 100644 --- a/fastly/model_sudo_response.go +++ b/fastly/model_sudo_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -21,7 +20,7 @@ import ( // SudoResponse struct for SudoResponse type SudoResponse struct { // A UTC time-stamp of when sudo access will expire. If blank, sudo access expires five minutes after the request. - ExpiryTime *time.Time `json:"expiry_time,omitempty"` + ExpiryTime *time.Time `json:"expiry_time,omitempty"` AdditionalProperties map[string]any } @@ -92,7 +91,7 @@ func (o SudoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *SudoResponse) UnmarshalJSON(bytes []byte) (err error) { varSudoResponse := _SudoResponse{} @@ -110,7 +109,7 @@ func (o *SudoResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableSudoResponse is a helper abstraction for handling nullable sudoresponse types. +// NullableSudoResponse is a helper abstraction for handling nullable sudoresponse types. type NullableSudoResponse struct { value *SudoResponse isSet bool @@ -150,7 +149,7 @@ func (v NullableSudoResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableSudoResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_timestamps.go b/fastly/model_timestamps.go index 449aee3..a032c81 100644 --- a/fastly/model_timestamps.go +++ b/fastly/model_timestamps.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,7 +24,7 @@ type Timestamps struct { // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -61,7 +60,7 @@ func (o *Timestamps) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Timestamps) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -80,6 +79,7 @@ func (o *Timestamps) HasCreatedAt() bool { func (o *Timestamps) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *Timestamps) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -103,7 +103,7 @@ func (o *Timestamps) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Timestamps) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -122,6 +122,7 @@ func (o *Timestamps) HasDeletedAt() bool { func (o *Timestamps) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *Timestamps) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -145,7 +146,7 @@ func (o *Timestamps) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Timestamps) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -164,6 +165,7 @@ func (o *Timestamps) HasUpdatedAt() bool { func (o *Timestamps) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *Timestamps) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -196,7 +198,7 @@ func (o Timestamps) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Timestamps) UnmarshalJSON(bytes []byte) (err error) { varTimestamps := _Timestamps{} @@ -216,7 +218,7 @@ func (o *Timestamps) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTimestamps is a helper abstraction for handling nullable timestamps types. +// NullableTimestamps is a helper abstraction for handling nullable timestamps types. type NullableTimestamps struct { value *Timestamps isSet bool @@ -256,7 +258,7 @@ func (v NullableTimestamps) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTimestamps) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_timestamps_no_delete.go b/fastly/model_timestamps_no_delete.go index 8d9067b..d9ccdc6 100644 --- a/fastly/model_timestamps_no_delete.go +++ b/fastly/model_timestamps_no_delete.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -23,7 +22,7 @@ type TimestampsNoDelete struct { // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -59,7 +58,7 @@ func (o *TimestampsNoDelete) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TimestampsNoDelete) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -78,6 +77,7 @@ func (o *TimestampsNoDelete) HasCreatedAt() bool { func (o *TimestampsNoDelete) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TimestampsNoDelete) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -101,7 +101,7 @@ func (o *TimestampsNoDelete) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TimestampsNoDelete) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -120,6 +120,7 @@ func (o *TimestampsNoDelete) HasUpdatedAt() bool { func (o *TimestampsNoDelete) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TimestampsNoDelete) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -149,7 +150,7 @@ func (o TimestampsNoDelete) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TimestampsNoDelete) UnmarshalJSON(bytes []byte) (err error) { varTimestampsNoDelete := _TimestampsNoDelete{} @@ -168,7 +169,7 @@ func (o *TimestampsNoDelete) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTimestampsNoDelete is a helper abstraction for handling nullable timestampsnodelete types. +// NullableTimestampsNoDelete is a helper abstraction for handling nullable timestampsnodelete types. type NullableTimestampsNoDelete struct { value *TimestampsNoDelete isSet bool @@ -208,7 +209,7 @@ func (v NullableTimestampsNoDelete) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTimestampsNoDelete) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activation.go b/fastly/model_tls_activation.go index 1cf90d2..3cf3f68 100644 --- a/fastly/model_tls_activation.go +++ b/fastly/model_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivation struct for TLSActivation type TLSActivation struct { - Data *TLSActivationData `json:"data,omitempty"` + Data *TLSActivationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivation) UnmarshalJSON(bytes []byte) (err error) { varTLSActivation := _TLSActivation{} @@ -108,7 +107,7 @@ func (o *TLSActivation) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivation is a helper abstraction for handling nullable tlsactivation types. +// NullableTLSActivation is a helper abstraction for handling nullable tlsactivation types. type NullableTLSActivation struct { value *TLSActivation isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activation_data.go b/fastly/model_tls_activation_data.go index 82a8821..6a5da6e 100644 --- a/fastly/model_tls_activation_data.go +++ b/fastly/model_tls_activation_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationData struct for TLSActivationData type TLSActivationData struct { - Type *TypeTLSActivation `json:"type,omitempty"` - Relationships *RelationshipsForTLSActivation `json:"relationships,omitempty"` + Type *TypeTLSActivation `json:"type,omitempty"` + Relationships *RelationshipsForTLSActivation `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o TLSActivationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationData) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationData := _TLSActivationData{} @@ -149,7 +148,7 @@ func (o *TLSActivationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivationData is a helper abstraction for handling nullable tlsactivationdata types. +// NullableTLSActivationData is a helper abstraction for handling nullable tlsactivationdata types. type NullableTLSActivationData struct { value *TLSActivationData isSet bool @@ -189,7 +188,7 @@ func (v NullableTLSActivationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activation_response.go b/fastly/model_tls_activation_response.go index 9b1e7f7..e5f82e4 100644 --- a/fastly/model_tls_activation_response.go +++ b/fastly/model_tls_activation_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationResponse struct for TLSActivationResponse type TLSActivationResponse struct { - Data *TLSActivationResponseData `json:"data,omitempty"` + Data *TLSActivationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSActivationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationResponse := _TLSActivationResponse{} @@ -108,7 +107,7 @@ func (o *TLSActivationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivationResponse is a helper abstraction for handling nullable tlsactivationresponse types. +// NullableTLSActivationResponse is a helper abstraction for handling nullable tlsactivationresponse types. type NullableTLSActivationResponse struct { value *TLSActivationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSActivationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activation_response_data.go b/fastly/model_tls_activation_response_data.go index 6a564cc..e8673ef 100644 --- a/fastly/model_tls_activation_response_data.go +++ b/fastly/model_tls_activation_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationResponseData struct for TLSActivationResponseData type TLSActivationResponseData struct { - Type *TypeTLSActivation `json:"type,omitempty"` - Relationships *RelationshipsForTLSActivation `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` + Type *TypeTLSActivation `json:"type,omitempty"` + Relationships *RelationshipsForTLSActivation `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSActivationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationResponseData := _TLSActivationResponseData{} @@ -223,7 +222,7 @@ func (o *TLSActivationResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivationResponseData is a helper abstraction for handling nullable tlsactivationresponsedata types. +// NullableTLSActivationResponseData is a helper abstraction for handling nullable tlsactivationresponsedata types. type NullableTLSActivationResponseData struct { value *TLSActivationResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSActivationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activation_response_data_all_of.go b/fastly/model_tls_activation_response_data_all_of.go index a1ad534..554bff4 100644 --- a/fastly/model_tls_activation_response_data_all_of.go +++ b/fastly/model_tls_activation_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationResponseDataAllOf struct for TLSActivationResponseDataAllOf type TLSActivationResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *Timestamps `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *Timestamps `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o TLSActivationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationResponseDataAllOf := _TLSActivationResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *TLSActivationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSActivationResponseDataAllOf is a helper abstraction for handling nullable tlsactivationresponsedataallof types. +// NullableTLSActivationResponseDataAllOf is a helper abstraction for handling nullable tlsactivationresponsedataallof types. type NullableTLSActivationResponseDataAllOf struct { value *TLSActivationResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableTLSActivationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activations_response.go b/fastly/model_tls_activations_response.go index f5d8722..0cd8572 100644 --- a/fastly/model_tls_activations_response.go +++ b/fastly/model_tls_activations_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationsResponse struct for TLSActivationsResponse type TLSActivationsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSActivationResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSActivationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSActivationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationsResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationsResponse := _TLSActivationsResponse{} @@ -182,7 +181,7 @@ func (o *TLSActivationsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivationsResponse is a helper abstraction for handling nullable tlsactivationsresponse types. +// NullableTLSActivationsResponse is a helper abstraction for handling nullable tlsactivationsresponse types. type NullableTLSActivationsResponse struct { value *TLSActivationsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSActivationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_activations_response_all_of.go b/fastly/model_tls_activations_response_all_of.go index 9c184a7..3fb3cae 100644 --- a/fastly/model_tls_activations_response_all_of.go +++ b/fastly/model_tls_activations_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSActivationsResponseAllOf struct for TLSActivationsResponseAllOf type TLSActivationsResponseAllOf struct { - Data []TLSActivationResponseData `json:"data,omitempty"` + Data []TLSActivationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSActivationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSActivationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSActivationsResponseAllOf := _TLSActivationsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSActivationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSActivationsResponseAllOf is a helper abstraction for handling nullable tlsactivationsresponseallof types. +// NullableTLSActivationsResponseAllOf is a helper abstraction for handling nullable tlsactivationsresponseallof types. type NullableTLSActivationsResponseAllOf struct { value *TLSActivationsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSActivationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSActivationsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate.go b/fastly/model_tls_bulk_certificate.go index 339f5d3..26a9986 100644 --- a/fastly/model_tls_bulk_certificate.go +++ b/fastly/model_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificate struct for TLSBulkCertificate type TLSBulkCertificate struct { - Data *TLSBulkCertificateData `json:"data,omitempty"` + Data *TLSBulkCertificateData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificate := _TLSBulkCertificate{} @@ -108,7 +107,7 @@ func (o *TLSBulkCertificate) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSBulkCertificate is a helper abstraction for handling nullable tlsbulkcertificate types. +// NullableTLSBulkCertificate is a helper abstraction for handling nullable tlsbulkcertificate types. type NullableTLSBulkCertificate struct { value *TLSBulkCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_data.go b/fastly/model_tls_bulk_certificate_data.go index 2c571d3..4ac75a3 100644 --- a/fastly/model_tls_bulk_certificate_data.go +++ b/fastly/model_tls_bulk_certificate_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificateData struct for TLSBulkCertificateData type TLSBulkCertificateData struct { - Type *TypeTLSBulkCertificate `json:"type,omitempty"` - Attributes *TLSBulkCertificateDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSBulkCertificate `json:"relationships,omitempty"` + Type *TypeTLSBulkCertificate `json:"type,omitempty"` + Attributes *TLSBulkCertificateDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSBulkCertificate `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSBulkCertificateData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateData) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateData := _TLSBulkCertificateData{} @@ -186,7 +185,7 @@ func (o *TLSBulkCertificateData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSBulkCertificateData is a helper abstraction for handling nullable tlsbulkcertificatedata types. +// NullableTLSBulkCertificateData is a helper abstraction for handling nullable tlsbulkcertificatedata types. type NullableTLSBulkCertificateData struct { value *TLSBulkCertificateData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSBulkCertificateData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_data_attributes.go b/fastly/model_tls_bulk_certificate_data_attributes.go index 15a1d7c..a80a475 100644 --- a/fastly/model_tls_bulk_certificate_data_attributes.go +++ b/fastly/model_tls_bulk_certificate_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type TLSBulkCertificateDataAttributes struct { // The PEM-formatted certificate blob. Required. CertBlob *string `json:"cert_blob,omitempty"` // The PEM-formatted chain of intermediate blobs. Required. - IntermediatesBlob *string `json:"intermediates_blob,omitempty"` + IntermediatesBlob *string `json:"intermediates_blob,omitempty"` AdditionalProperties map[string]any } @@ -169,7 +168,7 @@ func (o TLSBulkCertificateDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateDataAttributes := _TLSBulkCertificateDataAttributes{} @@ -189,7 +188,7 @@ func (o *TLSBulkCertificateDataAttributes) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableTLSBulkCertificateDataAttributes is a helper abstraction for handling nullable tlsbulkcertificatedataattributes types. +// NullableTLSBulkCertificateDataAttributes is a helper abstraction for handling nullable tlsbulkcertificatedataattributes types. type NullableTLSBulkCertificateDataAttributes struct { value *TLSBulkCertificateDataAttributes isSet bool @@ -229,7 +228,7 @@ func (v NullableTLSBulkCertificateDataAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_response.go b/fastly/model_tls_bulk_certificate_response.go index 69f140a..64319ad 100644 --- a/fastly/model_tls_bulk_certificate_response.go +++ b/fastly/model_tls_bulk_certificate_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificateResponse struct for TLSBulkCertificateResponse type TLSBulkCertificateResponse struct { - Data *TLSBulkCertificateResponseData `json:"data,omitempty"` + Data *TLSBulkCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSBulkCertificateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateResponse := _TLSBulkCertificateResponse{} @@ -108,7 +107,7 @@ func (o *TLSBulkCertificateResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSBulkCertificateResponse is a helper abstraction for handling nullable tlsbulkcertificateresponse types. +// NullableTLSBulkCertificateResponse is a helper abstraction for handling nullable tlsbulkcertificateresponse types. type NullableTLSBulkCertificateResponse struct { value *TLSBulkCertificateResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSBulkCertificateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_response_attributes.go b/fastly/model_tls_bulk_certificate_response_attributes.go index 2bc0ac7..cea8c4f 100644 --- a/fastly/model_tls_bulk_certificate_response_attributes.go +++ b/fastly/model_tls_bulk_certificate_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -31,7 +30,7 @@ type TLSBulkCertificateResponseAttributes struct { // Time-stamp (GMT) when the certificate will become valid. Must be in the past to be used to terminate TLS traffic. NotBefore *time.Time `json:"not_before,omitempty"` // A recommendation from Fastly indicating the key associated with this certificate is in need of rotation. - Replace *bool `json:"replace,omitempty"` + Replace *bool `json:"replace,omitempty"` AdditionalProperties map[string]any } @@ -67,7 +66,7 @@ func (o *TLSBulkCertificateResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSBulkCertificateResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -86,6 +85,7 @@ func (o *TLSBulkCertificateResponseAttributes) HasCreatedAt() bool { func (o *TLSBulkCertificateResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TLSBulkCertificateResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -109,7 +109,7 @@ func (o *TLSBulkCertificateResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSBulkCertificateResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -128,6 +128,7 @@ func (o *TLSBulkCertificateResponseAttributes) HasDeletedAt() bool { func (o *TLSBulkCertificateResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TLSBulkCertificateResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -151,7 +152,7 @@ func (o *TLSBulkCertificateResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSBulkCertificateResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -170,6 +171,7 @@ func (o *TLSBulkCertificateResponseAttributes) HasUpdatedAt() bool { func (o *TLSBulkCertificateResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TLSBulkCertificateResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -307,7 +309,7 @@ func (o TLSBulkCertificateResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateResponseAttributes := _TLSBulkCertificateResponseAttributes{} @@ -330,7 +332,7 @@ func (o *TLSBulkCertificateResponseAttributes) UnmarshalJSON(bytes []byte) (err return err } -// NullableTLSBulkCertificateResponseAttributes is a helper abstraction for handling nullable tlsbulkcertificateresponseattributes types. +// NullableTLSBulkCertificateResponseAttributes is a helper abstraction for handling nullable tlsbulkcertificateresponseattributes types. type NullableTLSBulkCertificateResponseAttributes struct { value *TLSBulkCertificateResponseAttributes isSet bool @@ -370,7 +372,7 @@ func (v NullableTLSBulkCertificateResponseAttributes) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_response_attributes_all_of.go b/fastly/model_tls_bulk_certificate_response_attributes_all_of.go index d5c2191..38832b4 100644 --- a/fastly/model_tls_bulk_certificate_response_attributes_all_of.go +++ b/fastly/model_tls_bulk_certificate_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,7 +24,7 @@ type TLSBulkCertificateResponseAttributesAllOf struct { // Time-stamp (GMT) when the certificate will become valid. Must be in the past to be used to terminate TLS traffic. NotBefore *time.Time `json:"not_before,omitempty"` // A recommendation from Fastly indicating the key associated with this certificate is in need of rotation. - Replace *bool `json:"replace,omitempty"` + Replace *bool `json:"replace,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSBulkCertificateResponseAttributesAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateResponseAttributesAllOf := _TLSBulkCertificateResponseAttributesAllOf{} @@ -186,7 +185,7 @@ func (o *TLSBulkCertificateResponseAttributesAllOf) UnmarshalJSON(bytes []byte) return err } -// NullableTLSBulkCertificateResponseAttributesAllOf is a helper abstraction for handling nullable tlsbulkcertificateresponseattributesallof types. +// NullableTLSBulkCertificateResponseAttributesAllOf is a helper abstraction for handling nullable tlsbulkcertificateresponseattributesallof types. type NullableTLSBulkCertificateResponseAttributesAllOf struct { value *TLSBulkCertificateResponseAttributesAllOf isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSBulkCertificateResponseAttributesAllOf) MarshalJSON() ([]byte } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_response_data.go b/fastly/model_tls_bulk_certificate_response_data.go index 2add49d..77da8c9 100644 --- a/fastly/model_tls_bulk_certificate_response_data.go +++ b/fastly/model_tls_bulk_certificate_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificateResponseData struct for TLSBulkCertificateResponseData type TLSBulkCertificateResponseData struct { - Type *TypeTLSBulkCertificate `json:"type,omitempty"` - Attributes *TLSBulkCertificateResponseAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSBulkCertificate `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSBulkCertificate `json:"type,omitempty"` + Attributes *TLSBulkCertificateResponseAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSBulkCertificate `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSBulkCertificateResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateResponseData := _TLSBulkCertificateResponseData{} @@ -223,7 +222,7 @@ func (o *TLSBulkCertificateResponseData) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSBulkCertificateResponseData is a helper abstraction for handling nullable tlsbulkcertificateresponsedata types. +// NullableTLSBulkCertificateResponseData is a helper abstraction for handling nullable tlsbulkcertificateresponsedata types. type NullableTLSBulkCertificateResponseData struct { value *TLSBulkCertificateResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSBulkCertificateResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificate_response_data_all_of.go b/fastly/model_tls_bulk_certificate_response_data_all_of.go index 0aca373..47ddabc 100644 --- a/fastly/model_tls_bulk_certificate_response_data_all_of.go +++ b/fastly/model_tls_bulk_certificate_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificateResponseDataAllOf struct for TLSBulkCertificateResponseDataAllOf type TLSBulkCertificateResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *TLSBulkCertificateResponseAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *TLSBulkCertificateResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o TLSBulkCertificateResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificateResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificateResponseDataAllOf := _TLSBulkCertificateResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *TLSBulkCertificateResponseDataAllOf) UnmarshalJSON(bytes []byte) (err e return err } -// NullableTLSBulkCertificateResponseDataAllOf is a helper abstraction for handling nullable tlsbulkcertificateresponsedataallof types. +// NullableTLSBulkCertificateResponseDataAllOf is a helper abstraction for handling nullable tlsbulkcertificateresponsedataallof types. type NullableTLSBulkCertificateResponseDataAllOf struct { value *TLSBulkCertificateResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableTLSBulkCertificateResponseDataAllOf) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificateResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificates_response.go b/fastly/model_tls_bulk_certificates_response.go index 991e227..2338bb8 100644 --- a/fastly/model_tls_bulk_certificates_response.go +++ b/fastly/model_tls_bulk_certificates_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificatesResponse struct for TLSBulkCertificatesResponse type TLSBulkCertificatesResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSBulkCertificateResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSBulkCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSBulkCertificatesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificatesResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificatesResponse := _TLSBulkCertificatesResponse{} @@ -182,7 +181,7 @@ func (o *TLSBulkCertificatesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSBulkCertificatesResponse is a helper abstraction for handling nullable tlsbulkcertificatesresponse types. +// NullableTLSBulkCertificatesResponse is a helper abstraction for handling nullable tlsbulkcertificatesresponse types. type NullableTLSBulkCertificatesResponse struct { value *TLSBulkCertificatesResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSBulkCertificatesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificatesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_bulk_certificates_response_all_of.go b/fastly/model_tls_bulk_certificates_response_all_of.go index 59cee6d..e5012e2 100644 --- a/fastly/model_tls_bulk_certificates_response_all_of.go +++ b/fastly/model_tls_bulk_certificates_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSBulkCertificatesResponseAllOf struct for TLSBulkCertificatesResponseAllOf type TLSBulkCertificatesResponseAllOf struct { - Data []TLSBulkCertificateResponseData `json:"data,omitempty"` + Data []TLSBulkCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSBulkCertificatesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSBulkCertificatesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSBulkCertificatesResponseAllOf := _TLSBulkCertificatesResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSBulkCertificatesResponseAllOf) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableTLSBulkCertificatesResponseAllOf is a helper abstraction for handling nullable tlsbulkcertificatesresponseallof types. +// NullableTLSBulkCertificatesResponseAllOf is a helper abstraction for handling nullable tlsbulkcertificatesresponseallof types. type NullableTLSBulkCertificatesResponseAllOf struct { value *TLSBulkCertificatesResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSBulkCertificatesResponseAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSBulkCertificatesResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate.go b/fastly/model_tls_certificate.go index ff837af..5e52d2f 100644 --- a/fastly/model_tls_certificate.go +++ b/fastly/model_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificate struct for TLSCertificate type TLSCertificate struct { - Data *TLSCertificateData `json:"data,omitempty"` + Data *TLSCertificateData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificate) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificate := _TLSCertificate{} @@ -108,7 +107,7 @@ func (o *TLSCertificate) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificate is a helper abstraction for handling nullable tlscertificate types. +// NullableTLSCertificate is a helper abstraction for handling nullable tlscertificate types. type NullableTLSCertificate struct { value *TLSCertificate isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_blob_response.go b/fastly/model_tls_certificate_blob_response.go index 095ef03..d218de1 100644 --- a/fastly/model_tls_certificate_blob_response.go +++ b/fastly/model_tls_certificate_blob_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // TLSCertificateBlobResponse struct for TLSCertificateBlobResponse type TLSCertificateBlobResponse struct { // A certificate blob - CertBlob *string `json:"cert_blob,omitempty"` + CertBlob *string `json:"cert_blob,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o TLSCertificateBlobResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateBlobResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateBlobResponse := _TLSCertificateBlobResponse{} @@ -109,7 +108,7 @@ func (o *TLSCertificateBlobResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificateBlobResponse is a helper abstraction for handling nullable tlscertificateblobresponse types. +// NullableTLSCertificateBlobResponse is a helper abstraction for handling nullable tlscertificateblobresponse types. type NullableTLSCertificateBlobResponse struct { value *TLSCertificateBlobResponse isSet bool @@ -149,7 +148,7 @@ func (v NullableTLSCertificateBlobResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateBlobResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_data.go b/fastly/model_tls_certificate_data.go index 12445c0..ba294e5 100644 --- a/fastly/model_tls_certificate_data.go +++ b/fastly/model_tls_certificate_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificateData struct for TLSCertificateData type TLSCertificateData struct { - Type *TypeTLSCertificate `json:"type,omitempty"` - Attributes *TLSCertificateDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipTLSDomains `json:"relationships,omitempty"` + Type *TypeTLSCertificate `json:"type,omitempty"` + Attributes *TLSCertificateDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipTLSDomains `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSCertificateData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateData) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateData := _TLSCertificateData{} @@ -186,7 +185,7 @@ func (o *TLSCertificateData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificateData is a helper abstraction for handling nullable tlscertificatedata types. +// NullableTLSCertificateData is a helper abstraction for handling nullable tlscertificatedata types. type NullableTLSCertificateData struct { value *TLSCertificateData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSCertificateData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_data_attributes.go b/fastly/model_tls_certificate_data_attributes.go index 369336b..11fb520 100644 --- a/fastly/model_tls_certificate_data_attributes.go +++ b/fastly/model_tls_certificate_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type TLSCertificateDataAttributes struct { // The PEM-formatted certificate blob. Required. CertBlob *string `json:"cert_blob,omitempty"` // A customizable name for your certificate. Defaults to the certificate's Common Name or first Subject Alternative Names (SAN) entry. Optional. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o TLSCertificateDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateDataAttributes := _TLSCertificateDataAttributes{} @@ -147,7 +146,7 @@ func (o *TLSCertificateDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificateDataAttributes is a helper abstraction for handling nullable tlscertificatedataattributes types. +// NullableTLSCertificateDataAttributes is a helper abstraction for handling nullable tlscertificatedataattributes types. type NullableTLSCertificateDataAttributes struct { value *TLSCertificateDataAttributes isSet bool @@ -187,7 +186,7 @@ func (v NullableTLSCertificateDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_response.go b/fastly/model_tls_certificate_response.go index d32f28b..d61b92d 100644 --- a/fastly/model_tls_certificate_response.go +++ b/fastly/model_tls_certificate_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificateResponse struct for TLSCertificateResponse type TLSCertificateResponse struct { - Data *TLSCertificateResponseData `json:"data,omitempty"` + Data *TLSCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCertificateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateResponse := _TLSCertificateResponse{} @@ -108,7 +107,7 @@ func (o *TLSCertificateResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificateResponse is a helper abstraction for handling nullable tlscertificateresponse types. +// NullableTLSCertificateResponse is a helper abstraction for handling nullable tlscertificateresponse types. type NullableTLSCertificateResponse struct { value *TLSCertificateResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCertificateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_response_attributes.go b/fastly/model_tls_certificate_response_attributes.go index 109f45f..2f38046 100644 --- a/fastly/model_tls_certificate_response_attributes.go +++ b/fastly/model_tls_certificate_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -39,7 +38,7 @@ type TLSCertificateResponseAttributes struct { // Time-stamp (GMT) when the certificate will become valid. Must be in the past to be used to terminate TLS traffic. NotBefore *time.Time `json:"not_before,omitempty"` // A recommendation from Fastly indicating the key associated with this certificate is in need of rotation. - Replace *bool `json:"replace,omitempty"` + Replace *bool `json:"replace,omitempty"` AdditionalProperties map[string]any } @@ -75,7 +74,7 @@ func (o *TLSCertificateResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCertificateResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -94,6 +93,7 @@ func (o *TLSCertificateResponseAttributes) HasCreatedAt() bool { func (o *TLSCertificateResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TLSCertificateResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -117,7 +117,7 @@ func (o *TLSCertificateResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCertificateResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -136,6 +136,7 @@ func (o *TLSCertificateResponseAttributes) HasDeletedAt() bool { func (o *TLSCertificateResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TLSCertificateResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -159,7 +160,7 @@ func (o *TLSCertificateResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCertificateResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -178,6 +179,7 @@ func (o *TLSCertificateResponseAttributes) HasUpdatedAt() bool { func (o *TLSCertificateResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TLSCertificateResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -455,7 +457,7 @@ func (o TLSCertificateResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateResponseAttributes := _TLSCertificateResponseAttributes{} @@ -482,7 +484,7 @@ func (o *TLSCertificateResponseAttributes) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableTLSCertificateResponseAttributes is a helper abstraction for handling nullable tlscertificateresponseattributes types. +// NullableTLSCertificateResponseAttributes is a helper abstraction for handling nullable tlscertificateresponseattributes types. type NullableTLSCertificateResponseAttributes struct { value *TLSCertificateResponseAttributes isSet bool @@ -522,7 +524,7 @@ func (v NullableTLSCertificateResponseAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_response_attributes_all_of.go b/fastly/model_tls_certificate_response_attributes_all_of.go index a1a0d23..caed7b5 100644 --- a/fastly/model_tls_certificate_response_attributes_all_of.go +++ b/fastly/model_tls_certificate_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -33,7 +32,7 @@ type TLSCertificateResponseAttributesAllOf struct { // Time-stamp (GMT) when the certificate will become valid. Must be in the past to be used to terminate TLS traffic. NotBefore *time.Time `json:"not_before,omitempty"` // A recommendation from Fastly indicating the key associated with this certificate is in need of rotation. - Replace *bool `json:"replace,omitempty"` + Replace *bool `json:"replace,omitempty"` AdditionalProperties map[string]any } @@ -314,7 +313,7 @@ func (o TLSCertificateResponseAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateResponseAttributesAllOf := _TLSCertificateResponseAttributesAllOf{} @@ -338,7 +337,7 @@ func (o *TLSCertificateResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableTLSCertificateResponseAttributesAllOf is a helper abstraction for handling nullable tlscertificateresponseattributesallof types. +// NullableTLSCertificateResponseAttributesAllOf is a helper abstraction for handling nullable tlscertificateresponseattributesallof types. type NullableTLSCertificateResponseAttributesAllOf struct { value *TLSCertificateResponseAttributesAllOf isSet bool @@ -378,7 +377,7 @@ func (v NullableTLSCertificateResponseAttributesAllOf) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_response_data.go b/fastly/model_tls_certificate_response_data.go index 22726d4..1f7ed8f 100644 --- a/fastly/model_tls_certificate_response_data.go +++ b/fastly/model_tls_certificate_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificateResponseData struct for TLSCertificateResponseData type TLSCertificateResponseData struct { - Type *TypeTLSCertificate `json:"type,omitempty"` - Attributes *TLSCertificateResponseAttributes `json:"attributes,omitempty"` - Relationships *RelationshipTLSDomains `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSCertificate `json:"type,omitempty"` + Attributes *TLSCertificateResponseAttributes `json:"attributes,omitempty"` + Relationships *RelationshipTLSDomains `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSCertificateResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateResponseData := _TLSCertificateResponseData{} @@ -223,7 +222,7 @@ func (o *TLSCertificateResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificateResponseData is a helper abstraction for handling nullable tlscertificateresponsedata types. +// NullableTLSCertificateResponseData is a helper abstraction for handling nullable tlscertificateresponsedata types. type NullableTLSCertificateResponseData struct { value *TLSCertificateResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSCertificateResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificate_response_data_all_of.go b/fastly/model_tls_certificate_response_data_all_of.go index 04b4627..0fedd90 100644 --- a/fastly/model_tls_certificate_response_data_all_of.go +++ b/fastly/model_tls_certificate_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificateResponseDataAllOf struct for TLSCertificateResponseDataAllOf type TLSCertificateResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *TLSCertificateResponseAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *TLSCertificateResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o TLSCertificateResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificateResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificateResponseDataAllOf := _TLSCertificateResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *TLSCertificateResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error return err } -// NullableTLSCertificateResponseDataAllOf is a helper abstraction for handling nullable tlscertificateresponsedataallof types. +// NullableTLSCertificateResponseDataAllOf is a helper abstraction for handling nullable tlscertificateresponsedataallof types. type NullableTLSCertificateResponseDataAllOf struct { value *TLSCertificateResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableTLSCertificateResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificateResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificates_response.go b/fastly/model_tls_certificates_response.go index 83909e2..716493f 100644 --- a/fastly/model_tls_certificates_response.go +++ b/fastly/model_tls_certificates_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificatesResponse struct for TLSCertificatesResponse type TLSCertificatesResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSCertificateResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSCertificatesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificatesResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificatesResponse := _TLSCertificatesResponse{} @@ -182,7 +181,7 @@ func (o *TLSCertificatesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificatesResponse is a helper abstraction for handling nullable tlscertificatesresponse types. +// NullableTLSCertificatesResponse is a helper abstraction for handling nullable tlscertificatesresponse types. type NullableTLSCertificatesResponse struct { value *TLSCertificatesResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSCertificatesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificatesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_certificates_response_all_of.go b/fastly/model_tls_certificates_response_all_of.go index 24f949c..728ecb6 100644 --- a/fastly/model_tls_certificates_response_all_of.go +++ b/fastly/model_tls_certificates_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCertificatesResponseAllOf struct for TLSCertificatesResponseAllOf type TLSCertificatesResponseAllOf struct { - Data []TLSCertificateResponseData `json:"data,omitempty"` + Data []TLSCertificateResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCertificatesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCertificatesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSCertificatesResponseAllOf := _TLSCertificatesResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSCertificatesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCertificatesResponseAllOf is a helper abstraction for handling nullable tlscertificatesresponseallof types. +// NullableTLSCertificatesResponseAllOf is a helper abstraction for handling nullable tlscertificatesresponseallof types. type NullableTLSCertificatesResponseAllOf struct { value *TLSCertificatesResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCertificatesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCertificatesResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_common_response.go b/fastly/model_tls_common_response.go index ad12f90..29c6650 100644 --- a/fastly/model_tls_common_response.go +++ b/fastly/model_tls_common_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type TLSCommonResponse struct { // The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). TLSCertHostname NullableString `json:"tls_cert_hostname,omitempty"` // Whether to use TLS. - UseTLS *string `json:"use_tls,omitempty"` + UseTLS *string `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -84,7 +83,7 @@ func (o *TLSCommonResponse) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponse) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -103,6 +102,7 @@ func (o *TLSCommonResponse) HasTLSCaCert() bool { func (o *TLSCommonResponse) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *TLSCommonResponse) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -126,7 +126,7 @@ func (o *TLSCommonResponse) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponse) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -145,6 +145,7 @@ func (o *TLSCommonResponse) HasTLSClientCert() bool { func (o *TLSCommonResponse) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *TLSCommonResponse) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -168,7 +169,7 @@ func (o *TLSCommonResponse) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponse) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -187,6 +188,7 @@ func (o *TLSCommonResponse) HasTLSClientKey() bool { func (o *TLSCommonResponse) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *TLSCommonResponse) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -210,7 +212,7 @@ func (o *TLSCommonResponse) GetTLSCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponse) GetTLSCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCertHostname.Get(), o.TLSCertHostname.IsSet() @@ -229,6 +231,7 @@ func (o *TLSCommonResponse) HasTLSCertHostname() bool { func (o *TLSCommonResponse) SetTLSCertHostname(v string) { o.TLSCertHostname.Set(&v) } + // SetTLSCertHostnameNil sets the value for TLSCertHostname to be an explicit nil func (o *TLSCommonResponse) SetTLSCertHostnameNil() { o.TLSCertHostname.Set(nil) @@ -299,7 +302,7 @@ func (o TLSCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCommonResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCommonResponse := _TLSCommonResponse{} @@ -321,7 +324,7 @@ func (o *TLSCommonResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCommonResponse is a helper abstraction for handling nullable tlscommonresponse types. +// NullableTLSCommonResponse is a helper abstraction for handling nullable tlscommonresponse types. type NullableTLSCommonResponse struct { value *TLSCommonResponse isSet bool @@ -361,7 +364,7 @@ func (v NullableTLSCommonResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCommonResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_common_response_all_of.go b/fastly/model_tls_common_response_all_of.go index 60535d4..701c199 100644 --- a/fastly/model_tls_common_response_all_of.go +++ b/fastly/model_tls_common_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type TLSCommonResponseAllOf struct { // The client private key used to make authenticated requests. Must be in PEM format. TLSClientKey NullableString `json:"tls_client_key,omitempty"` // The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). - TLSCertHostname NullableString `json:"tls_cert_hostname,omitempty"` + TLSCertHostname NullableString `json:"tls_cert_hostname,omitempty"` AdditionalProperties map[string]any } @@ -78,7 +77,7 @@ func (o *TLSCommonResponseAllOf) GetTLSCaCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponseAllOf) GetTLSCaCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCaCert.Get(), o.TLSCaCert.IsSet() @@ -97,6 +96,7 @@ func (o *TLSCommonResponseAllOf) HasTLSCaCert() bool { func (o *TLSCommonResponseAllOf) SetTLSCaCert(v string) { o.TLSCaCert.Set(&v) } + // SetTLSCaCertNil sets the value for TLSCaCert to be an explicit nil func (o *TLSCommonResponseAllOf) SetTLSCaCertNil() { o.TLSCaCert.Set(nil) @@ -120,7 +120,7 @@ func (o *TLSCommonResponseAllOf) GetTLSClientCert() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponseAllOf) GetTLSClientCertOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientCert.Get(), o.TLSClientCert.IsSet() @@ -139,6 +139,7 @@ func (o *TLSCommonResponseAllOf) HasTLSClientCert() bool { func (o *TLSCommonResponseAllOf) SetTLSClientCert(v string) { o.TLSClientCert.Set(&v) } + // SetTLSClientCertNil sets the value for TLSClientCert to be an explicit nil func (o *TLSCommonResponseAllOf) SetTLSClientCertNil() { o.TLSClientCert.Set(nil) @@ -162,7 +163,7 @@ func (o *TLSCommonResponseAllOf) GetTLSClientKey() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponseAllOf) GetTLSClientKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSClientKey.Get(), o.TLSClientKey.IsSet() @@ -181,6 +182,7 @@ func (o *TLSCommonResponseAllOf) HasTLSClientKey() bool { func (o *TLSCommonResponseAllOf) SetTLSClientKey(v string) { o.TLSClientKey.Set(&v) } + // SetTLSClientKeyNil sets the value for TLSClientKey to be an explicit nil func (o *TLSCommonResponseAllOf) SetTLSClientKeyNil() { o.TLSClientKey.Set(nil) @@ -204,7 +206,7 @@ func (o *TLSCommonResponseAllOf) GetTLSCertHostname() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSCommonResponseAllOf) GetTLSCertHostnameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.TLSCertHostname.Get(), o.TLSCertHostname.IsSet() @@ -223,6 +225,7 @@ func (o *TLSCommonResponseAllOf) HasTLSCertHostname() bool { func (o *TLSCommonResponseAllOf) SetTLSCertHostname(v string) { o.TLSCertHostname.Set(&v) } + // SetTLSCertHostnameNil sets the value for TLSCertHostname to be an explicit nil func (o *TLSCommonResponseAllOf) SetTLSCertHostnameNil() { o.TLSCertHostname.Set(nil) @@ -258,7 +261,7 @@ func (o TLSCommonResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSCommonResponseAllOf := _TLSCommonResponseAllOf{} @@ -279,7 +282,7 @@ func (o *TLSCommonResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCommonResponseAllOf is a helper abstraction for handling nullable tlscommonresponseallof types. +// NullableTLSCommonResponseAllOf is a helper abstraction for handling nullable tlscommonresponseallof types. type NullableTLSCommonResponseAllOf struct { value *TLSCommonResponseAllOf isSet bool @@ -319,7 +322,7 @@ func (v NullableTLSCommonResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCommonResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_common_response_all_of_1.go b/fastly/model_tls_common_response_all_of_1.go index 7110316..26b184a 100644 --- a/fastly/model_tls_common_response_all_of_1.go +++ b/fastly/model_tls_common_response_all_of_1.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // TLSCommonResponseAllOf1 struct for TLSCommonResponseAllOf1 type TLSCommonResponseAllOf1 struct { // Whether to use TLS. - UseTLS *string `json:"use_tls,omitempty"` + UseTLS *string `json:"use_tls,omitempty"` AdditionalProperties map[string]any } @@ -95,7 +94,7 @@ func (o TLSCommonResponseAllOf1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err error) { varTLSCommonResponseAllOf1 := _TLSCommonResponseAllOf1{} @@ -113,7 +112,7 @@ func (o *TLSCommonResponseAllOf1) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCommonResponseAllOf1 is a helper abstraction for handling nullable tlscommonresponseallof1 types. +// NullableTLSCommonResponseAllOf1 is a helper abstraction for handling nullable tlscommonresponseallof1 types. type NullableTLSCommonResponseAllOf1 struct { value *TLSCommonResponseAllOf1 isSet bool @@ -153,7 +152,7 @@ func (v NullableTLSCommonResponseAllOf1) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCommonResponseAllOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration.go b/fastly/model_tls_configuration.go index 2cb6f1f..483b1c1 100644 --- a/fastly/model_tls_configuration.go +++ b/fastly/model_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfiguration struct for TLSConfiguration type TLSConfiguration struct { - Data *TLSConfigurationData `json:"data,omitempty"` + Data *TLSConfigurationData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { varTLSConfiguration := _TLSConfiguration{} @@ -108,7 +107,7 @@ func (o *TLSConfiguration) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSConfiguration is a helper abstraction for handling nullable tlsconfiguration types. +// NullableTLSConfiguration is a helper abstraction for handling nullable tlsconfiguration types. type NullableTLSConfiguration struct { value *TLSConfiguration isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_data.go b/fastly/model_tls_configuration_data.go index 624a5fe..1d53a6f 100644 --- a/fastly/model_tls_configuration_data.go +++ b/fastly/model_tls_configuration_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationData struct for TLSConfigurationData type TLSConfigurationData struct { - Type *TypeTLSConfiguration `json:"type,omitempty"` - Attributes *TLSConfigurationDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSConfiguration `json:"relationships,omitempty"` + Type *TypeTLSConfiguration `json:"type,omitempty"` + Attributes *TLSConfigurationDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSConfiguration `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSConfigurationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationData) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationData := _TLSConfigurationData{} @@ -186,7 +185,7 @@ func (o *TLSConfigurationData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSConfigurationData is a helper abstraction for handling nullable tlsconfigurationdata types. +// NullableTLSConfigurationData is a helper abstraction for handling nullable tlsconfigurationdata types. type NullableTLSConfigurationData struct { value *TLSConfigurationData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSConfigurationData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_data_attributes.go b/fastly/model_tls_configuration_data_attributes.go index 47a679b..5e15932 100644 --- a/fastly/model_tls_configuration_data_attributes.go +++ b/fastly/model_tls_configuration_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // TLSConfigurationDataAttributes struct for TLSConfigurationDataAttributes type TLSConfigurationDataAttributes struct { // A custom name for your TLS configuration. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o TLSConfigurationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationDataAttributes := _TLSConfigurationDataAttributes{} @@ -109,7 +108,7 @@ func (o *TLSConfigurationDataAttributes) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSConfigurationDataAttributes is a helper abstraction for handling nullable tlsconfigurationdataattributes types. +// NullableTLSConfigurationDataAttributes is a helper abstraction for handling nullable tlsconfigurationdataattributes types. type NullableTLSConfigurationDataAttributes struct { value *TLSConfigurationDataAttributes isSet bool @@ -149,7 +148,7 @@ func (v NullableTLSConfigurationDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_response.go b/fastly/model_tls_configuration_response.go index a5cfb54..72e654e 100644 --- a/fastly/model_tls_configuration_response.go +++ b/fastly/model_tls_configuration_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationResponse struct for TLSConfigurationResponse type TLSConfigurationResponse struct { - Data *TLSConfigurationResponseData `json:"data,omitempty"` + Data *TLSConfigurationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSConfigurationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationResponse := _TLSConfigurationResponse{} @@ -108,7 +107,7 @@ func (o *TLSConfigurationResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSConfigurationResponse is a helper abstraction for handling nullable tlsconfigurationresponse types. +// NullableTLSConfigurationResponse is a helper abstraction for handling nullable tlsconfigurationresponse types. type NullableTLSConfigurationResponse struct { value *TLSConfigurationResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSConfigurationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_response_attributes.go b/fastly/model_tls_configuration_response_attributes.go index 4df5304..ef3edb3 100644 --- a/fastly/model_tls_configuration_response_attributes.go +++ b/fastly/model_tls_configuration_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -33,7 +32,7 @@ type TLSConfigurationResponseAttributes struct { // TLS protocols available on your configuration. TLSProtocols []string `json:"tls_protocols,omitempty"` // Signifies whether the configuration is used for Platform TLS or not. - Bulk *bool `json:"bulk,omitempty"` + Bulk *bool `json:"bulk,omitempty"` AdditionalProperties map[string]any } @@ -69,7 +68,7 @@ func (o *TLSConfigurationResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSConfigurationResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -88,6 +87,7 @@ func (o *TLSConfigurationResponseAttributes) HasCreatedAt() bool { func (o *TLSConfigurationResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TLSConfigurationResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -111,7 +111,7 @@ func (o *TLSConfigurationResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSConfigurationResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -130,6 +130,7 @@ func (o *TLSConfigurationResponseAttributes) HasDeletedAt() bool { func (o *TLSConfigurationResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TLSConfigurationResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -153,7 +154,7 @@ func (o *TLSConfigurationResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSConfigurationResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -172,6 +173,7 @@ func (o *TLSConfigurationResponseAttributes) HasUpdatedAt() bool { func (o *TLSConfigurationResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TLSConfigurationResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -344,7 +346,7 @@ func (o TLSConfigurationResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationResponseAttributes := _TLSConfigurationResponseAttributes{} @@ -368,7 +370,7 @@ func (o *TLSConfigurationResponseAttributes) UnmarshalJSON(bytes []byte) (err er return err } -// NullableTLSConfigurationResponseAttributes is a helper abstraction for handling nullable tlsconfigurationresponseattributes types. +// NullableTLSConfigurationResponseAttributes is a helper abstraction for handling nullable tlsconfigurationresponseattributes types. type NullableTLSConfigurationResponseAttributes struct { value *TLSConfigurationResponseAttributes isSet bool @@ -408,7 +410,7 @@ func (v NullableTLSConfigurationResponseAttributes) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_response_attributes_all_of.go b/fastly/model_tls_configuration_response_attributes_all_of.go index 1b36c10..3967366 100644 --- a/fastly/model_tls_configuration_response_attributes_all_of.go +++ b/fastly/model_tls_configuration_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type TLSConfigurationResponseAttributesAllOf struct { // TLS protocols available on your configuration. TLSProtocols []string `json:"tls_protocols,omitempty"` // Signifies whether the configuration is used for Platform TLS or not. - Bulk *bool `json:"bulk,omitempty"` + Bulk *bool `json:"bulk,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSConfigurationResponseAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationResponseAttributesAllOf := _TLSConfigurationResponseAttributesAllOf{} @@ -223,7 +222,7 @@ func (o *TLSConfigurationResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (e return err } -// NullableTLSConfigurationResponseAttributesAllOf is a helper abstraction for handling nullable tlsconfigurationresponseattributesallof types. +// NullableTLSConfigurationResponseAttributesAllOf is a helper abstraction for handling nullable tlsconfigurationresponseattributesallof types. type NullableTLSConfigurationResponseAttributesAllOf struct { value *TLSConfigurationResponseAttributesAllOf isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSConfigurationResponseAttributesAllOf) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_response_data.go b/fastly/model_tls_configuration_response_data.go index 2850bbf..0308bc7 100644 --- a/fastly/model_tls_configuration_response_data.go +++ b/fastly/model_tls_configuration_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationResponseData struct for TLSConfigurationResponseData type TLSConfigurationResponseData struct { - Type *TypeTLSConfiguration `json:"type,omitempty"` - Attributes *TLSConfigurationResponseAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSConfiguration `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeTLSConfiguration `json:"type,omitempty"` + Attributes *TLSConfigurationResponseAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSConfiguration `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSConfigurationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationResponseData := _TLSConfigurationResponseData{} @@ -223,7 +222,7 @@ func (o *TLSConfigurationResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSConfigurationResponseData is a helper abstraction for handling nullable tlsconfigurationresponsedata types. +// NullableTLSConfigurationResponseData is a helper abstraction for handling nullable tlsconfigurationresponsedata types. type NullableTLSConfigurationResponseData struct { value *TLSConfigurationResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSConfigurationResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configuration_response_data_all_of.go b/fastly/model_tls_configuration_response_data_all_of.go index af3af55..3dad127 100644 --- a/fastly/model_tls_configuration_response_data_all_of.go +++ b/fastly/model_tls_configuration_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationResponseDataAllOf struct for TLSConfigurationResponseDataAllOf type TLSConfigurationResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *TLSConfigurationResponseAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *TLSConfigurationResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o TLSConfigurationResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationResponseDataAllOf := _TLSConfigurationResponseDataAllOf{} @@ -145,7 +144,7 @@ func (o *TLSConfigurationResponseDataAllOf) UnmarshalJSON(bytes []byte) (err err return err } -// NullableTLSConfigurationResponseDataAllOf is a helper abstraction for handling nullable tlsconfigurationresponsedataallof types. +// NullableTLSConfigurationResponseDataAllOf is a helper abstraction for handling nullable tlsconfigurationresponsedataallof types. type NullableTLSConfigurationResponseDataAllOf struct { value *TLSConfigurationResponseDataAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableTLSConfigurationResponseDataAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configurations_response.go b/fastly/model_tls_configurations_response.go index 64be821..faddbbd 100644 --- a/fastly/model_tls_configurations_response.go +++ b/fastly/model_tls_configurations_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationsResponse struct for TLSConfigurationsResponse type TLSConfigurationsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSConfigurationResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSConfigurationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSConfigurationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationsResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationsResponse := _TLSConfigurationsResponse{} @@ -182,7 +181,7 @@ func (o *TLSConfigurationsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSConfigurationsResponse is a helper abstraction for handling nullable tlsconfigurationsresponse types. +// NullableTLSConfigurationsResponse is a helper abstraction for handling nullable tlsconfigurationsresponse types. type NullableTLSConfigurationsResponse struct { value *TLSConfigurationsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSConfigurationsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_configurations_response_all_of.go b/fastly/model_tls_configurations_response_all_of.go index b255000..c041c21 100644 --- a/fastly/model_tls_configurations_response_all_of.go +++ b/fastly/model_tls_configurations_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSConfigurationsResponseAllOf struct for TLSConfigurationsResponseAllOf type TLSConfigurationsResponseAllOf struct { - Data []TLSConfigurationResponseData `json:"data,omitempty"` + Data []TLSConfigurationResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSConfigurationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSConfigurationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSConfigurationsResponseAllOf := _TLSConfigurationsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSConfigurationsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSConfigurationsResponseAllOf is a helper abstraction for handling nullable tlsconfigurationsresponseallof types. +// NullableTLSConfigurationsResponseAllOf is a helper abstraction for handling nullable tlsconfigurationsresponseallof types. type NullableTLSConfigurationsResponseAllOf struct { value *TLSConfigurationsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSConfigurationsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSConfigurationsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr.go b/fastly/model_tls_csr.go index 9dba139..8085596 100644 --- a/fastly/model_tls_csr.go +++ b/fastly/model_tls_csr.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCsr struct for TLSCsr type TLSCsr struct { - Data *TLSCsrData `json:"data,omitempty"` + Data *TLSCsrData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCsr) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsr) UnmarshalJSON(bytes []byte) (err error) { varTLSCsr := _TLSCsr{} @@ -108,7 +107,7 @@ func (o *TLSCsr) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsr is a helper abstraction for handling nullable tlscsr types. +// NullableTLSCsr is a helper abstraction for handling nullable tlscsr types. type NullableTLSCsr struct { value *TLSCsr isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCsr) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsr) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_data.go b/fastly/model_tls_csr_data.go index 02ff082..dbb5262 100644 --- a/fastly/model_tls_csr_data.go +++ b/fastly/model_tls_csr_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCsrData struct for TLSCsrData type TLSCsrData struct { - Type *TypeTLSCsr `json:"type,omitempty"` - Attributes *TLSCsrDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipTLSPrivateKey `json:"relationships,omitempty"` + Type *TypeTLSCsr `json:"type,omitempty"` + Attributes *TLSCsrDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipTLSPrivateKey `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSCsrData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrData) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrData := _TLSCsrData{} @@ -186,7 +185,7 @@ func (o *TLSCsrData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrData is a helper abstraction for handling nullable tlscsrdata types. +// NullableTLSCsrData is a helper abstraction for handling nullable tlscsrdata types. type NullableTLSCsrData struct { value *TLSCsrData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSCsrData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_data_attributes.go b/fastly/model_tls_csr_data_attributes.go index 528ab31..f7d1bb0 100644 --- a/fastly/model_tls_csr_data_attributes.go +++ b/fastly/model_tls_csr_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -40,7 +39,7 @@ type TLSCsrDataAttributes struct { // Email Address (EMAIL) - The organizational contact for this. Email *string `json:"email,omitempty"` // CSR Key Type. - KeyType *string `json:"key_type,omitempty"` + KeyType *string `json:"key_type,omitempty"` AdditionalProperties map[string]any } @@ -77,7 +76,7 @@ func (o *TLSCsrDataAttributes) GetSans() []string { // GetSansOk returns a tuple with the Sans field value // and a boolean to check if the value has been set. func (o *TLSCsrDataAttributes) GetSansOk() ([]string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Sans, true @@ -454,7 +453,7 @@ func (o TLSCsrDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrDataAttributes := _TLSCsrDataAttributes{} @@ -482,7 +481,7 @@ func (o *TLSCsrDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrDataAttributes is a helper abstraction for handling nullable tlscsrdataattributes types. +// NullableTLSCsrDataAttributes is a helper abstraction for handling nullable tlscsrdataattributes types. type NullableTLSCsrDataAttributes struct { value *TLSCsrDataAttributes isSet bool @@ -522,7 +521,7 @@ func (v NullableTLSCsrDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_error_response.go b/fastly/model_tls_csr_error_response.go index 5a4aad5..31fad21 100644 --- a/fastly/model_tls_csr_error_response.go +++ b/fastly/model_tls_csr_error_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCsrErrorResponse struct for TLSCsrErrorResponse type TLSCsrErrorResponse struct { - Errors []ErrorResponseData `json:"errors,omitempty"` + Errors []ErrorResponseData `json:"errors,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCsrErrorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrErrorResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrErrorResponse := _TLSCsrErrorResponse{} @@ -108,7 +107,7 @@ func (o *TLSCsrErrorResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrErrorResponse is a helper abstraction for handling nullable tlscsrerrorresponse types. +// NullableTLSCsrErrorResponse is a helper abstraction for handling nullable tlscsrerrorresponse types. type NullableTLSCsrErrorResponse struct { value *TLSCsrErrorResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCsrErrorResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrErrorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_response.go b/fastly/model_tls_csr_response.go index fe14d5c..b07811c 100644 --- a/fastly/model_tls_csr_response.go +++ b/fastly/model_tls_csr_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCsrResponse struct for TLSCsrResponse type TLSCsrResponse struct { - Data *TLSCsrResponseData `json:"data,omitempty"` + Data *TLSCsrResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSCsrResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrResponse := _TLSCsrResponse{} @@ -108,7 +107,7 @@ func (o *TLSCsrResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrResponse is a helper abstraction for handling nullable tlscsrresponse types. +// NullableTLSCsrResponse is a helper abstraction for handling nullable tlscsrresponse types. type NullableTLSCsrResponse struct { value *TLSCsrResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSCsrResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_response_attributes.go b/fastly/model_tls_csr_response_attributes.go index afd3259..0c8b622 100644 --- a/fastly/model_tls_csr_response_attributes.go +++ b/fastly/model_tls_csr_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // TLSCsrResponseAttributes struct for TLSCsrResponseAttributes type TLSCsrResponseAttributes struct { // The PEM encoded CSR. - Content *string `json:"content,omitempty"` + Content *string `json:"content,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o TLSCsrResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrResponseAttributes := _TLSCsrResponseAttributes{} @@ -109,7 +108,7 @@ func (o *TLSCsrResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrResponseAttributes is a helper abstraction for handling nullable tlscsrresponseattributes types. +// NullableTLSCsrResponseAttributes is a helper abstraction for handling nullable tlscsrresponseattributes types. type NullableTLSCsrResponseAttributes struct { value *TLSCsrResponseAttributes isSet bool @@ -149,7 +148,7 @@ func (v NullableTLSCsrResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_csr_response_data.go b/fastly/model_tls_csr_response_data.go index e5a2ed2..1ccb564 100644 --- a/fastly/model_tls_csr_response_data.go +++ b/fastly/model_tls_csr_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSCsrResponseData struct for TLSCsrResponseData type TLSCsrResponseData struct { - ID *string `json:"id,omitempty"` - Type *TypeTLSCsr `json:"type,omitempty"` - Attributes *TLSCsrResponseAttributes `json:"attributes,omitempty"` - Relationships *RelationshipTLSPrivateKey `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Type *TypeTLSCsr `json:"type,omitempty"` + Attributes *TLSCsrResponseAttributes `json:"attributes,omitempty"` + Relationships *RelationshipTLSPrivateKey `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o TLSCsrResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSCsrResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSCsrResponseData := _TLSCsrResponseData{} @@ -223,7 +222,7 @@ func (o *TLSCsrResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSCsrResponseData is a helper abstraction for handling nullable tlscsrresponsedata types. +// NullableTLSCsrResponseData is a helper abstraction for handling nullable tlscsrresponsedata types. type NullableTLSCsrResponseData struct { value *TLSCsrResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableTLSCsrResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSCsrResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_dns_record.go b/fastly/model_tls_dns_record.go index bf545c6..23ec046 100644 --- a/fastly/model_tls_dns_record.go +++ b/fastly/model_tls_dns_record.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type TLSDNSRecord struct { // Specifies the regions that will be used to route traffic. Select DNS records with a `global` region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with a `na/eu` region to exclusively land traffic on North American and European POPs. Region *string `json:"region,omitempty"` // The type of the DNS record. `A` specifies an IPv4 address to be used for an A record to be used for apex domains (e.g., `example.com`). `AAAA` specifies an IPv6 address for use in an A record for apex domains. `CNAME` specifies the hostname to be used for a CNAME record for subdomains or wildcard domains (e.g., `www.example.com` or `*.example.com`). - RecordType *string `json:"record_type,omitempty"` + RecordType *string `json:"record_type,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o TLSDNSRecord) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSDNSRecord) UnmarshalJSON(bytes []byte) (err error) { varTLSDNSRecord := _TLSDNSRecord{} @@ -147,7 +146,7 @@ func (o *TLSDNSRecord) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSDNSRecord is a helper abstraction for handling nullable tlsdnsrecord types. +// NullableTLSDNSRecord is a helper abstraction for handling nullable tlsdnsrecord types. type NullableTLSDNSRecord struct { value *TLSDNSRecord isSet bool @@ -187,7 +186,7 @@ func (v NullableTLSDNSRecord) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSDNSRecord) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_domain_data.go b/fastly/model_tls_domain_data.go index 043bc55..b9f1f59 100644 --- a/fastly/model_tls_domain_data.go +++ b/fastly/model_tls_domain_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,9 +19,9 @@ import ( // TLSDomainData struct for TLSDomainData type TLSDomainData struct { // The domain name. - ID *string `json:"id,omitempty"` - Type *TypeTLSDomain `json:"type,omitempty"` - Relationships *RelationshipsForTLSDomain `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Type *TypeTLSDomain `json:"type,omitempty"` + Relationships *RelationshipsForTLSDomain `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o TLSDomainData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSDomainData) UnmarshalJSON(bytes []byte) (err error) { varTLSDomainData := _TLSDomainData{} @@ -187,7 +186,7 @@ func (o *TLSDomainData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSDomainData is a helper abstraction for handling nullable tlsdomaindata types. +// NullableTLSDomainData is a helper abstraction for handling nullable tlsdomaindata types. type NullableTLSDomainData struct { value *TLSDomainData isSet bool @@ -227,7 +226,7 @@ func (v NullableTLSDomainData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSDomainData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_domains_response.go b/fastly/model_tls_domains_response.go index 0e1964d..3c96243 100644 --- a/fastly/model_tls_domains_response.go +++ b/fastly/model_tls_domains_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSDomainsResponse struct for TLSDomainsResponse type TLSDomainsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSDomainData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSDomainData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSDomainsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSDomainsResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSDomainsResponse := _TLSDomainsResponse{} @@ -182,7 +181,7 @@ func (o *TLSDomainsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSDomainsResponse is a helper abstraction for handling nullable tlsdomainsresponse types. +// NullableTLSDomainsResponse is a helper abstraction for handling nullable tlsdomainsresponse types. type NullableTLSDomainsResponse struct { value *TLSDomainsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSDomainsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSDomainsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_domains_response_all_of.go b/fastly/model_tls_domains_response_all_of.go index 9f6c3e2..e770bfa 100644 --- a/fastly/model_tls_domains_response_all_of.go +++ b/fastly/model_tls_domains_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSDomainsResponseAllOf struct for TLSDomainsResponseAllOf type TLSDomainsResponseAllOf struct { - Data []TLSDomainData `json:"data,omitempty"` + Data []TLSDomainData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSDomainsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSDomainsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSDomainsResponseAllOf := _TLSDomainsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSDomainsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSDomainsResponseAllOf is a helper abstraction for handling nullable tlsdomainsresponseallof types. +// NullableTLSDomainsResponseAllOf is a helper abstraction for handling nullable tlsdomainsresponseallof types. type NullableTLSDomainsResponseAllOf struct { value *TLSDomainsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSDomainsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSDomainsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key.go b/fastly/model_tls_private_key.go index 31a8351..2d0b849 100644 --- a/fastly/model_tls_private_key.go +++ b/fastly/model_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKey struct for TLSPrivateKey type TLSPrivateKey struct { - Data *TLSPrivateKeyData `json:"data,omitempty"` + Data *TLSPrivateKeyData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKey := _TLSPrivateKey{} @@ -108,7 +107,7 @@ func (o *TLSPrivateKey) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKey is a helper abstraction for handling nullable tlsprivatekey types. +// NullableTLSPrivateKey is a helper abstraction for handling nullable tlsprivatekey types. type NullableTLSPrivateKey struct { value *TLSPrivateKey isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_data.go b/fastly/model_tls_private_key_data.go index 29509a0..b48d525 100644 --- a/fastly/model_tls_private_key_data.go +++ b/fastly/model_tls_private_key_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKeyData struct for TLSPrivateKeyData type TLSPrivateKeyData struct { - Type *TypeTLSPrivateKey `json:"type,omitempty"` - Attributes *TLSPrivateKeyDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSPrivateKey `json:"relationships,omitempty"` + Type *TypeTLSPrivateKey `json:"type,omitempty"` + Attributes *TLSPrivateKeyDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSPrivateKey `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSPrivateKeyData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyData) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyData := _TLSPrivateKeyData{} @@ -186,7 +185,7 @@ func (o *TLSPrivateKeyData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeyData is a helper abstraction for handling nullable tlsprivatekeydata types. +// NullableTLSPrivateKeyData is a helper abstraction for handling nullable tlsprivatekeydata types. type NullableTLSPrivateKeyData struct { value *TLSPrivateKeyData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSPrivateKeyData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_data_attributes.go b/fastly/model_tls_private_key_data_attributes.go index 2bda719..df971ac 100644 --- a/fastly/model_tls_private_key_data_attributes.go +++ b/fastly/model_tls_private_key_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type TLSPrivateKeyDataAttributes struct { // A customizable name for your private key. Optional. Name *string `json:"name,omitempty"` // The contents of the private key. Must be a PEM-formatted key. Not returned in response body. Required. - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o TLSPrivateKeyDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyDataAttributes := _TLSPrivateKeyDataAttributes{} @@ -147,7 +146,7 @@ func (o *TLSPrivateKeyDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeyDataAttributes is a helper abstraction for handling nullable tlsprivatekeydataattributes types. +// NullableTLSPrivateKeyDataAttributes is a helper abstraction for handling nullable tlsprivatekeydataattributes types. type NullableTLSPrivateKeyDataAttributes struct { value *TLSPrivateKeyDataAttributes isSet bool @@ -187,7 +186,7 @@ func (v NullableTLSPrivateKeyDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_response.go b/fastly/model_tls_private_key_response.go index 106899a..7a081a4 100644 --- a/fastly/model_tls_private_key_response.go +++ b/fastly/model_tls_private_key_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKeyResponse struct for TLSPrivateKeyResponse type TLSPrivateKeyResponse struct { - Data *TLSPrivateKeyResponseData `json:"data,omitempty"` + Data *TLSPrivateKeyResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSPrivateKeyResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyResponse := _TLSPrivateKeyResponse{} @@ -108,7 +107,7 @@ func (o *TLSPrivateKeyResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeyResponse is a helper abstraction for handling nullable tlsprivatekeyresponse types. +// NullableTLSPrivateKeyResponse is a helper abstraction for handling nullable tlsprivatekeyresponse types. type NullableTLSPrivateKeyResponse struct { value *TLSPrivateKeyResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSPrivateKeyResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_response_attributes.go b/fastly/model_tls_private_key_response_attributes.go index 870109f..db2d624 100644 --- a/fastly/model_tls_private_key_response_attributes.go +++ b/fastly/model_tls_private_key_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -35,7 +34,7 @@ type TLSPrivateKeyResponseAttributes struct { // A recommendation from Fastly to replace this private key and all associated certificates. Replace *bool `json:"replace,omitempty"` // Useful for safely identifying the key. - PublicKeySha1 *string `json:"public_key_sha1,omitempty"` + PublicKeySha1 *string `json:"public_key_sha1,omitempty"` AdditionalProperties map[string]any } @@ -71,7 +70,7 @@ func (o *TLSPrivateKeyResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSPrivateKeyResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -90,6 +89,7 @@ func (o *TLSPrivateKeyResponseAttributes) HasCreatedAt() bool { func (o *TLSPrivateKeyResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TLSPrivateKeyResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -113,7 +113,7 @@ func (o *TLSPrivateKeyResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSPrivateKeyResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -132,6 +132,7 @@ func (o *TLSPrivateKeyResponseAttributes) HasDeletedAt() bool { func (o *TLSPrivateKeyResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TLSPrivateKeyResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -155,7 +156,7 @@ func (o *TLSPrivateKeyResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSPrivateKeyResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -174,6 +175,7 @@ func (o *TLSPrivateKeyResponseAttributes) HasUpdatedAt() bool { func (o *TLSPrivateKeyResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TLSPrivateKeyResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -381,7 +383,7 @@ func (o TLSPrivateKeyResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyResponseAttributes := _TLSPrivateKeyResponseAttributes{} @@ -406,7 +408,7 @@ func (o *TLSPrivateKeyResponseAttributes) UnmarshalJSON(bytes []byte) (err error return err } -// NullableTLSPrivateKeyResponseAttributes is a helper abstraction for handling nullable tlsprivatekeyresponseattributes types. +// NullableTLSPrivateKeyResponseAttributes is a helper abstraction for handling nullable tlsprivatekeyresponseattributes types. type NullableTLSPrivateKeyResponseAttributes struct { value *TLSPrivateKeyResponseAttributes isSet bool @@ -446,7 +448,7 @@ func (v NullableTLSPrivateKeyResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_response_attributes_all_of.go b/fastly/model_tls_private_key_response_attributes_all_of.go index 51ff123..aca6711 100644 --- a/fastly/model_tls_private_key_response_attributes_all_of.go +++ b/fastly/model_tls_private_key_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,7 +27,7 @@ type TLSPrivateKeyResponseAttributesAllOf struct { // A recommendation from Fastly to replace this private key and all associated certificates. Replace *bool `json:"replace,omitempty"` // Useful for safely identifying the key. - PublicKeySha1 *string `json:"public_key_sha1,omitempty"` + PublicKeySha1 *string `json:"public_key_sha1,omitempty"` AdditionalProperties map[string]any } @@ -239,7 +238,7 @@ func (o TLSPrivateKeyResponseAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyResponseAttributesAllOf := _TLSPrivateKeyResponseAttributesAllOf{} @@ -261,7 +260,7 @@ func (o *TLSPrivateKeyResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableTLSPrivateKeyResponseAttributesAllOf is a helper abstraction for handling nullable tlsprivatekeyresponseattributesallof types. +// NullableTLSPrivateKeyResponseAttributesAllOf is a helper abstraction for handling nullable tlsprivatekeyresponseattributesallof types. type NullableTLSPrivateKeyResponseAttributesAllOf struct { value *TLSPrivateKeyResponseAttributesAllOf isSet bool @@ -301,7 +300,7 @@ func (v NullableTLSPrivateKeyResponseAttributesAllOf) MarshalJSON() ([]byte, err } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_key_response_data.go b/fastly/model_tls_private_key_response_data.go index 5224702..60945e1 100644 --- a/fastly/model_tls_private_key_response_data.go +++ b/fastly/model_tls_private_key_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKeyResponseData struct for TLSPrivateKeyResponseData type TLSPrivateKeyResponseData struct { - Type *TypeTLSPrivateKey `json:"type,omitempty"` - ID *string `json:"id,omitempty"` - Attributes *TLSPrivateKeyResponseAttributes `json:"attributes,omitempty"` + Type *TypeTLSPrivateKey `json:"type,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *TLSPrivateKeyResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSPrivateKeyResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeyResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeyResponseData := _TLSPrivateKeyResponseData{} @@ -186,7 +185,7 @@ func (o *TLSPrivateKeyResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeyResponseData is a helper abstraction for handling nullable tlsprivatekeyresponsedata types. +// NullableTLSPrivateKeyResponseData is a helper abstraction for handling nullable tlsprivatekeyresponsedata types. type NullableTLSPrivateKeyResponseData struct { value *TLSPrivateKeyResponseData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSPrivateKeyResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeyResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_keys_response.go b/fastly/model_tls_private_keys_response.go index 145afb5..f71dbf7 100644 --- a/fastly/model_tls_private_keys_response.go +++ b/fastly/model_tls_private_keys_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKeysResponse struct for TLSPrivateKeysResponse type TLSPrivateKeysResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSPrivateKeyResponseData `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSPrivateKeyResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSPrivateKeysResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeysResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeysResponse := _TLSPrivateKeysResponse{} @@ -182,7 +181,7 @@ func (o *TLSPrivateKeysResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeysResponse is a helper abstraction for handling nullable tlsprivatekeysresponse types. +// NullableTLSPrivateKeysResponse is a helper abstraction for handling nullable tlsprivatekeysresponse types. type NullableTLSPrivateKeysResponse struct { value *TLSPrivateKeysResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSPrivateKeysResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeysResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_private_keys_response_all_of.go b/fastly/model_tls_private_keys_response_all_of.go index aa66209..bc5bc6f 100644 --- a/fastly/model_tls_private_keys_response_all_of.go +++ b/fastly/model_tls_private_keys_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSPrivateKeysResponseAllOf struct for TLSPrivateKeysResponseAllOf type TLSPrivateKeysResponseAllOf struct { - Data []TLSPrivateKeyResponseData `json:"data,omitempty"` + Data []TLSPrivateKeyResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSPrivateKeysResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSPrivateKeysResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSPrivateKeysResponseAllOf := _TLSPrivateKeysResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSPrivateKeysResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSPrivateKeysResponseAllOf is a helper abstraction for handling nullable tlsprivatekeysresponseallof types. +// NullableTLSPrivateKeysResponseAllOf is a helper abstraction for handling nullable tlsprivatekeysresponseallof types. type NullableTLSPrivateKeysResponseAllOf struct { value *TLSPrivateKeysResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSPrivateKeysResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSPrivateKeysResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription.go b/fastly/model_tls_subscription.go index fa7aa86..c38e583 100644 --- a/fastly/model_tls_subscription.go +++ b/fastly/model_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscription struct for TLSSubscription type TLSSubscription struct { - Data *TLSSubscriptionData `json:"data,omitempty"` + Data *TLSSubscriptionData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscription) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscription := _TLSSubscription{} @@ -108,7 +107,7 @@ func (o *TLSSubscription) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSSubscription is a helper abstraction for handling nullable tlssubscription types. +// NullableTLSSubscription is a helper abstraction for handling nullable tlssubscription types. type NullableTLSSubscription struct { value *TLSSubscription isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_data.go b/fastly/model_tls_subscription_data.go index 9230920..637133f 100644 --- a/fastly/model_tls_subscription_data.go +++ b/fastly/model_tls_subscription_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscriptionData struct for TLSSubscriptionData type TLSSubscriptionData struct { - Type *TypeTLSSubscription `json:"type,omitempty"` - Attributes *TLSSubscriptionDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForTLSSubscription `json:"relationships,omitempty"` + Type *TypeTLSSubscription `json:"type,omitempty"` + Attributes *TLSSubscriptionDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForTLSSubscription `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o TLSSubscriptionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionData) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionData := _TLSSubscriptionData{} @@ -186,7 +185,7 @@ func (o *TLSSubscriptionData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSSubscriptionData is a helper abstraction for handling nullable tlssubscriptiondata types. +// NullableTLSSubscriptionData is a helper abstraction for handling nullable tlssubscriptiondata types. type NullableTLSSubscriptionData struct { value *TLSSubscriptionData isSet bool @@ -226,7 +225,7 @@ func (v NullableTLSSubscriptionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_data_attributes.go b/fastly/model_tls_subscription_data_attributes.go index 9bd0a65..ee16975 100644 --- a/fastly/model_tls_subscription_data_attributes.go +++ b/fastly/model_tls_subscription_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -91,7 +90,7 @@ func (o TLSSubscriptionDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionDataAttributes := _TLSSubscriptionDataAttributes{} @@ -109,7 +108,7 @@ func (o *TLSSubscriptionDataAttributes) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSSubscriptionDataAttributes is a helper abstraction for handling nullable tlssubscriptiondataattributes types. +// NullableTLSSubscriptionDataAttributes is a helper abstraction for handling nullable tlssubscriptiondataattributes types. type NullableTLSSubscriptionDataAttributes struct { value *TLSSubscriptionDataAttributes isSet bool @@ -149,7 +148,7 @@ func (v NullableTLSSubscriptionDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_response.go b/fastly/model_tls_subscription_response.go index 6820c1c..7dce5f5 100644 --- a/fastly/model_tls_subscription_response.go +++ b/fastly/model_tls_subscription_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscriptionResponse struct for TLSSubscriptionResponse type TLSSubscriptionResponse struct { - Data *TLSSubscriptionResponseData `json:"data,omitempty"` + Data *TLSSubscriptionResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSSubscriptionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionResponse := _TLSSubscriptionResponse{} @@ -108,7 +107,7 @@ func (o *TLSSubscriptionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSSubscriptionResponse is a helper abstraction for handling nullable tlssubscriptionresponse types. +// NullableTLSSubscriptionResponse is a helper abstraction for handling nullable tlssubscriptionresponse types. type NullableTLSSubscriptionResponse struct { value *TLSSubscriptionResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSSubscriptionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_response_attributes.go b/fastly/model_tls_subscription_response_attributes.go index 4151d8b..2ef6083 100644 --- a/fastly/model_tls_subscription_response_attributes.go +++ b/fastly/model_tls_subscription_response_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,7 +28,7 @@ type TLSSubscriptionResponseAttributes struct { // The current state of your subscription. State *string `json:"state,omitempty"` // Subscription has an active order - HasActiveOrder *bool `json:"has_active_order,omitempty"` + HasActiveOrder *bool `json:"has_active_order,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *TLSSubscriptionResponseAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSSubscriptionResponseAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -84,6 +83,7 @@ func (o *TLSSubscriptionResponseAttributes) HasCreatedAt() bool { func (o *TLSSubscriptionResponseAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *TLSSubscriptionResponseAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -107,7 +107,7 @@ func (o *TLSSubscriptionResponseAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSSubscriptionResponseAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -126,6 +126,7 @@ func (o *TLSSubscriptionResponseAttributes) HasDeletedAt() bool { func (o *TLSSubscriptionResponseAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TLSSubscriptionResponseAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -149,7 +150,7 @@ func (o *TLSSubscriptionResponseAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TLSSubscriptionResponseAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -168,6 +169,7 @@ func (o *TLSSubscriptionResponseAttributes) HasUpdatedAt() bool { func (o *TLSSubscriptionResponseAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TLSSubscriptionResponseAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -270,7 +272,7 @@ func (o TLSSubscriptionResponseAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionResponseAttributes := _TLSSubscriptionResponseAttributes{} @@ -292,7 +294,7 @@ func (o *TLSSubscriptionResponseAttributes) UnmarshalJSON(bytes []byte) (err err return err } -// NullableTLSSubscriptionResponseAttributes is a helper abstraction for handling nullable tlssubscriptionresponseattributes types. +// NullableTLSSubscriptionResponseAttributes is a helper abstraction for handling nullable tlssubscriptionresponseattributes types. type NullableTLSSubscriptionResponseAttributes struct { value *TLSSubscriptionResponseAttributes isSet bool @@ -332,7 +334,7 @@ func (v NullableTLSSubscriptionResponseAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionResponseAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_response_attributes_all_of.go b/fastly/model_tls_subscription_response_attributes_all_of.go index 119050e..96b1ec9 100644 --- a/fastly/model_tls_subscription_response_attributes_all_of.go +++ b/fastly/model_tls_subscription_response_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type TLSSubscriptionResponseAttributesAllOf struct { // The current state of your subscription. State *string `json:"state,omitempty"` // Subscription has an active order - HasActiveOrder *bool `json:"has_active_order,omitempty"` + HasActiveOrder *bool `json:"has_active_order,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o TLSSubscriptionResponseAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionResponseAttributesAllOf := _TLSSubscriptionResponseAttributesAllOf{} @@ -147,7 +146,7 @@ func (o *TLSSubscriptionResponseAttributesAllOf) UnmarshalJSON(bytes []byte) (er return err } -// NullableTLSSubscriptionResponseAttributesAllOf is a helper abstraction for handling nullable tlssubscriptionresponseattributesallof types. +// NullableTLSSubscriptionResponseAttributesAllOf is a helper abstraction for handling nullable tlssubscriptionresponseattributesallof types. type NullableTLSSubscriptionResponseAttributesAllOf struct { value *TLSSubscriptionResponseAttributesAllOf isSet bool @@ -187,7 +186,7 @@ func (v NullableTLSSubscriptionResponseAttributesAllOf) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionResponseAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscription_response_data.go b/fastly/model_tls_subscription_response_data.go index 57c621a..86fa147 100644 --- a/fastly/model_tls_subscription_response_data.go +++ b/fastly/model_tls_subscription_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscriptionResponseData struct for TLSSubscriptionResponseData type TLSSubscriptionResponseData struct { - ID *string `json:"id,omitempty"` - Attributes *TLSSubscriptionResponseAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *TLSSubscriptionResponseAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o TLSSubscriptionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionResponseData) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionResponseData := _TLSSubscriptionResponseData{} @@ -145,7 +144,7 @@ func (o *TLSSubscriptionResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSSubscriptionResponseData is a helper abstraction for handling nullable tlssubscriptionresponsedata types. +// NullableTLSSubscriptionResponseData is a helper abstraction for handling nullable tlssubscriptionresponsedata types. type NullableTLSSubscriptionResponseData struct { value *TLSSubscriptionResponseData isSet bool @@ -185,7 +184,7 @@ func (v NullableTLSSubscriptionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscriptions_response.go b/fastly/model_tls_subscriptions_response.go index 77c5ff9..b1545de 100644 --- a/fastly/model_tls_subscriptions_response.go +++ b/fastly/model_tls_subscriptions_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscriptionsResponse struct for TLSSubscriptionsResponse type TLSSubscriptionsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []TLSSubscriptionResponse `json:"data,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []TLSSubscriptionResponse `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o TLSSubscriptionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionsResponse) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionsResponse := _TLSSubscriptionsResponse{} @@ -182,7 +181,7 @@ func (o *TLSSubscriptionsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTLSSubscriptionsResponse is a helper abstraction for handling nullable tlssubscriptionsresponse types. +// NullableTLSSubscriptionsResponse is a helper abstraction for handling nullable tlssubscriptionsresponse types. type NullableTLSSubscriptionsResponse struct { value *TLSSubscriptionsResponse isSet bool @@ -222,7 +221,7 @@ func (v NullableTLSSubscriptionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tls_subscriptions_response_all_of.go b/fastly/model_tls_subscriptions_response_all_of.go index 1395349..8196ff7 100644 --- a/fastly/model_tls_subscriptions_response_all_of.go +++ b/fastly/model_tls_subscriptions_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TLSSubscriptionsResponseAllOf struct for TLSSubscriptionsResponseAllOf type TLSSubscriptionsResponseAllOf struct { - Data []TLSSubscriptionResponse `json:"data,omitempty"` + Data []TLSSubscriptionResponse `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o TLSSubscriptionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TLSSubscriptionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTLSSubscriptionsResponseAllOf := _TLSSubscriptionsResponseAllOf{} @@ -108,7 +107,7 @@ func (o *TLSSubscriptionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableTLSSubscriptionsResponseAllOf is a helper abstraction for handling nullable tlssubscriptionsresponseallof types. +// NullableTLSSubscriptionsResponseAllOf is a helper abstraction for handling nullable tlssubscriptionsresponseallof types. type NullableTLSSubscriptionsResponseAllOf struct { value *TLSSubscriptionsResponseAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableTLSSubscriptionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTLSSubscriptionsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_token.go b/fastly/model_token.go index 365ba1a..5ce896e 100644 --- a/fastly/model_token.go +++ b/fastly/model_token.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,19 +12,18 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // Token struct for Token type Token struct { - // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. + // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // Name of the token. Name *string `json:"name,omitempty"` // Space-delimited list of authorization scope. - Scope *string `json:"scope,omitempty"` + Scope *string `json:"scope,omitempty"` AdditionalProperties map[string]any } @@ -169,7 +168,7 @@ func (o Token) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Token) UnmarshalJSON(bytes []byte) (err error) { varToken := _Token{} @@ -189,7 +188,7 @@ func (o *Token) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableToken is a helper abstraction for handling nullable token types. +// NullableToken is a helper abstraction for handling nullable token types. type NullableToken struct { value *Token isSet bool @@ -229,7 +228,7 @@ func (v NullableToken) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableToken) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_token_created_response.go b/fastly/model_token_created_response.go index 2c4c312..441d2dc 100644 --- a/fastly/model_token_created_response.go +++ b/fastly/model_token_created_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,7 +19,7 @@ import ( // TokenCreatedResponse struct for TokenCreatedResponse type TokenCreatedResponse struct { - // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. + // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // Name of the token. Name *string `json:"name,omitempty"` @@ -32,8 +31,8 @@ type TokenCreatedResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` - UserID *string `json:"user_id,omitempty"` + ID *string `json:"id,omitempty"` + UserID *string `json:"user_id,omitempty"` // Time-stamp (UTC) of when the token was last used. LastUsedAt *string `json:"last_used_at,omitempty"` // Time-stamp (UTC) of when the token will expire (optional). @@ -43,7 +42,7 @@ type TokenCreatedResponse struct { // User-Agent header of the client that last used the token. UserAgent *string `json:"user_agent,omitempty"` // The alphanumeric string for accessing the API (only available on token creation). - AccessToken *string `json:"access_token,omitempty"` + AccessToken *string `json:"access_token,omitempty"` AdditionalProperties map[string]any } @@ -211,7 +210,7 @@ func (o *TokenCreatedResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TokenCreatedResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -230,6 +229,7 @@ func (o *TokenCreatedResponse) HasDeletedAt() bool { func (o *TokenCreatedResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TokenCreatedResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -253,7 +253,7 @@ func (o *TokenCreatedResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TokenCreatedResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -272,6 +272,7 @@ func (o *TokenCreatedResponse) HasUpdatedAt() bool { func (o *TokenCreatedResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TokenCreatedResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -558,7 +559,7 @@ func (o TokenCreatedResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TokenCreatedResponse) UnmarshalJSON(bytes []byte) (err error) { varTokenCreatedResponse := _TokenCreatedResponse{} @@ -588,7 +589,7 @@ func (o *TokenCreatedResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTokenCreatedResponse is a helper abstraction for handling nullable tokencreatedresponse types. +// NullableTokenCreatedResponse is a helper abstraction for handling nullable tokencreatedresponse types. type NullableTokenCreatedResponse struct { value *TokenCreatedResponse isSet bool @@ -628,7 +629,7 @@ func (v NullableTokenCreatedResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTokenCreatedResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_token_created_response_all_of.go b/fastly/model_token_created_response_all_of.go index 97f3823..29ff178 100644 --- a/fastly/model_token_created_response_all_of.go +++ b/fastly/model_token_created_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // TokenCreatedResponseAllOf struct for TokenCreatedResponseAllOf type TokenCreatedResponseAllOf struct { // The alphanumeric string for accessing the API (only available on token creation). - AccessToken *string `json:"access_token,omitempty"` + AccessToken *string `json:"access_token,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o TokenCreatedResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TokenCreatedResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTokenCreatedResponseAllOf := _TokenCreatedResponseAllOf{} @@ -109,7 +108,7 @@ func (o *TokenCreatedResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTokenCreatedResponseAllOf is a helper abstraction for handling nullable tokencreatedresponseallof types. +// NullableTokenCreatedResponseAllOf is a helper abstraction for handling nullable tokencreatedresponseallof types. type NullableTokenCreatedResponseAllOf struct { value *TokenCreatedResponseAllOf isSet bool @@ -149,7 +148,7 @@ func (v NullableTokenCreatedResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTokenCreatedResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_token_response.go b/fastly/model_token_response.go index 2e114fa..5360f24 100644 --- a/fastly/model_token_response.go +++ b/fastly/model_token_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,7 +19,7 @@ import ( // TokenResponse struct for TokenResponse type TokenResponse struct { - // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. + // List of alphanumeric strings identifying services (optional). If no services are specified, the token will have access to all services on the account. Services []string `json:"services,omitempty"` // Name of the token. Name *string `json:"name,omitempty"` @@ -32,8 +31,8 @@ type TokenResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` - UserID *string `json:"user_id,omitempty"` + ID *string `json:"id,omitempty"` + UserID *string `json:"user_id,omitempty"` // Time-stamp (UTC) of when the token was last used. LastUsedAt *string `json:"last_used_at,omitempty"` // Time-stamp (UTC) of when the token will expire (optional). @@ -41,7 +40,7 @@ type TokenResponse struct { // IP Address of the client that last used the token. IP *string `json:"ip,omitempty"` // User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` AdditionalProperties map[string]any } @@ -209,7 +208,7 @@ func (o *TokenResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TokenResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -228,6 +227,7 @@ func (o *TokenResponse) HasDeletedAt() bool { func (o *TokenResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *TokenResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -251,7 +251,7 @@ func (o *TokenResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *TokenResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -270,6 +270,7 @@ func (o *TokenResponse) HasUpdatedAt() bool { func (o *TokenResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *TokenResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -521,7 +522,7 @@ func (o TokenResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TokenResponse) UnmarshalJSON(bytes []byte) (err error) { varTokenResponse := _TokenResponse{} @@ -550,7 +551,7 @@ func (o *TokenResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTokenResponse is a helper abstraction for handling nullable tokenresponse types. +// NullableTokenResponse is a helper abstraction for handling nullable tokenresponse types. type NullableTokenResponse struct { value *TokenResponse isSet bool @@ -590,7 +591,7 @@ func (v NullableTokenResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTokenResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_token_response_all_of.go b/fastly/model_token_response_all_of.go index e6c6faa..7aff8c5 100644 --- a/fastly/model_token_response_all_of.go +++ b/fastly/model_token_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // TokenResponseAllOf struct for TokenResponseAllOf type TokenResponseAllOf struct { - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` UserID *string `json:"user_id,omitempty"` // Time-stamp (UTC) of when the token was created. CreatedAt *string `json:"created_at,omitempty"` @@ -30,7 +29,7 @@ type TokenResponseAllOf struct { // IP Address of the client that last used the token. IP *string `json:"ip,omitempty"` // User-Agent header of the client that last used the token. - UserAgent *string `json:"user_agent,omitempty"` + UserAgent *string `json:"user_agent,omitempty"` AdditionalProperties map[string]any } @@ -311,7 +310,7 @@ func (o TokenResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TokenResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varTokenResponseAllOf := _TokenResponseAllOf{} @@ -335,7 +334,7 @@ func (o *TokenResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableTokenResponseAllOf is a helper abstraction for handling nullable tokenresponseallof types. +// NullableTokenResponseAllOf is a helper abstraction for handling nullable tokenresponseallof types. type NullableTokenResponseAllOf struct { value *TokenResponseAllOf isSet bool @@ -375,7 +374,7 @@ func (v NullableTokenResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTokenResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_tokens_additional_props.go b/fastly/model_tokens_additional_props.go index a83f78b..deea6ce 100644 --- a/fastly/model_tokens_additional_props.go +++ b/fastly/model_tokens_additional_props.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,11 +20,11 @@ import ( // TokensAdditionalProps struct for TokensAdditionalProps type TokensAdditionalProps struct { float32 *float32 - string *string + string *string } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *TokensAdditionalProps) UnmarshalJSON(data []byte) error { var err error // this object is nullable so check if the payload is null or empty string @@ -34,25 +33,25 @@ func (o *TokensAdditionalProps) UnmarshalJSON(data []byte) error { } // try to unmarshal JSON data into float32 - err = json.Unmarshal(data, &o.float32); + err = json.Unmarshal(data, &o.float32) if err == nil { jsonfloat32, _ := json.Marshal(o.float32) if string(jsonfloat32) != "{}" { // empty struct return nil // data stored in o.float32, return on the first match } - o.float32 = nil + o.float32 = nil } else { o.float32 = nil } // try to unmarshal JSON data into string - err = json.Unmarshal(data, &o.string); + err = json.Unmarshal(data, &o.string) if err == nil { jsonstring, _ := json.Marshal(o.string) if string(jsonstring) != "{}" { // empty struct return nil // data stored in o.string, return on the first match } - o.string = nil + o.string = nil } else { o.string = nil } @@ -74,7 +73,7 @@ func (o *TokensAdditionalProps) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableTokensAdditionalProps is a helper abstraction for handling nullable tokensadditionalprops types. +// NullableTokensAdditionalProps is a helper abstraction for handling nullable tokensadditionalprops types. type NullableTokensAdditionalProps struct { value *TokensAdditionalProps isSet bool @@ -114,7 +113,7 @@ func (v NullableTokensAdditionalProps) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTokensAdditionalProps) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_billing_address.go b/fastly/model_type_billing_address.go index d9b6e3e..8e0795a 100644 --- a/fastly/model_type_billing_address.go +++ b/fastly/model_type_billing_address.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeBillingAddressEnumValues = []TypeBillingAddress{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeBillingAddress) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeBillingAddressFromValue(v string) (*TypeBillingAddress, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeBillingAddress: valid values are %v", v, AllowedTypeBillingAddressEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeBillingAddress: valid values are %v", v, AllowedTypeBillingAddressEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeBillingAddress) Ptr() *TypeBillingAddress { return &v } -// NullableTypeBillingAddress is a helper abstraction for handling nullable typebillingaddress types. +// NullableTypeBillingAddress is a helper abstraction for handling nullable typebillingaddress types. type NullableTypeBillingAddress struct { value *TypeBillingAddress isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeBillingAddress) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeBillingAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_contact.go b/fastly/model_type_contact.go index c838f6e..1eec197 100644 --- a/fastly/model_type_contact.go +++ b/fastly/model_type_contact.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeContactEnumValues = []TypeContact{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeContact) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeContactFromValue(v string) (*TypeContact, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeContact: valid values are %v", v, AllowedTypeContactEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeContact: valid values are %v", v, AllowedTypeContactEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeContact) Ptr() *TypeContact { return &v } -// NullableTypeContact is a helper abstraction for handling nullable typecontact types. +// NullableTypeContact is a helper abstraction for handling nullable typecontact types. type NullableTypeContact struct { value *TypeContact isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeContact) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_customer.go b/fastly/model_type_customer.go index c784368..b5a5a17 100644 --- a/fastly/model_type_customer.go +++ b/fastly/model_type_customer.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeCustomerEnumValues = []TypeCustomer{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeCustomer) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeCustomerFromValue(v string) (*TypeCustomer, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeCustomer: valid values are %v", v, AllowedTypeCustomerEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeCustomer: valid values are %v", v, AllowedTypeCustomerEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeCustomer) Ptr() *TypeCustomer { return &v } -// NullableTypeCustomer is a helper abstraction for handling nullable typecustomer types. +// NullableTypeCustomer is a helper abstraction for handling nullable typecustomer types. type NullableTypeCustomer struct { value *TypeCustomer isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeCustomer) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeCustomer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_event.go b/fastly/model_type_event.go index 51800a1..6d9a704 100644 --- a/fastly/model_type_event.go +++ b/fastly/model_type_event.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeEventEnumValues = []TypeEvent{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeEvent) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeEventFromValue(v string) (*TypeEvent, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeEvent: valid values are %v", v, AllowedTypeEventEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeEvent: valid values are %v", v, AllowedTypeEventEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeEvent) Ptr() *TypeEvent { return &v } -// NullableTypeEvent is a helper abstraction for handling nullable typeevent types. +// NullableTypeEvent is a helper abstraction for handling nullable typeevent types. type NullableTypeEvent struct { value *TypeEvent isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeEvent) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_invitation.go b/fastly/model_type_invitation.go index 8257aed..fdfa99d 100644 --- a/fastly/model_type_invitation.go +++ b/fastly/model_type_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeInvitationEnumValues = []TypeInvitation{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeInvitation) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeInvitationFromValue(v string) (*TypeInvitation, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeInvitation: valid values are %v", v, AllowedTypeInvitationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeInvitation: valid values are %v", v, AllowedTypeInvitationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeInvitation) Ptr() *TypeInvitation { return &v } -// NullableTypeInvitation is a helper abstraction for handling nullable typeinvitation types. +// NullableTypeInvitation is a helper abstraction for handling nullable typeinvitation types. type NullableTypeInvitation struct { value *TypeInvitation isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_mutual_authentication.go b/fastly/model_type_mutual_authentication.go index 2f2be2d..d60f34d 100644 --- a/fastly/model_type_mutual_authentication.go +++ b/fastly/model_type_mutual_authentication.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeMutualAuthenticationEnumValues = []TypeMutualAuthentication{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeMutualAuthentication) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeMutualAuthenticationFromValue(v string) (*TypeMutualAuthentication, if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeMutualAuthentication: valid values are %v", v, AllowedTypeMutualAuthenticationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeMutualAuthentication: valid values are %v", v, AllowedTypeMutualAuthenticationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeMutualAuthentication) Ptr() *TypeMutualAuthentication { return &v } -// NullableTypeMutualAuthentication is a helper abstraction for handling nullable typemutualauthentication types. +// NullableTypeMutualAuthentication is a helper abstraction for handling nullable typemutualauthentication types. type NullableTypeMutualAuthentication struct { value *TypeMutualAuthentication isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeMutualAuthentication) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeMutualAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_resource.go b/fastly/model_type_resource.go index 8d87f38..fa45c40 100644 --- a/fastly/model_type_resource.go +++ b/fastly/model_type_resource.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -23,9 +22,9 @@ type TypeResource string // List of resourceTyperesource const ( - TYPERESOURCE_KV_STORE TypeResource = "kv-store" + TYPERESOURCE_KV_STORE TypeResource = "kv-store" TYPERESOURCE_SECRET_STORE TypeResource = "secret-store" - TYPERESOURCE_CONFIG TypeResource = "config" + TYPERESOURCE_CONFIG TypeResource = "config" ) // AllowedTypeResourceEnumValues All allowed values of TypeResource enum @@ -36,7 +35,7 @@ var AllowedTypeResourceEnumValues = []TypeResource{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeResource) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -61,7 +60,7 @@ func NewTypeResourceFromValue(v string) (*TypeResource, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeResource: valid values are %v", v, AllowedTypeResourceEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeResource: valid values are %v", v, AllowedTypeResourceEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -79,7 +78,7 @@ func (v TypeResource) Ptr() *TypeResource { return &v } -// NullableTypeResource is a helper abstraction for handling nullable typeresource types. +// NullableTypeResource is a helper abstraction for handling nullable typeresource types. type NullableTypeResource struct { value *TypeResource isSet bool @@ -119,7 +118,7 @@ func (v NullableTypeResource) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_service.go b/fastly/model_type_service.go index d044e24..b37a614 100644 --- a/fastly/model_type_service.go +++ b/fastly/model_type_service.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeServiceEnumValues = []TypeService{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeService) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeServiceFromValue(v string) (*TypeService, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeService: valid values are %v", v, AllowedTypeServiceEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeService: valid values are %v", v, AllowedTypeServiceEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeService) Ptr() *TypeService { return &v } -// NullableTypeService is a helper abstraction for handling nullable typeservice types. +// NullableTypeService is a helper abstraction for handling nullable typeservice types. type NullableTypeService struct { value *TypeService isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeService) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_service_authorization.go b/fastly/model_type_service_authorization.go index 03ecb80..2a48f17 100644 --- a/fastly/model_type_service_authorization.go +++ b/fastly/model_type_service_authorization.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeServiceAuthorizationEnumValues = []TypeServiceAuthorization{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeServiceAuthorization) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeServiceAuthorizationFromValue(v string) (*TypeServiceAuthorization, if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeServiceAuthorization: valid values are %v", v, AllowedTypeServiceAuthorizationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeServiceAuthorization: valid values are %v", v, AllowedTypeServiceAuthorizationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeServiceAuthorization) Ptr() *TypeServiceAuthorization { return &v } -// NullableTypeServiceAuthorization is a helper abstraction for handling nullable typeserviceauthorization types. +// NullableTypeServiceAuthorization is a helper abstraction for handling nullable typeserviceauthorization types. type NullableTypeServiceAuthorization struct { value *TypeServiceAuthorization isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeServiceAuthorization) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeServiceAuthorization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_service_invitation.go b/fastly/model_type_service_invitation.go index 94a7de4..d0967e3 100644 --- a/fastly/model_type_service_invitation.go +++ b/fastly/model_type_service_invitation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeServiceInvitationEnumValues = []TypeServiceInvitation{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeServiceInvitation) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeServiceInvitationFromValue(v string) (*TypeServiceInvitation, error) if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeServiceInvitation: valid values are %v", v, AllowedTypeServiceInvitationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeServiceInvitation: valid values are %v", v, AllowedTypeServiceInvitationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeServiceInvitation) Ptr() *TypeServiceInvitation { return &v } -// NullableTypeServiceInvitation is a helper abstraction for handling nullable typeserviceinvitation types. +// NullableTypeServiceInvitation is a helper abstraction for handling nullable typeserviceinvitation types. type NullableTypeServiceInvitation struct { value *TypeServiceInvitation isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeServiceInvitation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeServiceInvitation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_star.go b/fastly/model_type_star.go index 25fe074..3003d7d 100644 --- a/fastly/model_type_star.go +++ b/fastly/model_type_star.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeStarEnumValues = []TypeStar{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeStar) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeStarFromValue(v string) (*TypeStar, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeStar: valid values are %v", v, AllowedTypeStarEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeStar: valid values are %v", v, AllowedTypeStarEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeStar) Ptr() *TypeStar { return &v } -// NullableTypeStar is a helper abstraction for handling nullable typestar types. +// NullableTypeStar is a helper abstraction for handling nullable typestar types. type NullableTypeStar struct { value *TypeStar isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeStar) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeStar) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_activation.go b/fastly/model_type_tls_activation.go index a76146e..eef32f8 100644 --- a/fastly/model_type_tls_activation.go +++ b/fastly/model_type_tls_activation.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSActivationEnumValues = []TypeTLSActivation{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSActivation) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSActivationFromValue(v string) (*TypeTLSActivation, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSActivation: valid values are %v", v, AllowedTypeTLSActivationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSActivation: valid values are %v", v, AllowedTypeTLSActivationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSActivation) Ptr() *TypeTLSActivation { return &v } -// NullableTypeTLSActivation is a helper abstraction for handling nullable typetlsactivation types. +// NullableTypeTLSActivation is a helper abstraction for handling nullable typetlsactivation types. type NullableTypeTLSActivation struct { value *TypeTLSActivation isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSActivation) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSActivation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_bulk_certificate.go b/fastly/model_type_tls_bulk_certificate.go index f088a1f..d27d2fc 100644 --- a/fastly/model_type_tls_bulk_certificate.go +++ b/fastly/model_type_tls_bulk_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSBulkCertificateEnumValues = []TypeTLSBulkCertificate{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSBulkCertificate) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSBulkCertificateFromValue(v string) (*TypeTLSBulkCertificate, erro if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSBulkCertificate: valid values are %v", v, AllowedTypeTLSBulkCertificateEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSBulkCertificate: valid values are %v", v, AllowedTypeTLSBulkCertificateEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSBulkCertificate) Ptr() *TypeTLSBulkCertificate { return &v } -// NullableTypeTLSBulkCertificate is a helper abstraction for handling nullable typetlsbulkcertificate types. +// NullableTypeTLSBulkCertificate is a helper abstraction for handling nullable typetlsbulkcertificate types. type NullableTypeTLSBulkCertificate struct { value *TypeTLSBulkCertificate isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSBulkCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSBulkCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_certificate.go b/fastly/model_type_tls_certificate.go index 677937d..06ffb43 100644 --- a/fastly/model_type_tls_certificate.go +++ b/fastly/model_type_tls_certificate.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSCertificateEnumValues = []TypeTLSCertificate{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSCertificate) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSCertificateFromValue(v string) (*TypeTLSCertificate, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSCertificate: valid values are %v", v, AllowedTypeTLSCertificateEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSCertificate: valid values are %v", v, AllowedTypeTLSCertificateEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSCertificate) Ptr() *TypeTLSCertificate { return &v } -// NullableTypeTLSCertificate is a helper abstraction for handling nullable typetlscertificate types. +// NullableTypeTLSCertificate is a helper abstraction for handling nullable typetlscertificate types. type NullableTypeTLSCertificate struct { value *TypeTLSCertificate isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSCertificate) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_configuration.go b/fastly/model_type_tls_configuration.go index b885418..53a5bfb 100644 --- a/fastly/model_type_tls_configuration.go +++ b/fastly/model_type_tls_configuration.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSConfigurationEnumValues = []TypeTLSConfiguration{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSConfiguration) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSConfigurationFromValue(v string) (*TypeTLSConfiguration, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSConfiguration: valid values are %v", v, AllowedTypeTLSConfigurationEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSConfiguration: valid values are %v", v, AllowedTypeTLSConfigurationEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSConfiguration) Ptr() *TypeTLSConfiguration { return &v } -// NullableTypeTLSConfiguration is a helper abstraction for handling nullable typetlsconfiguration types. +// NullableTypeTLSConfiguration is a helper abstraction for handling nullable typetlsconfiguration types. type NullableTypeTLSConfiguration struct { value *TypeTLSConfiguration isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSConfiguration) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_csr.go b/fastly/model_type_tls_csr.go index 5a1ff58..a4200bf 100644 --- a/fastly/model_type_tls_csr.go +++ b/fastly/model_type_tls_csr.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSCsrEnumValues = []TypeTLSCsr{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSCsr) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSCsrFromValue(v string) (*TypeTLSCsr, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSCsr: valid values are %v", v, AllowedTypeTLSCsrEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSCsr: valid values are %v", v, AllowedTypeTLSCsrEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSCsr) Ptr() *TypeTLSCsr { return &v } -// NullableTypeTLSCsr is a helper abstraction for handling nullable typetlscsr types. +// NullableTypeTLSCsr is a helper abstraction for handling nullable typetlscsr types. type NullableTypeTLSCsr struct { value *TypeTLSCsr isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSCsr) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSCsr) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_dns_record.go b/fastly/model_type_tls_dns_record.go index dd6b49f..e840976 100644 --- a/fastly/model_type_tls_dns_record.go +++ b/fastly/model_type_tls_dns_record.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSDNSRecordEnumValues = []TypeTLSDNSRecord{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSDNSRecord) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSDNSRecordFromValue(v string) (*TypeTLSDNSRecord, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSDNSRecord: valid values are %v", v, AllowedTypeTLSDNSRecordEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSDNSRecord: valid values are %v", v, AllowedTypeTLSDNSRecordEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSDNSRecord) Ptr() *TypeTLSDNSRecord { return &v } -// NullableTypeTLSDNSRecord is a helper abstraction for handling nullable typetlsdnsrecord types. +// NullableTypeTLSDNSRecord is a helper abstraction for handling nullable typetlsdnsrecord types. type NullableTypeTLSDNSRecord struct { value *TypeTLSDNSRecord isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSDNSRecord) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSDNSRecord) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_domain.go b/fastly/model_type_tls_domain.go index 808494e..0f48a96 100644 --- a/fastly/model_type_tls_domain.go +++ b/fastly/model_type_tls_domain.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSDomainEnumValues = []TypeTLSDomain{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSDomain) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSDomainFromValue(v string) (*TypeTLSDomain, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSDomain: valid values are %v", v, AllowedTypeTLSDomainEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSDomain: valid values are %v", v, AllowedTypeTLSDomainEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSDomain) Ptr() *TypeTLSDomain { return &v } -// NullableTypeTLSDomain is a helper abstraction for handling nullable typetlsdomain types. +// NullableTypeTLSDomain is a helper abstraction for handling nullable typetlsdomain types. type NullableTypeTLSDomain struct { value *TypeTLSDomain isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSDomain) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSDomain) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_private_key.go b/fastly/model_type_tls_private_key.go index bf53af3..dd5e7f6 100644 --- a/fastly/model_type_tls_private_key.go +++ b/fastly/model_type_tls_private_key.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSPrivateKeyEnumValues = []TypeTLSPrivateKey{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSPrivateKey) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSPrivateKeyFromValue(v string) (*TypeTLSPrivateKey, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSPrivateKey: valid values are %v", v, AllowedTypeTLSPrivateKeyEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSPrivateKey: valid values are %v", v, AllowedTypeTLSPrivateKeyEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSPrivateKey) Ptr() *TypeTLSPrivateKey { return &v } -// NullableTypeTLSPrivateKey is a helper abstraction for handling nullable typetlsprivatekey types. +// NullableTypeTLSPrivateKey is a helper abstraction for handling nullable typetlsprivatekey types. type NullableTypeTLSPrivateKey struct { value *TypeTLSPrivateKey isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSPrivateKey) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSPrivateKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_tls_subscription.go b/fastly/model_type_tls_subscription.go index eba7af7..0a9adf5 100644 --- a/fastly/model_type_tls_subscription.go +++ b/fastly/model_type_tls_subscription.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeTLSSubscriptionEnumValues = []TypeTLSSubscription{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeTLSSubscription) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeTLSSubscriptionFromValue(v string) (*TypeTLSSubscription, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeTLSSubscription: valid values are %v", v, AllowedTypeTLSSubscriptionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeTLSSubscription: valid values are %v", v, AllowedTypeTLSSubscriptionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeTLSSubscription) Ptr() *TypeTLSSubscription { return &v } -// NullableTypeTLSSubscription is a helper abstraction for handling nullable typetlssubscription types. +// NullableTypeTLSSubscription is a helper abstraction for handling nullable typetlssubscription types. type NullableTypeTLSSubscription struct { value *TypeTLSSubscription isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeTLSSubscription) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeTLSSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_user.go b/fastly/model_type_user.go index 7f23c81..78573b4 100644 --- a/fastly/model_type_user.go +++ b/fastly/model_type_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeUserEnumValues = []TypeUser{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeUser) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeUserFromValue(v string) (*TypeUser, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeUser: valid values are %v", v, AllowedTypeUserEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeUser: valid values are %v", v, AllowedTypeUserEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeUser) Ptr() *TypeUser { return &v } -// NullableTypeUser is a helper abstraction for handling nullable typeuser types. +// NullableTypeUser is a helper abstraction for handling nullable typeuser types. type NullableTypeUser struct { value *TypeUser isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_active_rule.go b/fastly/model_type_waf_active_rule.go index 9cfb84b..5d6a2cc 100644 --- a/fastly/model_type_waf_active_rule.go +++ b/fastly/model_type_waf_active_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafActiveRuleEnumValues = []TypeWafActiveRule{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafActiveRule) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafActiveRuleFromValue(v string) (*TypeWafActiveRule, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafActiveRule: valid values are %v", v, AllowedTypeWafActiveRuleEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafActiveRule: valid values are %v", v, AllowedTypeWafActiveRuleEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafActiveRule) Ptr() *TypeWafActiveRule { return &v } -// NullableTypeWafActiveRule is a helper abstraction for handling nullable typewafactiverule types. +// NullableTypeWafActiveRule is a helper abstraction for handling nullable typewafactiverule types. type NullableTypeWafActiveRule struct { value *TypeWafActiveRule isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafActiveRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_exclusion.go b/fastly/model_type_waf_exclusion.go index 5728e46..f583205 100644 --- a/fastly/model_type_waf_exclusion.go +++ b/fastly/model_type_waf_exclusion.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafExclusionEnumValues = []TypeWafExclusion{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafExclusion) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafExclusionFromValue(v string) (*TypeWafExclusion, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafExclusion: valid values are %v", v, AllowedTypeWafExclusionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafExclusion: valid values are %v", v, AllowedTypeWafExclusionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafExclusion) Ptr() *TypeWafExclusion { return &v } -// NullableTypeWafExclusion is a helper abstraction for handling nullable typewafexclusion types. +// NullableTypeWafExclusion is a helper abstraction for handling nullable typewafexclusion types. type NullableTypeWafExclusion struct { value *TypeWafExclusion isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafExclusion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafExclusion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_firewall.go b/fastly/model_type_waf_firewall.go index 6c6b76d..d34f63e 100644 --- a/fastly/model_type_waf_firewall.go +++ b/fastly/model_type_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafFirewallEnumValues = []TypeWafFirewall{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafFirewall) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafFirewallFromValue(v string) (*TypeWafFirewall, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafFirewall: valid values are %v", v, AllowedTypeWafFirewallEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafFirewall: valid values are %v", v, AllowedTypeWafFirewallEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafFirewall) Ptr() *TypeWafFirewall { return &v } -// NullableTypeWafFirewall is a helper abstraction for handling nullable typewaffirewall types. +// NullableTypeWafFirewall is a helper abstraction for handling nullable typewaffirewall types. type NullableTypeWafFirewall struct { value *TypeWafFirewall isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_firewall_version.go b/fastly/model_type_waf_firewall_version.go index 014e691..6e0aa0f 100644 --- a/fastly/model_type_waf_firewall_version.go +++ b/fastly/model_type_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafFirewallVersionEnumValues = []TypeWafFirewallVersion{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafFirewallVersion) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafFirewallVersionFromValue(v string) (*TypeWafFirewallVersion, erro if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafFirewallVersion: valid values are %v", v, AllowedTypeWafFirewallVersionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafFirewallVersion: valid values are %v", v, AllowedTypeWafFirewallVersionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafFirewallVersion) Ptr() *TypeWafFirewallVersion { return &v } -// NullableTypeWafFirewallVersion is a helper abstraction for handling nullable typewaffirewallversion types. +// NullableTypeWafFirewallVersion is a helper abstraction for handling nullable typewaffirewallversion types. type NullableTypeWafFirewallVersion struct { value *TypeWafFirewallVersion isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_rule.go b/fastly/model_type_waf_rule.go index 48ea759..6b3c24b 100644 --- a/fastly/model_type_waf_rule.go +++ b/fastly/model_type_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafRuleEnumValues = []TypeWafRule{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafRule) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafRuleFromValue(v string) (*TypeWafRule, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafRule: valid values are %v", v, AllowedTypeWafRuleEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafRule: valid values are %v", v, AllowedTypeWafRuleEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafRule) Ptr() *TypeWafRule { return &v } -// NullableTypeWafRule is a helper abstraction for handling nullable typewafrule types. +// NullableTypeWafRule is a helper abstraction for handling nullable typewafrule types. type NullableTypeWafRule struct { value *TypeWafRule isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_rule_revision.go b/fastly/model_type_waf_rule_revision.go index 5184e8e..3ebe677 100644 --- a/fastly/model_type_waf_rule_revision.go +++ b/fastly/model_type_waf_rule_revision.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafRuleRevisionEnumValues = []TypeWafRuleRevision{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafRuleRevision) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafRuleRevisionFromValue(v string) (*TypeWafRuleRevision, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafRuleRevision: valid values are %v", v, AllowedTypeWafRuleRevisionEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafRuleRevision: valid values are %v", v, AllowedTypeWafRuleRevisionEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafRuleRevision) Ptr() *TypeWafRuleRevision { return &v } -// NullableTypeWafRuleRevision is a helper abstraction for handling nullable typewafrulerevision types. +// NullableTypeWafRuleRevision is a helper abstraction for handling nullable typewafrulerevision types. type NullableTypeWafRuleRevision struct { value *TypeWafRuleRevision isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafRuleRevision) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_type_waf_tag.go b/fastly/model_type_waf_tag.go index cdef325..b73143a 100644 --- a/fastly/model_type_waf_tag.go +++ b/fastly/model_type_waf_tag.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -32,7 +31,7 @@ var AllowedTypeWafTagEnumValues = []TypeWafTag{ } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *TypeWafTag) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -57,7 +56,7 @@ func NewTypeWafTagFromValue(v string) (*TypeWafTag, error) { if ev.IsValid() { return &ev, nil } - return nil, fmt.Errorf("invalid value '%v' for TypeWafTag: valid values are %v", v, AllowedTypeWafTagEnumValues) + return nil, fmt.Errorf("invalid value '%v' for TypeWafTag: valid values are %v", v, AllowedTypeWafTagEnumValues) } // IsValid return true if the value is valid for the enum, false otherwise @@ -75,7 +74,7 @@ func (v TypeWafTag) Ptr() *TypeWafTag { return &v } -// NullableTypeWafTag is a helper abstraction for handling nullable typewaftag types. +// NullableTypeWafTag is a helper abstraction for handling nullable typewaftag types. type NullableTypeWafTag struct { value *TypeWafTag isSet bool @@ -115,7 +114,7 @@ func (v NullableTypeWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTypeWafTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_update_billing_address_request.go b/fastly/model_update_billing_address_request.go index 6250ee4..939374d 100644 --- a/fastly/model_update_billing_address_request.go +++ b/fastly/model_update_billing_address_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,8 +19,8 @@ import ( // UpdateBillingAddressRequest struct for UpdateBillingAddressRequest type UpdateBillingAddressRequest struct { // When set to true, the address will be saved without verification - SkipVerification *bool `json:"skip_verification,omitempty"` - Data *UpdateBillingAddressRequestData `json:"data,omitempty"` + SkipVerification *bool `json:"skip_verification,omitempty"` + Data *UpdateBillingAddressRequestData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o UpdateBillingAddressRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *UpdateBillingAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varUpdateBillingAddressRequest := _UpdateBillingAddressRequest{} @@ -146,7 +145,7 @@ func (o *UpdateBillingAddressRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUpdateBillingAddressRequest is a helper abstraction for handling nullable updatebillingaddressrequest types. +// NullableUpdateBillingAddressRequest is a helper abstraction for handling nullable updatebillingaddressrequest types. type NullableUpdateBillingAddressRequest struct { value *UpdateBillingAddressRequest isSet bool @@ -186,7 +185,7 @@ func (v NullableUpdateBillingAddressRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUpdateBillingAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_update_billing_address_request_data.go b/fastly/model_update_billing_address_request_data.go index 77aa924..243819f 100644 --- a/fastly/model_update_billing_address_request_data.go +++ b/fastly/model_update_billing_address_request_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type UpdateBillingAddressRequestData struct { Type *TypeBillingAddress `json:"type,omitempty"` // Alphanumeric string identifying the billing address. - ID *string `json:"id,omitempty"` - Attributes *BillingAddressAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *BillingAddressAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o UpdateBillingAddressRequestData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *UpdateBillingAddressRequestData) UnmarshalJSON(bytes []byte) (err error) { varUpdateBillingAddressRequestData := _UpdateBillingAddressRequestData{} @@ -187,7 +186,7 @@ func (o *UpdateBillingAddressRequestData) UnmarshalJSON(bytes []byte) (err error return err } -// NullableUpdateBillingAddressRequestData is a helper abstraction for handling nullable updatebillingaddressrequestdata types. +// NullableUpdateBillingAddressRequestData is a helper abstraction for handling nullable updatebillingaddressrequestdata types. type NullableUpdateBillingAddressRequestData struct { value *UpdateBillingAddressRequestData isSet bool @@ -227,7 +226,7 @@ func (v NullableUpdateBillingAddressRequestData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUpdateBillingAddressRequestData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_update_dashboard_request.go b/fastly/model_update_dashboard_request.go index 5792406..999e7e7 100644 --- a/fastly/model_update_dashboard_request.go +++ b/fastly/model_update_dashboard_request.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type UpdateDashboardRequest struct { // A short description of the dashboard Description *string `json:"description,omitempty"` // A list of [dashboard items](#dashboard-item). - Items []DashboardItem `json:"items,omitempty"` + Items []DashboardItem `json:"items,omitempty"` AdditionalProperties map[string]any } @@ -113,7 +112,7 @@ func (o *UpdateDashboardRequest) SetDescription(v string) { // GetItems returns the Items field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UpdateDashboardRequest) GetItems() []DashboardItem { - if o == nil { + if o == nil { var ret []DashboardItem return ret } @@ -166,7 +165,7 @@ func (o UpdateDashboardRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *UpdateDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { varUpdateDashboardRequest := _UpdateDashboardRequest{} @@ -186,7 +185,7 @@ func (o *UpdateDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUpdateDashboardRequest is a helper abstraction for handling nullable updatedashboardrequest types. +// NullableUpdateDashboardRequest is a helper abstraction for handling nullable updatedashboardrequest types. type NullableUpdateDashboardRequest struct { value *UpdateDashboardRequest isSet bool @@ -226,7 +225,7 @@ func (v NullableUpdateDashboardRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUpdateDashboardRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_user.go b/fastly/model_user.go index c4a87d5..6743ab8 100644 --- a/fastly/model_user.go +++ b/fastly/model_user.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -28,12 +27,12 @@ type User struct { Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. RequireNewPassword NullableBool `json:"require_new_password,omitempty"` - Role *RoleUser `json:"role,omitempty"` + Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. TwoFactorSetupRequired *bool `json:"two_factor_setup_required,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _User User @@ -164,7 +163,7 @@ func (o *User) GetLocked() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetLockedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.Locked.Get(), o.Locked.IsSet() @@ -183,6 +182,7 @@ func (o *User) HasLocked() bool { func (o *User) SetLocked(v bool) { o.Locked.Set(&v) } + // SetLockedNil sets the value for Locked to be an explicit nil func (o *User) SetLockedNil() { o.Locked.Set(nil) @@ -206,7 +206,7 @@ func (o *User) GetRequireNewPassword() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() @@ -225,6 +225,7 @@ func (o *User) HasRequireNewPassword() bool { func (o *User) SetRequireNewPassword(v bool) { o.RequireNewPassword.Set(&v) } + // SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil func (o *User) SetRequireNewPasswordNil() { o.RequireNewPassword.Set(nil) @@ -280,7 +281,7 @@ func (o *User) GetTwoFactorAuthEnabled() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *User) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() @@ -299,6 +300,7 @@ func (o *User) HasTwoFactorAuthEnabled() bool { func (o *User) SetTwoFactorAuthEnabled(v bool) { o.TwoFactorAuthEnabled.Set(&v) } + // SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil func (o *User) SetTwoFactorAuthEnabledNil() { o.TwoFactorAuthEnabled.Set(nil) @@ -378,7 +380,7 @@ func (o User) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *User) UnmarshalJSON(bytes []byte) (err error) { varUser := _User{} @@ -403,7 +405,7 @@ func (o *User) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUser is a helper abstraction for handling nullable user types. +// NullableUser is a helper abstraction for handling nullable user types. type NullableUser struct { value *User isSet bool @@ -443,7 +445,7 @@ func (v NullableUser) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_user_response.go b/fastly/model_user_response.go index 35003e8..2c37136 100644 --- a/fastly/model_user_response.go +++ b/fastly/model_user_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,7 +28,7 @@ type UserResponse struct { Locked NullableBool `json:"locked,omitempty"` // Indicates if a new password is required at next login. RequireNewPassword NullableBool `json:"require_new_password,omitempty"` - Role *RoleUser `json:"role,omitempty"` + Role *RoleUser `json:"role,omitempty"` // Indicates if 2FA is enabled on the user. TwoFactorAuthEnabled NullableBool `json:"two_factor_auth_enabled,omitempty"` // Indicates if 2FA is required by the user's customer account. @@ -40,10 +39,10 @@ type UserResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` // The alphanumeric string identifying a email login. - EmailHash *string `json:"email_hash,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + EmailHash *string `json:"email_hash,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -175,7 +174,7 @@ func (o *UserResponse) GetLocked() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetLockedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.Locked.Get(), o.Locked.IsSet() @@ -194,6 +193,7 @@ func (o *UserResponse) HasLocked() bool { func (o *UserResponse) SetLocked(v bool) { o.Locked.Set(&v) } + // SetLockedNil sets the value for Locked to be an explicit nil func (o *UserResponse) SetLockedNil() { o.Locked.Set(nil) @@ -217,7 +217,7 @@ func (o *UserResponse) GetRequireNewPassword() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetRequireNewPasswordOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.RequireNewPassword.Get(), o.RequireNewPassword.IsSet() @@ -236,6 +236,7 @@ func (o *UserResponse) HasRequireNewPassword() bool { func (o *UserResponse) SetRequireNewPassword(v bool) { o.RequireNewPassword.Set(&v) } + // SetRequireNewPasswordNil sets the value for RequireNewPassword to be an explicit nil func (o *UserResponse) SetRequireNewPasswordNil() { o.RequireNewPassword.Set(nil) @@ -291,7 +292,7 @@ func (o *UserResponse) GetTwoFactorAuthEnabled() bool { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetTwoFactorAuthEnabledOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return o.TwoFactorAuthEnabled.Get(), o.TwoFactorAuthEnabled.IsSet() @@ -310,6 +311,7 @@ func (o *UserResponse) HasTwoFactorAuthEnabled() bool { func (o *UserResponse) SetTwoFactorAuthEnabled(v bool) { o.TwoFactorAuthEnabled.Set(&v) } + // SetTwoFactorAuthEnabledNil sets the value for TwoFactorAuthEnabled to be an explicit nil func (o *UserResponse) SetTwoFactorAuthEnabledNil() { o.TwoFactorAuthEnabled.Set(nil) @@ -365,7 +367,7 @@ func (o *UserResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -384,6 +386,7 @@ func (o *UserResponse) HasCreatedAt() bool { func (o *UserResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *UserResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -407,7 +410,7 @@ func (o *UserResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -426,6 +429,7 @@ func (o *UserResponse) HasDeletedAt() bool { func (o *UserResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *UserResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -449,7 +453,7 @@ func (o *UserResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UserResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -468,6 +472,7 @@ func (o *UserResponse) HasUpdatedAt() bool { func (o *UserResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *UserResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -629,7 +634,7 @@ func (o UserResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *UserResponse) UnmarshalJSON(bytes []byte) (err error) { varUserResponse := _UserResponse{} @@ -660,7 +665,7 @@ func (o *UserResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUserResponse is a helper abstraction for handling nullable userresponse types. +// NullableUserResponse is a helper abstraction for handling nullable userresponse types. type NullableUserResponse struct { value *UserResponse isSet bool @@ -700,7 +705,7 @@ func (v NullableUserResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUserResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_user_response_read_only.go b/fastly/model_user_response_read_only.go index 4abc703..8ba7d0a 100644 --- a/fastly/model_user_response_read_only.go +++ b/fastly/model_user_response_read_only.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type UserResponseReadOnly struct { ID *string `json:"id,omitempty"` // The alphanumeric string identifying a email login. - EmailHash *string `json:"email_hash,omitempty"` - CustomerID *string `json:"customer_id,omitempty"` + EmailHash *string `json:"email_hash,omitempty"` + CustomerID *string `json:"customer_id,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o UserResponseReadOnly) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *UserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { varUserResponseReadOnly := _UserResponseReadOnly{} @@ -183,7 +182,7 @@ func (o *UserResponseReadOnly) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableUserResponseReadOnly is a helper abstraction for handling nullable userresponsereadonly types. +// NullableUserResponseReadOnly is a helper abstraction for handling nullable userresponsereadonly types. type NullableUserResponseReadOnly struct { value *UserResponseReadOnly isSet bool @@ -223,7 +222,7 @@ func (v NullableUserResponseReadOnly) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableUserResponseReadOnly) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_validator_result.go b/fastly/model_validator_result.go index 84031e6..c86f37a 100644 --- a/fastly/model_validator_result.go +++ b/fastly/model_validator_result.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ValidatorResult Results from VCL linting type ValidatorResult struct { - Data *ValidatorResultData `json:"data,omitempty"` + Data *ValidatorResultData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o ValidatorResult) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ValidatorResult) UnmarshalJSON(bytes []byte) (err error) { varValidatorResult := _ValidatorResult{} @@ -108,7 +107,7 @@ func (o *ValidatorResult) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableValidatorResult is a helper abstraction for handling nullable validatorresult types. +// NullableValidatorResult is a helper abstraction for handling nullable validatorresult types. type NullableValidatorResult struct { value *ValidatorResult isSet bool @@ -148,7 +147,7 @@ func (v NullableValidatorResult) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValidatorResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_validator_result_data.go b/fastly/model_validator_result_data.go index 0d452a7..5507d6d 100644 --- a/fastly/model_validator_result_data.go +++ b/fastly/model_validator_result_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ValidatorResultData struct for ValidatorResultData type ValidatorResultData struct { - ID *string `json:"id,omitempty"` - Type *string `json:"type,omitempty"` - Attributes *ValidatorResultDataAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Type *string `json:"type,omitempty"` + Attributes *ValidatorResultDataAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o ValidatorResultData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ValidatorResultData) UnmarshalJSON(bytes []byte) (err error) { varValidatorResultData := _ValidatorResultData{} @@ -182,7 +181,7 @@ func (o *ValidatorResultData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableValidatorResultData is a helper abstraction for handling nullable validatorresultdata types. +// NullableValidatorResultData is a helper abstraction for handling nullable validatorresultdata types. type NullableValidatorResultData struct { value *ValidatorResultData isSet bool @@ -222,7 +221,7 @@ func (v NullableValidatorResultData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValidatorResultData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_validator_result_data_attributes.go b/fastly/model_validator_result_data_attributes.go index 0c53460..b6d2311 100644 --- a/fastly/model_validator_result_data_attributes.go +++ b/fastly/model_validator_result_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,18 +12,17 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ValidatorResultDataAttributes struct for ValidatorResultDataAttributes type ValidatorResultDataAttributes struct { - Msg NullableString `json:"msg,omitempty"` - Status *string `json:"status,omitempty"` - Errors []string `json:"errors,omitempty"` - Warnings []string `json:"warnings,omitempty"` - Messages []ValidatorResultDataAttributesMessages `json:"messages,omitempty"` + Msg NullableString `json:"msg,omitempty"` + Status *string `json:"status,omitempty"` + Errors []string `json:"errors,omitempty"` + Warnings []string `json:"warnings,omitempty"` + Messages []ValidatorResultDataAttributesMessages `json:"messages,omitempty"` AdditionalProperties map[string]any } @@ -59,7 +58,7 @@ func (o *ValidatorResultDataAttributes) GetMsg() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ValidatorResultDataAttributes) GetMsgOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Msg.Get(), o.Msg.IsSet() @@ -78,6 +77,7 @@ func (o *ValidatorResultDataAttributes) HasMsg() bool { func (o *ValidatorResultDataAttributes) SetMsg(v string) { o.Msg.Set(&v) } + // SetMsgNil sets the value for Msg to be an explicit nil func (o *ValidatorResultDataAttributes) SetMsgNil() { o.Msg.Set(nil) @@ -244,7 +244,7 @@ func (o ValidatorResultDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ValidatorResultDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varValidatorResultDataAttributes := _ValidatorResultDataAttributes{} @@ -266,7 +266,7 @@ func (o *ValidatorResultDataAttributes) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableValidatorResultDataAttributes is a helper abstraction for handling nullable validatorresultdataattributes types. +// NullableValidatorResultDataAttributes is a helper abstraction for handling nullable validatorresultdataattributes types. type NullableValidatorResultDataAttributes struct { value *ValidatorResultDataAttributes isSet bool @@ -306,7 +306,7 @@ func (v NullableValidatorResultDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValidatorResultDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_validator_result_data_attributes_messages.go b/fastly/model_validator_result_data_attributes_messages.go index ab5f5c8..e3b36b7 100644 --- a/fastly/model_validator_result_data_attributes_messages.go +++ b/fastly/model_validator_result_data_attributes_messages.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // ValidatorResultDataAttributesMessages struct for ValidatorResultDataAttributesMessages type ValidatorResultDataAttributesMessages struct { - Type string `json:"type"` - Warning bool `json:"warning"` - Message string `json:"message"` - Tokens []map[string]TokensAdditionalProps `json:"tokens"` + Type string `json:"type"` + Warning bool `json:"warning"` + Message string `json:"message"` + Tokens []map[string]TokensAdditionalProps `json:"tokens"` AdditionalProperties map[string]any } @@ -62,7 +61,7 @@ func (o *ValidatorResultDataAttributesMessages) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *ValidatorResultDataAttributesMessages) GetTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Type, true @@ -86,7 +85,7 @@ func (o *ValidatorResultDataAttributesMessages) GetWarning() bool { // GetWarningOk returns a tuple with the Warning field value // and a boolean to check if the value has been set. func (o *ValidatorResultDataAttributesMessages) GetWarningOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Warning, true @@ -110,7 +109,7 @@ func (o *ValidatorResultDataAttributesMessages) GetMessage() string { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. func (o *ValidatorResultDataAttributesMessages) GetMessageOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Message, true @@ -134,7 +133,7 @@ func (o *ValidatorResultDataAttributesMessages) GetTokens() []map[string]TokensA // GetTokensOk returns a tuple with the Tokens field value // and a boolean to check if the value has been set. func (o *ValidatorResultDataAttributesMessages) GetTokensOk() ([]map[string]TokensAdditionalProps, bool) { - if o == nil { + if o == nil { return nil, false } return o.Tokens, true @@ -170,7 +169,7 @@ func (o ValidatorResultDataAttributesMessages) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ValidatorResultDataAttributesMessages) UnmarshalJSON(bytes []byte) (err error) { varValidatorResultDataAttributesMessages := _ValidatorResultDataAttributesMessages{} @@ -191,7 +190,7 @@ func (o *ValidatorResultDataAttributesMessages) UnmarshalJSON(bytes []byte) (err return err } -// NullableValidatorResultDataAttributesMessages is a helper abstraction for handling nullable validatorresultdataattributesmessages types. +// NullableValidatorResultDataAttributesMessages is a helper abstraction for handling nullable validatorresultdataattributesmessages types. type NullableValidatorResultDataAttributesMessages struct { value *ValidatorResultDataAttributesMessages isSet bool @@ -231,7 +230,7 @@ func (v NullableValidatorResultDataAttributesMessages) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValidatorResultDataAttributesMessages) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_values.go b/fastly/model_values.go index 0bd5c58..630031d 100644 --- a/fastly/model_values.go +++ b/fastly/model_values.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -142,7 +141,7 @@ type Values struct { // Number of \"Client Error\" codes received from origin. OriginStatus4xx *int32 `json:"origin_status_4xx,omitempty"` // Number of \"Server Error\" codes received from origin. - OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` + OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` AdditionalProperties map[string]any } @@ -2348,7 +2347,7 @@ func (o Values) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Values) UnmarshalJSON(bytes []byte) (err error) { varValues := _Values{} @@ -2427,7 +2426,7 @@ func (o *Values) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableValues is a helper abstraction for handling nullable values types. +// NullableValues is a helper abstraction for handling nullable values types. type NullableValues struct { value *Values isSet bool @@ -2467,7 +2466,7 @@ func (v NullableValues) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValues) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_values_ddos.go b/fastly/model_values_ddos.go index c891913..71ae0a8 100644 --- a/fastly/model_values_ddos.go +++ b/fastly/model_values_ddos.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type ValuesDdos struct { // The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. DdosActionClose *int32 `json:"ddos_action_close,omitempty"` // The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). - DdosActionBlackhole *int32 `json:"ddos_action_blackhole,omitempty"` + DdosActionBlackhole *int32 `json:"ddos_action_blackhole,omitempty"` AdditionalProperties map[string]any } @@ -276,7 +275,7 @@ func (o ValuesDdos) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *ValuesDdos) UnmarshalJSON(bytes []byte) (err error) { varValuesDdos := _ValuesDdos{} @@ -299,7 +298,7 @@ func (o *ValuesDdos) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableValuesDdos is a helper abstraction for handling nullable valuesddos types. +// NullableValuesDdos is a helper abstraction for handling nullable valuesddos types. type NullableValuesDdos struct { value *ValuesDdos isSet bool @@ -339,7 +338,7 @@ func (v NullableValuesDdos) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableValuesDdos) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_vcl.go b/fastly/model_vcl.go index 890eadf..ffd05aa 100644 --- a/fastly/model_vcl.go +++ b/fastly/model_vcl.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type Vcl struct { // Set to `true` when this is the main VCL, otherwise `false`. Main *bool `json:"main,omitempty"` // The name of this VCL. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o Vcl) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Vcl) UnmarshalJSON(bytes []byte) (err error) { varVcl := _Vcl{} @@ -185,7 +184,7 @@ func (o *Vcl) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVcl is a helper abstraction for handling nullable vcl types. +// NullableVcl is a helper abstraction for handling nullable vcl types. type NullableVcl struct { value *Vcl isSet bool @@ -225,7 +224,7 @@ func (v NullableVcl) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVcl) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_vcl_diff.go b/fastly/model_vcl_diff.go index c9bcc01..41c5a3e 100644 --- a/fastly/model_vcl_diff.go +++ b/fastly/model_vcl_diff.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -26,7 +25,7 @@ type VclDiff struct { // The format in which compared VCL changes are being returned in. Format *string `json:"format,omitempty"` // The differences between two specified versions. - Diff *string `json:"diff,omitempty"` + Diff *string `json:"diff,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o VclDiff) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VclDiff) UnmarshalJSON(bytes []byte) (err error) { varVclDiff := _VclDiff{} @@ -223,7 +222,7 @@ func (o *VclDiff) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVclDiff is a helper abstraction for handling nullable vcldiff types. +// NullableVclDiff is a helper abstraction for handling nullable vcldiff types. type NullableVclDiff struct { value *VclDiff isSet bool @@ -263,7 +262,7 @@ func (v NullableVclDiff) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVclDiff) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_vcl_response.go b/fastly/model_vcl_response.go index 1c47427..0c537d8 100644 --- a/fastly/model_vcl_response.go +++ b/fastly/model_vcl_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -25,15 +24,15 @@ type VclResponse struct { // Set to `true` when this is the main VCL, otherwise `false`. Main *bool `json:"main,omitempty"` // The name of this VCL. - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` ServiceID *string `json:"service_id,omitempty"` - Version *int32 `json:"version,omitempty"` + Version *int32 `json:"version,omitempty"` // Date and time in ISO 8601 format. CreatedAt NullableTime `json:"created_at,omitempty"` // Date and time in ISO 8601 format. DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. - UpdatedAt NullableTime `json:"updated_at,omitempty"` + UpdatedAt NullableTime `json:"updated_at,omitempty"` AdditionalProperties map[string]any } @@ -229,7 +228,7 @@ func (o *VclResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VclResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -248,6 +247,7 @@ func (o *VclResponse) HasCreatedAt() bool { func (o *VclResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *VclResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -271,7 +271,7 @@ func (o *VclResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VclResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -290,6 +290,7 @@ func (o *VclResponse) HasDeletedAt() bool { func (o *VclResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *VclResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -313,7 +314,7 @@ func (o *VclResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VclResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -332,6 +333,7 @@ func (o *VclResponse) HasUpdatedAt() bool { func (o *VclResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *VclResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -379,7 +381,7 @@ func (o VclResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VclResponse) UnmarshalJSON(bytes []byte) (err error) { varVclResponse := _VclResponse{} @@ -404,7 +406,7 @@ func (o *VclResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVclResponse is a helper abstraction for handling nullable vclresponse types. +// NullableVclResponse is a helper abstraction for handling nullable vclresponse types. type NullableVclResponse struct { value *VclResponse isSet bool @@ -444,7 +446,7 @@ func (v NullableVclResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVclResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_vcl_syntax_highlighting_response.go b/fastly/model_vcl_syntax_highlighting_response.go index 602eeff..ad11dac 100644 --- a/fastly/model_vcl_syntax_highlighting_response.go +++ b/fastly/model_vcl_syntax_highlighting_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,7 +19,7 @@ import ( // VclSyntaxHighlightingResponse struct for VclSyntaxHighlightingResponse type VclSyntaxHighlightingResponse struct { // VCL with HTML syntax highlighting. - Content *string `json:"content,omitempty"` + Content *string `json:"content,omitempty"` AdditionalProperties map[string]any } @@ -91,7 +90,7 @@ func (o VclSyntaxHighlightingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VclSyntaxHighlightingResponse) UnmarshalJSON(bytes []byte) (err error) { varVclSyntaxHighlightingResponse := _VclSyntaxHighlightingResponse{} @@ -109,7 +108,7 @@ func (o *VclSyntaxHighlightingResponse) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableVclSyntaxHighlightingResponse is a helper abstraction for handling nullable vclsyntaxhighlightingresponse types. +// NullableVclSyntaxHighlightingResponse is a helper abstraction for handling nullable vclsyntaxhighlightingresponse types. type NullableVclSyntaxHighlightingResponse struct { value *VclSyntaxHighlightingResponse isSet bool @@ -149,7 +148,7 @@ func (v NullableVclSyntaxHighlightingResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVclSyntaxHighlightingResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version.go b/fastly/model_version.go index 708802f..a2a1ea0 100644 --- a/fastly/model_version.go +++ b/fastly/model_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -32,7 +31,7 @@ type Version struct { // Unused at this time. Staging *bool `json:"staging,omitempty"` // Unused at this time. - Testing *bool `json:"testing,omitempty"` + Testing *bool `json:"testing,omitempty"` AdditionalProperties map[string]any } @@ -116,7 +115,7 @@ func (o *Version) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Version) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -135,6 +134,7 @@ func (o *Version) HasComment() bool { func (o *Version) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *Version) SetCommentNil() { o.Comment.Set(nil) @@ -339,7 +339,7 @@ func (o Version) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *Version) UnmarshalJSON(bytes []byte) (err error) { varVersion := _Version{} @@ -363,7 +363,7 @@ func (o *Version) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersion is a helper abstraction for handling nullable version types. +// NullableVersion is a helper abstraction for handling nullable version types. type NullableVersion struct { value *Version isSet bool @@ -403,7 +403,7 @@ func (v NullableVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version_create_response.go b/fastly/model_version_create_response.go index 5211cc5..5ff504d 100644 --- a/fastly/model_version_create_response.go +++ b/fastly/model_version_create_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // VersionCreateResponse struct for VersionCreateResponse type VersionCreateResponse struct { - Number *int32 `json:"number,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + Number *int32 `json:"number,omitempty"` + ServiceID *string `json:"service_id,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o VersionCreateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VersionCreateResponse) UnmarshalJSON(bytes []byte) (err error) { varVersionCreateResponse := _VersionCreateResponse{} @@ -145,7 +144,7 @@ func (o *VersionCreateResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersionCreateResponse is a helper abstraction for handling nullable versioncreateresponse types. +// NullableVersionCreateResponse is a helper abstraction for handling nullable versioncreateresponse types. type NullableVersionCreateResponse struct { value *VersionCreateResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableVersionCreateResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersionCreateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version_detail.go b/fastly/model_version_detail.go index 99ec407..123570a 100644 --- a/fastly/model_version_detail.go +++ b/fastly/model_version_detail.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -39,13 +38,13 @@ type VersionDetail struct { RequestSettings []RequestSettingsResponse `json:"request_settings,omitempty"` // List of response objects for this service. ResponseObjects []ResponseObjectResponse `json:"response_objects,omitempty"` - Settings *VersionDetailSettings `json:"settings,omitempty"` + Settings *VersionDetailSettings `json:"settings,omitempty"` // List of VCL snippets for this service. Snippets []SchemasSnippetResponse `json:"snippets,omitempty"` // List of VCL files for this service. Vcls []SchemasVclResponse `json:"vcls,omitempty"` // A list of Wordpress rules with this service. - Wordpress []*map[string]any `json:"wordpress,omitempty"` + Wordpress []*map[string]any `json:"wordpress,omitempty"` AdditionalProperties map[string]any } @@ -571,7 +570,7 @@ func (o VersionDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VersionDetail) UnmarshalJSON(bytes []byte) (err error) { varVersionDetail := _VersionDetail{} @@ -602,7 +601,7 @@ func (o *VersionDetail) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersionDetail is a helper abstraction for handling nullable versiondetail types. +// NullableVersionDetail is a helper abstraction for handling nullable versiondetail types. type NullableVersionDetail struct { value *VersionDetail isSet bool @@ -642,7 +641,7 @@ func (v NullableVersionDetail) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersionDetail) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version_detail_settings.go b/fastly/model_version_detail_settings.go index fdd5e7a..732ad02 100644 --- a/fastly/model_version_detail_settings.go +++ b/fastly/model_version_detail_settings.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -27,7 +26,7 @@ type VersionDetailSettings struct { GeneralStaleIfError *bool `json:"general.stale_if_error,omitempty"` // The default time-to-live (TTL) for serving the stale object for the version. GeneralStaleIfErrorTTL *int32 `json:"general.stale_if_error_ttl,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _VersionDetailSettings VersionDetailSettings @@ -210,7 +209,7 @@ func (o VersionDetailSettings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VersionDetailSettings) UnmarshalJSON(bytes []byte) (err error) { varVersionDetailSettings := _VersionDetailSettings{} @@ -231,7 +230,7 @@ func (o *VersionDetailSettings) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersionDetailSettings is a helper abstraction for handling nullable versiondetailsettings types. +// NullableVersionDetailSettings is a helper abstraction for handling nullable versiondetailsettings types. type NullableVersionDetailSettings struct { value *VersionDetailSettings isSet bool @@ -271,7 +270,7 @@ func (v NullableVersionDetailSettings) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersionDetailSettings) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version_response.go b/fastly/model_version_response.go index fc9174f..83afbea 100644 --- a/fastly/model_version_response.go +++ b/fastly/model_version_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -40,9 +39,9 @@ type VersionResponse struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o *VersionResponse) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VersionResponse) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -145,6 +144,7 @@ func (o *VersionResponse) HasComment() bool { func (o *VersionResponse) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *VersionResponse) SetCommentNil() { o.Comment.Set(nil) @@ -328,7 +328,7 @@ func (o *VersionResponse) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VersionResponse) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -347,6 +347,7 @@ func (o *VersionResponse) HasCreatedAt() bool { func (o *VersionResponse) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *VersionResponse) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -370,7 +371,7 @@ func (o *VersionResponse) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VersionResponse) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -389,6 +390,7 @@ func (o *VersionResponse) HasDeletedAt() bool { func (o *VersionResponse) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *VersionResponse) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -412,7 +414,7 @@ func (o *VersionResponse) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VersionResponse) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -431,6 +433,7 @@ func (o *VersionResponse) HasUpdatedAt() bool { func (o *VersionResponse) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *VersionResponse) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -554,7 +557,7 @@ func (o VersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VersionResponse) UnmarshalJSON(bytes []byte) (err error) { varVersionResponse := _VersionResponse{} @@ -583,7 +586,7 @@ func (o *VersionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersionResponse is a helper abstraction for handling nullable versionresponse types. +// NullableVersionResponse is a helper abstraction for handling nullable versionresponse types. type NullableVersionResponse struct { value *VersionResponse isSet bool @@ -623,7 +626,7 @@ func (v NullableVersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_version_response_all_of.go b/fastly/model_version_response_all_of.go index 7eaed9c..0cadffb 100644 --- a/fastly/model_version_response_all_of.go +++ b/fastly/model_version_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,7 +20,7 @@ import ( type VersionResponseAllOf struct { ServiceID *string `json:"service_id,omitempty"` // A list of environments where the service has been deployed. - Environments []Environment `json:"environments,omitempty"` + Environments []Environment `json:"environments,omitempty"` AdditionalProperties map[string]any } @@ -127,7 +126,7 @@ func (o VersionResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *VersionResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varVersionResponseAllOf := _VersionResponseAllOf{} @@ -146,7 +145,7 @@ func (o *VersionResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableVersionResponseAllOf is a helper abstraction for handling nullable versionresponseallof types. +// NullableVersionResponseAllOf is a helper abstraction for handling nullable versionresponseallof types. type NullableVersionResponseAllOf struct { value *VersionResponseAllOf isSet bool @@ -186,7 +185,7 @@ func (v NullableVersionResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableVersionResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule.go b/fastly/model_waf_active_rule.go index 5fe2043..128391c 100644 --- a/fastly/model_waf_active_rule.go +++ b/fastly/model_waf_active_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRule struct for WafActiveRule type WafActiveRule struct { - Data *WafActiveRuleData `json:"data,omitempty"` + Data *WafActiveRuleData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRule) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRule := _WafActiveRule{} @@ -108,7 +107,7 @@ func (o *WafActiveRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRule is a helper abstraction for handling nullable wafactiverule types. +// NullableWafActiveRule is a helper abstraction for handling nullable wafactiverule types. type NullableWafActiveRule struct { value *WafActiveRule isSet bool @@ -148,7 +147,7 @@ func (v NullableWafActiveRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_creation_response.go b/fastly/model_waf_active_rule_creation_response.go index 83f400d..c14460b 100644 --- a/fastly/model_waf_active_rule_creation_response.go +++ b/fastly/model_waf_active_rule_creation_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,7 +19,7 @@ import ( // WafActiveRuleCreationResponse - struct for WafActiveRuleCreationResponse type WafActiveRuleCreationResponse struct { - WafActiveRuleResponse *WafActiveRuleResponse + WafActiveRuleResponse *WafActiveRuleResponse WafActiveRulesResponse *WafActiveRulesResponse } @@ -38,9 +37,8 @@ func WafActiveRulesResponseAsWafActiveRuleCreationResponse(v *WafActiveRulesResp } } - // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleCreationResponse) UnmarshalJSON(data []byte) error { var err error match := 0 @@ -98,7 +96,7 @@ func (o WafActiveRuleCreationResponse) MarshalJSON() ([]byte, error) { } // GetActualInstance returns a specific instance of the type. -func (o *WafActiveRuleCreationResponse) GetActualInstance() (any) { +func (o *WafActiveRuleCreationResponse) GetActualInstance() any { if o == nil { return nil } @@ -114,7 +112,7 @@ func (o *WafActiveRuleCreationResponse) GetActualInstance() (any) { return nil } -// NullableWafActiveRuleCreationResponse is a helper abstraction for handling nullable wafactiverulecreationresponse types. +// NullableWafActiveRuleCreationResponse is a helper abstraction for handling nullable wafactiverulecreationresponse types. type NullableWafActiveRuleCreationResponse struct { value *WafActiveRuleCreationResponse isSet bool @@ -154,7 +152,7 @@ func (v NullableWafActiveRuleCreationResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleCreationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_data.go b/fastly/model_waf_active_rule_data.go index 4f97aee..9a778cf 100644 --- a/fastly/model_waf_active_rule_data.go +++ b/fastly/model_waf_active_rule_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRuleData struct for WafActiveRuleData type WafActiveRuleData struct { - Type *TypeWafActiveRule `json:"type,omitempty"` - Attributes *WafActiveRuleDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForWafActiveRule `json:"relationships,omitempty"` + Type *TypeWafActiveRule `json:"type,omitempty"` + Attributes *WafActiveRuleDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForWafActiveRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o WafActiveRuleData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleData) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleData := _WafActiveRuleData{} @@ -186,7 +185,7 @@ func (o *WafActiveRuleData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRuleData is a helper abstraction for handling nullable wafactiveruledata types. +// NullableWafActiveRuleData is a helper abstraction for handling nullable wafactiveruledata types. type NullableWafActiveRuleData struct { value *WafActiveRuleData isSet bool @@ -226,7 +225,7 @@ func (v NullableWafActiveRuleData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_data_attributes.go b/fastly/model_waf_active_rule_data_attributes.go index a1c3c19..59b0439 100644 --- a/fastly/model_waf_active_rule_data_attributes.go +++ b/fastly/model_waf_active_rule_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,10 +19,10 @@ import ( // WafActiveRuleDataAttributes struct for WafActiveRuleDataAttributes type WafActiveRuleDataAttributes struct { // The ModSecurity rule ID of the associated rule revision. - ModsecRuleID *int32 `json:"modsec_rule_id,omitempty"` - Revision *WafRuleRevisionOrLatest `json:"revision,omitempty"` + ModsecRuleID *int32 `json:"modsec_rule_id,omitempty"` + Revision *WafRuleRevisionOrLatest `json:"revision,omitempty"` // Describes the behavior for the particular rule revision within this firewall version. - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` AdditionalProperties map[string]any } @@ -164,7 +163,7 @@ func (o WafActiveRuleDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleDataAttributes := _WafActiveRuleDataAttributes{} @@ -184,7 +183,7 @@ func (o *WafActiveRuleDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRuleDataAttributes is a helper abstraction for handling nullable wafactiveruledataattributes types. +// NullableWafActiveRuleDataAttributes is a helper abstraction for handling nullable wafactiveruledataattributes types. type NullableWafActiveRuleDataAttributes struct { value *WafActiveRuleDataAttributes isSet bool @@ -224,7 +223,7 @@ func (v NullableWafActiveRuleDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response.go b/fastly/model_waf_active_rule_response.go index 7e7ebd6..8ed06c7 100644 --- a/fastly/model_waf_active_rule_response.go +++ b/fastly/model_waf_active_rule_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRuleResponse struct for WafActiveRuleResponse type WafActiveRuleResponse struct { - Data *WafActiveRuleResponseData `json:"data,omitempty"` + Data *WafActiveRuleResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafActiveRuleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponse) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleResponse := _WafActiveRuleResponse{} @@ -108,7 +107,7 @@ func (o *WafActiveRuleResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRuleResponse is a helper abstraction for handling nullable wafactiveruleresponse types. +// NullableWafActiveRuleResponse is a helper abstraction for handling nullable wafactiveruleresponse types. type NullableWafActiveRuleResponse struct { value *WafActiveRuleResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableWafActiveRuleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response_data.go b/fastly/model_waf_active_rule_response_data.go index 1120a3a..be8b8fb 100644 --- a/fastly/model_waf_active_rule_response_data.go +++ b/fastly/model_waf_active_rule_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRuleResponseData struct for WafActiveRuleResponseData type WafActiveRuleResponseData struct { - Type *TypeWafActiveRule `json:"type,omitempty"` - Attributes *WafActiveRuleResponseDataAttributes `json:"attributes,omitempty"` - Relationships *WafActiveRuleResponseDataRelationships `json:"relationships,omitempty"` - ID *string `json:"id,omitempty"` + Type *TypeWafActiveRule `json:"type,omitempty"` + Attributes *WafActiveRuleResponseDataAttributes `json:"attributes,omitempty"` + Relationships *WafActiveRuleResponseDataRelationships `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o WafActiveRuleResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleResponseData := _WafActiveRuleResponseData{} @@ -223,7 +222,7 @@ func (o *WafActiveRuleResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRuleResponseData is a helper abstraction for handling nullable wafactiveruleresponsedata types. +// NullableWafActiveRuleResponseData is a helper abstraction for handling nullable wafactiveruleresponsedata types. type NullableWafActiveRuleResponseData struct { value *WafActiveRuleResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableWafActiveRuleResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response_data_all_of.go b/fastly/model_waf_active_rule_response_data_all_of.go index f78ce42..fd157a8 100644 --- a/fastly/model_waf_active_rule_response_data_all_of.go +++ b/fastly/model_waf_active_rule_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRuleResponseDataAllOf struct for WafActiveRuleResponseDataAllOf type WafActiveRuleResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *WafActiveRuleResponseDataAttributes `json:"attributes,omitempty"` - Relationships *WafActiveRuleResponseDataRelationships `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafActiveRuleResponseDataAttributes `json:"attributes,omitempty"` + Relationships *WafActiveRuleResponseDataRelationships `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o WafActiveRuleResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleResponseDataAllOf := _WafActiveRuleResponseDataAllOf{} @@ -182,7 +181,7 @@ func (o *WafActiveRuleResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableWafActiveRuleResponseDataAllOf is a helper abstraction for handling nullable wafactiveruleresponsedataallof types. +// NullableWafActiveRuleResponseDataAllOf is a helper abstraction for handling nullable wafactiveruleresponsedataallof types. type NullableWafActiveRuleResponseDataAllOf struct { value *WafActiveRuleResponseDataAllOf isSet bool @@ -222,7 +221,7 @@ func (v NullableWafActiveRuleResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response_data_attributes.go b/fastly/model_waf_active_rule_response_data_attributes.go index 87cad56..84d0f23 100644 --- a/fastly/model_waf_active_rule_response_data_attributes.go +++ b/fastly/model_waf_active_rule_response_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -29,7 +28,7 @@ type WafActiveRuleResponseDataAttributes struct { // The latest rule revision number that is available for the associated rule revision. LatestRevision *int32 `json:"latest_revision,omitempty"` // Indicates if the associated rule revision is up to date or not. - Outdated *bool `json:"outdated,omitempty"` + Outdated *bool `json:"outdated,omitempty"` AdditionalProperties map[string]any } @@ -65,7 +64,7 @@ func (o *WafActiveRuleResponseDataAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafActiveRuleResponseDataAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -84,6 +83,7 @@ func (o *WafActiveRuleResponseDataAttributes) HasCreatedAt() bool { func (o *WafActiveRuleResponseDataAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *WafActiveRuleResponseDataAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -107,7 +107,7 @@ func (o *WafActiveRuleResponseDataAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafActiveRuleResponseDataAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -126,6 +126,7 @@ func (o *WafActiveRuleResponseDataAttributes) HasDeletedAt() bool { func (o *WafActiveRuleResponseDataAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *WafActiveRuleResponseDataAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -149,7 +150,7 @@ func (o *WafActiveRuleResponseDataAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafActiveRuleResponseDataAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -168,6 +169,7 @@ func (o *WafActiveRuleResponseDataAttributes) HasUpdatedAt() bool { func (o *WafActiveRuleResponseDataAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *WafActiveRuleResponseDataAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -270,7 +272,7 @@ func (o WafActiveRuleResponseDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleResponseDataAttributes := _WafActiveRuleResponseDataAttributes{} @@ -292,7 +294,7 @@ func (o *WafActiveRuleResponseDataAttributes) UnmarshalJSON(bytes []byte) (err e return err } -// NullableWafActiveRuleResponseDataAttributes is a helper abstraction for handling nullable wafactiveruleresponsedataattributes types. +// NullableWafActiveRuleResponseDataAttributes is a helper abstraction for handling nullable wafactiveruleresponsedataattributes types. type NullableWafActiveRuleResponseDataAttributes struct { value *WafActiveRuleResponseDataAttributes isSet bool @@ -332,7 +334,7 @@ func (v NullableWafActiveRuleResponseDataAttributes) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponseDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response_data_attributes_all_of.go b/fastly/model_waf_active_rule_response_data_attributes_all_of.go index d1a960f..127be2e 100644 --- a/fastly/model_waf_active_rule_response_data_attributes_all_of.go +++ b/fastly/model_waf_active_rule_response_data_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type WafActiveRuleResponseDataAttributesAllOf struct { // The latest rule revision number that is available for the associated rule revision. LatestRevision *int32 `json:"latest_revision,omitempty"` // Indicates if the associated rule revision is up to date or not. - Outdated *bool `json:"outdated,omitempty"` + Outdated *bool `json:"outdated,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o WafActiveRuleResponseDataAttributesAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRuleResponseDataAttributesAllOf := _WafActiveRuleResponseDataAttributesAllOf{} @@ -147,7 +146,7 @@ func (o *WafActiveRuleResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) ( return err } -// NullableWafActiveRuleResponseDataAttributesAllOf is a helper abstraction for handling nullable wafactiveruleresponsedataattributesallof types. +// NullableWafActiveRuleResponseDataAttributesAllOf is a helper abstraction for handling nullable wafactiveruleresponsedataattributesallof types. type NullableWafActiveRuleResponseDataAttributesAllOf struct { value *WafActiveRuleResponseDataAttributesAllOf isSet bool @@ -187,7 +186,7 @@ func (v NullableWafActiveRuleResponseDataAttributesAllOf) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponseDataAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rule_response_data_relationships.go b/fastly/model_waf_active_rule_response_data_relationships.go index cbeb0b3..7cbbe02 100644 --- a/fastly/model_waf_active_rule_response_data_relationships.go +++ b/fastly/model_waf_active_rule_response_data_relationships.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // WafActiveRuleResponseDataRelationships struct for WafActiveRuleResponseDataRelationships type WafActiveRuleResponseDataRelationships struct { RelationshipWafFirewallVersion *RelationshipWafFirewallVersion - RelationshipWafRuleRevision *RelationshipWafRuleRevision + RelationshipWafRuleRevision *RelationshipWafRuleRevision } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRuleResponseDataRelationships) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafFirewallVersion - err = json.Unmarshal(data, &o.RelationshipWafFirewallVersion); + err = json.Unmarshal(data, &o.RelationshipWafFirewallVersion) if err == nil { jsonRelationshipWafFirewallVersion, _ := json.Marshal(o.RelationshipWafFirewallVersion) if string(jsonRelationshipWafFirewallVersion) != "{}" { // empty struct return nil // data stored in o.RelationshipWafFirewallVersion, return on the first match } - o.RelationshipWafFirewallVersion = nil + o.RelationshipWafFirewallVersion = nil } else { o.RelationshipWafFirewallVersion = nil } // try to unmarshal JSON data into RelationshipWafRuleRevision - err = json.Unmarshal(data, &o.RelationshipWafRuleRevision); + err = json.Unmarshal(data, &o.RelationshipWafRuleRevision) if err == nil { jsonRelationshipWafRuleRevision, _ := json.Marshal(o.RelationshipWafRuleRevision) if string(jsonRelationshipWafRuleRevision) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRuleRevision, return on the first match } - o.RelationshipWafRuleRevision = nil + o.RelationshipWafRuleRevision = nil } else { o.RelationshipWafRuleRevision = nil } @@ -69,7 +68,7 @@ func (o *WafActiveRuleResponseDataRelationships) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableWafActiveRuleResponseDataRelationships is a helper abstraction for handling nullable wafactiveruleresponsedatarelationships types. +// NullableWafActiveRuleResponseDataRelationships is a helper abstraction for handling nullable wafactiveruleresponsedatarelationships types. type NullableWafActiveRuleResponseDataRelationships struct { value *WafActiveRuleResponseDataRelationships isSet bool @@ -109,7 +108,7 @@ func (v NullableWafActiveRuleResponseDataRelationships) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRuleResponseDataRelationships) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rules_response.go b/fastly/model_waf_active_rules_response.go index 938c799..8d79986 100644 --- a/fastly/model_waf_active_rules_response.go +++ b/fastly/model_waf_active_rules_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRulesResponse struct for WafActiveRulesResponse type WafActiveRulesResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafActiveRuleResponseData `json:"data,omitempty"` - Included []IncludedWithWafActiveRuleItem `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafActiveRuleResponseData `json:"data,omitempty"` + Included []IncludedWithWafActiveRuleItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafActiveRulesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRulesResponse) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRulesResponse := _WafActiveRulesResponse{} @@ -219,7 +218,7 @@ func (o *WafActiveRulesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRulesResponse is a helper abstraction for handling nullable wafactiverulesresponse types. +// NullableWafActiveRulesResponse is a helper abstraction for handling nullable wafactiverulesresponse types. type NullableWafActiveRulesResponse struct { value *WafActiveRulesResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafActiveRulesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRulesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_active_rules_response_all_of.go b/fastly/model_waf_active_rules_response_all_of.go index 40df2e6..712fa8e 100644 --- a/fastly/model_waf_active_rules_response_all_of.go +++ b/fastly/model_waf_active_rules_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafActiveRulesResponseAllOf struct for WafActiveRulesResponseAllOf type WafActiveRulesResponseAllOf struct { - Data []WafActiveRuleResponseData `json:"data,omitempty"` - Included []IncludedWithWafActiveRuleItem `json:"included,omitempty"` + Data []WafActiveRuleResponseData `json:"data,omitempty"` + Included []IncludedWithWafActiveRuleItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafActiveRulesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafActiveRulesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafActiveRulesResponseAllOf := _WafActiveRulesResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafActiveRulesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafActiveRulesResponseAllOf is a helper abstraction for handling nullable wafactiverulesresponseallof types. +// NullableWafActiveRulesResponseAllOf is a helper abstraction for handling nullable wafactiverulesresponseallof types. type NullableWafActiveRulesResponseAllOf struct { value *WafActiveRulesResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafActiveRulesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafActiveRulesResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion.go b/fastly/model_waf_exclusion.go index 4bf096b..9ae5d15 100644 --- a/fastly/model_waf_exclusion.go +++ b/fastly/model_waf_exclusion.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusion struct for WafExclusion type WafExclusion struct { - Data *WafExclusionData `json:"data,omitempty"` + Data *WafExclusionData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafExclusion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusion) UnmarshalJSON(bytes []byte) (err error) { varWafExclusion := _WafExclusion{} @@ -108,7 +107,7 @@ func (o *WafExclusion) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusion is a helper abstraction for handling nullable wafexclusion types. +// NullableWafExclusion is a helper abstraction for handling nullable wafexclusion types. type NullableWafExclusion struct { value *WafExclusion isSet bool @@ -148,7 +147,7 @@ func (v NullableWafExclusion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_data.go b/fastly/model_waf_exclusion_data.go index 16684cc..ff578a2 100644 --- a/fastly/model_waf_exclusion_data.go +++ b/fastly/model_waf_exclusion_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusionData struct for WafExclusionData type WafExclusionData struct { - Type *TypeWafExclusion `json:"type,omitempty"` - Attributes *WafExclusionDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForWafExclusion `json:"relationships,omitempty"` + Type *TypeWafExclusion `json:"type,omitempty"` + Attributes *WafExclusionDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForWafExclusion `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o WafExclusionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionData) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionData := _WafExclusionData{} @@ -186,7 +185,7 @@ func (o *WafExclusionData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionData is a helper abstraction for handling nullable wafexclusiondata types. +// NullableWafExclusionData is a helper abstraction for handling nullable wafexclusiondata types. type NullableWafExclusionData struct { value *WafExclusionData isSet bool @@ -226,7 +225,7 @@ func (v NullableWafExclusionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_data_attributes.go b/fastly/model_waf_exclusion_data_attributes.go index 022e746..33bf7ca 100644 --- a/fastly/model_waf_exclusion_data_attributes.go +++ b/fastly/model_waf_exclusion_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type WafExclusionDataAttributes struct { // A numeric ID identifying a WAF exclusion. Number *int32 `json:"number,omitempty"` // The variable to exclude. An optional selector can be specified after the variable separated by a colon (`:`) to restrict the variable to a particular parameter. Required for `exclusion_type=variable`. - Variable NullableString `json:"variable,omitempty"` + Variable NullableString `json:"variable,omitempty"` AdditionalProperties map[string]any } @@ -230,7 +229,7 @@ func (o *WafExclusionDataAttributes) GetVariable() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionDataAttributes) GetVariableOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Variable.Get(), o.Variable.IsSet() @@ -249,6 +248,7 @@ func (o *WafExclusionDataAttributes) HasVariable() bool { func (o *WafExclusionDataAttributes) SetVariable(v string) { o.Variable.Set(&v) } + // SetVariableNil sets the value for Variable to be an explicit nil func (o *WafExclusionDataAttributes) SetVariableNil() { o.Variable.Set(nil) @@ -290,7 +290,7 @@ func (o WafExclusionDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionDataAttributes := _WafExclusionDataAttributes{} @@ -313,7 +313,7 @@ func (o *WafExclusionDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionDataAttributes is a helper abstraction for handling nullable wafexclusiondataattributes types. +// NullableWafExclusionDataAttributes is a helper abstraction for handling nullable wafexclusiondataattributes types. type NullableWafExclusionDataAttributes struct { value *WafExclusionDataAttributes isSet bool @@ -353,7 +353,7 @@ func (v NullableWafExclusionDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response.go b/fastly/model_waf_exclusion_response.go index 434e634..b540b47 100644 --- a/fastly/model_waf_exclusion_response.go +++ b/fastly/model_waf_exclusion_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusionResponse struct for WafExclusionResponse type WafExclusionResponse struct { - Data *WafExclusionResponseData `json:"data,omitempty"` + Data *WafExclusionResponseData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafExclusionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponse) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionResponse := _WafExclusionResponse{} @@ -108,7 +107,7 @@ func (o *WafExclusionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionResponse is a helper abstraction for handling nullable wafexclusionresponse types. +// NullableWafExclusionResponse is a helper abstraction for handling nullable wafexclusionresponse types. type NullableWafExclusionResponse struct { value *WafExclusionResponse isSet bool @@ -148,7 +147,7 @@ func (v NullableWafExclusionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response_data.go b/fastly/model_waf_exclusion_response_data.go index 94fc24e..2ea977a 100644 --- a/fastly/model_waf_exclusion_response_data.go +++ b/fastly/model_waf_exclusion_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,18 +12,17 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusionResponseData struct for WafExclusionResponseData type WafExclusionResponseData struct { - Type *TypeWafExclusion `json:"type,omitempty"` - Attributes *WafExclusionResponseDataAttributes `json:"attributes,omitempty"` + Type *TypeWafExclusion `json:"type,omitempty"` + Attributes *WafExclusionResponseDataAttributes `json:"attributes,omitempty"` Relationships *WafExclusionResponseDataRelationships `json:"relationships,omitempty"` // Alphanumeric string identifying a WAF exclusion. - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` AdditionalProperties map[string]any } @@ -203,7 +202,7 @@ func (o WafExclusionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionResponseData := _WafExclusionResponseData{} @@ -224,7 +223,7 @@ func (o *WafExclusionResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionResponseData is a helper abstraction for handling nullable wafexclusionresponsedata types. +// NullableWafExclusionResponseData is a helper abstraction for handling nullable wafexclusionresponsedata types. type NullableWafExclusionResponseData struct { value *WafExclusionResponseData isSet bool @@ -264,7 +263,7 @@ func (v NullableWafExclusionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response_data_all_of.go b/fastly/model_waf_exclusion_response_data_all_of.go index 4c19356..10b80d6 100644 --- a/fastly/model_waf_exclusion_response_data_all_of.go +++ b/fastly/model_waf_exclusion_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,9 +19,9 @@ import ( // WafExclusionResponseDataAllOf struct for WafExclusionResponseDataAllOf type WafExclusionResponseDataAllOf struct { // Alphanumeric string identifying a WAF exclusion. - ID *string `json:"id,omitempty"` - Attributes *WafExclusionResponseDataAttributes `json:"attributes,omitempty"` - Relationships *WafExclusionResponseDataRelationships `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafExclusionResponseDataAttributes `json:"attributes,omitempty"` + Relationships *WafExclusionResponseDataRelationships `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o WafExclusionResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionResponseDataAllOf := _WafExclusionResponseDataAllOf{} @@ -183,7 +182,7 @@ func (o *WafExclusionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableWafExclusionResponseDataAllOf is a helper abstraction for handling nullable wafexclusionresponsedataallof types. +// NullableWafExclusionResponseDataAllOf is a helper abstraction for handling nullable wafexclusionresponsedataallof types. type NullableWafExclusionResponseDataAllOf struct { value *WafExclusionResponseDataAllOf isSet bool @@ -223,7 +222,7 @@ func (v NullableWafExclusionResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response_data_attributes.go b/fastly/model_waf_exclusion_response_data_attributes.go index 8397cd1..42e0693 100644 --- a/fastly/model_waf_exclusion_response_data_attributes.go +++ b/fastly/model_waf_exclusion_response_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -37,7 +36,7 @@ type WafExclusionResponseDataAttributes struct { // A numeric ID identifying a WAF exclusion. Number *int32 `json:"number,omitempty"` // The variable to exclude. An optional selector can be specified after the variable separated by a colon (`:`) to restrict the variable to a particular parameter. Required for `exclusion_type=variable`. - Variable NullableString `json:"variable,omitempty"` + Variable NullableString `json:"variable,omitempty"` AdditionalProperties map[string]any } @@ -77,7 +76,7 @@ func (o *WafExclusionResponseDataAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionResponseDataAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -96,6 +95,7 @@ func (o *WafExclusionResponseDataAttributes) HasCreatedAt() bool { func (o *WafExclusionResponseDataAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *WafExclusionResponseDataAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -119,7 +119,7 @@ func (o *WafExclusionResponseDataAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionResponseDataAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -138,6 +138,7 @@ func (o *WafExclusionResponseDataAttributes) HasDeletedAt() bool { func (o *WafExclusionResponseDataAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *WafExclusionResponseDataAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -161,7 +162,7 @@ func (o *WafExclusionResponseDataAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionResponseDataAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -180,6 +181,7 @@ func (o *WafExclusionResponseDataAttributes) HasUpdatedAt() bool { func (o *WafExclusionResponseDataAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *WafExclusionResponseDataAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -363,7 +365,7 @@ func (o *WafExclusionResponseDataAttributes) GetVariable() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionResponseDataAttributes) GetVariableOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Variable.Get(), o.Variable.IsSet() @@ -382,6 +384,7 @@ func (o *WafExclusionResponseDataAttributes) HasVariable() bool { func (o *WafExclusionResponseDataAttributes) SetVariable(v string) { o.Variable.Set(&v) } + // SetVariableNil sets the value for Variable to be an explicit nil func (o *WafExclusionResponseDataAttributes) SetVariableNil() { o.Variable.Set(nil) @@ -432,7 +435,7 @@ func (o WafExclusionResponseDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionResponseDataAttributes := _WafExclusionResponseDataAttributes{} @@ -458,7 +461,7 @@ func (o *WafExclusionResponseDataAttributes) UnmarshalJSON(bytes []byte) (err er return err } -// NullableWafExclusionResponseDataAttributes is a helper abstraction for handling nullable wafexclusionresponsedataattributes types. +// NullableWafExclusionResponseDataAttributes is a helper abstraction for handling nullable wafexclusionresponsedataattributes types. type NullableWafExclusionResponseDataAttributes struct { value *WafExclusionResponseDataAttributes isSet bool @@ -498,7 +501,7 @@ func (v NullableWafExclusionResponseDataAttributes) MarshalJSON() ([]byte, error } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponseDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response_data_attributes_all_of.go b/fastly/model_waf_exclusion_response_data_attributes_all_of.go index 6a3a3b4..f016e9c 100644 --- a/fastly/model_waf_exclusion_response_data_attributes_all_of.go +++ b/fastly/model_waf_exclusion_response_data_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -30,7 +29,7 @@ type WafExclusionResponseDataAttributesAllOf struct { // A numeric ID identifying a WAF exclusion. Number *int32 `json:"number,omitempty"` // The variable to exclude. An optional selector can be specified after the variable separated by a colon (`:`) to restrict the variable to a particular parameter. Required for `exclusion_type=variable`. - Variable NullableString `json:"variable,omitempty"` + Variable NullableString `json:"variable,omitempty"` AdditionalProperties map[string]any } @@ -230,7 +229,7 @@ func (o *WafExclusionResponseDataAttributesAllOf) GetVariable() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafExclusionResponseDataAttributesAllOf) GetVariableOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Variable.Get(), o.Variable.IsSet() @@ -249,6 +248,7 @@ func (o *WafExclusionResponseDataAttributesAllOf) HasVariable() bool { func (o *WafExclusionResponseDataAttributesAllOf) SetVariable(v string) { o.Variable.Set(&v) } + // SetVariableNil sets the value for Variable to be an explicit nil func (o *WafExclusionResponseDataAttributesAllOf) SetVariableNil() { o.Variable.Set(nil) @@ -290,7 +290,7 @@ func (o WafExclusionResponseDataAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionResponseDataAttributesAllOf := _WafExclusionResponseDataAttributesAllOf{} @@ -313,7 +313,7 @@ func (o *WafExclusionResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (e return err } -// NullableWafExclusionResponseDataAttributesAllOf is a helper abstraction for handling nullable wafexclusionresponsedataattributesallof types. +// NullableWafExclusionResponseDataAttributesAllOf is a helper abstraction for handling nullable wafexclusionresponsedataattributesallof types. type NullableWafExclusionResponseDataAttributesAllOf struct { value *WafExclusionResponseDataAttributesAllOf isSet bool @@ -353,7 +353,7 @@ func (v NullableWafExclusionResponseDataAttributesAllOf) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponseDataAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusion_response_data_relationships.go b/fastly/model_waf_exclusion_response_data_relationships.go index 0882b08..c55840b 100644 --- a/fastly/model_waf_exclusion_response_data_relationships.go +++ b/fastly/model_waf_exclusion_response_data_relationships.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -21,33 +20,33 @@ import ( // WafExclusionResponseDataRelationships struct for WafExclusionResponseDataRelationships type WafExclusionResponseDataRelationships struct { RelationshipWafRuleRevisions *RelationshipWafRuleRevisions - RelationshipWafRules *RelationshipWafRules + RelationshipWafRules *RelationshipWafRules } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionResponseDataRelationships) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into RelationshipWafRuleRevisions - err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions); + err = json.Unmarshal(data, &o.RelationshipWafRuleRevisions) if err == nil { jsonRelationshipWafRuleRevisions, _ := json.Marshal(o.RelationshipWafRuleRevisions) if string(jsonRelationshipWafRuleRevisions) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRuleRevisions, return on the first match } - o.RelationshipWafRuleRevisions = nil + o.RelationshipWafRuleRevisions = nil } else { o.RelationshipWafRuleRevisions = nil } // try to unmarshal JSON data into RelationshipWafRules - err = json.Unmarshal(data, &o.RelationshipWafRules); + err = json.Unmarshal(data, &o.RelationshipWafRules) if err == nil { jsonRelationshipWafRules, _ := json.Marshal(o.RelationshipWafRules) if string(jsonRelationshipWafRules) != "{}" { // empty struct return nil // data stored in o.RelationshipWafRules, return on the first match } - o.RelationshipWafRules = nil + o.RelationshipWafRules = nil } else { o.RelationshipWafRules = nil } @@ -69,7 +68,7 @@ func (o *WafExclusionResponseDataRelationships) MarshalJSON() ([]byte, error) { return nil, nil // no data in anyOf schemas } -// NullableWafExclusionResponseDataRelationships is a helper abstraction for handling nullable wafexclusionresponsedatarelationships types. +// NullableWafExclusionResponseDataRelationships is a helper abstraction for handling nullable wafexclusionresponsedatarelationships types. type NullableWafExclusionResponseDataRelationships struct { value *WafExclusionResponseDataRelationships isSet bool @@ -109,7 +108,7 @@ func (v NullableWafExclusionResponseDataRelationships) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionResponseDataRelationships) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusions_response.go b/fastly/model_waf_exclusions_response.go index e8c1210..5b855a5 100644 --- a/fastly/model_waf_exclusions_response.go +++ b/fastly/model_waf_exclusions_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusionsResponse struct for WafExclusionsResponse type WafExclusionsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafExclusionResponseData `json:"data,omitempty"` - Included []IncludedWithWafExclusionItem `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafExclusionResponseData `json:"data,omitempty"` + Included []IncludedWithWafExclusionItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafExclusionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionsResponse) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionsResponse := _WafExclusionsResponse{} @@ -219,7 +218,7 @@ func (o *WafExclusionsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionsResponse is a helper abstraction for handling nullable wafexclusionsresponse types. +// NullableWafExclusionsResponse is a helper abstraction for handling nullable wafexclusionsresponse types. type NullableWafExclusionsResponse struct { value *WafExclusionsResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafExclusionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_exclusions_response_all_of.go b/fastly/model_waf_exclusions_response_all_of.go index 6c663ca..2d5b55e 100644 --- a/fastly/model_waf_exclusions_response_all_of.go +++ b/fastly/model_waf_exclusions_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafExclusionsResponseAllOf struct for WafExclusionsResponseAllOf type WafExclusionsResponseAllOf struct { - Data []WafExclusionResponseData `json:"data,omitempty"` - Included []IncludedWithWafExclusionItem `json:"included,omitempty"` + Data []WafExclusionResponseData `json:"data,omitempty"` + Included []IncludedWithWafExclusionItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafExclusionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafExclusionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafExclusionsResponseAllOf := _WafExclusionsResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafExclusionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafExclusionsResponseAllOf is a helper abstraction for handling nullable wafexclusionsresponseallof types. +// NullableWafExclusionsResponseAllOf is a helper abstraction for handling nullable wafexclusionsresponseallof types. type NullableWafExclusionsResponseAllOf struct { value *WafExclusionsResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafExclusionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafExclusionsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall.go b/fastly/model_waf_firewall.go index d04bb95..40bb03f 100644 --- a/fastly/model_waf_firewall.go +++ b/fastly/model_waf_firewall.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewall struct for WafFirewall type WafFirewall struct { - Data *WafFirewallData `json:"data,omitempty"` + Data *WafFirewallData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewall) UnmarshalJSON(bytes []byte) (err error) { varWafFirewall := _WafFirewall{} @@ -108,7 +107,7 @@ func (o *WafFirewall) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewall is a helper abstraction for handling nullable waffirewall types. +// NullableWafFirewall is a helper abstraction for handling nullable waffirewall types. type NullableWafFirewall struct { value *WafFirewall isSet bool @@ -148,7 +147,7 @@ func (v NullableWafFirewall) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewall) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_data.go b/fastly/model_waf_firewall_data.go index f436ad9..b9f09af 100644 --- a/fastly/model_waf_firewall_data.go +++ b/fastly/model_waf_firewall_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallData struct for WafFirewallData type WafFirewallData struct { - Type *TypeWafFirewall `json:"type,omitempty"` - Attributes *WafFirewallDataAttributes `json:"attributes,omitempty"` + Type *TypeWafFirewall `json:"type,omitempty"` + Attributes *WafFirewallDataAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o WafFirewallData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallData) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallData := _WafFirewallData{} @@ -149,7 +148,7 @@ func (o *WafFirewallData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallData is a helper abstraction for handling nullable waffirewalldata types. +// NullableWafFirewallData is a helper abstraction for handling nullable waffirewalldata types. type NullableWafFirewallData struct { value *WafFirewallData isSet bool @@ -189,7 +188,7 @@ func (v NullableWafFirewallData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_data_attributes.go b/fastly/model_waf_firewall_data_attributes.go index 31b4491..2f8d2d4 100644 --- a/fastly/model_waf_firewall_data_attributes.go +++ b/fastly/model_waf_firewall_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,8 +23,8 @@ type WafFirewallDataAttributes struct { // Name of the corresponding condition object. PrefetchCondition *string `json:"prefetch_condition,omitempty"` // Name of the corresponding response object. - Response *string `json:"response,omitempty"` - ServiceVersionNumber *int32 `json:"service_version_number,omitempty"` + Response *string `json:"response,omitempty"` + ServiceVersionNumber *int32 `json:"service_version_number,omitempty"` AdditionalProperties map[string]any } @@ -205,7 +204,7 @@ func (o WafFirewallDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallDataAttributes := _WafFirewallDataAttributes{} @@ -226,7 +225,7 @@ func (o *WafFirewallDataAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallDataAttributes is a helper abstraction for handling nullable waffirewalldataattributes types. +// NullableWafFirewallDataAttributes is a helper abstraction for handling nullable waffirewalldataattributes types. type NullableWafFirewallDataAttributes struct { value *WafFirewallDataAttributes isSet bool @@ -266,7 +265,7 @@ func (v NullableWafFirewallDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_response.go b/fastly/model_waf_firewall_response.go index c37b102..37f155c 100644 --- a/fastly/model_waf_firewall_response.go +++ b/fastly/model_waf_firewall_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallResponse struct for WafFirewallResponse type WafFirewallResponse struct { - Data *WafFirewallResponseData `json:"data,omitempty"` - Included []SchemasWafFirewallVersion `json:"included,omitempty"` + Data *WafFirewallResponseData `json:"data,omitempty"` + Included []SchemasWafFirewallVersion `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafFirewallResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallResponse) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallResponse := _WafFirewallResponse{} @@ -145,7 +144,7 @@ func (o *WafFirewallResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallResponse is a helper abstraction for handling nullable waffirewallresponse types. +// NullableWafFirewallResponse is a helper abstraction for handling nullable waffirewallresponse types. type NullableWafFirewallResponse struct { value *WafFirewallResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableWafFirewallResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_response_data.go b/fastly/model_waf_firewall_response_data.go index dba3759..4826a60 100644 --- a/fastly/model_waf_firewall_response_data.go +++ b/fastly/model_waf_firewall_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallResponseData struct for WafFirewallResponseData type WafFirewallResponseData struct { - Type *TypeWafFirewall `json:"type,omitempty"` - Attributes *WafFirewallResponseDataAttributes `json:"attributes,omitempty"` - ID *string `json:"id,omitempty"` - Relationships *RelationshipWafFirewallVersions `json:"relationships,omitempty"` + Type *TypeWafFirewall `json:"type,omitempty"` + Attributes *WafFirewallResponseDataAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Relationships *RelationshipWafFirewallVersions `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o WafFirewallResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallResponseData := _WafFirewallResponseData{} @@ -223,7 +222,7 @@ func (o *WafFirewallResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallResponseData is a helper abstraction for handling nullable waffirewallresponsedata types. +// NullableWafFirewallResponseData is a helper abstraction for handling nullable waffirewallresponsedata types. type NullableWafFirewallResponseData struct { value *WafFirewallResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableWafFirewallResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_response_data_all_of.go b/fastly/model_waf_firewall_response_data_all_of.go index 480d229..66275fa 100644 --- a/fastly/model_waf_firewall_response_data_all_of.go +++ b/fastly/model_waf_firewall_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallResponseDataAllOf struct for WafFirewallResponseDataAllOf type WafFirewallResponseDataAllOf struct { - ID *string `json:"id,omitempty"` - Attributes *WafFirewallResponseDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipWafFirewallVersions `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafFirewallResponseDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipWafFirewallVersions `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -162,7 +161,7 @@ func (o WafFirewallResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallResponseDataAllOf := _WafFirewallResponseDataAllOf{} @@ -182,7 +181,7 @@ func (o *WafFirewallResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallResponseDataAllOf is a helper abstraction for handling nullable waffirewallresponsedataallof types. +// NullableWafFirewallResponseDataAllOf is a helper abstraction for handling nullable waffirewallresponsedataallof types. type NullableWafFirewallResponseDataAllOf struct { value *WafFirewallResponseDataAllOf isSet bool @@ -222,7 +221,7 @@ func (v NullableWafFirewallResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_response_data_attributes.go b/fastly/model_waf_firewall_response_data_attributes.go index 5945077..7e48a35 100644 --- a/fastly/model_waf_firewall_response_data_attributes.go +++ b/fastly/model_waf_firewall_response_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -26,7 +25,7 @@ type WafFirewallResponseDataAttributes struct { DeletedAt NullableTime `json:"deleted_at,omitempty"` // Date and time in ISO 8601 format. UpdatedAt NullableTime `json:"updated_at,omitempty"` - ServiceID *string `json:"service_id,omitempty"` + ServiceID *string `json:"service_id,omitempty"` // The number of active Fastly rules set to block on the active or latest firewall version. ActiveRulesFastlyBlockCount *int32 `json:"active_rules_fastly_block_count,omitempty"` // The number of active Fastly rules set to log on the active or latest firewall version. @@ -43,7 +42,7 @@ type WafFirewallResponseDataAttributes struct { ActiveRulesTrustwaveBlockCount *int32 `json:"active_rules_trustwave_block_count,omitempty"` // The number of active Trustwave rules set to log on the active or latest firewall version. ActiveRulesTrustwaveLogCount *int32 `json:"active_rules_trustwave_log_count,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _WafFirewallResponseDataAttributes WafFirewallResponseDataAttributes @@ -78,7 +77,7 @@ func (o *WafFirewallResponseDataAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallResponseDataAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -97,6 +96,7 @@ func (o *WafFirewallResponseDataAttributes) HasCreatedAt() bool { func (o *WafFirewallResponseDataAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *WafFirewallResponseDataAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -120,7 +120,7 @@ func (o *WafFirewallResponseDataAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallResponseDataAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -139,6 +139,7 @@ func (o *WafFirewallResponseDataAttributes) HasDeletedAt() bool { func (o *WafFirewallResponseDataAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *WafFirewallResponseDataAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -162,7 +163,7 @@ func (o *WafFirewallResponseDataAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallResponseDataAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -181,6 +182,7 @@ func (o *WafFirewallResponseDataAttributes) HasUpdatedAt() bool { func (o *WafFirewallResponseDataAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *WafFirewallResponseDataAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -528,7 +530,7 @@ func (o WafFirewallResponseDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallResponseDataAttributes := _WafFirewallResponseDataAttributes{} @@ -557,7 +559,7 @@ func (o *WafFirewallResponseDataAttributes) UnmarshalJSON(bytes []byte) (err err return err } -// NullableWafFirewallResponseDataAttributes is a helper abstraction for handling nullable waffirewallresponsedataattributes types. +// NullableWafFirewallResponseDataAttributes is a helper abstraction for handling nullable waffirewallresponsedataattributes types. type NullableWafFirewallResponseDataAttributes struct { value *WafFirewallResponseDataAttributes isSet bool @@ -597,7 +599,7 @@ func (v NullableWafFirewallResponseDataAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallResponseDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_response_data_attributes_all_of.go b/fastly/model_waf_firewall_response_data_attributes_all_of.go index ab3236e..11236c5 100644 --- a/fastly/model_waf_firewall_response_data_attributes_all_of.go +++ b/fastly/model_waf_firewall_response_data_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -36,7 +35,7 @@ type WafFirewallResponseDataAttributesAllOf struct { ActiveRulesTrustwaveBlockCount *int32 `json:"active_rules_trustwave_block_count,omitempty"` // The number of active Trustwave rules set to log on the active or latest firewall version. ActiveRulesTrustwaveLogCount *int32 `json:"active_rules_trustwave_log_count,omitempty"` - AdditionalProperties map[string]any + AdditionalProperties map[string]any } type _WafFirewallResponseDataAttributesAllOf WafFirewallResponseDataAttributesAllOf @@ -386,7 +385,7 @@ func (o WafFirewallResponseDataAttributesAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallResponseDataAttributesAllOf := _WafFirewallResponseDataAttributesAllOf{} @@ -412,7 +411,7 @@ func (o *WafFirewallResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (er return err } -// NullableWafFirewallResponseDataAttributesAllOf is a helper abstraction for handling nullable waffirewallresponsedataattributesallof types. +// NullableWafFirewallResponseDataAttributesAllOf is a helper abstraction for handling nullable waffirewallresponsedataattributesallof types. type NullableWafFirewallResponseDataAttributesAllOf struct { value *WafFirewallResponseDataAttributesAllOf isSet bool @@ -452,7 +451,7 @@ func (v NullableWafFirewallResponseDataAttributesAllOf) MarshalJSON() ([]byte, e } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallResponseDataAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version.go b/fastly/model_waf_firewall_version.go index a1cf081..4e50b46 100644 --- a/fastly/model_waf_firewall_version.go +++ b/fastly/model_waf_firewall_version.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersion struct for WafFirewallVersion type WafFirewallVersion struct { - Data *WafFirewallVersionData `json:"data,omitempty"` + Data *WafFirewallVersionData `json:"data,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersion := _WafFirewallVersion{} @@ -108,7 +107,7 @@ func (o *WafFirewallVersion) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallVersion is a helper abstraction for handling nullable waffirewallversion types. +// NullableWafFirewallVersion is a helper abstraction for handling nullable waffirewallversion types. type NullableWafFirewallVersion struct { value *WafFirewallVersion isSet bool @@ -148,7 +147,7 @@ func (v NullableWafFirewallVersion) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_data.go b/fastly/model_waf_firewall_version_data.go index 19712a8..cce2d89 100644 --- a/fastly/model_waf_firewall_version_data.go +++ b/fastly/model_waf_firewall_version_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersionData struct for WafFirewallVersionData type WafFirewallVersionData struct { - Type *TypeWafFirewallVersion `json:"type,omitempty"` - Attributes *WafFirewallVersionDataAttributes `json:"attributes,omitempty"` + Type *TypeWafFirewallVersion `json:"type,omitempty"` + Attributes *WafFirewallVersionDataAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -130,7 +129,7 @@ func (o WafFirewallVersionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionData) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionData := _WafFirewallVersionData{} @@ -149,7 +148,7 @@ func (o *WafFirewallVersionData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallVersionData is a helper abstraction for handling nullable waffirewallversiondata types. +// NullableWafFirewallVersionData is a helper abstraction for handling nullable waffirewallversiondata types. type NullableWafFirewallVersionData struct { value *WafFirewallVersionData isSet bool @@ -189,7 +188,7 @@ func (v NullableWafFirewallVersionData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_data_attributes.go b/fastly/model_waf_firewall_version_data_attributes.go index 72bd1e6..c1a78e3 100644 --- a/fastly/model_waf_firewall_version_data_attributes.go +++ b/fastly/model_waf_firewall_version_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -57,7 +56,7 @@ type WafFirewallVersionDataAttributes struct { MaxNumArgs *int32 `json:"max_num_args,omitempty"` // Score value to add for notice anomalies. NoticeAnomalyScore *int32 `json:"notice_anomaly_score,omitempty"` - Number *int32 `json:"number,omitempty"` + Number *int32 `json:"number,omitempty"` // The configured paranoia level. ParanoiaLevel *int32 `json:"paranoia_level,omitempty"` // PHP injection threshold. @@ -79,7 +78,7 @@ type WafFirewallVersionDataAttributes struct { // Score value to add for warning anomalies. WarningAnomalyScore *int32 `json:"warning_anomaly_score,omitempty"` // XSS attack threshold. - XSSScoreThreshold *int32 `json:"xss_score_threshold,omitempty"` + XSSScoreThreshold *int32 `json:"xss_score_threshold,omitempty"` AdditionalProperties map[string]any } @@ -407,7 +406,7 @@ func (o *WafFirewallVersionDataAttributes) GetComment() string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionDataAttributes) GetCommentOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.Comment.Get(), o.Comment.IsSet() @@ -426,6 +425,7 @@ func (o *WafFirewallVersionDataAttributes) HasComment() bool { func (o *WafFirewallVersionDataAttributes) SetComment(v string) { o.Comment.Set(&v) } + // SetCommentNil sets the value for Comment to be an explicit nil func (o *WafFirewallVersionDataAttributes) SetCommentNil() { o.Comment.Set(nil) @@ -1278,7 +1278,7 @@ func (o WafFirewallVersionDataAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionDataAttributes := _WafFirewallVersionDataAttributes{} @@ -1326,7 +1326,7 @@ func (o *WafFirewallVersionDataAttributes) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableWafFirewallVersionDataAttributes is a helper abstraction for handling nullable waffirewallversiondataattributes types. +// NullableWafFirewallVersionDataAttributes is a helper abstraction for handling nullable waffirewallversiondataattributes types. type NullableWafFirewallVersionDataAttributes struct { value *WafFirewallVersionDataAttributes isSet bool @@ -1366,7 +1366,7 @@ func (v NullableWafFirewallVersionDataAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_response.go b/fastly/model_waf_firewall_version_response.go index d5e57f9..4bca8af 100644 --- a/fastly/model_waf_firewall_version_response.go +++ b/fastly/model_waf_firewall_version_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersionResponse struct for WafFirewallVersionResponse type WafFirewallVersionResponse struct { - Data *WafFirewallVersionResponseData `json:"data,omitempty"` - Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` + Data *WafFirewallVersionResponseData `json:"data,omitempty"` + Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafFirewallVersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionResponse) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionResponse := _WafFirewallVersionResponse{} @@ -145,7 +144,7 @@ func (o *WafFirewallVersionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallVersionResponse is a helper abstraction for handling nullable waffirewallversionresponse types. +// NullableWafFirewallVersionResponse is a helper abstraction for handling nullable waffirewallversionresponse types. type NullableWafFirewallVersionResponse struct { value *WafFirewallVersionResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableWafFirewallVersionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_response_data.go b/fastly/model_waf_firewall_version_response_data.go index 6738ab3..0d10759 100644 --- a/fastly/model_waf_firewall_version_response_data.go +++ b/fastly/model_waf_firewall_version_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,18 +12,17 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersionResponseData struct for WafFirewallVersionResponseData type WafFirewallVersionResponseData struct { - Type *TypeWafFirewallVersion `json:"type,omitempty"` + Type *TypeWafFirewallVersion `json:"type,omitempty"` Attributes *WafFirewallVersionResponseDataAttributes `json:"attributes,omitempty"` // Alphanumeric string identifying a Firewall version. - ID *string `json:"id,omitempty"` - Relationships *RelationshipsForWafFirewallVersion `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Relationships *RelationshipsForWafFirewallVersion `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -203,7 +202,7 @@ func (o WafFirewallVersionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionResponseData := _WafFirewallVersionResponseData{} @@ -224,7 +223,7 @@ func (o *WafFirewallVersionResponseData) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableWafFirewallVersionResponseData is a helper abstraction for handling nullable waffirewallversionresponsedata types. +// NullableWafFirewallVersionResponseData is a helper abstraction for handling nullable waffirewallversionresponsedata types. type NullableWafFirewallVersionResponseData struct { value *WafFirewallVersionResponseData isSet bool @@ -264,7 +263,7 @@ func (v NullableWafFirewallVersionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_response_data_all_of.go b/fastly/model_waf_firewall_version_response_data_all_of.go index 2f2656d..d7004b5 100644 --- a/fastly/model_waf_firewall_version_response_data_all_of.go +++ b/fastly/model_waf_firewall_version_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -20,9 +19,9 @@ import ( // WafFirewallVersionResponseDataAllOf struct for WafFirewallVersionResponseDataAllOf type WafFirewallVersionResponseDataAllOf struct { // Alphanumeric string identifying a Firewall version. - ID *string `json:"id,omitempty"` - Attributes *WafFirewallVersionResponseDataAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForWafFirewallVersion `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafFirewallVersionResponseDataAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForWafFirewallVersion `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -163,7 +162,7 @@ func (o WafFirewallVersionResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionResponseDataAllOf := _WafFirewallVersionResponseDataAllOf{} @@ -183,7 +182,7 @@ func (o *WafFirewallVersionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err e return err } -// NullableWafFirewallVersionResponseDataAllOf is a helper abstraction for handling nullable waffirewallversionresponsedataallof types. +// NullableWafFirewallVersionResponseDataAllOf is a helper abstraction for handling nullable waffirewallversionresponsedataallof types. type NullableWafFirewallVersionResponseDataAllOf struct { value *WafFirewallVersionResponseDataAllOf isSet bool @@ -223,7 +222,7 @@ func (v NullableWafFirewallVersionResponseDataAllOf) MarshalJSON() ([]byte, erro } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_response_data_attributes.go b/fastly/model_waf_firewall_version_response_data_attributes.go index a782d8a..f0d6e35 100644 --- a/fastly/model_waf_firewall_version_response_data_attributes.go +++ b/fastly/model_waf_firewall_version_response_data_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -49,7 +48,7 @@ type WafFirewallVersionResponseDataAttributes struct { // Time-stamp (GMT) indicating when the firewall version was last deployed. DeployedAt *string `json:"deployed_at,omitempty"` // Contains error message if the firewall version fails to deploy. - Error *string `json:"error,omitempty"` + Error *string `json:"error,omitempty"` AdditionalProperties map[string]any } @@ -85,7 +84,7 @@ func (o *WafFirewallVersionResponseDataAttributes) GetCreatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionResponseDataAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.CreatedAt.Get(), o.CreatedAt.IsSet() @@ -104,6 +103,7 @@ func (o *WafFirewallVersionResponseDataAttributes) HasCreatedAt() bool { func (o *WafFirewallVersionResponseDataAttributes) SetCreatedAt(v time.Time) { o.CreatedAt.Set(&v) } + // SetCreatedAtNil sets the value for CreatedAt to be an explicit nil func (o *WafFirewallVersionResponseDataAttributes) SetCreatedAtNil() { o.CreatedAt.Set(nil) @@ -127,7 +127,7 @@ func (o *WafFirewallVersionResponseDataAttributes) GetDeletedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionResponseDataAttributes) GetDeletedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.DeletedAt.Get(), o.DeletedAt.IsSet() @@ -146,6 +146,7 @@ func (o *WafFirewallVersionResponseDataAttributes) HasDeletedAt() bool { func (o *WafFirewallVersionResponseDataAttributes) SetDeletedAt(v time.Time) { o.DeletedAt.Set(&v) } + // SetDeletedAtNil sets the value for DeletedAt to be an explicit nil func (o *WafFirewallVersionResponseDataAttributes) SetDeletedAtNil() { o.DeletedAt.Set(nil) @@ -169,7 +170,7 @@ func (o *WafFirewallVersionResponseDataAttributes) GetUpdatedAt() time.Time { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionResponseDataAttributes) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil { + if o == nil { return nil, false } return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() @@ -188,6 +189,7 @@ func (o *WafFirewallVersionResponseDataAttributes) HasUpdatedAt() bool { func (o *WafFirewallVersionResponseDataAttributes) SetUpdatedAt(v time.Time) { o.UpdatedAt.Set(&v) } + // SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil func (o *WafFirewallVersionResponseDataAttributes) SetUpdatedAtNil() { o.UpdatedAt.Set(nil) @@ -499,7 +501,7 @@ func (o *WafFirewallVersionResponseDataAttributes) GetLastDeploymentStatus() str // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionResponseDataAttributes) GetLastDeploymentStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.LastDeploymentStatus.Get(), o.LastDeploymentStatus.IsSet() @@ -518,6 +520,7 @@ func (o *WafFirewallVersionResponseDataAttributes) HasLastDeploymentStatus() boo func (o *WafFirewallVersionResponseDataAttributes) SetLastDeploymentStatus(v string) { o.LastDeploymentStatus.Set(&v) } + // SetLastDeploymentStatusNil sets the value for LastDeploymentStatus to be an explicit nil func (o *WafFirewallVersionResponseDataAttributes) SetLastDeploymentStatusNil() { o.LastDeploymentStatus.Set(nil) @@ -650,7 +653,7 @@ func (o WafFirewallVersionResponseDataAttributes) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionResponseDataAttributes := _WafFirewallVersionResponseDataAttributes{} @@ -682,7 +685,7 @@ func (o *WafFirewallVersionResponseDataAttributes) UnmarshalJSON(bytes []byte) ( return err } -// NullableWafFirewallVersionResponseDataAttributes is a helper abstraction for handling nullable waffirewallversionresponsedataattributes types. +// NullableWafFirewallVersionResponseDataAttributes is a helper abstraction for handling nullable waffirewallversionresponsedataattributes types. type NullableWafFirewallVersionResponseDataAttributes struct { value *WafFirewallVersionResponseDataAttributes isSet bool @@ -722,7 +725,7 @@ func (v NullableWafFirewallVersionResponseDataAttributes) MarshalJSON() ([]byte, } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionResponseDataAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_version_response_data_attributes_all_of.go b/fastly/model_waf_firewall_version_response_data_attributes_all_of.go index 0f3edf6..91a45a3 100644 --- a/fastly/model_waf_firewall_version_response_data_attributes_all_of.go +++ b/fastly/model_waf_firewall_version_response_data_attributes_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -42,7 +41,7 @@ type WafFirewallVersionResponseDataAttributesAllOf struct { // Time-stamp (GMT) indicating when the firewall version was last deployed. DeployedAt *string `json:"deployed_at,omitempty"` // Contains error message if the firewall version fails to deploy. - Error *string `json:"error,omitempty"` + Error *string `json:"error,omitempty"` AdditionalProperties map[string]any } @@ -366,7 +365,7 @@ func (o *WafFirewallVersionResponseDataAttributesAllOf) GetLastDeploymentStatus( // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *WafFirewallVersionResponseDataAttributesAllOf) GetLastDeploymentStatusOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return o.LastDeploymentStatus.Get(), o.LastDeploymentStatus.IsSet() @@ -385,6 +384,7 @@ func (o *WafFirewallVersionResponseDataAttributesAllOf) HasLastDeploymentStatus( func (o *WafFirewallVersionResponseDataAttributesAllOf) SetLastDeploymentStatus(v string) { o.LastDeploymentStatus.Set(&v) } + // SetLastDeploymentStatusNil sets the value for LastDeploymentStatus to be an explicit nil func (o *WafFirewallVersionResponseDataAttributesAllOf) SetLastDeploymentStatusNil() { o.LastDeploymentStatus.Set(nil) @@ -508,7 +508,7 @@ func (o WafFirewallVersionResponseDataAttributesAllOf) MarshalJSON() ([]byte, er } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionResponseDataAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionResponseDataAttributesAllOf := _WafFirewallVersionResponseDataAttributesAllOf{} @@ -537,7 +537,7 @@ func (o *WafFirewallVersionResponseDataAttributesAllOf) UnmarshalJSON(bytes []by return err } -// NullableWafFirewallVersionResponseDataAttributesAllOf is a helper abstraction for handling nullable waffirewallversionresponsedataattributesallof types. +// NullableWafFirewallVersionResponseDataAttributesAllOf is a helper abstraction for handling nullable waffirewallversionresponsedataattributesallof types. type NullableWafFirewallVersionResponseDataAttributesAllOf struct { value *WafFirewallVersionResponseDataAttributesAllOf isSet bool @@ -577,7 +577,7 @@ func (v NullableWafFirewallVersionResponseDataAttributesAllOf) MarshalJSON() ([] } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionResponseDataAttributesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_versions_response.go b/fastly/model_waf_firewall_versions_response.go index 196e9a4..532e225 100644 --- a/fastly/model_waf_firewall_versions_response.go +++ b/fastly/model_waf_firewall_versions_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersionsResponse struct for WafFirewallVersionsResponse type WafFirewallVersionsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafFirewallVersionResponseData `json:"data,omitempty"` - Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafFirewallVersionResponseData `json:"data,omitempty"` + Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafFirewallVersionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionsResponse) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionsResponse := _WafFirewallVersionsResponse{} @@ -219,7 +218,7 @@ func (o *WafFirewallVersionsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallVersionsResponse is a helper abstraction for handling nullable waffirewallversionsresponse types. +// NullableWafFirewallVersionsResponse is a helper abstraction for handling nullable waffirewallversionsresponse types. type NullableWafFirewallVersionsResponse struct { value *WafFirewallVersionsResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafFirewallVersionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewall_versions_response_all_of.go b/fastly/model_waf_firewall_versions_response_all_of.go index 86dcb88..df0ee12 100644 --- a/fastly/model_waf_firewall_versions_response_all_of.go +++ b/fastly/model_waf_firewall_versions_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallVersionsResponseAllOf struct for WafFirewallVersionsResponseAllOf type WafFirewallVersionsResponseAllOf struct { - Data []WafFirewallVersionResponseData `json:"data,omitempty"` - Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` + Data []WafFirewallVersionResponseData `json:"data,omitempty"` + Included []IncludedWithWafFirewallVersionItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafFirewallVersionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallVersionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallVersionsResponseAllOf := _WafFirewallVersionsResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafFirewallVersionsResponseAllOf) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableWafFirewallVersionsResponseAllOf is a helper abstraction for handling nullable waffirewallversionsresponseallof types. +// NullableWafFirewallVersionsResponseAllOf is a helper abstraction for handling nullable waffirewallversionsresponseallof types. type NullableWafFirewallVersionsResponseAllOf struct { value *WafFirewallVersionsResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafFirewallVersionsResponseAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallVersionsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewalls_response.go b/fastly/model_waf_firewalls_response.go index cd6e7e5..5a6921b 100644 --- a/fastly/model_waf_firewalls_response.go +++ b/fastly/model_waf_firewalls_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallsResponse struct for WafFirewallsResponse type WafFirewallsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafFirewallResponseData `json:"data,omitempty"` - Included []SchemasWafFirewallVersion `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafFirewallResponseData `json:"data,omitempty"` + Included []SchemasWafFirewallVersion `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafFirewallsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallsResponse) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallsResponse := _WafFirewallsResponse{} @@ -219,7 +218,7 @@ func (o *WafFirewallsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallsResponse is a helper abstraction for handling nullable waffirewallsresponse types. +// NullableWafFirewallsResponse is a helper abstraction for handling nullable waffirewallsresponse types. type NullableWafFirewallsResponse struct { value *WafFirewallsResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafFirewallsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_firewalls_response_all_of.go b/fastly/model_waf_firewalls_response_all_of.go index 48cd030..ca4da54 100644 --- a/fastly/model_waf_firewalls_response_all_of.go +++ b/fastly/model_waf_firewalls_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafFirewallsResponseAllOf struct for WafFirewallsResponseAllOf type WafFirewallsResponseAllOf struct { - Data []WafFirewallResponseData `json:"data,omitempty"` - Included []SchemasWafFirewallVersion `json:"included,omitempty"` + Data []WafFirewallResponseData `json:"data,omitempty"` + Included []SchemasWafFirewallVersion `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafFirewallsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafFirewallsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafFirewallsResponseAllOf := _WafFirewallsResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafFirewallsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafFirewallsResponseAllOf is a helper abstraction for handling nullable waffirewallsresponseallof types. +// NullableWafFirewallsResponseAllOf is a helper abstraction for handling nullable waffirewallsresponseallof types. type NullableWafFirewallsResponseAllOf struct { value *WafFirewallsResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafFirewallsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafFirewallsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule.go b/fastly/model_waf_rule.go index 5ba976a..acc4ea1 100644 --- a/fastly/model_waf_rule.go +++ b/fastly/model_waf_rule.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,16 +12,15 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRule struct for WafRule type WafRule struct { - Type *TypeWafRule `json:"type,omitempty"` - ID *string `json:"id,omitempty"` - Attributes *WafRuleAttributes `json:"attributes,omitempty"` + Type *TypeWafRule `json:"type,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafRuleAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -166,7 +165,7 @@ func (o WafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRule) UnmarshalJSON(bytes []byte) (err error) { varWafRule := _WafRule{} @@ -186,7 +185,7 @@ func (o *WafRule) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRule is a helper abstraction for handling nullable wafrule types. +// NullableWafRule is a helper abstraction for handling nullable wafrule types. type NullableWafRule struct { value *WafRule isSet bool @@ -226,7 +225,7 @@ func (v NullableWafRule) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_attributes.go b/fastly/model_waf_rule_attributes.go index f1a2e18..4995dd4 100644 --- a/fastly/model_waf_rule_attributes.go +++ b/fastly/model_waf_rule_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -24,7 +23,7 @@ type WafRuleAttributes struct { // Rule publisher. Publisher *string `json:"publisher,omitempty"` // The rule's [type](https://docs.fastly.com/en/guides/managing-rules-on-the-fastly-waf#understanding-the-types-of-rules). - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]any } @@ -165,7 +164,7 @@ func (o WafRuleAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafRuleAttributes := _WafRuleAttributes{} @@ -185,7 +184,7 @@ func (o *WafRuleAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleAttributes is a helper abstraction for handling nullable wafruleattributes types. +// NullableWafRuleAttributes is a helper abstraction for handling nullable wafruleattributes types. type NullableWafRuleAttributes struct { value *WafRuleAttributes isSet bool @@ -225,7 +224,7 @@ func (v NullableWafRuleAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_response.go b/fastly/model_waf_rule_response.go index 801ab19..f1f8094 100644 --- a/fastly/model_waf_rule_response.go +++ b/fastly/model_waf_rule_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleResponse struct for WafRuleResponse type WafRuleResponse struct { - Data *WafRuleResponseData `json:"data,omitempty"` - Included []IncludedWithWafRuleItem `json:"included,omitempty"` + Data *WafRuleResponseData `json:"data,omitempty"` + Included []IncludedWithWafRuleItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafRuleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleResponse) UnmarshalJSON(bytes []byte) (err error) { varWafRuleResponse := _WafRuleResponse{} @@ -145,7 +144,7 @@ func (o *WafRuleResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleResponse is a helper abstraction for handling nullable wafruleresponse types. +// NullableWafRuleResponse is a helper abstraction for handling nullable wafruleresponse types. type NullableWafRuleResponse struct { value *WafRuleResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableWafRuleResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_response_data.go b/fastly/model_waf_rule_response_data.go index e4783ad..f50abeb 100644 --- a/fastly/model_waf_rule_response_data.go +++ b/fastly/model_waf_rule_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleResponseData struct for WafRuleResponseData type WafRuleResponseData struct { - Type *TypeWafRule `json:"type,omitempty"` - ID *string `json:"id,omitempty"` - Attributes *WafRuleAttributes `json:"attributes,omitempty"` - Relationships *RelationshipsForWafRule `json:"relationships,omitempty"` + Type *TypeWafRule `json:"type,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafRuleAttributes `json:"attributes,omitempty"` + Relationships *RelationshipsForWafRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -202,7 +201,7 @@ func (o WafRuleResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafRuleResponseData := _WafRuleResponseData{} @@ -223,7 +222,7 @@ func (o *WafRuleResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleResponseData is a helper abstraction for handling nullable wafruleresponsedata types. +// NullableWafRuleResponseData is a helper abstraction for handling nullable wafruleresponsedata types. type NullableWafRuleResponseData struct { value *WafRuleResponseData isSet bool @@ -263,7 +262,7 @@ func (v NullableWafRuleResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_response_data_all_of.go b/fastly/model_waf_rule_response_data_all_of.go index 20758fb..7c8648b 100644 --- a/fastly/model_waf_rule_response_data_all_of.go +++ b/fastly/model_waf_rule_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleResponseDataAllOf struct for WafRuleResponseDataAllOf type WafRuleResponseDataAllOf struct { - Relationships *RelationshipsForWafRule `json:"relationships,omitempty"` + Relationships *RelationshipsForWafRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafRuleResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafRuleResponseDataAllOf := _WafRuleResponseDataAllOf{} @@ -108,7 +107,7 @@ func (o *WafRuleResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleResponseDataAllOf is a helper abstraction for handling nullable wafruleresponsedataallof types. +// NullableWafRuleResponseDataAllOf is a helper abstraction for handling nullable wafruleresponsedataallof types. type NullableWafRuleResponseDataAllOf struct { value *WafRuleResponseDataAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableWafRuleResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision.go b/fastly/model_waf_rule_revision.go index d308c71..f440b8d 100644 --- a/fastly/model_waf_rule_revision.go +++ b/fastly/model_waf_rule_revision.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type WafRuleRevision struct { Type *TypeWafRuleRevision `json:"type,omitempty"` // Alphanumeric string identifying a WAF rule revision. - ID *string `json:"id,omitempty"` - Attributes *WafRuleRevisionAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafRuleRevisionAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o WafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevision) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevision := _WafRuleRevision{} @@ -187,7 +186,7 @@ func (o *WafRuleRevision) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleRevision is a helper abstraction for handling nullable wafrulerevision types. +// NullableWafRuleRevision is a helper abstraction for handling nullable wafrulerevision types. type NullableWafRuleRevision struct { value *WafRuleRevision isSet bool @@ -227,7 +226,7 @@ func (v NullableWafRuleRevision) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevision) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision_attributes.go b/fastly/model_waf_rule_revision_attributes.go index d652b65..f6e5e2e 100644 --- a/fastly/model_waf_rule_revision_attributes.go +++ b/fastly/model_waf_rule_revision_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -34,7 +33,7 @@ type WafRuleRevisionAttributes struct { // The state, indicating if the revision is the most recent version of the rule. State *string `json:"state,omitempty"` // The VCL representation of the rule logic. - Vcl *string `json:"vcl,omitempty"` + Vcl *string `json:"vcl,omitempty"` AdditionalProperties map[string]any } @@ -350,7 +349,7 @@ func (o WafRuleRevisionAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionAttributes := _WafRuleRevisionAttributes{} @@ -375,7 +374,7 @@ func (o *WafRuleRevisionAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleRevisionAttributes is a helper abstraction for handling nullable wafrulerevisionattributes types. +// NullableWafRuleRevisionAttributes is a helper abstraction for handling nullable wafrulerevisionattributes types. type NullableWafRuleRevisionAttributes struct { value *WafRuleRevisionAttributes isSet bool @@ -415,7 +414,7 @@ func (v NullableWafRuleRevisionAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision_or_latest.go b/fastly/model_waf_rule_revision_or_latest.go index 15a8c9f..c42a46b 100644 --- a/fastly/model_waf_rule_revision_or_latest.go +++ b/fastly/model_waf_rule_revision_or_latest.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "fmt" @@ -20,7 +19,7 @@ import ( // WafRuleRevisionOrLatest - struct for WafRuleRevisionOrLatest type WafRuleRevisionOrLatest struct { - Int32 *int32 + Int32 *int32 String *string } @@ -38,9 +37,8 @@ func StringAsWafRuleRevisionOrLatest(v *string) WafRuleRevisionOrLatest { } } - // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionOrLatest) UnmarshalJSON(data []byte) error { var err error match := 0 @@ -98,7 +96,7 @@ func (o WafRuleRevisionOrLatest) MarshalJSON() ([]byte, error) { } // GetActualInstance returns a specific instance of the type. -func (o *WafRuleRevisionOrLatest) GetActualInstance() (any) { +func (o *WafRuleRevisionOrLatest) GetActualInstance() any { if o == nil { return nil } @@ -114,7 +112,7 @@ func (o *WafRuleRevisionOrLatest) GetActualInstance() (any) { return nil } -// NullableWafRuleRevisionOrLatest is a helper abstraction for handling nullable wafrulerevisionorlatest types. +// NullableWafRuleRevisionOrLatest is a helper abstraction for handling nullable wafrulerevisionorlatest types. type NullableWafRuleRevisionOrLatest struct { value *WafRuleRevisionOrLatest isSet bool @@ -154,7 +152,7 @@ func (v NullableWafRuleRevisionOrLatest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionOrLatest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision_response.go b/fastly/model_waf_rule_revision_response.go index 3913b85..8f0860b 100644 --- a/fastly/model_waf_rule_revision_response.go +++ b/fastly/model_waf_rule_revision_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleRevisionResponse struct for WafRuleRevisionResponse type WafRuleRevisionResponse struct { - Data *WafRuleRevisionResponseData `json:"data,omitempty"` - Included []WafRule `json:"included,omitempty"` + Data *WafRuleRevisionResponseData `json:"data,omitempty"` + Included []WafRule `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafRuleRevisionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionResponse) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionResponse := _WafRuleRevisionResponse{} @@ -145,7 +144,7 @@ func (o *WafRuleRevisionResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleRevisionResponse is a helper abstraction for handling nullable wafrulerevisionresponse types. +// NullableWafRuleRevisionResponse is a helper abstraction for handling nullable wafrulerevisionresponse types. type NullableWafRuleRevisionResponse struct { value *WafRuleRevisionResponse isSet bool @@ -185,7 +184,7 @@ func (v NullableWafRuleRevisionResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision_response_data.go b/fastly/model_waf_rule_revision_response_data.go index 262d728..3f5706b 100644 --- a/fastly/model_waf_rule_revision_response_data.go +++ b/fastly/model_waf_rule_revision_response_data.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,9 +20,9 @@ import ( type WafRuleRevisionResponseData struct { Type *TypeWafRuleRevision `json:"type,omitempty"` // Alphanumeric string identifying a WAF rule revision. - ID *string `json:"id,omitempty"` - Attributes *WafRuleRevisionAttributes `json:"attributes,omitempty"` - Relationships *RelationshipWafRule `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafRuleRevisionAttributes `json:"attributes,omitempty"` + Relationships *RelationshipWafRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -203,7 +202,7 @@ func (o WafRuleRevisionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionResponseData) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionResponseData := _WafRuleRevisionResponseData{} @@ -224,7 +223,7 @@ func (o *WafRuleRevisionResponseData) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleRevisionResponseData is a helper abstraction for handling nullable wafrulerevisionresponsedata types. +// NullableWafRuleRevisionResponseData is a helper abstraction for handling nullable wafrulerevisionresponsedata types. type NullableWafRuleRevisionResponseData struct { value *WafRuleRevisionResponseData isSet bool @@ -264,7 +263,7 @@ func (v NullableWafRuleRevisionResponseData) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revision_response_data_all_of.go b/fastly/model_waf_rule_revision_response_data_all_of.go index 9a877eb..0597aed 100644 --- a/fastly/model_waf_rule_revision_response_data_all_of.go +++ b/fastly/model_waf_rule_revision_response_data_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleRevisionResponseDataAllOf struct for WafRuleRevisionResponseDataAllOf type WafRuleRevisionResponseDataAllOf struct { - Relationships *RelationshipWafRule `json:"relationships,omitempty"` + Relationships *RelationshipWafRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafRuleRevisionResponseDataAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionResponseDataAllOf := _WafRuleRevisionResponseDataAllOf{} @@ -108,7 +107,7 @@ func (o *WafRuleRevisionResponseDataAllOf) UnmarshalJSON(bytes []byte) (err erro return err } -// NullableWafRuleRevisionResponseDataAllOf is a helper abstraction for handling nullable wafrulerevisionresponsedataallof types. +// NullableWafRuleRevisionResponseDataAllOf is a helper abstraction for handling nullable wafrulerevisionresponsedataallof types. type NullableWafRuleRevisionResponseDataAllOf struct { value *WafRuleRevisionResponseDataAllOf isSet bool @@ -148,7 +147,7 @@ func (v NullableWafRuleRevisionResponseDataAllOf) MarshalJSON() ([]byte, error) } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionResponseDataAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revisions_response.go b/fastly/model_waf_rule_revisions_response.go index f380387..e95cdb6 100644 --- a/fastly/model_waf_rule_revisions_response.go +++ b/fastly/model_waf_rule_revisions_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleRevisionsResponse struct for WafRuleRevisionsResponse type WafRuleRevisionsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafRuleRevisionResponseData `json:"data,omitempty"` - Included []WafRule `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafRuleRevisionResponseData `json:"data,omitempty"` + Included []WafRule `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafRuleRevisionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionsResponse) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionsResponse := _WafRuleRevisionsResponse{} @@ -219,7 +218,7 @@ func (o *WafRuleRevisionsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRuleRevisionsResponse is a helper abstraction for handling nullable wafrulerevisionsresponse types. +// NullableWafRuleRevisionsResponse is a helper abstraction for handling nullable wafrulerevisionsresponse types. type NullableWafRuleRevisionsResponse struct { value *WafRuleRevisionsResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafRuleRevisionsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rule_revisions_response_all_of.go b/fastly/model_waf_rule_revisions_response_all_of.go index f352de0..f774100 100644 --- a/fastly/model_waf_rule_revisions_response_all_of.go +++ b/fastly/model_waf_rule_revisions_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRuleRevisionsResponseAllOf struct for WafRuleRevisionsResponseAllOf type WafRuleRevisionsResponseAllOf struct { - Data []WafRuleRevisionResponseData `json:"data,omitempty"` - Included []WafRule `json:"included,omitempty"` + Data []WafRuleRevisionResponseData `json:"data,omitempty"` + Included []WafRule `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafRuleRevisionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRuleRevisionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafRuleRevisionsResponseAllOf := _WafRuleRevisionsResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafRuleRevisionsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) return err } -// NullableWafRuleRevisionsResponseAllOf is a helper abstraction for handling nullable wafrulerevisionsresponseallof types. +// NullableWafRuleRevisionsResponseAllOf is a helper abstraction for handling nullable wafrulerevisionsresponseallof types. type NullableWafRuleRevisionsResponseAllOf struct { value *WafRuleRevisionsResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafRuleRevisionsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRuleRevisionsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rules_response.go b/fastly/model_waf_rules_response.go index 82cf57b..64b823c 100644 --- a/fastly/model_waf_rules_response.go +++ b/fastly/model_waf_rules_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRulesResponse struct for WafRulesResponse type WafRulesResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafRuleResponseData `json:"data,omitempty"` - Included []IncludedWithWafRuleItem `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafRuleResponseData `json:"data,omitempty"` + Included []IncludedWithWafRuleItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafRulesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRulesResponse) UnmarshalJSON(bytes []byte) (err error) { varWafRulesResponse := _WafRulesResponse{} @@ -219,7 +218,7 @@ func (o *WafRulesResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRulesResponse is a helper abstraction for handling nullable wafrulesresponse types. +// NullableWafRulesResponse is a helper abstraction for handling nullable wafrulesresponse types. type NullableWafRulesResponse struct { value *WafRulesResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafRulesResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRulesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_rules_response_all_of.go b/fastly/model_waf_rules_response_all_of.go index aa5a97e..d81208d 100644 --- a/fastly/model_waf_rules_response_all_of.go +++ b/fastly/model_waf_rules_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafRulesResponseAllOf struct for WafRulesResponseAllOf type WafRulesResponseAllOf struct { - Data []WafRuleResponseData `json:"data,omitempty"` - Included []IncludedWithWafRuleItem `json:"included,omitempty"` + Data []WafRuleResponseData `json:"data,omitempty"` + Included []IncludedWithWafRuleItem `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafRulesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafRulesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafRulesResponseAllOf := _WafRulesResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafRulesResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafRulesResponseAllOf is a helper abstraction for handling nullable wafrulesresponseallof types. +// NullableWafRulesResponseAllOf is a helper abstraction for handling nullable wafrulesresponseallof types. type NullableWafRulesResponseAllOf struct { value *WafRulesResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafRulesResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafRulesResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_tag.go b/fastly/model_waf_tag.go index 63a33a8..c46656a 100644 --- a/fastly/model_waf_tag.go +++ b/fastly/model_waf_tag.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,8 +20,8 @@ import ( type WafTag struct { Type *TypeWafTag `json:"type,omitempty"` // Alphanumeric string identifying a WAF tag. - ID *string `json:"id,omitempty"` - Attributes *WafTagAttributes `json:"attributes,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafTagAttributes `json:"attributes,omitempty"` AdditionalProperties map[string]any } @@ -167,7 +166,7 @@ func (o WafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafTag) UnmarshalJSON(bytes []byte) (err error) { varWafTag := _WafTag{} @@ -187,7 +186,7 @@ func (o *WafTag) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafTag is a helper abstraction for handling nullable waftag types. +// NullableWafTag is a helper abstraction for handling nullable waftag types. type NullableWafTag struct { value *WafTag isSet bool @@ -227,7 +226,7 @@ func (v NullableWafTag) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_tag_attributes.go b/fastly/model_waf_tag_attributes.go index 41d619b..fff08e8 100644 --- a/fastly/model_waf_tag_attributes.go +++ b/fastly/model_waf_tag_attributes.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,14 +12,13 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafTagAttributes struct for WafTagAttributes type WafTagAttributes struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]any } @@ -90,7 +89,7 @@ func (o WafTagAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafTagAttributes) UnmarshalJSON(bytes []byte) (err error) { varWafTagAttributes := _WafTagAttributes{} @@ -108,7 +107,7 @@ func (o *WafTagAttributes) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafTagAttributes is a helper abstraction for handling nullable waftagattributes types. +// NullableWafTagAttributes is a helper abstraction for handling nullable waftagattributes types. type NullableWafTagAttributes struct { value *WafTagAttributes isSet bool @@ -148,7 +147,7 @@ func (v NullableWafTagAttributes) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafTagAttributes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_tags_response.go b/fastly/model_waf_tags_response.go index 9ca0239..531b959 100644 --- a/fastly/model_waf_tags_response.go +++ b/fastly/model_waf_tags_response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,17 +12,16 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafTagsResponse struct for WafTagsResponse type WafTagsResponse struct { - Links *PaginationLinks `json:"links,omitempty"` - Meta *PaginationMeta `json:"meta,omitempty"` - Data []WafTagsResponseDataItem `json:"data,omitempty"` - Included []WafRule `json:"included,omitempty"` + Links *PaginationLinks `json:"links,omitempty"` + Meta *PaginationMeta `json:"meta,omitempty"` + Data []WafTagsResponseDataItem `json:"data,omitempty"` + Included []WafRule `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -198,7 +197,7 @@ func (o WafTagsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafTagsResponse) UnmarshalJSON(bytes []byte) (err error) { varWafTagsResponse := _WafTagsResponse{} @@ -219,7 +218,7 @@ func (o *WafTagsResponse) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafTagsResponse is a helper abstraction for handling nullable waftagsresponse types. +// NullableWafTagsResponse is a helper abstraction for handling nullable waftagsresponse types. type NullableWafTagsResponse struct { value *WafTagsResponse isSet bool @@ -259,7 +258,7 @@ func (v NullableWafTagsResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafTagsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_tags_response_all_of.go b/fastly/model_waf_tags_response_all_of.go index 644af01..b390de3 100644 --- a/fastly/model_waf_tags_response_all_of.go +++ b/fastly/model_waf_tags_response_all_of.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,15 +12,14 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) // WafTagsResponseAllOf struct for WafTagsResponseAllOf type WafTagsResponseAllOf struct { - Data []WafTagsResponseDataItem `json:"data,omitempty"` - Included []WafRule `json:"included,omitempty"` + Data []WafTagsResponseDataItem `json:"data,omitempty"` + Included []WafRule `json:"included,omitempty"` AdditionalProperties map[string]any } @@ -126,7 +125,7 @@ func (o WafTagsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafTagsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { varWafTagsResponseAllOf := _WafTagsResponseAllOf{} @@ -145,7 +144,7 @@ func (o *WafTagsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafTagsResponseAllOf is a helper abstraction for handling nullable waftagsresponseallof types. +// NullableWafTagsResponseAllOf is a helper abstraction for handling nullable waftagsresponseallof types. type NullableWafTagsResponseAllOf struct { value *WafTagsResponseAllOf isSet bool @@ -185,7 +184,7 @@ func (v NullableWafTagsResponseAllOf) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafTagsResponseAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_waf_tags_response_data_item.go b/fastly/model_waf_tags_response_data_item.go index be77112..ca4d8ed 100644 --- a/fastly/model_waf_tags_response_data_item.go +++ b/fastly/model_waf_tags_response_data_item.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -21,9 +20,9 @@ import ( type WafTagsResponseDataItem struct { Type *TypeWafTag `json:"type,omitempty"` // Alphanumeric string identifying a WAF tag. - ID *string `json:"id,omitempty"` - Attributes *WafTagAttributes `json:"attributes,omitempty"` - Relationships *RelationshipWafRule `json:"relationships,omitempty"` + ID *string `json:"id,omitempty"` + Attributes *WafTagAttributes `json:"attributes,omitempty"` + Relationships *RelationshipWafRule `json:"relationships,omitempty"` AdditionalProperties map[string]any } @@ -203,7 +202,7 @@ func (o WafTagsResponseDataItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WafTagsResponseDataItem) UnmarshalJSON(bytes []byte) (err error) { varWafTagsResponseDataItem := _WafTagsResponseDataItem{} @@ -224,7 +223,7 @@ func (o *WafTagsResponseDataItem) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWafTagsResponseDataItem is a helper abstraction for handling nullable waftagsresponsedataitem types. +// NullableWafTagsResponseDataItem is a helper abstraction for handling nullable waftagsresponsedataitem types. type NullableWafTagsResponseDataItem struct { value *WafTagsResponseDataItem isSet bool @@ -264,7 +263,7 @@ func (v NullableWafTagsResponseDataItem) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWafTagsResponseDataItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/model_ws_message_format.go b/fastly/model_ws_message_format.go index def783a..123478a 100644 --- a/fastly/model_ws_message_format.go +++ b/fastly/model_ws_message_format.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" ) @@ -22,7 +21,7 @@ type WsMessageFormat struct { // The content of a WebSocket `TEXT` message. Content *string `json:"content,omitempty"` // The base64-encoded content of a WebSocket `BINARY` message. - ContentBin *string `json:"content-bin,omitempty"` + ContentBin *string `json:"content-bin,omitempty"` AdditionalProperties map[string]any } @@ -128,7 +127,7 @@ func (o WsMessageFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (o *WsMessageFormat) UnmarshalJSON(bytes []byte) (err error) { varWsMessageFormat := _WsMessageFormat{} @@ -147,7 +146,7 @@ func (o *WsMessageFormat) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableWsMessageFormat is a helper abstraction for handling nullable wsmessageformat types. +// NullableWsMessageFormat is a helper abstraction for handling nullable wsmessageformat types. type NullableWsMessageFormat struct { value *WsMessageFormat isSet bool @@ -187,7 +186,7 @@ func (v NullableWsMessageFormat) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableWsMessageFormat) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/fastly/response.go b/fastly/response.go index 81a56d7..cd51496 100644 --- a/fastly/response.go +++ b/fastly/response.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "net/http" ) @@ -20,8 +19,8 @@ import ( // APIResponse stores the API response returned by the server. type APIResponse struct { *http.Response `json:"-"` - // Message is a response message. - Message string `json:"message,omitempty"` + // Message is a response message. + Message string `json:"message,omitempty"` // Operation is the name of the API operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the diff --git a/fastly/utils.go b/fastly/utils.go index f86fee0..dbad0d9 100644 --- a/fastly/utils.go +++ b/fastly/utils.go @@ -4,7 +4,7 @@ package fastly /* Fastly API -Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) API version: 1.0.0 Contact: oss@fastly.com @@ -12,7 +12,6 @@ Contact: oss@fastly.com // This code is auto-generated; DO NOT EDIT. - import ( "encoding/json" "time" @@ -20,45 +19,45 @@ import ( // PtrBool is a helper routine that returns a pointer to given boolean value. func PtrBool(v bool) *bool { - return &v + return &v } // PtrInt is a helper routine that returns a pointer to given integer value. func PtrInt(v int) *int { - return &v + return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. func PtrInt32(v int32) *int32 { - return &v + return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. func PtrInt64(v int64) *int64 { - return &v + return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. func PtrFloat32(v float32) *float32 { - return &v + return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. func PtrFloat64(v float64) *float64 { - return &v + return &v } // PtrString is a helper routine that returns a pointer to given string value. func PtrString(v string) *string { - return &v + return &v } // PtrTime is helper routine that returns a pointer to given Time value. func PtrTime(v time.Time) *time.Time { - return &v + return &v } -// NullableBool is a helper abstraction for handling nullable boolean types. +// NullableBool is a helper abstraction for handling nullable boolean types. type NullableBool struct { value *bool isSet bool @@ -98,13 +97,13 @@ func (v NullableBool) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableInt is a helper abstraction for handling nullable integer types. +// NullableInt is a helper abstraction for handling nullable integer types. type NullableInt struct { value *int isSet bool @@ -144,13 +143,13 @@ func (v NullableInt) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableInt32 is a helper abstraction for handling nullable int32 types. +// NullableInt32 is a helper abstraction for handling nullable int32 types. type NullableInt32 struct { value *int32 isSet bool @@ -190,13 +189,13 @@ func (v NullableInt32) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableInt64 is a helper abstraction for handling nullable int64 types. +// NullableInt64 is a helper abstraction for handling nullable int64 types. type NullableInt64 struct { value *int64 isSet bool @@ -236,13 +235,13 @@ func (v NullableInt64) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableFloat32 is a helper abstraction for handling nullable float32 types. +// NullableFloat32 is a helper abstraction for handling nullable float32 types. type NullableFloat32 struct { value *float32 isSet bool @@ -282,13 +281,13 @@ func (v NullableFloat32) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableFloat64 is a helper abstraction for handling nullable float64 types. +// NullableFloat64 is a helper abstraction for handling nullable float64 types. type NullableFloat64 struct { value *float64 isSet bool @@ -328,13 +327,13 @@ func (v NullableFloat64) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableString is a helper abstraction for handling nullable string types. +// NullableString is a helper abstraction for handling nullable string types. type NullableString struct { value *string isSet bool @@ -374,13 +373,13 @@ func (v NullableString) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } -// NullableTime is a helper abstraction for handling nullable time types. +// NullableTime is a helper abstraction for handling nullable time types. type NullableTime struct { value *time.Time isSet bool @@ -420,7 +419,7 @@ func (v NullableTime) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the Unmarshaler interface. -// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/sig.json b/sig.json index d9facb9..12052e1 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "1827dbb1", "D": "1f27800e"} +{"G": "dbe8e713", "D": "4061d4ec"}