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
@@ -21,7 +21,7 @@ module Fastly
|
|
21
21
|
# Create a service.
|
22
22
|
# @option opts [String] :comment A freeform descriptive note.
|
23
23
|
# @option opts [String] :name The name of the service.
|
24
|
-
# @option opts [String] :customer_id
|
24
|
+
# @option opts [String] :customer_id Alphanumeric string identifying the customer.
|
25
25
|
# @option opts [String] :type The type of this service.
|
26
26
|
# @return [ServiceResponse]
|
27
27
|
def create_service(opts = {})
|
@@ -33,7 +33,7 @@ module Fastly
|
|
33
33
|
# Create a service.
|
34
34
|
# @option opts [String] :comment A freeform descriptive note.
|
35
35
|
# @option opts [String] :name The name of the service.
|
36
|
-
# @option opts [String] :customer_id
|
36
|
+
# @option opts [String] :customer_id Alphanumeric string identifying the customer.
|
37
37
|
# @option opts [String] :type The type of this service.
|
38
38
|
# @return [Array<(ServiceResponse, Integer, Hash)>] ServiceResponse data, response status code and response headers
|
39
39
|
def create_service_with_http_info(opts = {})
|
@@ -502,7 +502,7 @@ module Fastly
|
|
502
502
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
503
503
|
# @option opts [String] :comment A freeform descriptive note.
|
504
504
|
# @option opts [String] :name The name of the service.
|
505
|
-
# @option opts [String] :customer_id
|
505
|
+
# @option opts [String] :customer_id Alphanumeric string identifying the customer.
|
506
506
|
# @return [ServiceResponse]
|
507
507
|
def update_service(opts = {})
|
508
508
|
data, _status_code, _headers = update_service_with_http_info(opts)
|
@@ -514,7 +514,7 @@ module Fastly
|
|
514
514
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
515
515
|
# @option opts [String] :comment A freeform descriptive note.
|
516
516
|
# @option opts [String] :name The name of the service.
|
517
|
-
# @option opts [String] :customer_id
|
517
|
+
# @option opts [String] :customer_id Alphanumeric string identifying the customer.
|
518
518
|
# @return [Array<(ServiceResponse, Integer, Hash)>] ServiceResponse data, response status code and response headers
|
519
519
|
def update_service_with_http_info(opts = {})
|
520
520
|
if @api_client.config.debugging
|
@@ -11,30 +11,32 @@ Contact: oss@fastly.com
|
|
11
11
|
require 'cgi'
|
12
12
|
|
13
13
|
module Fastly
|
14
|
-
class
|
14
|
+
class TlsCsrsApi
|
15
15
|
attr_accessor :api_client
|
16
16
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
-
#
|
21
|
-
#
|
22
|
-
# @
|
23
|
-
|
24
|
-
|
20
|
+
# Create CSR
|
21
|
+
# Creates a certificate signing request (CSR).
|
22
|
+
# @option opts [TlsCsr] :tls_csr
|
23
|
+
# @return [TlsCsrResponse]
|
24
|
+
def create_csr(opts = {})
|
25
|
+
data, _status_code, _headers = create_csr_with_http_info(opts)
|
25
26
|
data
|
26
27
|
end
|
27
28
|
|
28
|
-
#
|
29
|
-
#
|
30
|
-
# @
|
31
|
-
|
29
|
+
# Create CSR
|
30
|
+
# Creates a certificate signing request (CSR).
|
31
|
+
# @option opts [TlsCsr] :tls_csr
|
32
|
+
# @return [Array<(TlsCsrResponse, Integer, Hash)>] TlsCsrResponse data, response status code and response headers
|
33
|
+
def create_csr_with_http_info(opts = {})
|
32
34
|
if @api_client.config.debugging
|
33
|
-
@api_client.config.logger.debug 'Calling API:
|
35
|
+
@api_client.config.logger.debug 'Calling API: TlsCsrsApi.create_csr ...'
|
34
36
|
end
|
35
37
|
# unbox the parameters from the hash
|
36
38
|
# resource path
|
37
|
-
local_var_path = '/
|
39
|
+
local_var_path = '/tls/certificate_signing_requests'
|
38
40
|
|
39
41
|
# query parameters
|
40
42
|
query_params = opts[:query_params] || {}
|
@@ -43,21 +45,26 @@ module Fastly
|
|
43
45
|
header_params = opts[:header_params] || {}
|
44
46
|
# HTTP header 'Accept' (if needed)
|
45
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
|
46
53
|
|
47
54
|
# form parameters
|
48
55
|
form_params = opts[:form_params] || {}
|
49
56
|
|
50
57
|
# http body (model)
|
51
|
-
post_body = opts[:debug_body]
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'tls_csr'])
|
52
59
|
|
53
60
|
# return_type
|
54
|
-
return_type = opts[:debug_return_type] || '
|
61
|
+
return_type = opts[:debug_return_type] || 'TlsCsrResponse'
|
55
62
|
|
56
63
|
# auth_names
|
57
64
|
auth_names = opts[:debug_auth_names] || ['token']
|
58
65
|
|
59
66
|
new_options = opts.merge(
|
60
|
-
:operation => :"
|
67
|
+
:operation => :"TlsCsrsApi.create_csr",
|
61
68
|
:header_params => header_params,
|
62
69
|
:query_params => query_params,
|
63
70
|
:form_params => form_params,
|
@@ -66,9 +73,9 @@ module Fastly
|
|
66
73
|
:return_type => return_type
|
67
74
|
)
|
68
75
|
|
69
|
-
data, status_code, headers = @api_client.call_api(:
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
70
77
|
if @api_client.config.debugging
|
71
|
-
@api_client.config.logger.debug "API called:
|
78
|
+
@api_client.config.logger.debug "API called: TlsCsrsApi#create_csr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
72
79
|
end
|
73
80
|
return data, status_code, headers
|
74
81
|
end
|
data/lib/fastly/api/user_api.rb
CHANGED
@@ -19,7 +19,7 @@ module Fastly
|
|
19
19
|
end
|
20
20
|
# Create a user
|
21
21
|
# Create a user.
|
22
|
-
# @option opts [String] :login
|
22
|
+
# @option opts [String] :login
|
23
23
|
# @option opts [String] :name The real life name of the user.
|
24
24
|
# @option opts [Boolean] :limit_services Indicates that the user has limited access to the customer's services.
|
25
25
|
# @option opts [Boolean] :locked Indicates whether the is account is locked for editing or not.
|
@@ -35,7 +35,7 @@ module Fastly
|
|
35
35
|
|
36
36
|
# Create a user
|
37
37
|
# Create a user.
|
38
|
-
# @option opts [String] :login
|
38
|
+
# @option opts [String] :login
|
39
39
|
# @option opts [String] :name The real life name of the user.
|
40
40
|
# @option opts [Boolean] :limit_services Indicates that the user has limited access to the customer's services.
|
41
41
|
# @option opts [Boolean] :locked Indicates whether the is account is locked for editing or not.
|
@@ -350,7 +350,7 @@ module Fastly
|
|
350
350
|
# Update a user
|
351
351
|
# Update a user. Only users with the role of `superuser` can make changes to other users on the account. Non-superusers may use this endpoint to make changes to their own account. Modifications to `login` email require a valid password in the request body. Two-factor attributes are not editable via this endpoint.
|
352
352
|
# @option opts [String] :user_id Alphanumeric string identifying the user. (required)
|
353
|
-
# @option opts [String] :login
|
353
|
+
# @option opts [String] :login
|
354
354
|
# @option opts [String] :name The real life name of the user.
|
355
355
|
# @option opts [Boolean] :limit_services Indicates that the user has limited access to the customer's services.
|
356
356
|
# @option opts [Boolean] :locked Indicates whether the is account is locked for editing or not.
|
@@ -367,7 +367,7 @@ module Fastly
|
|
367
367
|
# Update a user
|
368
368
|
# Update a user. Only users with the role of `superuser` can make changes to other users on the account. Non-superusers may use this endpoint to make changes to their own account. Modifications to `login` email require a valid password in the request body. Two-factor attributes are not editable via this endpoint.
|
369
369
|
# @option opts [String] :user_id Alphanumeric string identifying the user. (required)
|
370
|
-
# @option opts [String] :login
|
370
|
+
# @option opts [String] :login
|
371
371
|
# @option opts [String] :name The real life name of the user.
|
372
372
|
# @option opts [Boolean] :limit_services Indicates that the user has limited access to the customer's services.
|
373
373
|
# @option opts [Boolean] :locked Indicates whether the is account is locked for editing or not.
|
data/lib/fastly/api/vcl_api.rb
CHANGED
@@ -622,6 +622,149 @@ module Fastly
|
|
622
622
|
return data, status_code, headers
|
623
623
|
end
|
624
624
|
|
625
|
+
# Lint (validate) VCL using a default set of flags.
|
626
|
+
# This endpoint validates the submitted VCL against a default set of enabled flags. Consider using the `/service/{service_id}/lint` operation to validate VCL in the context of a specific service.
|
627
|
+
# @option opts [InlineObject1] :inline_object1 (required)
|
628
|
+
# @return [ValidatorResult]
|
629
|
+
def lint_vcl_default(opts = {})
|
630
|
+
data, _status_code, _headers = lint_vcl_default_with_http_info(opts)
|
631
|
+
data
|
632
|
+
end
|
633
|
+
|
634
|
+
# Lint (validate) VCL using a default set of flags.
|
635
|
+
# This endpoint validates the submitted VCL against a default set of enabled flags. Consider using the `/service/{service_id}/lint` operation to validate VCL in the context of a specific service.
|
636
|
+
# @option opts [InlineObject1] :inline_object1 (required)
|
637
|
+
# @return [Array<(ValidatorResult, Integer, Hash)>] ValidatorResult data, response status code and response headers
|
638
|
+
def lint_vcl_default_with_http_info(opts = {})
|
639
|
+
if @api_client.config.debugging
|
640
|
+
@api_client.config.logger.debug 'Calling API: VclApi.lint_vcl_default ...'
|
641
|
+
end
|
642
|
+
# unbox the parameters from the hash
|
643
|
+
inline_object1 = opts[:'inline_object1']
|
644
|
+
# verify the required parameter 'inline_object1' is set
|
645
|
+
if @api_client.config.client_side_validation && inline_object1.nil?
|
646
|
+
fail ArgumentError, "Missing the required parameter 'inline_object1' when calling VclApi.lint_vcl_default"
|
647
|
+
end
|
648
|
+
# resource path
|
649
|
+
local_var_path = '/vcl_lint'
|
650
|
+
|
651
|
+
# query parameters
|
652
|
+
query_params = opts[:query_params] || {}
|
653
|
+
|
654
|
+
# header parameters
|
655
|
+
header_params = opts[:header_params] || {}
|
656
|
+
# HTTP header 'Accept' (if needed)
|
657
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
658
|
+
# HTTP header 'Content-Type'
|
659
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
660
|
+
if !content_type.nil?
|
661
|
+
header_params['Content-Type'] = content_type
|
662
|
+
end
|
663
|
+
|
664
|
+
# form parameters
|
665
|
+
form_params = opts[:form_params] || {}
|
666
|
+
|
667
|
+
# http body (model)
|
668
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(inline_object1)
|
669
|
+
|
670
|
+
# return_type
|
671
|
+
return_type = opts[:debug_return_type] || 'ValidatorResult'
|
672
|
+
|
673
|
+
# auth_names
|
674
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
675
|
+
|
676
|
+
new_options = opts.merge(
|
677
|
+
:operation => :"VclApi.lint_vcl_default",
|
678
|
+
:header_params => header_params,
|
679
|
+
:query_params => query_params,
|
680
|
+
:form_params => form_params,
|
681
|
+
:body => post_body,
|
682
|
+
:auth_names => auth_names,
|
683
|
+
:return_type => return_type
|
684
|
+
)
|
685
|
+
|
686
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
687
|
+
if @api_client.config.debugging
|
688
|
+
@api_client.config.logger.debug "API called: VclApi#lint_vcl_default\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
689
|
+
end
|
690
|
+
return data, status_code, headers
|
691
|
+
end
|
692
|
+
|
693
|
+
# Lint (validate) VCL using flags set for the service.
|
694
|
+
# Services may have flags set by a Fastly employee or by the purchase of products as addons to the service, which modify the way VCL is interpreted by that service. This endpoint validates the submitted VCL in the context of the specified service.
|
695
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
696
|
+
# @option opts [InlineObject] :inline_object (required)
|
697
|
+
# @return [ValidatorResult]
|
698
|
+
def lint_vcl_for_service(opts = {})
|
699
|
+
data, _status_code, _headers = lint_vcl_for_service_with_http_info(opts)
|
700
|
+
data
|
701
|
+
end
|
702
|
+
|
703
|
+
# Lint (validate) VCL using flags set for the service.
|
704
|
+
# Services may have flags set by a Fastly employee or by the purchase of products as addons to the service, which modify the way VCL is interpreted by that service. This endpoint validates the submitted VCL in the context of the specified service.
|
705
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
706
|
+
# @option opts [InlineObject] :inline_object (required)
|
707
|
+
# @return [Array<(ValidatorResult, Integer, Hash)>] ValidatorResult data, response status code and response headers
|
708
|
+
def lint_vcl_for_service_with_http_info(opts = {})
|
709
|
+
if @api_client.config.debugging
|
710
|
+
@api_client.config.logger.debug 'Calling API: VclApi.lint_vcl_for_service ...'
|
711
|
+
end
|
712
|
+
# unbox the parameters from the hash
|
713
|
+
service_id = opts[:'service_id']
|
714
|
+
inline_object = opts[:'inline_object']
|
715
|
+
# verify the required parameter 'service_id' is set
|
716
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
717
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling VclApi.lint_vcl_for_service"
|
718
|
+
end
|
719
|
+
# verify the required parameter 'inline_object' is set
|
720
|
+
if @api_client.config.client_side_validation && inline_object.nil?
|
721
|
+
fail ArgumentError, "Missing the required parameter 'inline_object' when calling VclApi.lint_vcl_for_service"
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '/service/{service_id}/lint'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
|
729
|
+
# header parameters
|
730
|
+
header_params = opts[:header_params] || {}
|
731
|
+
# HTTP header 'Accept' (if needed)
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
733
|
+
# HTTP header 'Content-Type'
|
734
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
735
|
+
if !content_type.nil?
|
736
|
+
header_params['Content-Type'] = content_type
|
737
|
+
end
|
738
|
+
|
739
|
+
# form parameters
|
740
|
+
form_params = opts[:form_params] || {}
|
741
|
+
|
742
|
+
# http body (model)
|
743
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(inline_object)
|
744
|
+
|
745
|
+
# return_type
|
746
|
+
return_type = opts[:debug_return_type] || 'ValidatorResult'
|
747
|
+
|
748
|
+
# auth_names
|
749
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
750
|
+
|
751
|
+
new_options = opts.merge(
|
752
|
+
:operation => :"VclApi.lint_vcl_for_service",
|
753
|
+
:header_params => header_params,
|
754
|
+
:query_params => query_params,
|
755
|
+
:form_params => form_params,
|
756
|
+
:body => post_body,
|
757
|
+
:auth_names => auth_names,
|
758
|
+
:return_type => return_type
|
759
|
+
)
|
760
|
+
|
761
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
762
|
+
if @api_client.config.debugging
|
763
|
+
@api_client.config.logger.debug "API called: VclApi#lint_vcl_for_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
764
|
+
end
|
765
|
+
return data, status_code, headers
|
766
|
+
end
|
767
|
+
|
625
768
|
# List custom VCL files
|
626
769
|
# List the uploaded VCLs for a particular service and version.
|
627
770
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
data/lib/fastly/api_client.rb
CHANGED
@@ -15,6 +15,9 @@ require 'tempfile'
|
|
15
15
|
require 'time'
|
16
16
|
require 'typhoeus'
|
17
17
|
|
18
|
+
# https://developer.fastly.com/reference/api/#rate-limiting
|
19
|
+
DEFAULT_RATELIMIT = 1000
|
20
|
+
|
18
21
|
module Fastly
|
19
22
|
class ApiClient
|
20
23
|
# The Configuration object holding settings to be used in the API client.
|
@@ -25,6 +28,12 @@ module Fastly
|
|
25
28
|
# @return [Hash]
|
26
29
|
attr_accessor :default_headers
|
27
30
|
|
31
|
+
# The last observed value of http header Fastly-RateLimit-Remaining
|
32
|
+
attr_reader :rate_limit_remaining
|
33
|
+
|
34
|
+
# The last observed value of http header Fastly-RateLimit-Reset
|
35
|
+
attr_reader :rate_limit_reset
|
36
|
+
|
28
37
|
# Initializes the ApiClient
|
29
38
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
30
39
|
def initialize(config = Configuration.default)
|
@@ -34,6 +43,8 @@ module Fastly
|
|
34
43
|
'Content-Type' => 'application/json',
|
35
44
|
'User-Agent' => @user_agent
|
36
45
|
}
|
46
|
+
@rate_limit_remaining = DEFAULT_RATELIMIT
|
47
|
+
@rate_limit_reset = 0
|
37
48
|
end
|
38
49
|
|
39
50
|
def self.default
|
@@ -52,6 +63,11 @@ module Fastly
|
|
52
63
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
53
64
|
end
|
54
65
|
|
66
|
+
if http_method != "GET" && http_method != "HEAD"
|
67
|
+
@rate_limit_remaining = response.headers.fetch("fastly-ratelimit-remaining", DEFAULT_RATELIMIT).to_i
|
68
|
+
@rate_limit_reset = response.headers.fetch("fastly-ratelimit-reset", 0).to_i
|
69
|
+
end
|
70
|
+
|
55
71
|
unless response.success?
|
56
72
|
if response.timed_out?
|
57
73
|
fail ApiError.new('Connection timed out')
|
@@ -22,7 +22,7 @@ module Fastly
|
|
22
22
|
# An IP address.
|
23
23
|
attr_accessor :ip
|
24
24
|
|
25
|
-
# Number of bits for the subnet mask applied to the IP address.
|
25
|
+
# Number of bits for the subnet mask applied to the IP address. For IPv4 addresses, a value of 32 represents the smallest subnet mask (1 address), 24 represents a class C subnet mask (256 addresses), 16 represents a class B subnet mask (65k addresses), and 8 is class A subnet mask (16m addresses). If not provided, no mask is applied.
|
26
26
|
attr_accessor :subnet
|
27
27
|
|
28
28
|
class EnumAttributeValidator
|
@@ -22,7 +22,7 @@ module Fastly
|
|
22
22
|
# An IP address.
|
23
23
|
attr_accessor :ip
|
24
24
|
|
25
|
-
# Number of bits for the subnet mask applied to the IP address.
|
25
|
+
# Number of bits for the subnet mask applied to the IP address. For IPv4 addresses, a value of 32 represents the smallest subnet mask (1 address), 24 represents a class C subnet mask (256 addresses), 16 represents a class B subnet mask (65k addresses), and 8 is class A subnet mask (16m addresses). If not provided, no mask is applied.
|
26
26
|
attr_accessor :subnet
|
27
27
|
|
28
28
|
# Date and time in ISO 8601 format.
|
@@ -107,9 +107,6 @@ module Fastly
|
|
107
107
|
:'created_at',
|
108
108
|
:'deleted_at',
|
109
109
|
:'updated_at',
|
110
|
-
:'acl_id',
|
111
|
-
:'id',
|
112
|
-
:'service_id'
|
113
110
|
])
|
114
111
|
end
|
115
112
|
|