fastly 6.0.2 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -19,35 +19,36 @@ module Fastly
|
|
19
19
|
# Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
|
20
20
|
attr_accessor :placement
|
21
21
|
|
22
|
-
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
23
|
-
attr_accessor :format_version
|
24
|
-
|
25
22
|
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
26
23
|
attr_accessor :response_condition
|
27
24
|
|
28
25
|
# A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
|
29
26
|
attr_accessor :format
|
30
27
|
|
28
|
+
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
29
|
+
attr_accessor :format_version
|
30
|
+
|
31
31
|
# How the message should be formatted.
|
32
32
|
attr_accessor :message_type
|
33
33
|
|
34
34
|
# A timestamp format
|
35
35
|
attr_accessor :timestamp_format
|
36
36
|
|
37
|
-
# How frequently log files are finalized so they can be available for reading (in seconds).
|
38
|
-
attr_accessor :period
|
39
|
-
|
40
|
-
# The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
41
|
-
attr_accessor :gzip_level
|
42
|
-
|
43
37
|
# The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
44
38
|
attr_accessor :compression_codec
|
45
39
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
40
|
+
# Date and time in ISO 8601 format.
|
41
|
+
attr_accessor :created_at
|
48
42
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
43
|
+
# Date and time in ISO 8601 format.
|
44
|
+
attr_accessor :deleted_at
|
45
|
+
|
46
|
+
# Date and time in ISO 8601 format.
|
47
|
+
attr_accessor :updated_at
|
48
|
+
|
49
|
+
attr_accessor :service_id
|
50
|
+
|
51
|
+
attr_accessor :version
|
51
52
|
|
52
53
|
# The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.
|
53
54
|
attr_accessor :password
|
@@ -67,18 +68,17 @@ module Fastly
|
|
67
68
|
# The username for the server.
|
68
69
|
attr_accessor :user
|
69
70
|
|
70
|
-
#
|
71
|
-
attr_accessor :
|
72
|
-
|
73
|
-
# Date and time in ISO 8601 format.
|
74
|
-
attr_accessor :deleted_at
|
71
|
+
# A hostname or IPv4 address.
|
72
|
+
attr_accessor :address
|
75
73
|
|
76
|
-
#
|
77
|
-
attr_accessor :
|
74
|
+
# The port number.
|
75
|
+
attr_accessor :port
|
78
76
|
|
79
|
-
|
77
|
+
# How frequently log files are finalized so they can be available for reading (in seconds).
|
78
|
+
attr_accessor :period
|
80
79
|
|
81
|
-
|
80
|
+
# The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
81
|
+
attr_accessor :gzip_level
|
82
82
|
|
83
83
|
class EnumAttributeValidator
|
84
84
|
attr_reader :datatype
|
@@ -107,27 +107,27 @@ module Fastly
|
|
107
107
|
{
|
108
108
|
:'name' => :'name',
|
109
109
|
:'placement' => :'placement',
|
110
|
-
:'format_version' => :'format_version',
|
111
110
|
:'response_condition' => :'response_condition',
|
112
111
|
:'format' => :'format',
|
112
|
+
:'format_version' => :'format_version',
|
113
113
|
:'message_type' => :'message_type',
|
114
114
|
:'timestamp_format' => :'timestamp_format',
|
115
|
-
:'period' => :'period',
|
116
|
-
:'gzip_level' => :'gzip_level',
|
117
115
|
:'compression_codec' => :'compression_codec',
|
118
|
-
:'
|
119
|
-
:'
|
116
|
+
:'created_at' => :'created_at',
|
117
|
+
:'deleted_at' => :'deleted_at',
|
118
|
+
:'updated_at' => :'updated_at',
|
119
|
+
:'service_id' => :'service_id',
|
120
|
+
:'version' => :'version',
|
120
121
|
:'password' => :'password',
|
121
122
|
:'path' => :'path',
|
122
123
|
:'public_key' => :'public_key',
|
123
124
|
:'secret_key' => :'secret_key',
|
124
125
|
:'ssh_known_hosts' => :'ssh_known_hosts',
|
125
126
|
:'user' => :'user',
|
126
|
-
:'
|
127
|
-
:'
|
128
|
-
:'
|
129
|
-
:'
|
130
|
-
:'version' => :'version'
|
127
|
+
:'address' => :'address',
|
128
|
+
:'port' => :'port',
|
129
|
+
:'period' => :'period',
|
130
|
+
:'gzip_level' => :'gzip_level'
|
131
131
|
}
|
132
132
|
end
|
133
133
|
|
@@ -141,27 +141,27 @@ module Fastly
|
|
141
141
|
{
|
142
142
|
:'name' => :'String',
|
143
143
|
:'placement' => :'String',
|
144
|
-
:'format_version' => :'Integer',
|
145
144
|
:'response_condition' => :'String',
|
146
145
|
:'format' => :'String',
|
146
|
+
:'format_version' => :'String',
|
147
147
|
:'message_type' => :'String',
|
148
148
|
:'timestamp_format' => :'String',
|
149
|
-
:'period' => :'Integer',
|
150
|
-
:'gzip_level' => :'Integer',
|
151
149
|
:'compression_codec' => :'String',
|
152
|
-
:'
|
153
|
-
:'
|
150
|
+
:'created_at' => :'Time',
|
151
|
+
:'deleted_at' => :'Time',
|
152
|
+
:'updated_at' => :'Time',
|
153
|
+
:'service_id' => :'String',
|
154
|
+
:'version' => :'String',
|
154
155
|
:'password' => :'String',
|
155
156
|
:'path' => :'String',
|
156
157
|
:'public_key' => :'String',
|
157
158
|
:'secret_key' => :'String',
|
158
159
|
:'ssh_known_hosts' => :'String',
|
159
160
|
:'user' => :'String',
|
160
|
-
:'
|
161
|
-
:'
|
162
|
-
:'
|
163
|
-
:'
|
164
|
-
:'version' => :'Integer'
|
161
|
+
:'address' => :'String',
|
162
|
+
:'port' => :'String',
|
163
|
+
:'period' => :'String',
|
164
|
+
:'gzip_level' => :'Integer'
|
165
165
|
}
|
166
166
|
end
|
167
167
|
|
@@ -171,20 +171,23 @@ module Fastly
|
|
171
171
|
:'placement',
|
172
172
|
:'response_condition',
|
173
173
|
:'timestamp_format',
|
174
|
-
:'path',
|
175
|
-
:'public_key',
|
176
|
-
:'secret_key',
|
177
174
|
:'created_at',
|
178
175
|
:'deleted_at',
|
179
176
|
:'updated_at',
|
177
|
+
:'path',
|
178
|
+
:'public_key',
|
179
|
+
:'secret_key',
|
180
180
|
])
|
181
181
|
end
|
182
182
|
|
183
183
|
# List of class defined in allOf (OpenAPI v3)
|
184
184
|
def self.fastly_all_of
|
185
185
|
[
|
186
|
-
:'
|
187
|
-
:'
|
186
|
+
:'LoggingCommonResponse',
|
187
|
+
:'LoggingGenericCommon',
|
188
|
+
:'LoggingSftpAdditional',
|
189
|
+
:'LoggingSftpResponseAllOf',
|
190
|
+
:'ServiceIdAndVersionString',
|
188
191
|
:'Timestamps'
|
189
192
|
]
|
190
193
|
end
|
@@ -212,12 +215,6 @@ module Fastly
|
|
212
215
|
self.placement = attributes[:'placement']
|
213
216
|
end
|
214
217
|
|
215
|
-
if attributes.key?(:'format_version')
|
216
|
-
self.format_version = attributes[:'format_version']
|
217
|
-
else
|
218
|
-
self.format_version = FORMAT_VERSION::v2
|
219
|
-
end
|
220
|
-
|
221
218
|
if attributes.key?(:'response_condition')
|
222
219
|
self.response_condition = attributes[:'response_condition']
|
223
220
|
end
|
@@ -228,6 +225,12 @@ module Fastly
|
|
228
225
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
229
226
|
end
|
230
227
|
|
228
|
+
if attributes.key?(:'format_version')
|
229
|
+
self.format_version = attributes[:'format_version']
|
230
|
+
else
|
231
|
+
self.format_version = '2'
|
232
|
+
end
|
233
|
+
|
231
234
|
if attributes.key?(:'message_type')
|
232
235
|
self.message_type = attributes[:'message_type']
|
233
236
|
else
|
@@ -238,30 +241,28 @@ module Fastly
|
|
238
241
|
self.timestamp_format = attributes[:'timestamp_format']
|
239
242
|
end
|
240
243
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
243
|
-
else
|
244
|
-
self.period = 3600
|
244
|
+
if attributes.key?(:'compression_codec')
|
245
|
+
self.compression_codec = attributes[:'compression_codec']
|
245
246
|
end
|
246
247
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
249
|
-
else
|
250
|
-
self.gzip_level = 0
|
248
|
+
if attributes.key?(:'created_at')
|
249
|
+
self.created_at = attributes[:'created_at']
|
251
250
|
end
|
252
251
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
252
|
+
if attributes.key?(:'deleted_at')
|
253
|
+
self.deleted_at = attributes[:'deleted_at']
|
255
254
|
end
|
256
255
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
256
|
+
if attributes.key?(:'updated_at')
|
257
|
+
self.updated_at = attributes[:'updated_at']
|
259
258
|
end
|
260
259
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
263
|
-
|
264
|
-
|
260
|
+
if attributes.key?(:'service_id')
|
261
|
+
self.service_id = attributes[:'service_id']
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.key?(:'version')
|
265
|
+
self.version = attributes[:'version']
|
265
266
|
end
|
266
267
|
|
267
268
|
if attributes.key?(:'password')
|
@@ -294,24 +295,26 @@ module Fastly
|
|
294
295
|
self.user = attributes[:'user']
|
295
296
|
end
|
296
297
|
|
297
|
-
if attributes.key?(:'
|
298
|
-
self.
|
299
|
-
end
|
300
|
-
|
301
|
-
if attributes.key?(:'deleted_at')
|
302
|
-
self.deleted_at = attributes[:'deleted_at']
|
298
|
+
if attributes.key?(:'address')
|
299
|
+
self.address = attributes[:'address']
|
303
300
|
end
|
304
301
|
|
305
|
-
if attributes.key?(:'
|
306
|
-
self.
|
302
|
+
if attributes.key?(:'port')
|
303
|
+
self.port = attributes[:'port']
|
304
|
+
else
|
305
|
+
self.port = '22'
|
307
306
|
end
|
308
307
|
|
309
|
-
if attributes.key?(:'
|
310
|
-
self.
|
308
|
+
if attributes.key?(:'period')
|
309
|
+
self.period = attributes[:'period']
|
310
|
+
else
|
311
|
+
self.period = '3600'
|
311
312
|
end
|
312
313
|
|
313
|
-
if attributes.key?(:'
|
314
|
-
self.
|
314
|
+
if attributes.key?(:'gzip_level')
|
315
|
+
self.gzip_level = attributes[:'gzip_level']
|
316
|
+
else
|
317
|
+
self.gzip_level = 0
|
315
318
|
end
|
316
319
|
end
|
317
320
|
|
@@ -327,7 +330,7 @@ module Fastly
|
|
327
330
|
def valid?
|
328
331
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
329
332
|
return false unless placement_validator.valid?(@placement)
|
330
|
-
format_version_validator = EnumAttributeValidator.new('
|
333
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
331
334
|
return false unless format_version_validator.valid?(@format_version)
|
332
335
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
333
336
|
return false unless message_type_validator.valid?(@message_type)
|
@@ -349,7 +352,7 @@ module Fastly
|
|
349
352
|
# Custom attribute writer method checking allowed values (enum).
|
350
353
|
# @param [Object] format_version Object to be assigned
|
351
354
|
def format_version=(format_version)
|
352
|
-
validator = EnumAttributeValidator.new('
|
355
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
353
356
|
unless validator.valid?(format_version)
|
354
357
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
355
358
|
end
|
@@ -383,27 +386,27 @@ module Fastly
|
|
383
386
|
self.class == o.class &&
|
384
387
|
name == o.name &&
|
385
388
|
placement == o.placement &&
|
386
|
-
format_version == o.format_version &&
|
387
389
|
response_condition == o.response_condition &&
|
388
390
|
format == o.format &&
|
391
|
+
format_version == o.format_version &&
|
389
392
|
message_type == o.message_type &&
|
390
393
|
timestamp_format == o.timestamp_format &&
|
391
|
-
period == o.period &&
|
392
|
-
gzip_level == o.gzip_level &&
|
393
394
|
compression_codec == o.compression_codec &&
|
394
|
-
|
395
|
-
|
395
|
+
created_at == o.created_at &&
|
396
|
+
deleted_at == o.deleted_at &&
|
397
|
+
updated_at == o.updated_at &&
|
398
|
+
service_id == o.service_id &&
|
399
|
+
version == o.version &&
|
396
400
|
password == o.password &&
|
397
401
|
path == o.path &&
|
398
402
|
public_key == o.public_key &&
|
399
403
|
secret_key == o.secret_key &&
|
400
404
|
ssh_known_hosts == o.ssh_known_hosts &&
|
401
405
|
user == o.user &&
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
version == o.version
|
406
|
+
address == o.address &&
|
407
|
+
port == o.port &&
|
408
|
+
period == o.period &&
|
409
|
+
gzip_level == o.gzip_level
|
407
410
|
end
|
408
411
|
|
409
412
|
# @see the `==` method
|
@@ -415,7 +418,7 @@ module Fastly
|
|
415
418
|
# Calculates hash code according to all attributes.
|
416
419
|
# @return [Integer] Hash code
|
417
420
|
def hash
|
418
|
-
[name, placement,
|
421
|
+
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, created_at, deleted_at, updated_at, service_id, version, password, path, public_key, secret_key, ssh_known_hosts, user, address, port, period, gzip_level].hash
|
419
422
|
end
|
420
423
|
|
421
424
|
# Builds the object from hash
|
@@ -12,18 +12,26 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
16
|
-
# A
|
17
|
-
attr_accessor :
|
15
|
+
class LoggingSftpResponseAllOf
|
16
|
+
# A hostname or IPv4 address.
|
17
|
+
attr_accessor :address
|
18
18
|
|
19
|
-
# The
|
20
|
-
attr_accessor :
|
19
|
+
# The port number.
|
20
|
+
attr_accessor :port
|
21
|
+
|
22
|
+
# How frequently log files are finalized so they can be available for reading (in seconds).
|
23
|
+
attr_accessor :period
|
24
|
+
|
25
|
+
# The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
26
|
+
attr_accessor :gzip_level
|
21
27
|
|
22
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
29
|
def self.attribute_map
|
24
30
|
{
|
25
|
-
:'
|
26
|
-
:'
|
31
|
+
:'address' => :'address',
|
32
|
+
:'port' => :'port',
|
33
|
+
:'period' => :'period',
|
34
|
+
:'gzip_level' => :'gzip_level'
|
27
35
|
}
|
28
36
|
end
|
29
37
|
|
@@ -35,48 +43,54 @@ module Fastly
|
|
35
43
|
# Attribute type mapping.
|
36
44
|
def self.fastly_types
|
37
45
|
{
|
38
|
-
:'
|
39
|
-
:'
|
46
|
+
:'address' => :'String',
|
47
|
+
:'port' => :'String',
|
48
|
+
:'period' => :'String',
|
49
|
+
:'gzip_level' => :'Integer'
|
40
50
|
}
|
41
51
|
end
|
42
52
|
|
43
53
|
# List of attributes with nullable: true
|
44
54
|
def self.fastly_nullable
|
45
55
|
Set.new([
|
46
|
-
:'comment',
|
47
56
|
])
|
48
57
|
end
|
49
58
|
|
50
|
-
# List of class defined in anyOf (OpenAPI v3)
|
51
|
-
def self.fastly_any_of
|
52
|
-
[
|
53
|
-
:'Boolean',
|
54
|
-
:'Domain',
|
55
|
-
:'String'
|
56
|
-
]
|
57
|
-
end
|
58
|
-
|
59
59
|
# Initializes the object
|
60
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
61
|
def initialize(attributes = {})
|
62
62
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSftpResponseAllOf` initialize method"
|
64
64
|
end
|
65
65
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSftpResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
70
|
end
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
74
|
+
if attributes.key?(:'address')
|
75
|
+
self.address = attributes[:'address']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'port')
|
79
|
+
self.port = attributes[:'port']
|
80
|
+
else
|
81
|
+
self.port = '22'
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'period')
|
85
|
+
self.period = attributes[:'period']
|
86
|
+
else
|
87
|
+
self.period = '3600'
|
76
88
|
end
|
77
89
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
90
|
+
if attributes.key?(:'gzip_level')
|
91
|
+
self.gzip_level = attributes[:'gzip_level']
|
92
|
+
else
|
93
|
+
self.gzip_level = 0
|
80
94
|
end
|
81
95
|
end
|
82
96
|
|
@@ -90,18 +104,6 @@ module Fastly
|
|
90
104
|
# Check to see if the all the properties in the model are valid
|
91
105
|
# @return true if the model is valid
|
92
106
|
def valid?
|
93
|
-
_any_of_found = false
|
94
|
-
self.class.fastly_any_of.each do |_class|
|
95
|
-
_any_of = Fastly.const_get(_class).build_from_hash(self.to_hash)
|
96
|
-
if _any_of.valid?
|
97
|
-
_any_of_found = true
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
if !_any_of_found
|
102
|
-
return false
|
103
|
-
end
|
104
|
-
|
105
107
|
true
|
106
108
|
end
|
107
109
|
|
@@ -110,8 +112,10 @@ module Fastly
|
|
110
112
|
def ==(o)
|
111
113
|
return true if self.equal?(o)
|
112
114
|
self.class == o.class &&
|
113
|
-
|
114
|
-
|
115
|
+
address == o.address &&
|
116
|
+
port == o.port &&
|
117
|
+
period == o.period &&
|
118
|
+
gzip_level == o.gzip_level
|
115
119
|
end
|
116
120
|
|
117
121
|
# @see the `==` method
|
@@ -123,7 +127,7 @@ module Fastly
|
|
123
127
|
# Calculates hash code according to all attributes.
|
124
128
|
# @return [Integer] Hash code
|
125
129
|
def hash
|
126
|
-
[
|
130
|
+
[address, port, period, gzip_level].hash
|
127
131
|
end
|
128
132
|
|
129
133
|
# Builds the object from hash
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class LoggingSplunkAdditional
|
16
16
|
# The URL to post logs to.
|
17
17
|
attr_accessor :url
|
18
18
|
|
@@ -54,13 +54,13 @@ module Fastly
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSplunkAdditional` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSplunkAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
@@ -19,15 +19,15 @@ module Fastly
|
|
19
19
|
# Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
|
20
20
|
attr_accessor :placement
|
21
21
|
|
22
|
-
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
23
|
-
attr_accessor :format_version
|
24
|
-
|
25
22
|
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
26
23
|
attr_accessor :response_condition
|
27
24
|
|
28
25
|
# A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
|
29
26
|
attr_accessor :format
|
30
27
|
|
28
|
+
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
29
|
+
attr_accessor :format_version
|
30
|
+
|
31
31
|
# A secure certificate to authenticate a server with. Must be in PEM format.
|
32
32
|
attr_accessor :tls_ca_cert
|
33
33
|
|
@@ -94,9 +94,9 @@ module Fastly
|
|
94
94
|
{
|
95
95
|
:'name' => :'name',
|
96
96
|
:'placement' => :'placement',
|
97
|
-
:'format_version' => :'format_version',
|
98
97
|
:'response_condition' => :'response_condition',
|
99
98
|
:'format' => :'format',
|
99
|
+
:'format_version' => :'format_version',
|
100
100
|
:'tls_ca_cert' => :'tls_ca_cert',
|
101
101
|
:'tls_client_cert' => :'tls_client_cert',
|
102
102
|
:'tls_client_key' => :'tls_client_key',
|
@@ -124,9 +124,9 @@ module Fastly
|
|
124
124
|
{
|
125
125
|
:'name' => :'String',
|
126
126
|
:'placement' => :'String',
|
127
|
-
:'format_version' => :'Integer',
|
128
127
|
:'response_condition' => :'String',
|
129
128
|
:'format' => :'String',
|
129
|
+
:'format_version' => :'String',
|
130
130
|
:'tls_ca_cert' => :'String',
|
131
131
|
:'tls_client_cert' => :'String',
|
132
132
|
:'tls_client_key' => :'String',
|
@@ -140,7 +140,7 @@ module Fastly
|
|
140
140
|
:'deleted_at' => :'Time',
|
141
141
|
:'updated_at' => :'Time',
|
142
142
|
:'service_id' => :'String',
|
143
|
-
:'version' => :'
|
143
|
+
:'version' => :'String'
|
144
144
|
}
|
145
145
|
end
|
146
146
|
|
@@ -162,8 +162,11 @@ module Fastly
|
|
162
162
|
# List of class defined in allOf (OpenAPI v3)
|
163
163
|
def self.fastly_all_of
|
164
164
|
[
|
165
|
-
:'
|
166
|
-
:'
|
165
|
+
:'LoggingCommonResponse',
|
166
|
+
:'LoggingRequestCapsCommon',
|
167
|
+
:'LoggingSplunkAdditional',
|
168
|
+
:'LoggingTlsCommon',
|
169
|
+
:'ServiceIdAndVersionString',
|
167
170
|
:'Timestamps'
|
168
171
|
]
|
169
172
|
end
|
@@ -191,12 +194,6 @@ module Fastly
|
|
191
194
|
self.placement = attributes[:'placement']
|
192
195
|
end
|
193
196
|
|
194
|
-
if attributes.key?(:'format_version')
|
195
|
-
self.format_version = attributes[:'format_version']
|
196
|
-
else
|
197
|
-
self.format_version = FORMAT_VERSION::v2
|
198
|
-
end
|
199
|
-
|
200
197
|
if attributes.key?(:'response_condition')
|
201
198
|
self.response_condition = attributes[:'response_condition']
|
202
199
|
end
|
@@ -207,6 +204,12 @@ module Fastly
|
|
207
204
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
208
205
|
end
|
209
206
|
|
207
|
+
if attributes.key?(:'format_version')
|
208
|
+
self.format_version = attributes[:'format_version']
|
209
|
+
else
|
210
|
+
self.format_version = '2'
|
211
|
+
end
|
212
|
+
|
210
213
|
if attributes.key?(:'tls_ca_cert')
|
211
214
|
self.tls_ca_cert = attributes[:'tls_ca_cert']
|
212
215
|
else
|
@@ -290,7 +293,7 @@ module Fastly
|
|
290
293
|
def valid?
|
291
294
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
292
295
|
return false unless placement_validator.valid?(@placement)
|
293
|
-
format_version_validator = EnumAttributeValidator.new('
|
296
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
294
297
|
return false unless format_version_validator.valid?(@format_version)
|
295
298
|
true
|
296
299
|
end
|
@@ -308,7 +311,7 @@ module Fastly
|
|
308
311
|
# Custom attribute writer method checking allowed values (enum).
|
309
312
|
# @param [Object] format_version Object to be assigned
|
310
313
|
def format_version=(format_version)
|
311
|
-
validator = EnumAttributeValidator.new('
|
314
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
312
315
|
unless validator.valid?(format_version)
|
313
316
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
314
317
|
end
|
@@ -322,9 +325,9 @@ module Fastly
|
|
322
325
|
self.class == o.class &&
|
323
326
|
name == o.name &&
|
324
327
|
placement == o.placement &&
|
325
|
-
format_version == o.format_version &&
|
326
328
|
response_condition == o.response_condition &&
|
327
329
|
format == o.format &&
|
330
|
+
format_version == o.format_version &&
|
328
331
|
tls_ca_cert == o.tls_ca_cert &&
|
329
332
|
tls_client_cert == o.tls_client_cert &&
|
330
333
|
tls_client_key == o.tls_client_key &&
|
@@ -350,7 +353,7 @@ module Fastly
|
|
350
353
|
# Calculates hash code according to all attributes.
|
351
354
|
# @return [Integer] Hash code
|
352
355
|
def hash
|
353
|
-
[name, placement,
|
356
|
+
[name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, url, token, use_tls, created_at, deleted_at, updated_at, service_id, version].hash
|
354
357
|
end
|
355
358
|
|
356
359
|
# Builds the object from hash
|