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
@@ -32,6 +32,7 @@ module Fastly
|
|
32
32
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
33
33
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
34
34
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
35
|
+
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
35
36
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
36
37
|
# @option opts [String] :max_tls_version 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.
|
37
38
|
# @option opts [String] :min_tls_version 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.
|
@@ -71,6 +72,7 @@ module Fastly
|
|
71
72
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
72
73
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
73
74
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
75
|
+
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
74
76
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
75
77
|
# @option opts [String] :max_tls_version 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.
|
76
78
|
# @option opts [String] :min_tls_version 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.
|
@@ -134,6 +136,7 @@ module Fastly
|
|
134
136
|
form_params['hostname'] = opts[:'hostname'] if !opts[:'hostname'].nil?
|
135
137
|
form_params['ipv4'] = opts[:'ipv4'] if !opts[:'ipv4'].nil?
|
136
138
|
form_params['ipv6'] = opts[:'ipv6'] if !opts[:'ipv6'].nil?
|
139
|
+
form_params['keepalive_time'] = opts[:'keepalive_time'] if !opts[:'keepalive_time'].nil?
|
137
140
|
form_params['max_conn'] = opts[:'max_conn'] if !opts[:'max_conn'].nil?
|
138
141
|
form_params['max_tls_version'] = opts[:'max_tls_version'] if !opts[:'max_tls_version'].nil?
|
139
142
|
form_params['min_tls_version'] = opts[:'min_tls_version'] if !opts[:'min_tls_version'].nil?
|
@@ -419,6 +422,7 @@ module Fastly
|
|
419
422
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
420
423
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
421
424
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
425
|
+
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
422
426
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
423
427
|
# @option opts [String] :max_tls_version 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.
|
424
428
|
# @option opts [String] :min_tls_version 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.
|
@@ -459,6 +463,7 @@ module Fastly
|
|
459
463
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
460
464
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
461
465
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
466
|
+
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
462
467
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
463
468
|
# @option opts [String] :max_tls_version 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.
|
464
469
|
# @option opts [String] :min_tls_version 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.
|
@@ -527,6 +532,7 @@ module Fastly
|
|
527
532
|
form_params['hostname'] = opts[:'hostname'] if !opts[:'hostname'].nil?
|
528
533
|
form_params['ipv4'] = opts[:'ipv4'] if !opts[:'ipv4'].nil?
|
529
534
|
form_params['ipv6'] = opts[:'ipv6'] if !opts[:'ipv6'].nil?
|
535
|
+
form_params['keepalive_time'] = opts[:'keepalive_time'] if !opts[:'keepalive_time'].nil?
|
530
536
|
form_params['max_conn'] = opts[:'max_conn'] if !opts[:'max_conn'].nil?
|
531
537
|
form_params['max_tls_version'] = opts[:'max_tls_version'] if !opts[:'max_tls_version'].nil?
|
532
538
|
form_params['min_tls_version'] = opts[:'min_tls_version'] if !opts[:'min_tls_version'].nil?
|
@@ -57,7 +57,7 @@ module Fastly
|
|
57
57
|
if @api_client.config.client_side_validation && version_id.nil?
|
58
58
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling CacheSettingsApi.create_cache_settings"
|
59
59
|
end
|
60
|
-
allowable_values = ["pass", "
|
60
|
+
allowable_values = ["pass", "cache", "restart"]
|
61
61
|
if @api_client.config.client_side_validation && opts[:'action'] && !allowable_values.include?(opts[:'action'])
|
62
62
|
fail ArgumentError, "invalid value for \"action\", must be one of #{allowable_values}"
|
63
63
|
end
|
@@ -382,7 +382,7 @@ module Fastly
|
|
382
382
|
if @api_client.config.client_side_validation && cache_settings_name.nil?
|
383
383
|
fail ArgumentError, "Missing the required parameter 'cache_settings_name' when calling CacheSettingsApi.update_cache_settings"
|
384
384
|
end
|
385
|
-
allowable_values = ["pass", "
|
385
|
+
allowable_values = ["pass", "cache", "restart"]
|
386
386
|
if @api_client.config.client_side_validation && opts[:'action'] && !allowable_values.include?(opts[:'action'])
|
387
387
|
fail ArgumentError, "invalid value for \"action\", must be one of #{allowable_values}"
|
388
388
|
end
|
@@ -0,0 +1,228 @@
|
|
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 EnabledProductsApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Disable a product
|
21
|
+
# Disable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
22
|
+
# @option opts [String] :product_id (required)
|
23
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
24
|
+
# @return [nil]
|
25
|
+
def disable_product(opts = {})
|
26
|
+
disable_product_with_http_info(opts)
|
27
|
+
nil
|
28
|
+
end
|
29
|
+
|
30
|
+
# Disable a product
|
31
|
+
# Disable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
32
|
+
# @option opts [String] :product_id (required)
|
33
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
+
def disable_product_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.disable_product ...'
|
38
|
+
end
|
39
|
+
# unbox the parameters from the hash
|
40
|
+
product_id = opts[:'product_id']
|
41
|
+
service_id = opts[:'service_id']
|
42
|
+
# verify the required parameter 'product_id' is set
|
43
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.disable_product"
|
45
|
+
end
|
46
|
+
# verify the required parameter 'service_id' is set
|
47
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.disable_product"
|
49
|
+
end
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/enabled-products/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = opts[:header_params] || {}
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:debug_body]
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type]
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"EnabledProductsApi.disable_product",
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: EnabledProductsApi#disable_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# Enable a product
|
89
|
+
# Enable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
90
|
+
# @option opts [String] :product_id (required)
|
91
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
92
|
+
# @return [EnabledProduct]
|
93
|
+
def enable_product(opts = {})
|
94
|
+
data, _status_code, _headers = enable_product_with_http_info(opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Enable a product
|
99
|
+
# Enable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
100
|
+
# @option opts [String] :product_id (required)
|
101
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
102
|
+
# @return [Array<(EnabledProduct, Integer, Hash)>] EnabledProduct data, response status code and response headers
|
103
|
+
def enable_product_with_http_info(opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.enable_product ...'
|
106
|
+
end
|
107
|
+
# unbox the parameters from the hash
|
108
|
+
product_id = opts[:'product_id']
|
109
|
+
service_id = opts[:'service_id']
|
110
|
+
# verify the required parameter 'product_id' is set
|
111
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.enable_product"
|
113
|
+
end
|
114
|
+
# verify the required parameter 'service_id' is set
|
115
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.enable_product"
|
117
|
+
end
|
118
|
+
# resource path
|
119
|
+
local_var_path = '/enabled-products/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
120
|
+
|
121
|
+
# query parameters
|
122
|
+
query_params = opts[:query_params] || {}
|
123
|
+
|
124
|
+
# header parameters
|
125
|
+
header_params = opts[:header_params] || {}
|
126
|
+
# HTTP header 'Accept' (if needed)
|
127
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = opts[:form_params] || {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = opts[:debug_body]
|
134
|
+
|
135
|
+
# return_type
|
136
|
+
return_type = opts[:debug_return_type] || 'EnabledProduct'
|
137
|
+
|
138
|
+
# auth_names
|
139
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
140
|
+
|
141
|
+
new_options = opts.merge(
|
142
|
+
:operation => :"EnabledProductsApi.enable_product",
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: EnabledProductsApi#enable_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
158
|
+
# Get enabled product
|
159
|
+
# Get enabled product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
160
|
+
# @option opts [String] :product_id (required)
|
161
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
162
|
+
# @return [EnabledProduct]
|
163
|
+
def get_enabled_product(opts = {})
|
164
|
+
data, _status_code, _headers = get_enabled_product_with_http_info(opts)
|
165
|
+
data
|
166
|
+
end
|
167
|
+
|
168
|
+
# Get enabled product
|
169
|
+
# Get enabled product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`.
|
170
|
+
# @option opts [String] :product_id (required)
|
171
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
172
|
+
# @return [Array<(EnabledProduct, Integer, Hash)>] EnabledProduct data, response status code and response headers
|
173
|
+
def get_enabled_product_with_http_info(opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.get_enabled_product ...'
|
176
|
+
end
|
177
|
+
# unbox the parameters from the hash
|
178
|
+
product_id = opts[:'product_id']
|
179
|
+
service_id = opts[:'service_id']
|
180
|
+
# verify the required parameter 'product_id' is set
|
181
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
182
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.get_enabled_product"
|
183
|
+
end
|
184
|
+
# verify the required parameter 'service_id' is set
|
185
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.get_enabled_product"
|
187
|
+
end
|
188
|
+
# resource path
|
189
|
+
local_var_path = '/enabled-products/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
190
|
+
|
191
|
+
# query parameters
|
192
|
+
query_params = opts[:query_params] || {}
|
193
|
+
|
194
|
+
# header parameters
|
195
|
+
header_params = opts[:header_params] || {}
|
196
|
+
# HTTP header 'Accept' (if needed)
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = opts[:form_params] || {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = opts[:debug_body]
|
204
|
+
|
205
|
+
# return_type
|
206
|
+
return_type = opts[:debug_return_type] || 'EnabledProduct'
|
207
|
+
|
208
|
+
# auth_names
|
209
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
210
|
+
|
211
|
+
new_options = opts.merge(
|
212
|
+
:operation => :"EnabledProductsApi.get_enabled_product",
|
213
|
+
:header_params => header_params,
|
214
|
+
:query_params => query_params,
|
215
|
+
:form_params => form_params,
|
216
|
+
:body => post_body,
|
217
|
+
:auth_names => auth_names,
|
218
|
+
:return_type => return_type
|
219
|
+
)
|
220
|
+
|
221
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "API called: EnabledProductsApi#get_enabled_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
224
|
+
end
|
225
|
+
return data, status_code, headers
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -82,10 +82,11 @@ module Fastly
|
|
82
82
|
|
83
83
|
# List events
|
84
84
|
# List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date.
|
85
|
-
# @option opts [String] :filter_event_type Limit the returned events to a specific `event_type`.
|
86
85
|
# @option opts [String] :filter_customer_id Limit the results returned to a specific customer.
|
86
|
+
# @option opts [String] :filter_event_type Limit the returned events to a specific `event_type`.
|
87
87
|
# @option opts [String] :filter_service_id Limit the results returned to a specific service.
|
88
88
|
# @option opts [String] :filter_user_id Limit the results returned to a specific user.
|
89
|
+
# @option opts [String] :filter_token_id Limit the returned events to a specific token.
|
89
90
|
# @option opts [Integer] :page_number Current page.
|
90
91
|
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
91
92
|
# @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
|
@@ -97,10 +98,11 @@ module Fastly
|
|
97
98
|
|
98
99
|
# List events
|
99
100
|
# List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date.
|
100
|
-
# @option opts [String] :filter_event_type Limit the returned events to a specific `event_type`.
|
101
101
|
# @option opts [String] :filter_customer_id Limit the results returned to a specific customer.
|
102
|
+
# @option opts [String] :filter_event_type Limit the returned events to a specific `event_type`.
|
102
103
|
# @option opts [String] :filter_service_id Limit the results returned to a specific service.
|
103
104
|
# @option opts [String] :filter_user_id Limit the results returned to a specific user.
|
105
|
+
# @option opts [String] :filter_token_id Limit the returned events to a specific token.
|
104
106
|
# @option opts [Integer] :page_number Current page.
|
105
107
|
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
106
108
|
# @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
|
@@ -127,10 +129,11 @@ module Fastly
|
|
127
129
|
|
128
130
|
# query parameters
|
129
131
|
query_params = opts[:query_params] || {}
|
130
|
-
query_params[:'filter[event_type]'] = opts[:'filter_event_type'] if !opts[:'filter_event_type'].nil?
|
131
132
|
query_params[:'filter[customer_id]'] = opts[:'filter_customer_id'] if !opts[:'filter_customer_id'].nil?
|
133
|
+
query_params[:'filter[event_type]'] = opts[:'filter_event_type'] if !opts[:'filter_event_type'].nil?
|
132
134
|
query_params[:'filter[service_id]'] = opts[:'filter_service_id'] if !opts[:'filter_service_id'].nil?
|
133
135
|
query_params[:'filter[user_id]'] = opts[:'filter_user_id'] if !opts[:'filter_user_id'].nil?
|
136
|
+
query_params[:'filter[token_id]'] = opts[:'filter_token_id'] if !opts[:'filter_token_id'].nil?
|
134
137
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
135
138
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
136
139
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
@@ -17,44 +17,46 @@ module Fastly
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
-
# Create a
|
21
|
-
# Create a
|
20
|
+
# Create a health check
|
21
|
+
# Create a health check for a particular service and version.
|
22
22
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
23
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
24
|
-
# @option opts [Integer] :check_interval How often to run the
|
24
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
25
25
|
# @option opts [String] :comment A freeform descriptive note.
|
26
26
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
27
|
+
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
27
28
|
# @option opts [String] :host Which host to check.
|
28
29
|
# @option opts [String] :http_version Whether to use version 1.0 or 1.1 HTTP.
|
29
30
|
# @option opts [Integer] :initial When loading a config, the initial number of probes to be seen as OK.
|
30
31
|
# @option opts [String] :method Which HTTP method to use.
|
31
|
-
# @option opts [String] :name The name of the
|
32
|
+
# @option opts [String] :name The name of the health check.
|
32
33
|
# @option opts [String] :path The path to check.
|
33
|
-
# @option opts [Integer] :threshold How many
|
34
|
+
# @option opts [Integer] :threshold How many health checks must succeed to be considered healthy.
|
34
35
|
# @option opts [Integer] :timeout Timeout in milliseconds.
|
35
|
-
# @option opts [Integer] :window The number of most recent
|
36
|
+
# @option opts [Integer] :window The number of most recent health check queries to keep for this health check.
|
36
37
|
# @return [HealthcheckResponse]
|
37
38
|
def create_healthcheck(opts = {})
|
38
39
|
data, _status_code, _headers = create_healthcheck_with_http_info(opts)
|
39
40
|
data
|
40
41
|
end
|
41
42
|
|
42
|
-
# Create a
|
43
|
-
# Create a
|
43
|
+
# Create a health check
|
44
|
+
# Create a health check for a particular service and version.
|
44
45
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
45
46
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
46
|
-
# @option opts [Integer] :check_interval How often to run the
|
47
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
47
48
|
# @option opts [String] :comment A freeform descriptive note.
|
48
49
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
50
|
+
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
49
51
|
# @option opts [String] :host Which host to check.
|
50
52
|
# @option opts [String] :http_version Whether to use version 1.0 or 1.1 HTTP.
|
51
53
|
# @option opts [Integer] :initial When loading a config, the initial number of probes to be seen as OK.
|
52
54
|
# @option opts [String] :method Which HTTP method to use.
|
53
|
-
# @option opts [String] :name The name of the
|
55
|
+
# @option opts [String] :name The name of the health check.
|
54
56
|
# @option opts [String] :path The path to check.
|
55
|
-
# @option opts [Integer] :threshold How many
|
57
|
+
# @option opts [Integer] :threshold How many health checks must succeed to be considered healthy.
|
56
58
|
# @option opts [Integer] :timeout Timeout in milliseconds.
|
57
|
-
# @option opts [Integer] :window The number of most recent
|
59
|
+
# @option opts [Integer] :window The number of most recent health check queries to keep for this health check.
|
58
60
|
# @return [Array<(HealthcheckResponse, Integer, Hash)>] HealthcheckResponse data, response status code and response headers
|
59
61
|
def create_healthcheck_with_http_info(opts = {})
|
60
62
|
if @api_client.config.debugging
|
@@ -92,6 +94,7 @@ module Fastly
|
|
92
94
|
form_params['check_interval'] = opts[:'check_interval'] if !opts[:'check_interval'].nil?
|
93
95
|
form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
|
94
96
|
form_params['expected_response'] = opts[:'expected_response'] if !opts[:'expected_response'].nil?
|
97
|
+
form_params['headers'] = @api_client.build_collection_param(opts[:'headers'], :csv) if !opts[:'headers'].nil?
|
95
98
|
form_params['host'] = opts[:'host'] if !opts[:'host'].nil?
|
96
99
|
form_params['http_version'] = opts[:'http_version'] if !opts[:'http_version'].nil?
|
97
100
|
form_params['initial'] = opts[:'initial'] if !opts[:'initial'].nil?
|
@@ -128,22 +131,22 @@ module Fastly
|
|
128
131
|
return data, status_code, headers
|
129
132
|
end
|
130
133
|
|
131
|
-
# Delete a
|
132
|
-
# Delete the
|
134
|
+
# Delete a health check
|
135
|
+
# Delete the health check for a particular service and version.
|
133
136
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
134
137
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
135
|
-
# @option opts [String] :healthcheck_name The name of the
|
138
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
136
139
|
# @return [InlineResponse200]
|
137
140
|
def delete_healthcheck(opts = {})
|
138
141
|
data, _status_code, _headers = delete_healthcheck_with_http_info(opts)
|
139
142
|
data
|
140
143
|
end
|
141
144
|
|
142
|
-
# Delete a
|
143
|
-
# Delete the
|
145
|
+
# Delete a health check
|
146
|
+
# Delete the health check for a particular service and version.
|
144
147
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
145
148
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
146
|
-
# @option opts [String] :healthcheck_name The name of the
|
149
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
147
150
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
148
151
|
def delete_healthcheck_with_http_info(opts = {})
|
149
152
|
if @api_client.config.debugging
|
@@ -205,22 +208,22 @@ module Fastly
|
|
205
208
|
return data, status_code, headers
|
206
209
|
end
|
207
210
|
|
208
|
-
# Get a
|
209
|
-
# Get the
|
211
|
+
# Get a health check
|
212
|
+
# Get the health check for a particular service and version.
|
210
213
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
211
214
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
212
|
-
# @option opts [String] :healthcheck_name The name of the
|
215
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
213
216
|
# @return [HealthcheckResponse]
|
214
217
|
def get_healthcheck(opts = {})
|
215
218
|
data, _status_code, _headers = get_healthcheck_with_http_info(opts)
|
216
219
|
data
|
217
220
|
end
|
218
221
|
|
219
|
-
# Get a
|
220
|
-
# Get the
|
222
|
+
# Get a health check
|
223
|
+
# Get the health check for a particular service and version.
|
221
224
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
222
225
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
223
|
-
# @option opts [String] :healthcheck_name The name of the
|
226
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
224
227
|
# @return [Array<(HealthcheckResponse, Integer, Hash)>] HealthcheckResponse data, response status code and response headers
|
225
228
|
def get_healthcheck_with_http_info(opts = {})
|
226
229
|
if @api_client.config.debugging
|
@@ -282,8 +285,8 @@ module Fastly
|
|
282
285
|
return data, status_code, headers
|
283
286
|
end
|
284
287
|
|
285
|
-
# List
|
286
|
-
# List all of the
|
288
|
+
# List health checks
|
289
|
+
# List all of the health checks for a particular service and version.
|
287
290
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
288
291
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
289
292
|
# @return [Array<HealthcheckResponse>]
|
@@ -292,8 +295,8 @@ module Fastly
|
|
292
295
|
data
|
293
296
|
end
|
294
297
|
|
295
|
-
# List
|
296
|
-
# List all of the
|
298
|
+
# List health checks
|
299
|
+
# List all of the health checks for a particular service and version.
|
297
300
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
298
301
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
299
302
|
# @return [Array<(Array<HealthcheckResponse>, Integer, Hash)>] Array<HealthcheckResponse> data, response status code and response headers
|
@@ -352,46 +355,48 @@ module Fastly
|
|
352
355
|
return data, status_code, headers
|
353
356
|
end
|
354
357
|
|
355
|
-
# Update a
|
356
|
-
# Update the
|
358
|
+
# Update a health check
|
359
|
+
# Update the health check for a particular service and version.
|
357
360
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
358
361
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
359
|
-
# @option opts [String] :healthcheck_name The name of the
|
360
|
-
# @option opts [Integer] :check_interval How often to run the
|
362
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
363
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
361
364
|
# @option opts [String] :comment A freeform descriptive note.
|
362
365
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
366
|
+
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
363
367
|
# @option opts [String] :host Which host to check.
|
364
368
|
# @option opts [String] :http_version Whether to use version 1.0 or 1.1 HTTP.
|
365
369
|
# @option opts [Integer] :initial When loading a config, the initial number of probes to be seen as OK.
|
366
370
|
# @option opts [String] :method Which HTTP method to use.
|
367
|
-
# @option opts [String] :name The name of the
|
371
|
+
# @option opts [String] :name The name of the health check.
|
368
372
|
# @option opts [String] :path The path to check.
|
369
|
-
# @option opts [Integer] :threshold How many
|
373
|
+
# @option opts [Integer] :threshold How many health checks must succeed to be considered healthy.
|
370
374
|
# @option opts [Integer] :timeout Timeout in milliseconds.
|
371
|
-
# @option opts [Integer] :window The number of most recent
|
375
|
+
# @option opts [Integer] :window The number of most recent health check queries to keep for this health check.
|
372
376
|
# @return [HealthcheckResponse]
|
373
377
|
def update_healthcheck(opts = {})
|
374
378
|
data, _status_code, _headers = update_healthcheck_with_http_info(opts)
|
375
379
|
data
|
376
380
|
end
|
377
381
|
|
378
|
-
# Update a
|
379
|
-
# Update the
|
382
|
+
# Update a health check
|
383
|
+
# Update the health check for a particular service and version.
|
380
384
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
381
385
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
382
|
-
# @option opts [String] :healthcheck_name The name of the
|
383
|
-
# @option opts [Integer] :check_interval How often to run the
|
386
|
+
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
387
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
384
388
|
# @option opts [String] :comment A freeform descriptive note.
|
385
389
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
390
|
+
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
386
391
|
# @option opts [String] :host Which host to check.
|
387
392
|
# @option opts [String] :http_version Whether to use version 1.0 or 1.1 HTTP.
|
388
393
|
# @option opts [Integer] :initial When loading a config, the initial number of probes to be seen as OK.
|
389
394
|
# @option opts [String] :method Which HTTP method to use.
|
390
|
-
# @option opts [String] :name The name of the
|
395
|
+
# @option opts [String] :name The name of the health check.
|
391
396
|
# @option opts [String] :path The path to check.
|
392
|
-
# @option opts [Integer] :threshold How many
|
397
|
+
# @option opts [Integer] :threshold How many health checks must succeed to be considered healthy.
|
393
398
|
# @option opts [Integer] :timeout Timeout in milliseconds.
|
394
|
-
# @option opts [Integer] :window The number of most recent
|
399
|
+
# @option opts [Integer] :window The number of most recent health check queries to keep for this health check.
|
395
400
|
# @return [Array<(HealthcheckResponse, Integer, Hash)>] HealthcheckResponse data, response status code and response headers
|
396
401
|
def update_healthcheck_with_http_info(opts = {})
|
397
402
|
if @api_client.config.debugging
|
@@ -434,6 +439,7 @@ module Fastly
|
|
434
439
|
form_params['check_interval'] = opts[:'check_interval'] if !opts[:'check_interval'].nil?
|
435
440
|
form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
|
436
441
|
form_params['expected_response'] = opts[:'expected_response'] if !opts[:'expected_response'].nil?
|
442
|
+
form_params['headers'] = @api_client.build_collection_param(opts[:'headers'], :csv) if !opts[:'headers'].nil?
|
437
443
|
form_params['host'] = opts[:'host'] if !opts[:'host'].nil?
|
438
444
|
form_params['http_version'] = opts[:'http_version'] if !opts[:'http_version'].nil?
|
439
445
|
form_params['initial'] = opts[:'initial'] if !opts[:'initial'].nil?
|