fastly 6.0.2 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -2
- data/docs/Backend.md +1 -0
- data/docs/BackendApi.md +4 -0
- data/docs/BackendResponse.md +1 -0
- data/docs/CacheSetting.md +2 -2
- data/docs/CacheSettingResponse.md +3 -3
- data/docs/CacheSettingsApi.md +8 -8
- data/docs/DomainApi.md +2 -2
- data/docs/GzipResponse.md +1 -1
- data/docs/Header.md +0 -2
- data/docs/HeaderApi.md +8 -8
- data/docs/HeaderResponse.md +3 -3
- data/docs/HeaderResponseAdditional.md +11 -0
- data/docs/{LoggingAzureblobAllOf.md → LoggingAzureblobAdditional.md} +1 -1
- data/docs/LoggingAzureblobApi.md +8 -8
- data/docs/LoggingAzureblobResponse.md +8 -8
- data/docs/{LoggingBigqueryAllOf.md → LoggingBigqueryAdditional.md} +1 -1
- data/docs/LoggingBigqueryApi.md +4 -4
- data/docs/LoggingBigqueryResponse.md +2 -2
- data/docs/{LoggingCloudfilesAllOf.md → LoggingCloudfilesAdditional.md} +1 -1
- data/docs/LoggingCloudfilesApi.md +8 -8
- data/docs/LoggingCloudfilesResponse.md +8 -8
- data/docs/LoggingCommon.md +0 -1
- data/docs/{LoggingPapertrail.md → LoggingCommonResponse.md} +2 -4
- data/docs/{LoggingLogshuttle.md → LoggingCommonResponseAllOf.md} +1 -4
- data/docs/LoggingCommonResponseAllOf1.md +10 -0
- data/docs/{LoggingDatadogAllOf.md → LoggingDatadogAdditional.md} +1 -1
- data/docs/LoggingDatadogApi.md +4 -4
- data/docs/LoggingDatadogResponse.md +2 -2
- data/docs/{LoggingDigitaloceanAllOf.md → LoggingDigitaloceanAdditional.md} +1 -1
- data/docs/LoggingDigitaloceanApi.md +8 -8
- data/docs/LoggingDigitaloceanResponse.md +8 -8
- data/docs/{LoggingElasticsearchAllOf.md → LoggingElasticsearchAdditional.md} +1 -1
- data/docs/LoggingElasticsearchApi.md +4 -4
- data/docs/LoggingElasticsearchResponse.md +2 -2
- data/docs/LoggingFormatVersionInteger.md +10 -0
- data/docs/LoggingFormatVersionString.md +10 -0
- data/docs/{LoggingFtpAllOf.md → LoggingFtpAdditional.md} +1 -2
- data/docs/LoggingFtpApi.md +12 -12
- data/docs/LoggingFtpResponse.md +9 -9
- data/docs/{LoggingFormatVersion.md → LoggingFtpResponseAllOf.md} +2 -1
- data/docs/{LoggingGcsAllOf.md → LoggingGcsAdditional.md} +1 -1
- data/docs/LoggingGcsApi.md +8 -8
- data/docs/LoggingGcsResponse.md +8 -8
- data/docs/LoggingGenericCommon.md +0 -2
- data/docs/LoggingGenericCommonResponse.md +14 -0
- data/docs/LoggingGenericCommonResponseAllOf.md +12 -0
- data/docs/LoggingGenericCommonResponseAllOf1.md +11 -0
- data/docs/{LoggingGooglePubsubAllOf.md → LoggingGooglePubsubAdditional.md} +1 -1
- data/docs/LoggingGooglePubsubResponse.md +2 -2
- data/docs/{LoggingHerokuAllOf.md → LoggingHerokuAdditional.md} +1 -1
- data/docs/LoggingHerokuApi.md +4 -4
- data/docs/LoggingHerokuResponse.md +2 -2
- data/docs/{LoggingHoneycombAllOf.md → LoggingHoneycombAdditional.md} +1 -1
- data/docs/LoggingHoneycombApi.md +8 -8
- data/docs/LoggingHoneycombResponse.md +2 -2
- data/docs/{LoggingHttpsAllOf.md → LoggingHttpsAdditional.md} +1 -1
- data/docs/LoggingHttpsApi.md +4 -4
- data/docs/LoggingHttpsResponse.md +2 -2
- data/docs/{LoggingKafkaAllOf.md → LoggingKafkaAdditional.md} +1 -1
- data/docs/LoggingKafkaApi.md +4 -4
- data/docs/LoggingKafkaResponse.md +6 -6
- data/docs/{LoggingKafka.md → LoggingKafkaResponsePost.md} +7 -2
- data/docs/{LoggingKinesis.md → LoggingKinesisAdditional.md} +1 -2
- data/docs/LoggingKinesisApi.md +2 -2
- data/docs/LoggingKinesisResponse.md +2 -2
- data/docs/{LoggingLogentriesAllOf.md → LoggingLogentriesAdditional.md} +1 -1
- data/docs/LoggingLogentriesApi.md +4 -4
- data/docs/LoggingLogentriesResponse.md +2 -2
- data/docs/{LoggingLogglyAllOf.md → LoggingLogglyAdditional.md} +1 -1
- data/docs/LoggingLogglyApi.md +4 -4
- data/docs/LoggingLogglyResponse.md +2 -2
- data/docs/{LoggingLogshuttleAllOf.md → LoggingLogshuttleAdditional.md} +1 -1
- data/docs/LoggingLogshuttleApi.md +4 -4
- data/docs/LoggingLogshuttleResponse.md +2 -2
- data/docs/{LoggingNewrelicAllOf.md → LoggingNewrelicAdditional.md} +1 -1
- data/docs/LoggingNewrelicApi.md +4 -4
- data/docs/LoggingNewrelicResponse.md +2 -2
- data/docs/LoggingNewrelicotlpAdditional.md +13 -0
- data/docs/LoggingNewrelicotlpApi.md +252 -0
- data/docs/LoggingNewrelicotlpResponse.md +22 -0
- data/docs/{LoggingOpenstackAllOf.md → LoggingOpenstackAdditional.md} +1 -1
- data/docs/LoggingOpenstackApi.md +8 -8
- data/docs/LoggingOpenstackResponse.md +8 -8
- data/docs/LoggingPapertrailApi.md +4 -4
- data/docs/LoggingPapertrailResponse.md +2 -2
- data/docs/LoggingPubsubApi.md +4 -4
- data/docs/{LoggingS3AllOf.md → LoggingS3Additional.md} +1 -1
- data/docs/LoggingS3Api.md +8 -8
- data/docs/LoggingS3Response.md +8 -8
- data/docs/{LoggingScalyrAllOf.md → LoggingScalyrAdditional.md} +1 -1
- data/docs/LoggingScalyrApi.md +4 -4
- data/docs/LoggingScalyrResponse.md +2 -2
- data/docs/{LoggingSftpAllOf.md → LoggingSftpAdditional.md} +1 -2
- data/docs/LoggingSftpApi.md +8 -8
- data/docs/LoggingSftpResponse.md +10 -10
- data/docs/LoggingSftpResponseAllOf.md +13 -0
- data/docs/{LoggingSplunkAllOf.md → LoggingSplunkAdditional.md} +1 -1
- data/docs/LoggingSplunkApi.md +4 -4
- data/docs/LoggingSplunkResponse.md +2 -2
- data/docs/{LoggingSumologicAllOf.md → LoggingSumologicAdditional.md} +1 -1
- data/docs/LoggingSumologicApi.md +4 -4
- data/docs/LoggingSumologicResponse.md +2 -2
- data/docs/{LoggingSyslogAllOf.md → LoggingSyslogAdditional.md} +1 -1
- data/docs/LoggingSyslogApi.md +4 -4
- data/docs/LoggingSyslogResponse.md +2 -2
- data/docs/{PoolAllOf.md → PoolAdditional.md} +1 -6
- data/docs/PoolApi.md +46 -22
- data/docs/PoolResponse.md +12 -11
- data/docs/PoolResponseAllOf.md +1 -1
- data/docs/PoolResponseCommon.md +15 -0
- data/docs/{Pool.md → PoolResponsePost.md} +14 -7
- data/docs/PoolResponsePostAllOf.md +10 -0
- data/docs/RequestSettingsAdditional.md +15 -0
- data/docs/RequestSettingsApi.md +10 -10
- data/docs/RequestSettingsResponse.md +11 -11
- data/docs/RequestSettingsResponseAllOf.md +15 -0
- data/docs/ResponseObject.md +1 -1
- data/docs/ResponseObjectResponse.md +2 -2
- data/docs/SecretStoreApi.md +3 -3
- data/docs/ServiceIdAndVersionString.md +11 -0
- data/docs/TlsCommonResponse.md +14 -0
- data/docs/{TlsCommon.md → TlsCommonResponseAllOf.md} +1 -2
- data/docs/TlsCommonResponseAllOf1.md +10 -0
- data/docs/TlsDomainsApi.md +2 -2
- data/docs/TlsSubscriptionsApi.md +4 -4
- data/lib/fastly/api/backend_api.rb +16 -0
- data/lib/fastly/api/cache_settings_api.rb +8 -8
- data/lib/fastly/api/domain_api.rb +3 -3
- data/lib/fastly/api/header_api.rb +12 -12
- data/lib/fastly/api/logging_azureblob_api.rb +12 -12
- data/lib/fastly/api/logging_bigquery_api.rb +6 -6
- data/lib/fastly/api/logging_cloudfiles_api.rb +12 -12
- data/lib/fastly/api/logging_datadog_api.rb +6 -6
- data/lib/fastly/api/logging_digitalocean_api.rb +12 -12
- data/lib/fastly/api/logging_elasticsearch_api.rb +6 -6
- data/lib/fastly/api/logging_ftp_api.rb +18 -18
- data/lib/fastly/api/logging_gcs_api.rb +12 -12
- data/lib/fastly/api/logging_heroku_api.rb +6 -6
- data/lib/fastly/api/logging_honeycomb_api.rb +12 -12
- data/lib/fastly/api/logging_https_api.rb +6 -6
- data/lib/fastly/api/logging_kafka_api.rb +6 -6
- data/lib/fastly/api/logging_kinesis_api.rb +7 -3
- data/lib/fastly/api/logging_logentries_api.rb +6 -6
- data/lib/fastly/api/logging_loggly_api.rb +6 -6
- data/lib/fastly/api/logging_logshuttle_api.rb +6 -6
- data/lib/fastly/api/logging_newrelic_api.rb +6 -6
- data/lib/fastly/api/logging_newrelicotlp_api.rb +473 -0
- data/lib/fastly/api/logging_openstack_api.rb +12 -12
- data/lib/fastly/api/logging_papertrail_api.rb +6 -6
- data/lib/fastly/api/logging_pubsub_api.rb +6 -6
- data/lib/fastly/api/logging_s3_api.rb +12 -12
- data/lib/fastly/api/logging_scalyr_api.rb +6 -6
- data/lib/fastly/api/logging_sftp_api.rb +12 -12
- data/lib/fastly/api/logging_splunk_api.rb +6 -6
- data/lib/fastly/api/logging_sumologic_api.rb +6 -6
- data/lib/fastly/api/logging_syslog_api.rb +6 -6
- data/lib/fastly/api/pool_api.rb +77 -41
- data/lib/fastly/api/rate_limiter_api.rb +2 -2
- data/lib/fastly/api/request_settings_api.rb +15 -15
- data/lib/fastly/api/secret_store_api.rb +2 -2
- data/lib/fastly/api/tls_domains_api.rb +2 -2
- data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
- data/lib/fastly/configuration.rb +30 -0
- data/lib/fastly/models/backend.rb +29 -1
- data/lib/fastly/models/backend_response.rb +29 -1
- data/lib/fastly/models/cache_setting.rb +2 -2
- data/lib/fastly/models/cache_setting_response.rb +4 -4
- data/lib/fastly/models/gzip_response.rb +2 -2
- data/lib/fastly/models/header.rb +1 -23
- data/lib/fastly/models/header_response.rb +26 -25
- data/lib/fastly/models/header_response_additional.rb +229 -0
- data/lib/fastly/models/{logging_azureblob_all_of.rb → logging_azureblob_additional.rb} +3 -3
- data/lib/fastly/models/logging_azureblob_response.rb +82 -80
- data/lib/fastly/models/{logging_bigquery_all_of.rb → logging_bigquery_additional.rb} +3 -3
- data/lib/fastly/models/logging_bigquery_response.rb +20 -18
- data/lib/fastly/models/{logging_cloudfiles_all_of.rb → logging_cloudfiles_additional.rb} +3 -3
- data/lib/fastly/models/logging_cloudfiles_response.rb +83 -81
- data/lib/fastly/models/logging_common.rb +1 -25
- data/lib/fastly/models/{logging_loggly.rb → logging_common_response.rb} +17 -27
- data/lib/fastly/models/{logging_logshuttle.rb → logging_common_response_all_of.rb} +7 -60
- data/lib/fastly/models/logging_common_response_all_of1.rb +253 -0
- data/lib/fastly/models/{logging_datadog_all_of.rb → logging_datadog_additional.rb} +3 -3
- data/lib/fastly/models/logging_datadog_response.rb +19 -18
- data/lib/fastly/models/{logging_digitalocean_all_of.rb → logging_digitalocean_additional.rb} +3 -3
- data/lib/fastly/models/logging_digitalocean_response.rb +82 -80
- data/lib/fastly/models/{logging_elasticsearch_all_of.rb → logging_elasticsearch_additional.rb} +3 -3
- data/lib/fastly/models/logging_elasticsearch_response.rb +21 -18
- data/lib/fastly/models/logging_format_version_integer.rb +253 -0
- data/lib/fastly/models/logging_format_version_string.rb +253 -0
- data/lib/fastly/models/{logging_ftp_all_of.rb → logging_ftp_additional.rb} +4 -16
- data/lib/fastly/models/logging_ftp_response.rb +88 -85
- data/lib/fastly/models/logging_ftp_response_all_of.rb +219 -0
- data/lib/fastly/models/{logging_gcs_all_of.rb → logging_gcs_additional.rb} +3 -3
- data/lib/fastly/models/logging_gcs_response.rb +80 -77
- data/lib/fastly/models/logging_generic_common.rb +1 -25
- data/lib/fastly/models/{logging_sumologic.rb → logging_generic_common_response.rb} +60 -80
- data/lib/fastly/models/logging_generic_common_response_all_of.rb +286 -0
- data/lib/fastly/models/logging_generic_common_response_all_of1.rb +231 -0
- data/lib/fastly/models/{logging_google_pubsub_all_of.rb → logging_google_pubsub_additional.rb} +3 -3
- data/lib/fastly/models/logging_google_pubsub_response.rb +20 -18
- data/lib/fastly/models/{logging_heroku_all_of.rb → logging_heroku_additional.rb} +3 -3
- data/lib/fastly/models/logging_heroku_response.rb +19 -18
- data/lib/fastly/models/{logging_honeycomb_all_of.rb → logging_honeycomb_additional.rb} +3 -3
- data/lib/fastly/models/logging_honeycomb_response.rb +19 -18
- data/lib/fastly/models/{logging_https_all_of.rb → logging_https_additional.rb} +3 -3
- data/lib/fastly/models/logging_https_response.rb +21 -18
- data/lib/fastly/models/{logging_kafka_all_of.rb → logging_kafka_additional.rb} +3 -3
- data/lib/fastly/models/logging_kafka_response.rb +71 -69
- data/lib/fastly/models/{logging_kafka.rb → logging_kafka_response_post.rb} +72 -18
- data/lib/fastly/models/{logging_kinesis.rb → logging_kinesis_additional.rb} +4 -15
- data/lib/fastly/models/logging_kinesis_response.rb +51 -15
- data/lib/fastly/models/{logging_logentries_all_of.rb → logging_logentries_additional.rb} +3 -3
- data/lib/fastly/models/logging_logentries_response.rb +19 -18
- data/lib/fastly/models/{logging_loggly_all_of.rb → logging_loggly_additional.rb} +3 -3
- data/lib/fastly/models/logging_loggly_response.rb +19 -18
- data/lib/fastly/models/{logging_logshuttle_all_of.rb → logging_logshuttle_additional.rb} +3 -3
- data/lib/fastly/models/logging_logshuttle_response.rb +19 -18
- data/lib/fastly/models/{logging_newrelic_all_of.rb → logging_newrelic_additional.rb} +3 -3
- data/lib/fastly/models/logging_newrelic_response.rb +19 -18
- data/lib/fastly/models/logging_newrelicotlp_additional.rb +288 -0
- data/lib/fastly/models/{logging_newrelic.rb → logging_newrelicotlp_response.rb} +90 -24
- data/lib/fastly/models/{logging_openstack_all_of.rb → logging_openstack_additional.rb} +3 -3
- data/lib/fastly/models/logging_openstack_response.rb +82 -80
- data/lib/fastly/models/logging_papertrail_response.rb +19 -18
- data/lib/fastly/models/{logging_s3_all_of.rb → logging_s3_additional.rb} +3 -3
- data/lib/fastly/models/logging_s3_response.rb +84 -82
- data/lib/fastly/models/{logging_scalyr_all_of.rb → logging_scalyr_additional.rb} +3 -3
- data/lib/fastly/models/logging_scalyr_response.rb +19 -18
- data/lib/fastly/models/{logging_sftp_all_of.rb → logging_sftp_additional.rb} +4 -16
- data/lib/fastly/models/logging_sftp_response.rb +97 -94
- data/lib/fastly/models/{domain_check_item.rb → logging_sftp_response_all_of.rb} +44 -40
- data/lib/fastly/models/{logging_splunk_all_of.rb → logging_splunk_additional.rb} +3 -3
- data/lib/fastly/models/logging_splunk_response.rb +21 -18
- data/lib/fastly/models/{logging_sumologic_all_of.rb → logging_sumologic_additional.rb} +3 -3
- data/lib/fastly/models/logging_sumologic_response.rb +19 -18
- data/lib/fastly/models/{logging_syslog_all_of.rb → logging_syslog_additional.rb} +3 -3
- data/lib/fastly/models/logging_syslog_response.rb +21 -18
- data/lib/fastly/models/{pool_all_of.rb → pool_additional.rb} +4 -83
- data/lib/fastly/models/pool_response.rb +113 -125
- data/lib/fastly/models/pool_response_all_of.rb +10 -7
- data/lib/fastly/models/pool_response_common.rb +269 -0
- data/lib/fastly/models/{pool.rb → pool_response_post.rb} +142 -92
- data/lib/fastly/models/pool_response_post_all_of.rb +219 -0
- data/lib/fastly/models/rate_limiter.rb +2 -2
- data/lib/fastly/models/rate_limiter_response.rb +2 -2
- data/lib/fastly/models/{request_settings.rb → request_settings_additional.rb} +4 -64
- data/lib/fastly/models/request_settings_response.rb +96 -95
- data/lib/fastly/models/request_settings_response_all_of.rb +267 -0
- data/lib/fastly/models/response_object.rb +2 -2
- data/lib/fastly/models/response_object_response.rb +4 -4
- data/lib/fastly/models/{tls_subscription_response_data_all_of.rb → service_id_and_version_string.rb} +16 -16
- data/lib/fastly/models/{tls_common.rb → tls_common_response.rb} +15 -7
- data/lib/fastly/models/tls_common_response_all_of.rb +259 -0
- data/lib/fastly/models/tls_common_response_all_of1.rb +253 -0
- data/lib/fastly/models/tls_subscription_response_data.rb +0 -7
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +50 -57
- data/sig.json +1 -1
- metadata +102 -116
- data/docs/DomainCheckItem.md +0 -11
- data/docs/LoggingAzureblob.md +0 -25
- data/docs/LoggingBigquery.md +0 -21
- data/docs/LoggingCloudfiles.md +0 -25
- data/docs/LoggingDatadog.md +0 -16
- data/docs/LoggingDigitalocean.md +0 -25
- data/docs/LoggingElasticsearch.md +0 -25
- data/docs/LoggingFtp.md +0 -27
- data/docs/LoggingGcs.md +0 -26
- data/docs/LoggingGooglePubsub.md +0 -19
- data/docs/LoggingHeroku.md +0 -16
- data/docs/LoggingHoneycomb.md +0 -16
- data/docs/LoggingHttps.md +0 -27
- data/docs/LoggingLogentries.md +0 -18
- data/docs/LoggingLoggly.md +0 -15
- data/docs/LoggingNewrelic.md +0 -16
- data/docs/LoggingOpenstack.md +0 -25
- data/docs/LoggingS3.md +0 -30
- data/docs/LoggingScalyr.md +0 -17
- data/docs/LoggingSftp.md +0 -27
- data/docs/LoggingSplunk.md +0 -23
- data/docs/LoggingSumologic.md +0 -16
- data/docs/LoggingSyslog.md +0 -25
- data/docs/RequestSettings.md +0 -21
- data/docs/TlsSubscriptionResponseDataAllOf.md +0 -11
- data/lib/fastly/models/logging_azureblob.rb +0 -480
- data/lib/fastly/models/logging_bigquery.rb +0 -387
- data/lib/fastly/models/logging_cloudfiles.rb +0 -478
- data/lib/fastly/models/logging_datadog.rb +0 -351
- data/lib/fastly/models/logging_digitalocean.rb +0 -467
- data/lib/fastly/models/logging_elasticsearch.rb +0 -446
- data/lib/fastly/models/logging_format_version.rb +0 -35
- data/lib/fastly/models/logging_ftp.rb +0 -484
- data/lib/fastly/models/logging_gcs.rb +0 -474
- data/lib/fastly/models/logging_google_pubsub.rb +0 -368
- data/lib/fastly/models/logging_heroku.rb +0 -337
- data/lib/fastly/models/logging_honeycomb.rb +0 -335
- data/lib/fastly/models/logging_https.rb +0 -501
- data/lib/fastly/models/logging_logentries.rb +0 -372
- data/lib/fastly/models/logging_openstack.rb +0 -465
- data/lib/fastly/models/logging_papertrail.rb +0 -339
- data/lib/fastly/models/logging_s3.rb +0 -527
- data/lib/fastly/models/logging_scalyr.rb +0 -363
- data/lib/fastly/models/logging_sftp.rb +0 -491
- data/lib/fastly/models/logging_splunk.rb +0 -426
- data/lib/fastly/models/logging_syslog.rb +0 -449
@@ -0,0 +1,269 @@
|
|
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 'date'
|
12
|
+
require 'time'
|
13
|
+
|
14
|
+
module Fastly
|
15
|
+
class PoolResponseCommon
|
16
|
+
# Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`.
|
17
|
+
attr_accessor :between_bytes_timeout
|
18
|
+
|
19
|
+
# How long to wait for a timeout in milliseconds.
|
20
|
+
attr_accessor :connect_timeout
|
21
|
+
|
22
|
+
# How long to wait for the first byte in milliseconds.
|
23
|
+
attr_accessor :first_byte_timeout
|
24
|
+
|
25
|
+
# Maximum number of connections.
|
26
|
+
attr_accessor :max_conn_default
|
27
|
+
|
28
|
+
# Be strict on checking TLS certs.
|
29
|
+
attr_accessor :tls_check_cert
|
30
|
+
|
31
|
+
attr_accessor :id
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'between_bytes_timeout' => :'between_bytes_timeout',
|
37
|
+
:'connect_timeout' => :'connect_timeout',
|
38
|
+
:'first_byte_timeout' => :'first_byte_timeout',
|
39
|
+
:'max_conn_default' => :'max_conn_default',
|
40
|
+
:'tls_check_cert' => :'tls_check_cert',
|
41
|
+
:'id' => :'id'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.fastly_types
|
52
|
+
{
|
53
|
+
:'between_bytes_timeout' => :'String',
|
54
|
+
:'connect_timeout' => :'String',
|
55
|
+
:'first_byte_timeout' => :'String',
|
56
|
+
:'max_conn_default' => :'String',
|
57
|
+
:'tls_check_cert' => :'String',
|
58
|
+
:'id' => :'String'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# List of attributes with nullable: true
|
63
|
+
def self.fastly_nullable
|
64
|
+
Set.new([
|
65
|
+
:'tls_check_cert',
|
66
|
+
])
|
67
|
+
end
|
68
|
+
|
69
|
+
# Initializes the object
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
+
def initialize(attributes = {})
|
72
|
+
if (!attributes.is_a?(Hash))
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::PoolResponseCommon` initialize method"
|
74
|
+
end
|
75
|
+
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::PoolResponseCommon`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
|
+
end
|
81
|
+
h[k.to_sym] = v
|
82
|
+
}
|
83
|
+
|
84
|
+
if attributes.key?(:'between_bytes_timeout')
|
85
|
+
self.between_bytes_timeout = attributes[:'between_bytes_timeout']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'connect_timeout')
|
89
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'first_byte_timeout')
|
93
|
+
self.first_byte_timeout = attributes[:'first_byte_timeout']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'max_conn_default')
|
97
|
+
self.max_conn_default = attributes[:'max_conn_default']
|
98
|
+
else
|
99
|
+
self.max_conn_default = '200'
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'tls_check_cert')
|
103
|
+
self.tls_check_cert = attributes[:'tls_check_cert']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'id')
|
107
|
+
self.id = attributes[:'id']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
+
# @return Array for valid properties with the reasons
|
113
|
+
def list_invalid_properties
|
114
|
+
invalid_properties = Array.new
|
115
|
+
invalid_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# Check to see if the all the properties in the model are valid
|
119
|
+
# @return true if the model is valid
|
120
|
+
def valid?
|
121
|
+
true
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
between_bytes_timeout == o.between_bytes_timeout &&
|
130
|
+
connect_timeout == o.connect_timeout &&
|
131
|
+
first_byte_timeout == o.first_byte_timeout &&
|
132
|
+
max_conn_default == o.max_conn_default &&
|
133
|
+
tls_check_cert == o.tls_check_cert &&
|
134
|
+
id == o.id
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Integer] Hash code
|
145
|
+
def hash
|
146
|
+
[between_bytes_timeout, connect_timeout, first_byte_timeout, max_conn_default, tls_check_cert, id].hash
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def self.build_from_hash(attributes)
|
153
|
+
new.build_from_hash(attributes)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
self.class.fastly_types.each_pair do |key, type|
|
162
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
163
|
+
self.send("#{key}=", nil)
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
169
|
+
end
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
# Deserializes the data based on type
|
179
|
+
# @param string type Data type
|
180
|
+
# @param string value Value to be deserialized
|
181
|
+
# @return [Object] Deserialized data
|
182
|
+
def _deserialize(type, value)
|
183
|
+
case type.to_sym
|
184
|
+
when :Time
|
185
|
+
Time.parse(value)
|
186
|
+
when :Date
|
187
|
+
Date.parse(value)
|
188
|
+
when :String
|
189
|
+
value.to_s
|
190
|
+
when :Integer
|
191
|
+
value.to_i
|
192
|
+
when :Float
|
193
|
+
value.to_f
|
194
|
+
when :Boolean
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
196
|
+
true
|
197
|
+
else
|
198
|
+
false
|
199
|
+
end
|
200
|
+
when :Object
|
201
|
+
# generic object (usually a Hash), return directly
|
202
|
+
value
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each do |k, v|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
else # model
|
215
|
+
# models (e.g. Pet) or oneOf
|
216
|
+
klass = Fastly.const_get(type)
|
217
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class PoolResponsePost
|
16
16
|
# A secure certificate to authenticate a server with. Must be in PEM format.
|
17
17
|
attr_accessor :tls_ca_cert
|
18
18
|
|
@@ -28,6 +28,19 @@ module Fastly
|
|
28
28
|
# Whether to use TLS.
|
29
29
|
attr_accessor :use_tls
|
30
30
|
|
31
|
+
# Date and time in ISO 8601 format.
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
34
|
+
# Date and time in ISO 8601 format.
|
35
|
+
attr_accessor :deleted_at
|
36
|
+
|
37
|
+
# Date and time in ISO 8601 format.
|
38
|
+
attr_accessor :updated_at
|
39
|
+
|
40
|
+
attr_accessor :service_id
|
41
|
+
|
42
|
+
attr_accessor :version
|
43
|
+
|
31
44
|
# Name for the Pool.
|
32
45
|
attr_accessor :name
|
33
46
|
|
@@ -37,27 +50,12 @@ module Fastly
|
|
37
50
|
# Condition which, if met, will select this configuration during a request. Optional.
|
38
51
|
attr_accessor :request_condition
|
39
52
|
|
40
|
-
# Maximum number of connections. Optional.
|
41
|
-
attr_accessor :max_conn_default
|
42
|
-
|
43
|
-
# How long to wait for a timeout in milliseconds. Optional.
|
44
|
-
attr_accessor :connect_timeout
|
45
|
-
|
46
|
-
# How long to wait for the first byte in milliseconds. Optional.
|
47
|
-
attr_accessor :first_byte_timeout
|
48
|
-
|
49
|
-
# Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
|
50
|
-
attr_accessor :quorum
|
51
|
-
|
52
53
|
# List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
|
53
54
|
attr_accessor :tls_ciphers
|
54
55
|
|
55
56
|
# SNI hostname. Optional.
|
56
57
|
attr_accessor :tls_sni_hostname
|
57
58
|
|
58
|
-
# Be strict on checking TLS certs. Optional.
|
59
|
-
attr_accessor :tls_check_cert
|
60
|
-
|
61
59
|
# Minimum allowed TLS version on connections to this server. Optional.
|
62
60
|
attr_accessor :min_tls_version
|
63
61
|
|
@@ -76,6 +74,26 @@ module Fastly
|
|
76
74
|
# The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting.
|
77
75
|
attr_accessor :override_host
|
78
76
|
|
77
|
+
# Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`.
|
78
|
+
attr_accessor :between_bytes_timeout
|
79
|
+
|
80
|
+
# How long to wait for a timeout in milliseconds.
|
81
|
+
attr_accessor :connect_timeout
|
82
|
+
|
83
|
+
# How long to wait for the first byte in milliseconds.
|
84
|
+
attr_accessor :first_byte_timeout
|
85
|
+
|
86
|
+
# Maximum number of connections.
|
87
|
+
attr_accessor :max_conn_default
|
88
|
+
|
89
|
+
# Be strict on checking TLS certs.
|
90
|
+
attr_accessor :tls_check_cert
|
91
|
+
|
92
|
+
attr_accessor :id
|
93
|
+
|
94
|
+
# Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
|
95
|
+
attr_accessor :quorum
|
96
|
+
|
79
97
|
class EnumAttributeValidator
|
80
98
|
attr_reader :datatype
|
81
99
|
attr_reader :allowable_values
|
@@ -106,22 +124,29 @@ module Fastly
|
|
106
124
|
:'tls_client_key' => :'tls_client_key',
|
107
125
|
:'tls_cert_hostname' => :'tls_cert_hostname',
|
108
126
|
:'use_tls' => :'use_tls',
|
127
|
+
:'created_at' => :'created_at',
|
128
|
+
:'deleted_at' => :'deleted_at',
|
129
|
+
:'updated_at' => :'updated_at',
|
130
|
+
:'service_id' => :'service_id',
|
131
|
+
:'version' => :'version',
|
109
132
|
:'name' => :'name',
|
110
133
|
:'shield' => :'shield',
|
111
134
|
:'request_condition' => :'request_condition',
|
112
|
-
:'max_conn_default' => :'max_conn_default',
|
113
|
-
:'connect_timeout' => :'connect_timeout',
|
114
|
-
:'first_byte_timeout' => :'first_byte_timeout',
|
115
|
-
:'quorum' => :'quorum',
|
116
135
|
:'tls_ciphers' => :'tls_ciphers',
|
117
136
|
:'tls_sni_hostname' => :'tls_sni_hostname',
|
118
|
-
:'tls_check_cert' => :'tls_check_cert',
|
119
137
|
:'min_tls_version' => :'min_tls_version',
|
120
138
|
:'max_tls_version' => :'max_tls_version',
|
121
139
|
:'healthcheck' => :'healthcheck',
|
122
140
|
:'comment' => :'comment',
|
123
141
|
:'type' => :'type',
|
124
|
-
:'override_host' => :'override_host'
|
142
|
+
:'override_host' => :'override_host',
|
143
|
+
:'between_bytes_timeout' => :'between_bytes_timeout',
|
144
|
+
:'connect_timeout' => :'connect_timeout',
|
145
|
+
:'first_byte_timeout' => :'first_byte_timeout',
|
146
|
+
:'max_conn_default' => :'max_conn_default',
|
147
|
+
:'tls_check_cert' => :'tls_check_cert',
|
148
|
+
:'id' => :'id',
|
149
|
+
:'quorum' => :'quorum'
|
125
150
|
}
|
126
151
|
end
|
127
152
|
|
@@ -137,23 +162,30 @@ module Fastly
|
|
137
162
|
:'tls_client_cert' => :'String',
|
138
163
|
:'tls_client_key' => :'String',
|
139
164
|
:'tls_cert_hostname' => :'String',
|
140
|
-
:'use_tls' => :'
|
165
|
+
:'use_tls' => :'String',
|
166
|
+
:'created_at' => :'Time',
|
167
|
+
:'deleted_at' => :'Time',
|
168
|
+
:'updated_at' => :'Time',
|
169
|
+
:'service_id' => :'String',
|
170
|
+
:'version' => :'String',
|
141
171
|
:'name' => :'String',
|
142
172
|
:'shield' => :'String',
|
143
173
|
:'request_condition' => :'String',
|
144
|
-
:'max_conn_default' => :'Integer',
|
145
|
-
:'connect_timeout' => :'Integer',
|
146
|
-
:'first_byte_timeout' => :'Integer',
|
147
|
-
:'quorum' => :'Integer',
|
148
174
|
:'tls_ciphers' => :'String',
|
149
175
|
:'tls_sni_hostname' => :'String',
|
150
|
-
:'tls_check_cert' => :'Integer',
|
151
176
|
:'min_tls_version' => :'Integer',
|
152
177
|
:'max_tls_version' => :'Integer',
|
153
178
|
:'healthcheck' => :'String',
|
154
179
|
:'comment' => :'String',
|
155
180
|
:'type' => :'String',
|
156
|
-
:'override_host' => :'String'
|
181
|
+
:'override_host' => :'String',
|
182
|
+
:'between_bytes_timeout' => :'String',
|
183
|
+
:'connect_timeout' => :'String',
|
184
|
+
:'first_byte_timeout' => :'String',
|
185
|
+
:'max_conn_default' => :'String',
|
186
|
+
:'tls_check_cert' => :'String',
|
187
|
+
:'id' => :'String',
|
188
|
+
:'quorum' => :'Integer'
|
157
189
|
}
|
158
190
|
end
|
159
191
|
|
@@ -164,24 +196,31 @@ module Fastly
|
|
164
196
|
:'tls_client_cert',
|
165
197
|
:'tls_client_key',
|
166
198
|
:'tls_cert_hostname',
|
199
|
+
:'created_at',
|
200
|
+
:'deleted_at',
|
201
|
+
:'updated_at',
|
167
202
|
:'shield',
|
168
203
|
:'request_condition',
|
169
204
|
:'tls_ciphers',
|
170
205
|
:'tls_sni_hostname',
|
171
|
-
:'tls_check_cert',
|
172
206
|
:'min_tls_version',
|
173
207
|
:'max_tls_version',
|
174
208
|
:'healthcheck',
|
175
209
|
:'comment',
|
176
|
-
:'override_host'
|
210
|
+
:'override_host',
|
211
|
+
:'tls_check_cert',
|
177
212
|
])
|
178
213
|
end
|
179
214
|
|
180
215
|
# List of class defined in allOf (OpenAPI v3)
|
181
216
|
def self.fastly_all_of
|
182
217
|
[
|
183
|
-
:'
|
184
|
-
:'
|
218
|
+
:'PoolAdditional',
|
219
|
+
:'PoolResponseCommon',
|
220
|
+
:'PoolResponsePostAllOf',
|
221
|
+
:'ServiceIdAndVersionString',
|
222
|
+
:'Timestamps',
|
223
|
+
:'TlsCommonResponse'
|
185
224
|
]
|
186
225
|
end
|
187
226
|
|
@@ -189,13 +228,13 @@ module Fastly
|
|
189
228
|
# @param [Hash] attributes Model attributes in the form of hash
|
190
229
|
def initialize(attributes = {})
|
191
230
|
if (!attributes.is_a?(Hash))
|
192
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
231
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::PoolResponsePost` initialize method"
|
193
232
|
end
|
194
233
|
|
195
234
|
# check to see if the attribute exists and convert string to symbol for hash key
|
196
235
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
197
236
|
if (!self.class.attribute_map.key?(k.to_sym))
|
198
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
237
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::PoolResponsePost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
199
238
|
end
|
200
239
|
h[k.to_sym] = v
|
201
240
|
}
|
@@ -227,41 +266,41 @@ module Fastly
|
|
227
266
|
if attributes.key?(:'use_tls')
|
228
267
|
self.use_tls = attributes[:'use_tls']
|
229
268
|
else
|
230
|
-
self.use_tls =
|
269
|
+
self.use_tls = '0'
|
231
270
|
end
|
232
271
|
|
233
|
-
if attributes.key?(:'
|
234
|
-
self.
|
272
|
+
if attributes.key?(:'created_at')
|
273
|
+
self.created_at = attributes[:'created_at']
|
235
274
|
end
|
236
275
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
239
|
-
else
|
240
|
-
self.shield = 'null'
|
276
|
+
if attributes.key?(:'deleted_at')
|
277
|
+
self.deleted_at = attributes[:'deleted_at']
|
241
278
|
end
|
242
279
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
self.
|
280
|
+
if attributes.key?(:'updated_at')
|
281
|
+
self.updated_at = attributes[:'updated_at']
|
245
282
|
end
|
246
283
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
249
|
-
else
|
250
|
-
self.max_conn_default = 200
|
284
|
+
if attributes.key?(:'service_id')
|
285
|
+
self.service_id = attributes[:'service_id']
|
251
286
|
end
|
252
287
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
288
|
+
if attributes.key?(:'version')
|
289
|
+
self.version = attributes[:'version']
|
255
290
|
end
|
256
291
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
292
|
+
if attributes.key?(:'name')
|
293
|
+
self.name = attributes[:'name']
|
259
294
|
end
|
260
295
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
296
|
+
if attributes.key?(:'shield')
|
297
|
+
self.shield = attributes[:'shield']
|
263
298
|
else
|
264
|
-
self.
|
299
|
+
self.shield = 'null'
|
300
|
+
end
|
301
|
+
|
302
|
+
if attributes.key?(:'request_condition')
|
303
|
+
self.request_condition = attributes[:'request_condition']
|
265
304
|
end
|
266
305
|
|
267
306
|
if attributes.key?(:'tls_ciphers')
|
@@ -272,10 +311,6 @@ module Fastly
|
|
272
311
|
self.tls_sni_hostname = attributes[:'tls_sni_hostname']
|
273
312
|
end
|
274
313
|
|
275
|
-
if attributes.key?(:'tls_check_cert')
|
276
|
-
self.tls_check_cert = attributes[:'tls_check_cert']
|
277
|
-
end
|
278
|
-
|
279
314
|
if attributes.key?(:'min_tls_version')
|
280
315
|
self.min_tls_version = attributes[:'min_tls_version']
|
281
316
|
end
|
@@ -301,30 +336,52 @@ module Fastly
|
|
301
336
|
else
|
302
337
|
self.override_host = 'null'
|
303
338
|
end
|
339
|
+
|
340
|
+
if attributes.key?(:'between_bytes_timeout')
|
341
|
+
self.between_bytes_timeout = attributes[:'between_bytes_timeout']
|
342
|
+
end
|
343
|
+
|
344
|
+
if attributes.key?(:'connect_timeout')
|
345
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
346
|
+
end
|
347
|
+
|
348
|
+
if attributes.key?(:'first_byte_timeout')
|
349
|
+
self.first_byte_timeout = attributes[:'first_byte_timeout']
|
350
|
+
end
|
351
|
+
|
352
|
+
if attributes.key?(:'max_conn_default')
|
353
|
+
self.max_conn_default = attributes[:'max_conn_default']
|
354
|
+
else
|
355
|
+
self.max_conn_default = '200'
|
356
|
+
end
|
357
|
+
|
358
|
+
if attributes.key?(:'tls_check_cert')
|
359
|
+
self.tls_check_cert = attributes[:'tls_check_cert']
|
360
|
+
end
|
361
|
+
|
362
|
+
if attributes.key?(:'id')
|
363
|
+
self.id = attributes[:'id']
|
364
|
+
end
|
365
|
+
|
366
|
+
if attributes.key?(:'quorum')
|
367
|
+
self.quorum = attributes[:'quorum']
|
368
|
+
else
|
369
|
+
self.quorum = 75
|
370
|
+
end
|
304
371
|
end
|
305
372
|
|
306
373
|
# Show invalid properties with the reasons. Usually used together with valid?
|
307
374
|
# @return Array for valid properties with the reasons
|
308
375
|
def list_invalid_properties
|
309
376
|
invalid_properties = Array.new
|
310
|
-
if !@quorum.nil? && @quorum > 100
|
311
|
-
invalid_properties.push('invalid value for "quorum", must be smaller than or equal to 100.')
|
312
|
-
end
|
313
|
-
|
314
|
-
if !@quorum.nil? && @quorum < 0
|
315
|
-
invalid_properties.push('invalid value for "quorum", must be greater than or equal to 0.')
|
316
|
-
end
|
317
|
-
|
318
377
|
invalid_properties
|
319
378
|
end
|
320
379
|
|
321
380
|
# Check to see if the all the properties in the model are valid
|
322
381
|
# @return true if the model is valid
|
323
382
|
def valid?
|
324
|
-
use_tls_validator = EnumAttributeValidator.new('
|
383
|
+
use_tls_validator = EnumAttributeValidator.new('String', ["0", "1"])
|
325
384
|
return false unless use_tls_validator.valid?(@use_tls)
|
326
|
-
return false if !@quorum.nil? && @quorum > 100
|
327
|
-
return false if !@quorum.nil? && @quorum < 0
|
328
385
|
type_validator = EnumAttributeValidator.new('String', ["random", "hash", "client"])
|
329
386
|
return false unless type_validator.valid?(@type)
|
330
387
|
true
|
@@ -333,27 +390,13 @@ module Fastly
|
|
333
390
|
# Custom attribute writer method checking allowed values (enum).
|
334
391
|
# @param [Object] use_tls Object to be assigned
|
335
392
|
def use_tls=(use_tls)
|
336
|
-
validator = EnumAttributeValidator.new('
|
393
|
+
validator = EnumAttributeValidator.new('String', ["0", "1"])
|
337
394
|
unless validator.valid?(use_tls)
|
338
395
|
fail ArgumentError, "invalid value for \"use_tls\", must be one of #{validator.allowable_values}."
|
339
396
|
end
|
340
397
|
@use_tls = use_tls
|
341
398
|
end
|
342
399
|
|
343
|
-
# Custom attribute writer method with validation
|
344
|
-
# @param [Object] quorum Value to be assigned
|
345
|
-
def quorum=(quorum)
|
346
|
-
if !quorum.nil? && quorum > 100
|
347
|
-
fail ArgumentError, 'invalid value for "quorum", must be smaller than or equal to 100.'
|
348
|
-
end
|
349
|
-
|
350
|
-
if !quorum.nil? && quorum < 0
|
351
|
-
fail ArgumentError, 'invalid value for "quorum", must be greater than or equal to 0.'
|
352
|
-
end
|
353
|
-
|
354
|
-
@quorum = quorum
|
355
|
-
end
|
356
|
-
|
357
400
|
# Custom attribute writer method checking allowed values (enum).
|
358
401
|
# @param [Object] type Object to be assigned
|
359
402
|
def type=(type)
|
@@ -374,22 +417,29 @@ module Fastly
|
|
374
417
|
tls_client_key == o.tls_client_key &&
|
375
418
|
tls_cert_hostname == o.tls_cert_hostname &&
|
376
419
|
use_tls == o.use_tls &&
|
420
|
+
created_at == o.created_at &&
|
421
|
+
deleted_at == o.deleted_at &&
|
422
|
+
updated_at == o.updated_at &&
|
423
|
+
service_id == o.service_id &&
|
424
|
+
version == o.version &&
|
377
425
|
name == o.name &&
|
378
426
|
shield == o.shield &&
|
379
427
|
request_condition == o.request_condition &&
|
380
|
-
max_conn_default == o.max_conn_default &&
|
381
|
-
connect_timeout == o.connect_timeout &&
|
382
|
-
first_byte_timeout == o.first_byte_timeout &&
|
383
|
-
quorum == o.quorum &&
|
384
428
|
tls_ciphers == o.tls_ciphers &&
|
385
429
|
tls_sni_hostname == o.tls_sni_hostname &&
|
386
|
-
tls_check_cert == o.tls_check_cert &&
|
387
430
|
min_tls_version == o.min_tls_version &&
|
388
431
|
max_tls_version == o.max_tls_version &&
|
389
432
|
healthcheck == o.healthcheck &&
|
390
433
|
comment == o.comment &&
|
391
434
|
type == o.type &&
|
392
|
-
override_host == o.override_host
|
435
|
+
override_host == o.override_host &&
|
436
|
+
between_bytes_timeout == o.between_bytes_timeout &&
|
437
|
+
connect_timeout == o.connect_timeout &&
|
438
|
+
first_byte_timeout == o.first_byte_timeout &&
|
439
|
+
max_conn_default == o.max_conn_default &&
|
440
|
+
tls_check_cert == o.tls_check_cert &&
|
441
|
+
id == o.id &&
|
442
|
+
quorum == o.quorum
|
393
443
|
end
|
394
444
|
|
395
445
|
# @see the `==` method
|
@@ -401,7 +451,7 @@ module Fastly
|
|
401
451
|
# Calculates hash code according to all attributes.
|
402
452
|
# @return [Integer] Hash code
|
403
453
|
def hash
|
404
|
-
[tls_ca_cert, tls_client_cert, tls_client_key, tls_cert_hostname, use_tls,
|
454
|
+
[tls_ca_cert, tls_client_cert, tls_client_key, tls_cert_hostname, use_tls, created_at, deleted_at, updated_at, service_id, version, name, shield, request_condition, tls_ciphers, tls_sni_hostname, min_tls_version, max_tls_version, healthcheck, comment, type, override_host, between_bytes_timeout, connect_timeout, first_byte_timeout, max_conn_default, tls_check_cert, id, quorum].hash
|
405
455
|
end
|
406
456
|
|
407
457
|
# Builds the object from hash
|