fastly 4.0.0.alpha4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +100 -21
- data/docs/AclEntry.md +1 -1
- data/docs/AclEntryApi.md +0 -176
- data/docs/AclEntryResponse.md +1 -1
- data/docs/ApexRedirectApi.md +4 -4
- data/docs/AutomationToken.md +14 -0
- data/docs/AutomationTokenCreateRequest.md +10 -0
- data/docs/AutomationTokenCreateRequestAttributes.md +15 -0
- data/docs/AutomationTokenCreateResponse.md +24 -0
- data/docs/AutomationTokenCreateResponseAllOf.md +17 -0
- data/docs/AutomationTokenResponse.md +23 -0
- data/docs/AutomationTokenResponseAllOf.md +18 -0
- data/docs/AutomationTokensApi.md +209 -0
- data/docs/AwsRegion.md +9 -0
- data/docs/Backend.md +1 -0
- data/docs/BackendApi.md +4 -0
- data/docs/BackendResponse.md +1 -0
- data/docs/Billing.md +2 -1
- data/docs/BillingAddressRequest.md +1 -0
- data/docs/BillingAddressVerificationErrorResponse.md +10 -0
- data/docs/BillingAddressVerificationErrorResponseErrors.md +14 -0
- data/docs/BillingEstimateResponse.md +2 -1
- data/docs/BillingResponse.md +2 -1
- data/docs/BulkUpdateAclEntry.md +1 -1
- data/docs/ConditionApi.md +4 -4
- data/docs/EnabledProduct.md +12 -0
- data/docs/EnabledProductLinks.md +11 -0
- data/docs/EnabledProductProduct.md +11 -0
- data/docs/EnabledProductsApi.md +133 -0
- data/docs/ErrorResponse.md +10 -0
- data/docs/ErrorResponseData.md +11 -0
- data/docs/EventAttributes.md +1 -0
- data/docs/EventsApi.md +4 -2
- data/docs/HeaderApi.md +4 -4
- data/docs/Healthcheck.md +5 -4
- data/docs/HealthcheckApi.md +46 -42
- data/docs/HealthcheckResponse.md +5 -4
- data/docs/Http3Api.md +4 -4
- data/docs/HttpResponseFormat.md +14 -0
- data/docs/HttpStreamFormat.md +11 -0
- data/docs/InlineObject.md +10 -0
- data/docs/InlineObject1.md +10 -0
- data/docs/InlineResponse2001.md +1 -1
- data/docs/LoggingAzureblob.md +3 -3
- data/docs/LoggingAzureblobApi.md +12 -12
- data/docs/LoggingAzureblobResponse.md +3 -3
- data/docs/LoggingBigquery.md +4 -3
- data/docs/LoggingBigqueryApi.md +16 -12
- data/docs/LoggingBigqueryResponse.md +4 -3
- data/docs/LoggingCloudfiles.md +3 -3
- data/docs/LoggingCloudfilesApi.md +12 -12
- data/docs/LoggingCloudfilesResponse.md +3 -3
- data/docs/LoggingCommon.md +1 -1
- data/docs/LoggingDatadog.md +1 -1
- data/docs/LoggingDatadogApi.md +4 -4
- data/docs/LoggingDatadogResponse.md +1 -1
- data/docs/LoggingDigitalocean.md +3 -3
- data/docs/LoggingDigitaloceanApi.md +12 -12
- data/docs/LoggingDigitaloceanResponse.md +3 -3
- data/docs/LoggingElasticsearch.md +1 -1
- data/docs/LoggingElasticsearchApi.md +4 -4
- data/docs/LoggingElasticsearchResponse.md +1 -1
- data/docs/LoggingFtp.md +3 -3
- data/docs/LoggingFtpApi.md +12 -12
- data/docs/LoggingFtpResponse.md +3 -3
- data/docs/LoggingGcs.md +7 -5
- data/docs/LoggingGcsAllOf.md +1 -0
- data/docs/LoggingGcsApi.md +32 -24
- data/docs/LoggingGcsCommon.md +3 -2
- data/docs/LoggingGcsResponse.md +7 -5
- data/docs/LoggingGenericCommon.md +2 -2
- data/docs/LoggingGooglePubsub.md +4 -3
- data/docs/LoggingGooglePubsubResponse.md +4 -3
- data/docs/LoggingHeroku.md +1 -1
- data/docs/LoggingHerokuApi.md +4 -4
- data/docs/LoggingHerokuResponse.md +1 -1
- data/docs/LoggingHoneycomb.md +1 -1
- data/docs/LoggingHoneycombApi.md +4 -4
- data/docs/LoggingHoneycombResponse.md +1 -1
- data/docs/LoggingHttps.md +1 -1
- data/docs/LoggingHttpsApi.md +4 -4
- data/docs/LoggingHttpsResponse.md +1 -1
- data/docs/LoggingKafka.md +1 -1
- data/docs/LoggingKafkaApi.md +2 -2
- data/docs/LoggingKafkaResponse.md +1 -1
- data/docs/LoggingKinesis.md +1 -1
- data/docs/LoggingKinesisApi.md +2 -2
- data/docs/LoggingKinesisResponse.md +1 -1
- data/docs/LoggingLogentries.md +1 -1
- data/docs/LoggingLogentriesApi.md +4 -4
- data/docs/LoggingLogentriesResponse.md +1 -1
- data/docs/LoggingLoggly.md +1 -1
- data/docs/LoggingLogglyApi.md +4 -4
- data/docs/LoggingLogglyResponse.md +1 -1
- data/docs/LoggingLogshuttle.md +1 -1
- data/docs/LoggingLogshuttleApi.md +4 -4
- data/docs/LoggingLogshuttleResponse.md +1 -1
- data/docs/LoggingNewrelic.md +2 -2
- data/docs/LoggingNewrelicAllOf.md +1 -1
- data/docs/LoggingNewrelicApi.md +8 -8
- data/docs/LoggingNewrelicResponse.md +2 -2
- data/docs/LoggingOpenstack.md +3 -3
- data/docs/LoggingOpenstackApi.md +12 -12
- data/docs/LoggingOpenstackResponse.md +3 -3
- data/docs/LoggingPapertrail.md +1 -1
- data/docs/LoggingPapertrailApi.md +4 -4
- data/docs/LoggingPapertrailResponse.md +1 -1
- data/docs/LoggingPubsubApi.md +16 -12
- data/docs/LoggingS3.md +3 -3
- data/docs/LoggingS3Api.md +12 -12
- data/docs/LoggingS3Response.md +3 -3
- data/docs/LoggingScalyr.md +1 -1
- data/docs/LoggingScalyrApi.md +4 -4
- data/docs/LoggingScalyrResponse.md +1 -1
- data/docs/LoggingSftp.md +4 -4
- data/docs/LoggingSftpAllOf.md +1 -1
- data/docs/LoggingSftpApi.md +16 -16
- data/docs/LoggingSftpResponse.md +4 -4
- data/docs/LoggingSplunk.md +1 -1
- data/docs/LoggingSplunkApi.md +4 -4
- data/docs/LoggingSplunkResponse.md +1 -1
- data/docs/LoggingSumologic.md +1 -1
- data/docs/LoggingSumologicApi.md +4 -4
- data/docs/LoggingSumologicResponse.md +1 -1
- data/docs/LoggingSyslog.md +1 -1
- data/docs/LoggingSyslogApi.md +4 -4
- data/docs/LoggingSyslogResponse.md +1 -1
- data/docs/MutualAuthentication.md +10 -0
- data/docs/MutualAuthenticationApi.md +207 -0
- data/docs/MutualAuthenticationData.md +12 -0
- data/docs/MutualAuthenticationDataAttributes.md +12 -0
- data/docs/MutualAuthenticationResponse.md +10 -0
- data/docs/MutualAuthenticationResponseAttributes.md +13 -0
- data/docs/MutualAuthenticationResponseAttributesAllOf.md +10 -0
- data/docs/MutualAuthenticationResponseData.md +13 -0
- data/docs/MutualAuthenticationResponseDataAllOf.md +11 -0
- data/docs/MutualAuthenticationsResponse.md +12 -0
- data/docs/MutualAuthenticationsResponseAllOf.md +10 -0
- data/docs/PublishApi.md +54 -0
- data/docs/PublishItem.md +13 -0
- data/docs/PublishItemFormats.md +12 -0
- data/docs/PublishRequest.md +10 -0
- data/docs/PurgeApi.md +9 -9
- data/docs/RealtimeMeasurements.md +23 -0
- data/docs/RelationshipCommonName.md +1 -1
- data/docs/RelationshipMemberMutualAuthentication.md +11 -0
- data/docs/RelationshipMutualAuthentication.md +10 -0
- data/docs/RelationshipMutualAuthenticationMutualAuthentication.md +10 -0
- data/docs/RelationshipMutualAuthentications.md +10 -0
- data/docs/RelationshipMutualAuthenticationsMutualAuthentications.md +10 -0
- data/docs/RelationshipService.md +1 -1
- data/docs/RelationshipServices.md +1 -1
- data/docs/{RelationshipServiceService.md → RelationshipServicesServices.md} +1 -1
- data/docs/RelationshipTlsCertificateTlsCertificate.md +1 -1
- data/docs/RelationshipTlsCertificates.md +1 -1
- data/docs/RelationshipTlsCertificatesTlsCertificates.md +10 -0
- data/docs/RelationshipTlsConfigurationTlsConfiguration.md +1 -1
- data/docs/RelationshipTlsConfigurations.md +1 -1
- data/docs/RelationshipTlsConfigurationsTlsConfigurations.md +10 -0
- data/docs/RelationshipTlsDomainTlsDomain.md +1 -1
- data/docs/RelationshipTlsDomains.md +1 -1
- data/docs/RelationshipTlsDomainsTlsDomains.md +10 -0
- data/docs/RelationshipTlsPrivateKeyTlsPrivateKey.md +1 -1
- data/docs/RelationshipTlsPrivateKeys.md +1 -1
- data/docs/RelationshipTlsPrivateKeysTlsPrivateKeys.md +10 -0
- data/docs/RelationshipUserUser.md +1 -1
- data/docs/RelationshipsForMutualAuthentication.md +10 -0
- data/docs/RelationshipsForStar.md +1 -1
- data/docs/RelationshipsForTlsBulkCertificate.md +2 -2
- data/docs/RelationshipsForTlsConfiguration.md +1 -1
- data/docs/RelationshipsForTlsCsr.md +10 -0
- data/docs/RelationshipsForTlsPrivateKey.md +1 -1
- data/docs/RelationshipsForTlsSubscription.md +2 -2
- data/docs/Results.md +24 -1
- data/docs/SchemasUserResponse.md +2 -2
- data/docs/Service.md +1 -1
- data/docs/ServiceApi.md +4 -4
- data/docs/ServiceAuthorizationData.md +1 -1
- data/docs/ServiceAuthorizationDataRelationships.md +11 -0
- data/docs/ServiceAuthorizationDataRelationshipsUser.md +10 -0
- data/docs/{RelationshipUserUserData.md → ServiceAuthorizationDataRelationshipsUserData.md} +1 -1
- data/docs/ServiceAuthorizationResponseData.md +1 -1
- data/docs/ServiceCreate.md +1 -1
- data/docs/ServiceDetail.md +1 -1
- data/docs/ServiceInvitationData.md +1 -1
- data/docs/ServiceInvitationDataRelationships.md +10 -0
- data/docs/ServiceListResponse.md +1 -1
- data/docs/ServiceResponse.md +1 -1
- data/docs/ServiceVersionDetail.md +1 -1
- data/docs/ServiceVersionDetailOrNull.md +1 -1
- data/docs/TlsCsr.md +10 -0
- data/docs/TlsCsrData.md +12 -0
- data/docs/TlsCsrDataAttributes.md +19 -0
- data/docs/TlsCsrResponse.md +10 -0
- data/docs/TlsCsrResponseAttributes.md +10 -0
- data/docs/TlsCsrResponseData.md +13 -0
- data/docs/TlsCsrsApi.md +52 -0
- data/docs/TypeMutualAuthentication.md +9 -0
- data/docs/TypeTlsCsr.md +9 -0
- data/docs/UpdateBillingAddressRequest.md +1 -0
- data/docs/User.md +1 -1
- data/docs/UserApi.md +4 -4
- data/docs/UserResponse.md +2 -2
- data/docs/UserResponseAllOf.md +1 -1
- data/docs/ValidatorResult.md +14 -0
- data/docs/ValidatorResultMessages.md +13 -0
- data/docs/VclApi.md +78 -0
- data/docs/VersionDetail.md +1 -1
- data/docs/VersionDetailSettings.md +13 -0
- data/docs/WafFirewallVersionDataAttributes.md +1 -1
- data/docs/WsMessageFormat.md +11 -0
- data/lib/fastly/api/acl_entry_api.rb +0 -332
- data/lib/fastly/api/automation_tokens_api.rb +340 -0
- data/lib/fastly/api/backend_api.rb +6 -0
- data/lib/fastly/api/cache_settings_api.rb +2 -2
- data/lib/fastly/api/enabled_products_api.rb +228 -0
- data/lib/fastly/api/events_api.rb +6 -3
- data/lib/fastly/api/healthcheck_api.rb +48 -42
- data/lib/fastly/api/logging_azureblob_api.rb +12 -12
- data/lib/fastly/api/logging_bigquery_api.rb +18 -12
- data/lib/fastly/api/logging_cloudfiles_api.rb +12 -12
- data/lib/fastly/api/logging_datadog_api.rb +4 -4
- data/lib/fastly/api/logging_digitalocean_api.rb +12 -12
- data/lib/fastly/api/logging_elasticsearch_api.rb +4 -4
- data/lib/fastly/api/logging_ftp_api.rb +12 -12
- data/lib/fastly/api/logging_gcs_api.rb +32 -20
- data/lib/fastly/api/logging_heroku_api.rb +4 -4
- data/lib/fastly/api/logging_honeycomb_api.rb +4 -4
- data/lib/fastly/api/logging_https_api.rb +4 -4
- data/lib/fastly/api/logging_kafka_api.rb +2 -2
- data/lib/fastly/api/logging_kinesis_api.rb +2 -6
- data/lib/fastly/api/logging_logentries_api.rb +4 -4
- data/lib/fastly/api/logging_loggly_api.rb +4 -4
- data/lib/fastly/api/logging_logshuttle_api.rb +4 -4
- data/lib/fastly/api/logging_newrelic_api.rb +8 -8
- data/lib/fastly/api/logging_openstack_api.rb +12 -12
- data/lib/fastly/api/logging_papertrail_api.rb +4 -4
- data/lib/fastly/api/logging_pubsub_api.rb +18 -12
- data/lib/fastly/api/logging_s3_api.rb +12 -12
- data/lib/fastly/api/logging_scalyr_api.rb +4 -4
- data/lib/fastly/api/logging_sftp_api.rb +16 -16
- data/lib/fastly/api/logging_splunk_api.rb +4 -4
- data/lib/fastly/api/logging_sumologic_api.rb +4 -4
- data/lib/fastly/api/logging_syslog_api.rb +4 -4
- data/lib/fastly/api/mutual_authentication_api.rb +347 -0
- data/lib/fastly/api/publish_api.rb +90 -0
- data/lib/fastly/api/purge_api.rb +14 -15
- data/lib/fastly/api/service_api.rb +4 -4
- data/lib/fastly/api/{domain_ownerships_api.rb → tls_csrs_api.rb} +24 -17
- data/lib/fastly/api/user_api.rb +4 -4
- data/lib/fastly/api/vcl_api.rb +143 -0
- data/lib/fastly/api_client.rb +16 -0
- data/lib/fastly/models/acl_entry.rb +1 -1
- data/lib/fastly/models/acl_entry_response.rb +1 -4
- data/lib/fastly/models/acl_entry_response_all_of.rb +0 -3
- data/lib/fastly/models/acl_response.rb +0 -3
- data/lib/fastly/models/acl_response_all_of.rb +0 -1
- data/lib/fastly/models/apex_redirect.rb +0 -2
- data/lib/fastly/models/automation_token.rb +307 -0
- data/lib/fastly/models/automation_token_create_request.rb +216 -0
- data/lib/fastly/models/automation_token_create_request_attributes.rb +317 -0
- data/lib/fastly/models/automation_token_create_response.rb +416 -0
- data/lib/fastly/models/automation_token_create_response_all_of.rb +285 -0
- data/lib/fastly/models/automation_token_response.rb +394 -0
- data/lib/fastly/models/automation_token_response_all_of.rb +295 -0
- data/lib/fastly/models/aws_region.rb +56 -0
- data/lib/fastly/models/backend.rb +12 -1
- data/lib/fastly/models/backend_response.rb +12 -3
- data/lib/fastly/models/billing.rb +12 -3
- data/lib/fastly/models/billing_address_attributes.rb +4 -1
- data/lib/fastly/models/billing_address_request.rb +11 -1
- data/lib/fastly/models/billing_address_verification_error_response.rb +218 -0
- data/lib/fastly/models/billing_address_verification_error_response_errors.rb +275 -0
- data/lib/fastly/models/billing_estimate_response.rb +12 -3
- data/lib/fastly/models/billing_response.rb +12 -3
- data/lib/fastly/models/billing_response_line_item.rb +0 -1
- data/lib/fastly/models/billing_response_line_item_all_of.rb +0 -1
- data/lib/fastly/models/billing_status.rb +0 -1
- data/lib/fastly/models/billing_total.rb +1 -0
- data/lib/fastly/models/bulk_update_acl_entry.rb +1 -2
- data/lib/fastly/models/bulk_update_acl_entry_all_of.rb +0 -1
- data/lib/fastly/models/cache_setting.rb +2 -2
- data/lib/fastly/models/cache_setting_response.rb +2 -4
- data/lib/fastly/models/condition.rb +0 -1
- data/lib/fastly/models/condition_response.rb +0 -1
- data/lib/fastly/models/contact_response.rb +0 -1
- data/lib/fastly/models/contact_response_all_of.rb +0 -1
- data/lib/fastly/models/customer_response.rb +0 -1
- data/lib/fastly/models/customer_response_all_of.rb +0 -1
- data/lib/fastly/models/dictionary_item_response.rb +0 -2
- data/lib/fastly/models/dictionary_item_response_all_of.rb +0 -2
- data/lib/fastly/models/dictionary_response.rb +0 -3
- data/lib/fastly/models/dictionary_response_all_of.rb +0 -1
- data/lib/fastly/models/director_backend.rb +0 -2
- data/lib/fastly/models/director_response.rb +0 -2
- data/lib/fastly/models/domain_response.rb +0 -2
- data/lib/fastly/models/enabled_product.rb +234 -0
- data/lib/fastly/models/enabled_product_links.rb +225 -0
- data/lib/fastly/models/enabled_product_product.rb +225 -0
- data/lib/fastly/models/error_response.rb +218 -0
- data/lib/fastly/models/error_response_data.rb +225 -0
- data/lib/fastly/models/event.rb +0 -1
- data/lib/fastly/models/event_attributes.rb +13 -7
- data/lib/fastly/models/gzip_response.rb +0 -2
- data/lib/fastly/models/header_response.rb +0 -2
- data/lib/fastly/models/healthcheck.rb +17 -5
- data/lib/fastly/models/healthcheck_response.rb +17 -7
- data/lib/fastly/models/historical_usage_month_response_all_of_data.rb +0 -1
- data/lib/fastly/models/http3.rb +0 -2
- data/lib/fastly/models/http_response_format.rb +262 -0
- data/lib/fastly/models/http_stream_format.rb +228 -0
- data/lib/fastly/models/inline_object.rb +221 -0
- data/lib/fastly/models/inline_object1.rb +221 -0
- data/lib/fastly/models/inline_response2001.rb +10 -8
- data/lib/fastly/models/invitation_response_data.rb +0 -1
- data/lib/fastly/models/invitation_response_data_all_of.rb +0 -1
- data/lib/fastly/models/logging_azureblob.rb +3 -3
- data/lib/fastly/models/logging_azureblob_response.rb +3 -5
- data/lib/fastly/models/logging_bigquery.rb +14 -4
- data/lib/fastly/models/logging_bigquery_response.rb +14 -6
- data/lib/fastly/models/logging_cloudfiles.rb +3 -3
- data/lib/fastly/models/logging_cloudfiles_response.rb +3 -5
- data/lib/fastly/models/logging_common.rb +1 -1
- data/lib/fastly/models/logging_datadog.rb +1 -1
- data/lib/fastly/models/logging_datadog_response.rb +1 -3
- data/lib/fastly/models/logging_digitalocean.rb +3 -3
- data/lib/fastly/models/logging_digitalocean_response.rb +3 -5
- data/lib/fastly/models/logging_elasticsearch.rb +1 -1
- data/lib/fastly/models/logging_elasticsearch_response.rb +1 -3
- data/lib/fastly/models/logging_ftp.rb +3 -3
- data/lib/fastly/models/logging_ftp_response.rb +3 -5
- data/lib/fastly/models/logging_gcs.rb +30 -11
- data/lib/fastly/models/logging_gcs_all_of.rb +15 -6
- data/lib/fastly/models/logging_gcs_common.rb +16 -6
- data/lib/fastly/models/logging_gcs_response.rb +26 -9
- data/lib/fastly/models/logging_generic_common.rb +2 -2
- data/lib/fastly/models/logging_google_pubsub.rb +14 -4
- data/lib/fastly/models/logging_google_pubsub_response.rb +14 -6
- data/lib/fastly/models/logging_heroku.rb +1 -1
- data/lib/fastly/models/logging_heroku_response.rb +1 -3
- data/lib/fastly/models/logging_honeycomb.rb +1 -1
- data/lib/fastly/models/logging_honeycomb_response.rb +1 -3
- data/lib/fastly/models/logging_https.rb +1 -1
- data/lib/fastly/models/logging_https_response.rb +1 -3
- data/lib/fastly/models/logging_kafka.rb +1 -1
- data/lib/fastly/models/logging_kafka_response.rb +1 -3
- data/lib/fastly/models/logging_kinesis.rb +1 -36
- data/lib/fastly/models/logging_kinesis_response.rb +1 -38
- data/lib/fastly/models/logging_logentries.rb +1 -1
- data/lib/fastly/models/logging_logentries_response.rb +1 -3
- data/lib/fastly/models/logging_loggly.rb +1 -1
- data/lib/fastly/models/logging_loggly_response.rb +1 -3
- data/lib/fastly/models/logging_logshuttle.rb +1 -1
- data/lib/fastly/models/logging_logshuttle_response.rb +1 -3
- data/lib/fastly/models/logging_newrelic.rb +4 -3
- data/lib/fastly/models/logging_newrelic_all_of.rb +3 -2
- data/lib/fastly/models/logging_newrelic_response.rb +4 -5
- data/lib/fastly/models/logging_openstack.rb +3 -3
- data/lib/fastly/models/logging_openstack_response.rb +3 -5
- data/lib/fastly/models/logging_papertrail.rb +1 -1
- data/lib/fastly/models/logging_papertrail_response.rb +1 -3
- data/lib/fastly/models/logging_s3.rb +3 -3
- data/lib/fastly/models/logging_s3_response.rb +3 -5
- data/lib/fastly/models/logging_scalyr.rb +1 -1
- data/lib/fastly/models/logging_scalyr_response.rb +1 -3
- data/lib/fastly/models/logging_sftp.rb +6 -5
- data/lib/fastly/models/logging_sftp_all_of.rb +3 -2
- data/lib/fastly/models/logging_sftp_response.rb +6 -7
- data/lib/fastly/models/logging_splunk.rb +1 -1
- data/lib/fastly/models/logging_splunk_response.rb +1 -3
- data/lib/fastly/models/logging_sumologic.rb +1 -1
- data/lib/fastly/models/logging_sumologic_response.rb +1 -3
- data/lib/fastly/models/logging_syslog.rb +1 -1
- data/lib/fastly/models/logging_syslog_response.rb +1 -3
- data/lib/fastly/models/mutual_authentication.rb +216 -0
- data/lib/fastly/models/mutual_authentication_data.rb +236 -0
- data/lib/fastly/models/mutual_authentication_data_attributes.rb +237 -0
- data/lib/fastly/models/mutual_authentication_response.rb +216 -0
- data/lib/fastly/models/mutual_authentication_response_attributes.rb +258 -0
- data/lib/fastly/models/mutual_authentication_response_attributes_all_of.rb +217 -0
- data/lib/fastly/models/mutual_authentication_response_data.rb +253 -0
- data/lib/fastly/models/mutual_authentication_response_data_all_of.rb +225 -0
- data/lib/fastly/models/mutual_authentications_response.rb +244 -0
- data/lib/fastly/models/mutual_authentications_response_all_of.rb +218 -0
- data/lib/fastly/models/package_response.rb +0 -2
- data/lib/fastly/models/pool_response.rb +0 -3
- data/lib/fastly/models/pool_response_all_of.rb +0 -1
- data/lib/fastly/models/publish_item.rb +257 -0
- data/lib/fastly/models/publish_item_formats.rb +235 -0
- data/lib/fastly/models/publish_request.rb +225 -0
- data/lib/fastly/models/purge_response.rb +0 -1
- data/lib/fastly/models/rate_limiter_response.rb +0 -2
- data/lib/fastly/models/realtime.rb +0 -1
- data/lib/fastly/models/realtime_entry.rb +3 -2
- data/lib/fastly/models/realtime_measurements.rb +234 -4
- data/lib/fastly/models/relationship_common_name.rb +1 -1
- data/lib/fastly/models/relationship_member_customer.rb +0 -1
- data/lib/fastly/models/relationship_member_mutual_authentication.rb +227 -0
- data/lib/fastly/models/relationship_member_service.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_activation.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_bulk_certificate.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_certificate.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_configuration.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_dns_record.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_private_key.rb +0 -1
- data/lib/fastly/models/relationship_member_tls_subscription.rb +0 -1
- data/lib/fastly/models/relationship_member_waf_active_rule.rb +0 -1
- data/lib/fastly/models/relationship_member_waf_firewall.rb +0 -1
- data/lib/fastly/models/relationship_member_waf_rule.rb +0 -1
- data/lib/fastly/models/relationship_mutual_authentication.rb +216 -0
- data/lib/fastly/models/relationship_mutual_authentication_mutual_authentication.rb +216 -0
- data/lib/fastly/models/relationship_mutual_authentications.rb +216 -0
- data/lib/fastly/models/relationship_mutual_authentications_mutual_authentications.rb +218 -0
- data/lib/fastly/models/relationship_service.rb +1 -1
- data/lib/fastly/models/relationship_services.rb +1 -1
- data/lib/fastly/models/{relationship_service_service.rb → relationship_services_services.rb} +3 -3
- data/lib/fastly/models/relationship_tls_certificate_tls_certificate.rb +2 -4
- data/lib/fastly/models/relationship_tls_certificates.rb +1 -1
- data/lib/fastly/models/relationship_tls_certificates_tls_certificates.rb +218 -0
- data/lib/fastly/models/relationship_tls_configuration_tls_configuration.rb +2 -4
- data/lib/fastly/models/relationship_tls_configurations.rb +1 -1
- data/lib/fastly/models/relationship_tls_configurations_tls_configurations.rb +218 -0
- data/lib/fastly/models/relationship_tls_domain_tls_domain.rb +2 -4
- data/lib/fastly/models/relationship_tls_domains.rb +1 -1
- data/lib/fastly/models/relationship_tls_domains_tls_domains.rb +218 -0
- data/lib/fastly/models/relationship_tls_private_key_tls_private_key.rb +2 -4
- data/lib/fastly/models/relationship_tls_private_keys.rb +1 -1
- data/lib/fastly/models/relationship_tls_private_keys_tls_private_keys.rb +218 -0
- data/lib/fastly/models/relationship_user_user.rb +1 -1
- data/lib/fastly/models/relationships_for_mutual_authentication.rb +235 -0
- data/lib/fastly/models/relationships_for_star.rb +1 -1
- data/lib/fastly/models/relationships_for_tls_bulk_certificate.rb +2 -2
- data/lib/fastly/models/relationships_for_tls_configuration.rb +1 -1
- data/lib/fastly/models/relationships_for_tls_csr.rb +235 -0
- data/lib/fastly/models/relationships_for_tls_private_key.rb +1 -1
- data/lib/fastly/models/relationships_for_tls_subscription.rb +2 -2
- data/lib/fastly/models/request_settings_response.rb +0 -2
- data/lib/fastly/models/response_object_response.rb +0 -2
- data/lib/fastly/models/results.rb +235 -5
- data/lib/fastly/models/schemas_contact_response.rb +0 -1
- data/lib/fastly/models/schemas_snippet_response.rb +0 -3
- data/lib/fastly/models/schemas_user_response.rb +0 -3
- data/lib/fastly/models/schemas_vcl_response.rb +0 -2
- data/lib/fastly/models/schemas_version_response.rb +0 -1
- data/lib/fastly/models/server_response.rb +0 -3
- data/lib/fastly/models/server_response_all_of.rb +0 -3
- data/lib/fastly/models/service.rb +1 -1
- data/lib/fastly/models/service_authorization_data.rb +1 -2
- data/lib/fastly/models/service_authorization_data_relationships.rb +225 -0
- data/lib/fastly/models/service_authorization_data_relationships_user.rb +217 -0
- data/lib/fastly/models/{relationship_user_user_data.rb → service_authorization_data_relationships_user_data.rb} +3 -4
- data/lib/fastly/models/service_authorization_response_data.rb +1 -3
- data/lib/fastly/models/service_authorization_response_data_all_of.rb +0 -1
- data/lib/fastly/models/service_create.rb +1 -1
- data/lib/fastly/models/service_detail.rb +2 -2
- data/lib/fastly/models/service_detail_all_of.rb +1 -0
- data/lib/fastly/models/service_id_and_version.rb +0 -2
- data/lib/fastly/models/service_invitation_data.rb +1 -3
- data/lib/fastly/models/service_invitation_data_relationships.rb +217 -0
- data/lib/fastly/models/service_invitation_response_all_of_data.rb +0 -1
- data/lib/fastly/models/service_list_response.rb +1 -2
- data/lib/fastly/models/service_list_response_all_of.rb +0 -1
- data/lib/fastly/models/service_response.rb +1 -2
- data/lib/fastly/models/service_response_all_of.rb +0 -1
- data/lib/fastly/models/service_version_detail.rb +1 -4
- data/lib/fastly/models/service_version_detail_or_null.rb +5 -20
- data/lib/fastly/models/settings_response.rb +0 -2
- data/lib/fastly/models/snippet_response.rb +0 -3
- data/lib/fastly/models/snippet_response_all_of.rb +0 -1
- data/lib/fastly/models/tls_activation_response_data.rb +0 -1
- data/lib/fastly/models/tls_activation_response_data_all_of.rb +0 -1
- data/lib/fastly/models/tls_bulk_certificate_response_data.rb +0 -1
- data/lib/fastly/models/tls_bulk_certificate_response_data_all_of.rb +0 -1
- data/lib/fastly/models/tls_certificate_response_data.rb +0 -1
- data/lib/fastly/models/tls_certificate_response_data_all_of.rb +0 -1
- data/lib/fastly/models/tls_configuration_response_data.rb +0 -1
- data/lib/fastly/models/tls_configuration_response_data_all_of.rb +0 -1
- data/lib/fastly/models/tls_csr.rb +216 -0
- data/lib/fastly/models/tls_csr_data.rb +236 -0
- data/lib/fastly/models/tls_csr_data_attributes.rb +314 -0
- data/lib/fastly/models/tls_csr_response.rb +216 -0
- data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
- data/lib/fastly/models/tls_csr_response_data.rb +245 -0
- data/lib/fastly/models/tls_private_key_response_data.rb +0 -1
- data/lib/fastly/models/tls_subscription_response_data.rb +0 -1
- data/lib/fastly/models/tls_subscription_response_data_all_of.rb +0 -1
- data/lib/fastly/models/token_created_response.rb +0 -2
- data/lib/fastly/models/token_response.rb +0 -2
- data/lib/fastly/models/token_response_all_of.rb +0 -2
- data/lib/fastly/models/type_mutual_authentication.rb +34 -0
- data/lib/fastly/models/type_tls_csr.rb +34 -0
- data/lib/fastly/models/update_billing_address_request.rb +11 -1
- data/lib/fastly/models/user.rb +0 -1
- data/lib/fastly/models/user_response.rb +0 -3
- data/lib/fastly/models/user_response_all_of.rb +0 -2
- data/lib/fastly/models/validator_result.rb +294 -0
- data/lib/fastly/models/validator_result_messages.rb +265 -0
- data/lib/fastly/models/vcl_response.rb +0 -2
- data/lib/fastly/models/version_create_response.rb +0 -2
- data/lib/fastly/models/version_detail.rb +1 -3
- data/lib/fastly/models/version_detail_settings.rb +252 -0
- data/lib/fastly/models/version_response.rb +0 -1
- data/lib/fastly/models/version_response_all_of.rb +0 -1
- data/lib/fastly/models/waf_active_rule_response_data.rb +0 -1
- data/lib/fastly/models/waf_active_rule_response_data_all_of.rb +0 -1
- data/lib/fastly/models/waf_firewall_data_attributes.rb +0 -1
- data/lib/fastly/models/waf_firewall_response_data.rb +0 -1
- data/lib/fastly/models/waf_firewall_response_data_all_of.rb +0 -1
- data/lib/fastly/models/waf_firewall_response_data_attributes.rb +0 -1
- data/lib/fastly/models/waf_firewall_response_data_attributes_all_of.rb +0 -1
- data/lib/fastly/models/waf_firewall_version_data_attributes.rb +1 -2
- data/lib/fastly/models/waf_rule.rb +0 -1
- data/lib/fastly/models/waf_rule_response_data.rb +0 -1
- data/lib/fastly/models/waf_tag_attributes.rb +0 -1
- data/lib/fastly/models/ws_message_format.rb +228 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +65 -5
- data/pkg/fastly-4.0.0.gem +0 -0
- data/sig.json +1 -0
- metadata +137 -15
- data/docs/ContentApi.md +0 -52
- data/docs/DocsApi.md +0 -123
- data/docs/DomainOwnershipsApi.md +0 -47
- data/lib/fastly/api/content_api.rb +0 -79
- data/lib/fastly/api/docs_api.rb +0 -210
@@ -23,7 +23,7 @@ module Fastly
|
|
23
23
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
24
24
|
# @option opts [String] :name The name for the real-time logging configuration.
|
25
25
|
# @option opts [String] :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`.
|
26
|
-
# @option opts [Integer] :format_version 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`.
|
26
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
27
27
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
28
28
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
29
29
|
# @option opts [LoggingMessageType] :message_type (default to 'classic')
|
@@ -40,7 +40,7 @@ module Fastly
|
|
40
40
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
41
41
|
# @option opts [String] :name The name for the real-time logging configuration.
|
42
42
|
# @option opts [String] :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`.
|
43
|
-
# @option opts [Integer] :format_version 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`.
|
43
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
44
44
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
45
45
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
46
46
|
# @option opts [LoggingMessageType] :message_type (default to 'classic')
|
@@ -352,7 +352,7 @@ module Fastly
|
|
352
352
|
# @option opts [String] :logging_sumologic_name The name for the real-time logging configuration. (required)
|
353
353
|
# @option opts [String] :name The name for the real-time logging configuration.
|
354
354
|
# @option opts [String] :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`.
|
355
|
-
# @option opts [Integer] :format_version 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`.
|
355
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
356
356
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
357
357
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
358
358
|
# @option opts [LoggingMessageType] :message_type (default to 'classic')
|
@@ -370,7 +370,7 @@ module Fastly
|
|
370
370
|
# @option opts [String] :logging_sumologic_name The name for the real-time logging configuration. (required)
|
371
371
|
# @option opts [String] :name The name for the real-time logging configuration.
|
372
372
|
# @option opts [String] :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`.
|
373
|
-
# @option opts [Integer] :format_version 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`.
|
373
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
374
374
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
375
375
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
376
376
|
# @option opts [LoggingMessageType] :message_type (default to 'classic')
|
@@ -23,7 +23,7 @@ module Fastly
|
|
23
23
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
24
24
|
# @option opts [String] :name The name for the real-time logging configuration.
|
25
25
|
# @option opts [String] :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`.
|
26
|
-
# @option opts [Integer] :format_version 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`.
|
26
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
27
27
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
28
28
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
29
29
|
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
|
@@ -49,7 +49,7 @@ module Fastly
|
|
49
49
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
50
50
|
# @option opts [String] :name The name for the real-time logging configuration.
|
51
51
|
# @option opts [String] :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`.
|
52
|
-
# @option opts [Integer] :format_version 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`.
|
52
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
53
53
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
54
54
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
55
55
|
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
|
@@ -379,7 +379,7 @@ module Fastly
|
|
379
379
|
# @option opts [String] :logging_syslog_name The name for the real-time logging configuration. (required)
|
380
380
|
# @option opts [String] :name The name for the real-time logging configuration.
|
381
381
|
# @option opts [String] :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`.
|
382
|
-
# @option opts [Integer] :format_version 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`.
|
382
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
383
383
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
384
384
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
385
385
|
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
|
@@ -406,7 +406,7 @@ module Fastly
|
|
406
406
|
# @option opts [String] :logging_syslog_name The name for the real-time logging configuration. (required)
|
407
407
|
# @option opts [String] :name The name for the real-time logging configuration.
|
408
408
|
# @option opts [String] :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`.
|
409
|
-
# @option opts [Integer] :format_version 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`.
|
409
|
+
# @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
|
410
410
|
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
411
411
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
412
412
|
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
|
@@ -0,0 +1,347 @@
|
|
1
|
+
=begin
|
2
|
+
#Fastly API
|
3
|
+
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: oss@fastly.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'cgi'
|
12
|
+
|
13
|
+
module Fastly
|
14
|
+
class MutualAuthenticationApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Create a Mutual Authentication
|
21
|
+
# Create a mutual authentication using a bundle of certificates to enable client-to-server mutual TLS.
|
22
|
+
# @option opts [MutualAuthentication] :mutual_authentication
|
23
|
+
# @return [MutualAuthenticationResponse]
|
24
|
+
def create_mutual_tls_authentication(opts = {})
|
25
|
+
data, _status_code, _headers = create_mutual_tls_authentication_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Create a Mutual Authentication
|
30
|
+
# Create a mutual authentication using a bundle of certificates to enable client-to-server mutual TLS.
|
31
|
+
# @option opts [MutualAuthentication] :mutual_authentication
|
32
|
+
# @return [Array<(MutualAuthenticationResponse, Integer, Hash)>] MutualAuthenticationResponse data, response status code and response headers
|
33
|
+
def create_mutual_tls_authentication_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: MutualAuthenticationApi.create_mutual_tls_authentication ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
# resource path
|
39
|
+
local_var_path = '/tls/mutual_authentications'
|
40
|
+
|
41
|
+
# query parameters
|
42
|
+
query_params = opts[:query_params] || {}
|
43
|
+
|
44
|
+
# header parameters
|
45
|
+
header_params = opts[:header_params] || {}
|
46
|
+
# HTTP header 'Accept' (if needed)
|
47
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
48
|
+
# HTTP header 'Content-Type'
|
49
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
|
50
|
+
if !content_type.nil?
|
51
|
+
header_params['Content-Type'] = content_type
|
52
|
+
end
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'mutual_authentication'])
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'MutualAuthenticationResponse'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"MutualAuthenticationApi.create_mutual_tls_authentication",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: MutualAuthenticationApi#create_mutual_tls_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# Delete a Mutual TLS
|
84
|
+
# Remove a Mutual TLS authentication
|
85
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
86
|
+
# @return [nil]
|
87
|
+
def delete_mutual_tls(opts = {})
|
88
|
+
delete_mutual_tls_with_http_info(opts)
|
89
|
+
nil
|
90
|
+
end
|
91
|
+
|
92
|
+
# Delete a Mutual TLS
|
93
|
+
# Remove a Mutual TLS authentication
|
94
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
95
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
96
|
+
def delete_mutual_tls_with_http_info(opts = {})
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug 'Calling API: MutualAuthenticationApi.delete_mutual_tls ...'
|
99
|
+
end
|
100
|
+
# unbox the parameters from the hash
|
101
|
+
mutual_authentication_id = opts[:'mutual_authentication_id']
|
102
|
+
# verify the required parameter 'mutual_authentication_id' is set
|
103
|
+
if @api_client.config.client_side_validation && mutual_authentication_id.nil?
|
104
|
+
fail ArgumentError, "Missing the required parameter 'mutual_authentication_id' when calling MutualAuthenticationApi.delete_mutual_tls"
|
105
|
+
end
|
106
|
+
# resource path
|
107
|
+
local_var_path = '/tls/mutual_authentications/{mutual_authentication_id}'.sub('{' + 'mutual_authentication_id' + '}', CGI.escape(mutual_authentication_id.to_s))
|
108
|
+
|
109
|
+
# query parameters
|
110
|
+
query_params = opts[:query_params] || {}
|
111
|
+
|
112
|
+
# header parameters
|
113
|
+
header_params = opts[:header_params] || {}
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:debug_body]
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:debug_return_type]
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:operation => :"MutualAuthenticationApi.delete_mutual_tls",
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => return_type
|
135
|
+
)
|
136
|
+
|
137
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug "API called: MutualAuthenticationApi#delete_mutual_tls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
|
+
end
|
141
|
+
return data, status_code, headers
|
142
|
+
end
|
143
|
+
|
144
|
+
# Get a Mutual Authentication
|
145
|
+
# Show a Mutual Authentication.
|
146
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
147
|
+
# @return [MutualAuthenticationResponse]
|
148
|
+
def get_mutual_authentication(opts = {})
|
149
|
+
data, _status_code, _headers = get_mutual_authentication_with_http_info(opts)
|
150
|
+
data
|
151
|
+
end
|
152
|
+
|
153
|
+
# Get a Mutual Authentication
|
154
|
+
# Show a Mutual Authentication.
|
155
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
156
|
+
# @return [Array<(MutualAuthenticationResponse, Integer, Hash)>] MutualAuthenticationResponse data, response status code and response headers
|
157
|
+
def get_mutual_authentication_with_http_info(opts = {})
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug 'Calling API: MutualAuthenticationApi.get_mutual_authentication ...'
|
160
|
+
end
|
161
|
+
# unbox the parameters from the hash
|
162
|
+
mutual_authentication_id = opts[:'mutual_authentication_id']
|
163
|
+
# verify the required parameter 'mutual_authentication_id' is set
|
164
|
+
if @api_client.config.client_side_validation && mutual_authentication_id.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'mutual_authentication_id' when calling MutualAuthenticationApi.get_mutual_authentication"
|
166
|
+
end
|
167
|
+
# resource path
|
168
|
+
local_var_path = '/tls/mutual_authentications/{mutual_authentication_id}'.sub('{' + 'mutual_authentication_id' + '}', CGI.escape(mutual_authentication_id.to_s))
|
169
|
+
|
170
|
+
# query parameters
|
171
|
+
query_params = opts[:query_params] || {}
|
172
|
+
|
173
|
+
# header parameters
|
174
|
+
header_params = opts[:header_params] || {}
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
177
|
+
|
178
|
+
# form parameters
|
179
|
+
form_params = opts[:form_params] || {}
|
180
|
+
|
181
|
+
# http body (model)
|
182
|
+
post_body = opts[:debug_body]
|
183
|
+
|
184
|
+
# return_type
|
185
|
+
return_type = opts[:debug_return_type] || 'MutualAuthenticationResponse'
|
186
|
+
|
187
|
+
# auth_names
|
188
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
189
|
+
|
190
|
+
new_options = opts.merge(
|
191
|
+
:operation => :"MutualAuthenticationApi.get_mutual_authentication",
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => return_type
|
198
|
+
)
|
199
|
+
|
200
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: MutualAuthenticationApi#get_mutual_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
|
207
|
+
# List Mutual Authentications
|
208
|
+
# List all mutual authentications.
|
209
|
+
# @option opts [Integer] :page_number Current page.
|
210
|
+
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
211
|
+
# @return [MutualAuthenticationsResponse]
|
212
|
+
def list_mutual_authentications(opts = {})
|
213
|
+
data, _status_code, _headers = list_mutual_authentications_with_http_info(opts)
|
214
|
+
data
|
215
|
+
end
|
216
|
+
|
217
|
+
# List Mutual Authentications
|
218
|
+
# List all mutual authentications.
|
219
|
+
# @option opts [Integer] :page_number Current page.
|
220
|
+
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
221
|
+
# @return [Array<(MutualAuthenticationsResponse, Integer, Hash)>] MutualAuthenticationsResponse data, response status code and response headers
|
222
|
+
def list_mutual_authentications_with_http_info(opts = {})
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug 'Calling API: MutualAuthenticationApi.list_mutual_authentications ...'
|
225
|
+
end
|
226
|
+
# unbox the parameters from the hash
|
227
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
|
228
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MutualAuthenticationApi.list_mutual_authentications, must be smaller than or equal to 100.'
|
229
|
+
end
|
230
|
+
|
231
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
232
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MutualAuthenticationApi.list_mutual_authentications, must be greater than or equal to 1.'
|
233
|
+
end
|
234
|
+
|
235
|
+
# resource path
|
236
|
+
local_var_path = '/tls/mutual_authentications'
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = opts[:query_params] || {}
|
240
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
241
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
242
|
+
|
243
|
+
# header parameters
|
244
|
+
header_params = opts[:header_params] || {}
|
245
|
+
# HTTP header 'Accept' (if needed)
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
247
|
+
|
248
|
+
# form parameters
|
249
|
+
form_params = opts[:form_params] || {}
|
250
|
+
|
251
|
+
# http body (model)
|
252
|
+
post_body = opts[:debug_body]
|
253
|
+
|
254
|
+
# return_type
|
255
|
+
return_type = opts[:debug_return_type] || 'MutualAuthenticationsResponse'
|
256
|
+
|
257
|
+
# auth_names
|
258
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
259
|
+
|
260
|
+
new_options = opts.merge(
|
261
|
+
:operation => :"MutualAuthenticationApi.list_mutual_authentications",
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: MutualAuthenticationApi#list_mutual_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Update a Mutual Authentication
|
278
|
+
# Update a Mutual Authentication.
|
279
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
280
|
+
# @option opts [MutualAuthentication] :mutual_authentication
|
281
|
+
# @return [MutualAuthenticationResponse]
|
282
|
+
def patch_mutual_authentication(opts = {})
|
283
|
+
data, _status_code, _headers = patch_mutual_authentication_with_http_info(opts)
|
284
|
+
data
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update a Mutual Authentication
|
288
|
+
# Update a Mutual Authentication.
|
289
|
+
# @option opts [String] :mutual_authentication_id Alphanumeric string identifying a mutual authentication. (required)
|
290
|
+
# @option opts [MutualAuthentication] :mutual_authentication
|
291
|
+
# @return [Array<(MutualAuthenticationResponse, Integer, Hash)>] MutualAuthenticationResponse data, response status code and response headers
|
292
|
+
def patch_mutual_authentication_with_http_info(opts = {})
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug 'Calling API: MutualAuthenticationApi.patch_mutual_authentication ...'
|
295
|
+
end
|
296
|
+
# unbox the parameters from the hash
|
297
|
+
mutual_authentication_id = opts[:'mutual_authentication_id']
|
298
|
+
# verify the required parameter 'mutual_authentication_id' is set
|
299
|
+
if @api_client.config.client_side_validation && mutual_authentication_id.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'mutual_authentication_id' when calling MutualAuthenticationApi.patch_mutual_authentication"
|
301
|
+
end
|
302
|
+
# resource path
|
303
|
+
local_var_path = '/tls/mutual_authentications/{mutual_authentication_id}'.sub('{' + 'mutual_authentication_id' + '}', CGI.escape(mutual_authentication_id.to_s))
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = opts[:query_params] || {}
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = opts[:header_params] || {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
312
|
+
# HTTP header 'Content-Type'
|
313
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
|
314
|
+
if !content_type.nil?
|
315
|
+
header_params['Content-Type'] = content_type
|
316
|
+
end
|
317
|
+
|
318
|
+
# form parameters
|
319
|
+
form_params = opts[:form_params] || {}
|
320
|
+
|
321
|
+
# http body (model)
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'mutual_authentication'])
|
323
|
+
|
324
|
+
# return_type
|
325
|
+
return_type = opts[:debug_return_type] || 'MutualAuthenticationResponse'
|
326
|
+
|
327
|
+
# auth_names
|
328
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
329
|
+
|
330
|
+
new_options = opts.merge(
|
331
|
+
:operation => :"MutualAuthenticationApi.patch_mutual_authentication",
|
332
|
+
:header_params => header_params,
|
333
|
+
:query_params => query_params,
|
334
|
+
:form_params => form_params,
|
335
|
+
:body => post_body,
|
336
|
+
:auth_names => auth_names,
|
337
|
+
:return_type => return_type
|
338
|
+
)
|
339
|
+
|
340
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: MutualAuthenticationApi#patch_mutual_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Fastly API
|
3
|
+
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: oss@fastly.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'cgi'
|
12
|
+
|
13
|
+
module Fastly
|
14
|
+
class PublishApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Send messages to Fanout subscribers
|
21
|
+
# Send one or more messages to [Fanout](https://developer.fastly.com/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.
|
22
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
|
+
# @option opts [PublishRequest] :publish_request
|
24
|
+
# @return [String]
|
25
|
+
def publish(opts = {})
|
26
|
+
data, _status_code, _headers = publish_with_http_info(opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# Send messages to Fanout subscribers
|
31
|
+
# Send one or more messages to [Fanout](https://developer.fastly.com/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.
|
32
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
33
|
+
# @option opts [PublishRequest] :publish_request
|
34
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
35
|
+
def publish_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: PublishApi.publish ...'
|
38
|
+
end
|
39
|
+
# unbox the parameters from the hash
|
40
|
+
service_id = opts[:'service_id']
|
41
|
+
# verify the required parameter 'service_id' is set
|
42
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling PublishApi.publish"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/service/{service_id}/publish/'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'publish_request'])
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:debug_return_type] || 'String'
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:operation => :"PublishApi.publish",
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: PublishApi#publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
data/lib/fastly/api/purge_api.rb
CHANGED
@@ -20,7 +20,7 @@ module Fastly
|
|
20
20
|
# Purge multiple surrogate key tags
|
21
21
|
# 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 <code>Surrogate-Key</code> request header, e.g. <code>Surrogate-Key: key_1 key_2 key_3</code>.
|
22
22
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
|
-
# @option opts [Integer] :fastly_soft_purge
|
23
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
24
24
|
# @option opts [String] :surrogate_key Purge multiple surrogate key tags using a request header. Not required if a JSON POST body is specified.
|
25
25
|
# @option opts [PurgeResponse] :purge_response
|
26
26
|
# @return [Hash<String, String>]
|
@@ -32,7 +32,7 @@ module Fastly
|
|
32
32
|
# Purge multiple surrogate key tags
|
33
33
|
# 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 <code>Surrogate-Key</code> request header, e.g. <code>Surrogate-Key: key_1 key_2 key_3</code>.
|
34
34
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
35
|
-
# @option opts [Integer] :fastly_soft_purge
|
35
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
36
36
|
# @option opts [String] :surrogate_key Purge multiple surrogate key tags using a request header. Not required if a JSON POST body is specified.
|
37
37
|
# @option opts [PurgeResponse] :purge_response
|
38
38
|
# @return [Array<(Hash<String, String>, Integer, Hash)>] Hash<String, String> data, response status code and response headers
|
@@ -158,8 +158,8 @@ module Fastly
|
|
158
158
|
|
159
159
|
# Purge a URL
|
160
160
|
# Instant Purge an individual URL.
|
161
|
-
# @option opts [String] :
|
162
|
-
# @option opts [Integer] :fastly_soft_purge
|
161
|
+
# @option opts [String] :cached_url URL of object in cache to be purged. (required)
|
162
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
163
163
|
# @return [PurgeResponse]
|
164
164
|
def purge_single_url(opts = {})
|
165
165
|
data, _status_code, _headers = purge_single_url_with_http_info(opts)
|
@@ -168,21 +168,21 @@ module Fastly
|
|
168
168
|
|
169
169
|
# Purge a URL
|
170
170
|
# Instant Purge an individual URL.
|
171
|
-
# @option opts [String] :
|
172
|
-
# @option opts [Integer] :fastly_soft_purge
|
171
|
+
# @option opts [String] :cached_url URL of object in cache to be purged. (required)
|
172
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
173
173
|
# @return [Array<(PurgeResponse, Integer, Hash)>] PurgeResponse data, response status code and response headers
|
174
174
|
def purge_single_url_with_http_info(opts = {})
|
175
175
|
if @api_client.config.debugging
|
176
176
|
@api_client.config.logger.debug 'Calling API: PurgeApi.purge_single_url ...'
|
177
177
|
end
|
178
178
|
# unbox the parameters from the hash
|
179
|
-
|
180
|
-
# verify the required parameter '
|
181
|
-
if @api_client.config.client_side_validation &&
|
182
|
-
fail ArgumentError, "Missing the required parameter '
|
179
|
+
cached_url = opts[:'cached_url']
|
180
|
+
# verify the required parameter 'cached_url' is set
|
181
|
+
if @api_client.config.client_side_validation && cached_url.nil?
|
182
|
+
fail ArgumentError, "Missing the required parameter 'cached_url' when calling PurgeApi.purge_single_url"
|
183
183
|
end
|
184
184
|
# resource path
|
185
|
-
local_var_path = '
|
185
|
+
local_var_path = '/purge/{cached_url}'.sub('{' + 'cached_url' + '}', CGI.escape(cached_url.to_s))
|
186
186
|
|
187
187
|
# query parameters
|
188
188
|
query_params = opts[:query_params] || {}
|
@@ -191,7 +191,6 @@ module Fastly
|
|
191
191
|
header_params = opts[:header_params] || {}
|
192
192
|
# HTTP header 'Accept' (if needed)
|
193
193
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
194
|
-
header_params[:'host'] = host
|
195
194
|
header_params[:'fastly-soft-purge'] = opts[:'fastly_soft_purge'] if !opts[:'fastly_soft_purge'].nil?
|
196
195
|
|
197
196
|
# form parameters
|
@@ -216,7 +215,7 @@ module Fastly
|
|
216
215
|
:return_type => return_type
|
217
216
|
)
|
218
217
|
|
219
|
-
data, status_code, headers = @api_client.call_api(:
|
218
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
220
219
|
if @api_client.config.debugging
|
221
220
|
@api_client.config.logger.debug "API called: PurgeApi#purge_single_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
221
|
end
|
@@ -227,7 +226,7 @@ module Fastly
|
|
227
226
|
# 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.
|
228
227
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
229
228
|
# @option opts [String] :surrogate_key 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. (required)
|
230
|
-
# @option opts [Integer] :fastly_soft_purge
|
229
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
231
230
|
# @return [PurgeResponse]
|
232
231
|
def purge_tag(opts = {})
|
233
232
|
data, _status_code, _headers = purge_tag_with_http_info(opts)
|
@@ -238,7 +237,7 @@ module Fastly
|
|
238
237
|
# 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.
|
239
238
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
240
239
|
# @option opts [String] :surrogate_key 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. (required)
|
241
|
-
# @option opts [Integer] :fastly_soft_purge
|
240
|
+
# @option opts [Integer] :fastly_soft_purge 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.
|
242
241
|
# @return [Array<(PurgeResponse, Integer, Hash)>] PurgeResponse data, response status code and response headers
|
243
242
|
def purge_tag_with_http_info(opts = {})
|
244
243
|
if @api_client.config.debugging
|