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,30 +19,30 @@ 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
|
+
# 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.
|
38
|
+
attr_accessor :compression_codec
|
39
|
+
|
37
40
|
# How frequently log files are finalized so they can be available for reading (in seconds).
|
38
41
|
attr_accessor :period
|
39
42
|
|
40
43
|
# 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
44
|
attr_accessor :gzip_level
|
42
45
|
|
43
|
-
# 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
|
-
attr_accessor :compression_codec
|
45
|
-
|
46
46
|
# Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified.
|
47
47
|
attr_accessor :user
|
48
48
|
|
@@ -52,17 +52,6 @@ module Fastly
|
|
52
52
|
# The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
|
53
53
|
attr_accessor :account_name
|
54
54
|
|
55
|
-
# The name of the GCS bucket.
|
56
|
-
attr_accessor :bucket_name
|
57
|
-
|
58
|
-
attr_accessor :path
|
59
|
-
|
60
|
-
# A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
|
61
|
-
attr_accessor :public_key
|
62
|
-
|
63
|
-
# Your Google Cloud Platform project ID. Required
|
64
|
-
attr_accessor :project_id
|
65
|
-
|
66
55
|
# Date and time in ISO 8601 format.
|
67
56
|
attr_accessor :created_at
|
68
57
|
|
@@ -76,6 +65,17 @@ module Fastly
|
|
76
65
|
|
77
66
|
attr_accessor :version
|
78
67
|
|
68
|
+
# The name of the GCS bucket.
|
69
|
+
attr_accessor :bucket_name
|
70
|
+
|
71
|
+
attr_accessor :path
|
72
|
+
|
73
|
+
# A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
|
74
|
+
attr_accessor :public_key
|
75
|
+
|
76
|
+
# Your Google Cloud Platform project ID. Required
|
77
|
+
attr_accessor :project_id
|
78
|
+
|
79
79
|
class EnumAttributeValidator
|
80
80
|
attr_reader :datatype
|
81
81
|
attr_reader :allowable_values
|
@@ -103,26 +103,26 @@ module Fastly
|
|
103
103
|
{
|
104
104
|
:'name' => :'name',
|
105
105
|
:'placement' => :'placement',
|
106
|
-
:'format_version' => :'format_version',
|
107
106
|
:'response_condition' => :'response_condition',
|
108
107
|
:'format' => :'format',
|
108
|
+
:'format_version' => :'format_version',
|
109
109
|
:'message_type' => :'message_type',
|
110
110
|
:'timestamp_format' => :'timestamp_format',
|
111
|
+
:'compression_codec' => :'compression_codec',
|
111
112
|
:'period' => :'period',
|
112
113
|
:'gzip_level' => :'gzip_level',
|
113
|
-
:'compression_codec' => :'compression_codec',
|
114
114
|
:'user' => :'user',
|
115
115
|
:'secret_key' => :'secret_key',
|
116
116
|
:'account_name' => :'account_name',
|
117
|
-
:'bucket_name' => :'bucket_name',
|
118
|
-
:'path' => :'path',
|
119
|
-
:'public_key' => :'public_key',
|
120
|
-
:'project_id' => :'project_id',
|
121
117
|
:'created_at' => :'created_at',
|
122
118
|
:'deleted_at' => :'deleted_at',
|
123
119
|
:'updated_at' => :'updated_at',
|
124
120
|
:'service_id' => :'service_id',
|
125
|
-
:'version' => :'version'
|
121
|
+
:'version' => :'version',
|
122
|
+
:'bucket_name' => :'bucket_name',
|
123
|
+
:'path' => :'path',
|
124
|
+
:'public_key' => :'public_key',
|
125
|
+
:'project_id' => :'project_id'
|
126
126
|
}
|
127
127
|
end
|
128
128
|
|
@@ -136,26 +136,26 @@ module Fastly
|
|
136
136
|
{
|
137
137
|
:'name' => :'String',
|
138
138
|
:'placement' => :'String',
|
139
|
-
:'format_version' => :'Integer',
|
140
139
|
:'response_condition' => :'String',
|
141
140
|
:'format' => :'String',
|
141
|
+
:'format_version' => :'String',
|
142
142
|
:'message_type' => :'String',
|
143
143
|
:'timestamp_format' => :'String',
|
144
|
-
:'period' => :'Integer',
|
145
|
-
:'gzip_level' => :'Integer',
|
146
144
|
:'compression_codec' => :'String',
|
145
|
+
:'period' => :'String',
|
146
|
+
:'gzip_level' => :'String',
|
147
147
|
:'user' => :'String',
|
148
148
|
:'secret_key' => :'String',
|
149
149
|
:'account_name' => :'String',
|
150
|
-
:'bucket_name' => :'String',
|
151
|
-
:'path' => :'String',
|
152
|
-
:'public_key' => :'String',
|
153
|
-
:'project_id' => :'String',
|
154
150
|
:'created_at' => :'Time',
|
155
151
|
:'deleted_at' => :'Time',
|
156
152
|
:'updated_at' => :'Time',
|
157
153
|
:'service_id' => :'String',
|
158
|
-
:'version' => :'
|
154
|
+
:'version' => :'String',
|
155
|
+
:'bucket_name' => :'String',
|
156
|
+
:'path' => :'String',
|
157
|
+
:'public_key' => :'String',
|
158
|
+
:'project_id' => :'String'
|
159
159
|
}
|
160
160
|
end
|
161
161
|
|
@@ -165,18 +165,21 @@ module Fastly
|
|
165
165
|
:'placement',
|
166
166
|
:'response_condition',
|
167
167
|
:'timestamp_format',
|
168
|
-
:'public_key',
|
169
168
|
:'created_at',
|
170
169
|
:'deleted_at',
|
171
170
|
:'updated_at',
|
171
|
+
:'public_key',
|
172
172
|
])
|
173
173
|
end
|
174
174
|
|
175
175
|
# List of class defined in allOf (OpenAPI v3)
|
176
176
|
def self.fastly_all_of
|
177
177
|
[
|
178
|
-
:'
|
179
|
-
:'
|
178
|
+
:'LoggingCommonResponse',
|
179
|
+
:'LoggingGcsAdditional',
|
180
|
+
:'LoggingGcsCommon',
|
181
|
+
:'LoggingGenericCommonResponse',
|
182
|
+
:'ServiceIdAndVersionString',
|
180
183
|
:'Timestamps'
|
181
184
|
]
|
182
185
|
end
|
@@ -204,12 +207,6 @@ module Fastly
|
|
204
207
|
self.placement = attributes[:'placement']
|
205
208
|
end
|
206
209
|
|
207
|
-
if attributes.key?(:'format_version')
|
208
|
-
self.format_version = attributes[:'format_version']
|
209
|
-
else
|
210
|
-
self.format_version = FORMAT_VERSION::v2
|
211
|
-
end
|
212
|
-
|
213
210
|
if attributes.key?(:'response_condition')
|
214
211
|
self.response_condition = attributes[:'response_condition']
|
215
212
|
end
|
@@ -220,6 +217,12 @@ module Fastly
|
|
220
217
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
221
218
|
end
|
222
219
|
|
220
|
+
if attributes.key?(:'format_version')
|
221
|
+
self.format_version = attributes[:'format_version']
|
222
|
+
else
|
223
|
+
self.format_version = '2'
|
224
|
+
end
|
225
|
+
|
223
226
|
if attributes.key?(:'message_type')
|
224
227
|
self.message_type = attributes[:'message_type']
|
225
228
|
else
|
@@ -230,20 +233,20 @@ module Fastly
|
|
230
233
|
self.timestamp_format = attributes[:'timestamp_format']
|
231
234
|
end
|
232
235
|
|
236
|
+
if attributes.key?(:'compression_codec')
|
237
|
+
self.compression_codec = attributes[:'compression_codec']
|
238
|
+
end
|
239
|
+
|
233
240
|
if attributes.key?(:'period')
|
234
241
|
self.period = attributes[:'period']
|
235
242
|
else
|
236
|
-
self.period = 3600
|
243
|
+
self.period = '3600'
|
237
244
|
end
|
238
245
|
|
239
246
|
if attributes.key?(:'gzip_level')
|
240
247
|
self.gzip_level = attributes[:'gzip_level']
|
241
248
|
else
|
242
|
-
self.gzip_level = 0
|
243
|
-
end
|
244
|
-
|
245
|
-
if attributes.key?(:'compression_codec')
|
246
|
-
self.compression_codec = attributes[:'compression_codec']
|
249
|
+
self.gzip_level = '0'
|
247
250
|
end
|
248
251
|
|
249
252
|
if attributes.key?(:'user')
|
@@ -258,26 +261,6 @@ module Fastly
|
|
258
261
|
self.account_name = attributes[:'account_name']
|
259
262
|
end
|
260
263
|
|
261
|
-
if attributes.key?(:'bucket_name')
|
262
|
-
self.bucket_name = attributes[:'bucket_name']
|
263
|
-
end
|
264
|
-
|
265
|
-
if attributes.key?(:'path')
|
266
|
-
self.path = attributes[:'path']
|
267
|
-
else
|
268
|
-
self.path = '/'
|
269
|
-
end
|
270
|
-
|
271
|
-
if attributes.key?(:'public_key')
|
272
|
-
self.public_key = attributes[:'public_key']
|
273
|
-
else
|
274
|
-
self.public_key = 'null'
|
275
|
-
end
|
276
|
-
|
277
|
-
if attributes.key?(:'project_id')
|
278
|
-
self.project_id = attributes[:'project_id']
|
279
|
-
end
|
280
|
-
|
281
264
|
if attributes.key?(:'created_at')
|
282
265
|
self.created_at = attributes[:'created_at']
|
283
266
|
end
|
@@ -297,6 +280,26 @@ module Fastly
|
|
297
280
|
if attributes.key?(:'version')
|
298
281
|
self.version = attributes[:'version']
|
299
282
|
end
|
283
|
+
|
284
|
+
if attributes.key?(:'bucket_name')
|
285
|
+
self.bucket_name = attributes[:'bucket_name']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.key?(:'path')
|
289
|
+
self.path = attributes[:'path']
|
290
|
+
else
|
291
|
+
self.path = '/'
|
292
|
+
end
|
293
|
+
|
294
|
+
if attributes.key?(:'public_key')
|
295
|
+
self.public_key = attributes[:'public_key']
|
296
|
+
else
|
297
|
+
self.public_key = 'null'
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.key?(:'project_id')
|
301
|
+
self.project_id = attributes[:'project_id']
|
302
|
+
end
|
300
303
|
end
|
301
304
|
|
302
305
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -311,7 +314,7 @@ module Fastly
|
|
311
314
|
def valid?
|
312
315
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
313
316
|
return false unless placement_validator.valid?(@placement)
|
314
|
-
format_version_validator = EnumAttributeValidator.new('
|
317
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
315
318
|
return false unless format_version_validator.valid?(@format_version)
|
316
319
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
317
320
|
return false unless message_type_validator.valid?(@message_type)
|
@@ -333,7 +336,7 @@ module Fastly
|
|
333
336
|
# Custom attribute writer method checking allowed values (enum).
|
334
337
|
# @param [Object] format_version Object to be assigned
|
335
338
|
def format_version=(format_version)
|
336
|
-
validator = EnumAttributeValidator.new('
|
339
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
337
340
|
unless validator.valid?(format_version)
|
338
341
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
339
342
|
end
|
@@ -367,26 +370,26 @@ module Fastly
|
|
367
370
|
self.class == o.class &&
|
368
371
|
name == o.name &&
|
369
372
|
placement == o.placement &&
|
370
|
-
format_version == o.format_version &&
|
371
373
|
response_condition == o.response_condition &&
|
372
374
|
format == o.format &&
|
375
|
+
format_version == o.format_version &&
|
373
376
|
message_type == o.message_type &&
|
374
377
|
timestamp_format == o.timestamp_format &&
|
378
|
+
compression_codec == o.compression_codec &&
|
375
379
|
period == o.period &&
|
376
380
|
gzip_level == o.gzip_level &&
|
377
|
-
compression_codec == o.compression_codec &&
|
378
381
|
user == o.user &&
|
379
382
|
secret_key == o.secret_key &&
|
380
383
|
account_name == o.account_name &&
|
381
|
-
bucket_name == o.bucket_name &&
|
382
|
-
path == o.path &&
|
383
|
-
public_key == o.public_key &&
|
384
|
-
project_id == o.project_id &&
|
385
384
|
created_at == o.created_at &&
|
386
385
|
deleted_at == o.deleted_at &&
|
387
386
|
updated_at == o.updated_at &&
|
388
387
|
service_id == o.service_id &&
|
389
|
-
version == o.version
|
388
|
+
version == o.version &&
|
389
|
+
bucket_name == o.bucket_name &&
|
390
|
+
path == o.path &&
|
391
|
+
public_key == o.public_key &&
|
392
|
+
project_id == o.project_id
|
390
393
|
end
|
391
394
|
|
392
395
|
# @see the `==` method
|
@@ -398,7 +401,7 @@ module Fastly
|
|
398
401
|
# Calculates hash code according to all attributes.
|
399
402
|
# @return [Integer] Hash code
|
400
403
|
def hash
|
401
|
-
[name, placement,
|
404
|
+
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, user, secret_key, account_name, created_at, deleted_at, updated_at, service_id, version, bucket_name, path, public_key, project_id].hash
|
402
405
|
end
|
403
406
|
|
404
407
|
# Builds the object from hash
|
@@ -19,12 +19,6 @@ module Fastly
|
|
19
19
|
# A timestamp format
|
20
20
|
attr_accessor :timestamp_format
|
21
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
|
27
|
-
|
28
22
|
# 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.
|
29
23
|
attr_accessor :compression_codec
|
30
24
|
|
@@ -55,8 +49,6 @@ module Fastly
|
|
55
49
|
{
|
56
50
|
:'message_type' => :'message_type',
|
57
51
|
:'timestamp_format' => :'timestamp_format',
|
58
|
-
:'period' => :'period',
|
59
|
-
:'gzip_level' => :'gzip_level',
|
60
52
|
:'compression_codec' => :'compression_codec'
|
61
53
|
}
|
62
54
|
end
|
@@ -71,8 +63,6 @@ module Fastly
|
|
71
63
|
{
|
72
64
|
:'message_type' => :'String',
|
73
65
|
:'timestamp_format' => :'String',
|
74
|
-
:'period' => :'Integer',
|
75
|
-
:'gzip_level' => :'Integer',
|
76
66
|
:'compression_codec' => :'String'
|
77
67
|
}
|
78
68
|
end
|
@@ -109,18 +99,6 @@ module Fastly
|
|
109
99
|
self.timestamp_format = attributes[:'timestamp_format']
|
110
100
|
end
|
111
101
|
|
112
|
-
if attributes.key?(:'period')
|
113
|
-
self.period = attributes[:'period']
|
114
|
-
else
|
115
|
-
self.period = 3600
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.key?(:'gzip_level')
|
119
|
-
self.gzip_level = attributes[:'gzip_level']
|
120
|
-
else
|
121
|
-
self.gzip_level = 0
|
122
|
-
end
|
123
|
-
|
124
102
|
if attributes.key?(:'compression_codec')
|
125
103
|
self.compression_codec = attributes[:'compression_codec']
|
126
104
|
end
|
@@ -170,8 +148,6 @@ module Fastly
|
|
170
148
|
self.class == o.class &&
|
171
149
|
message_type == o.message_type &&
|
172
150
|
timestamp_format == o.timestamp_format &&
|
173
|
-
period == o.period &&
|
174
|
-
gzip_level == o.gzip_level &&
|
175
151
|
compression_codec == o.compression_codec
|
176
152
|
end
|
177
153
|
|
@@ -184,7 +160,7 @@ module Fastly
|
|
184
160
|
# Calculates hash code according to all attributes.
|
185
161
|
# @return [Integer] Hash code
|
186
162
|
def hash
|
187
|
-
[message_type, timestamp_format,
|
163
|
+
[message_type, timestamp_format, compression_codec].hash
|
188
164
|
end
|
189
165
|
|
190
166
|
# Builds the object from hash
|
@@ -12,26 +12,21 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
16
|
-
#
|
17
|
-
attr_accessor :
|
18
|
-
|
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
|
-
attr_accessor :placement
|
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
|
15
|
+
class LoggingGenericCommonResponse
|
16
|
+
# How the message should be formatted.
|
17
|
+
attr_accessor :message_type
|
24
18
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
19
|
+
# A timestamp format
|
20
|
+
attr_accessor :timestamp_format
|
27
21
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
22
|
+
# 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.
|
23
|
+
attr_accessor :compression_codec
|
30
24
|
|
31
|
-
|
25
|
+
# How frequently log files are finalized so they can be available for reading (in seconds).
|
26
|
+
attr_accessor :period
|
32
27
|
|
33
|
-
# The
|
34
|
-
attr_accessor :
|
28
|
+
# 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.
|
29
|
+
attr_accessor :gzip_level
|
35
30
|
|
36
31
|
class EnumAttributeValidator
|
37
32
|
attr_reader :datatype
|
@@ -58,13 +53,11 @@ module Fastly
|
|
58
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
54
|
def self.attribute_map
|
60
55
|
{
|
61
|
-
:'name' => :'name',
|
62
|
-
:'placement' => :'placement',
|
63
|
-
:'format_version' => :'format_version',
|
64
|
-
:'response_condition' => :'response_condition',
|
65
|
-
:'format' => :'format',
|
66
56
|
:'message_type' => :'message_type',
|
67
|
-
:'
|
57
|
+
:'timestamp_format' => :'timestamp_format',
|
58
|
+
:'compression_codec' => :'compression_codec',
|
59
|
+
:'period' => :'period',
|
60
|
+
:'gzip_level' => :'gzip_level'
|
68
61
|
}
|
69
62
|
end
|
70
63
|
|
@@ -76,29 +69,26 @@ module Fastly
|
|
76
69
|
# Attribute type mapping.
|
77
70
|
def self.fastly_types
|
78
71
|
{
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'message_type' => :'LoggingMessageType',
|
85
|
-
:'url' => :'String'
|
72
|
+
:'message_type' => :'String',
|
73
|
+
:'timestamp_format' => :'String',
|
74
|
+
:'compression_codec' => :'String',
|
75
|
+
:'period' => :'String',
|
76
|
+
:'gzip_level' => :'String'
|
86
77
|
}
|
87
78
|
end
|
88
79
|
|
89
80
|
# List of attributes with nullable: true
|
90
81
|
def self.fastly_nullable
|
91
82
|
Set.new([
|
92
|
-
:'
|
93
|
-
:'response_condition',
|
83
|
+
:'timestamp_format',
|
94
84
|
])
|
95
85
|
end
|
96
86
|
|
97
87
|
# List of class defined in allOf (OpenAPI v3)
|
98
88
|
def self.fastly_all_of
|
99
89
|
[
|
100
|
-
:'
|
101
|
-
:'
|
90
|
+
:'LoggingGenericCommonResponseAllOf',
|
91
|
+
:'LoggingGenericCommonResponseAllOf1'
|
102
92
|
]
|
103
93
|
end
|
104
94
|
|
@@ -106,49 +96,41 @@ module Fastly
|
|
106
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
107
97
|
def initialize(attributes = {})
|
108
98
|
if (!attributes.is_a?(Hash))
|
109
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingGenericCommonResponse` initialize method"
|
110
100
|
end
|
111
101
|
|
112
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
113
103
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
104
|
if (!self.class.attribute_map.key?(k.to_sym))
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
105
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingGenericCommonResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
116
106
|
end
|
117
107
|
h[k.to_sym] = v
|
118
108
|
}
|
119
109
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'placement')
|
125
|
-
self.placement = attributes[:'placement']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'format_version')
|
129
|
-
self.format_version = attributes[:'format_version']
|
110
|
+
if attributes.key?(:'message_type')
|
111
|
+
self.message_type = attributes[:'message_type']
|
130
112
|
else
|
131
|
-
self.
|
113
|
+
self.message_type = 'classic'
|
132
114
|
end
|
133
115
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
116
|
+
if attributes.key?(:'timestamp_format')
|
117
|
+
self.timestamp_format = attributes[:'timestamp_format']
|
136
118
|
end
|
137
119
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
self.
|
140
|
-
else
|
141
|
-
self.format = '%h %l %u %t \"%r\" %>s %b'
|
120
|
+
if attributes.key?(:'compression_codec')
|
121
|
+
self.compression_codec = attributes[:'compression_codec']
|
142
122
|
end
|
143
123
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
124
|
+
if attributes.key?(:'period')
|
125
|
+
self.period = attributes[:'period']
|
146
126
|
else
|
147
|
-
self.
|
127
|
+
self.period = '3600'
|
148
128
|
end
|
149
129
|
|
150
|
-
if attributes.key?(:'
|
151
|
-
self.
|
130
|
+
if attributes.key?(:'gzip_level')
|
131
|
+
self.gzip_level = attributes[:'gzip_level']
|
132
|
+
else
|
133
|
+
self.gzip_level = '0'
|
152
134
|
end
|
153
135
|
end
|
154
136
|
|
@@ -162,31 +144,31 @@ module Fastly
|
|
162
144
|
# Check to see if the all the properties in the model are valid
|
163
145
|
# @return true if the model is valid
|
164
146
|
def valid?
|
165
|
-
|
166
|
-
return false unless
|
167
|
-
|
168
|
-
return false unless
|
147
|
+
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
148
|
+
return false unless message_type_validator.valid?(@message_type)
|
149
|
+
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
150
|
+
return false unless compression_codec_validator.valid?(@compression_codec)
|
169
151
|
true
|
170
152
|
end
|
171
153
|
|
172
154
|
# Custom attribute writer method checking allowed values (enum).
|
173
|
-
# @param [Object]
|
174
|
-
def
|
175
|
-
validator = EnumAttributeValidator.new('String', ["
|
176
|
-
unless validator.valid?(
|
177
|
-
fail ArgumentError, "invalid value for \"
|
155
|
+
# @param [Object] message_type Object to be assigned
|
156
|
+
def message_type=(message_type)
|
157
|
+
validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
158
|
+
unless validator.valid?(message_type)
|
159
|
+
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
178
160
|
end
|
179
|
-
@
|
161
|
+
@message_type = message_type
|
180
162
|
end
|
181
163
|
|
182
164
|
# Custom attribute writer method checking allowed values (enum).
|
183
|
-
# @param [Object]
|
184
|
-
def
|
185
|
-
validator = EnumAttributeValidator.new('
|
186
|
-
unless validator.valid?(
|
187
|
-
fail ArgumentError, "invalid value for \"
|
165
|
+
# @param [Object] compression_codec Object to be assigned
|
166
|
+
def compression_codec=(compression_codec)
|
167
|
+
validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
168
|
+
unless validator.valid?(compression_codec)
|
169
|
+
fail ArgumentError, "invalid value for \"compression_codec\", must be one of #{validator.allowable_values}."
|
188
170
|
end
|
189
|
-
@
|
171
|
+
@compression_codec = compression_codec
|
190
172
|
end
|
191
173
|
|
192
174
|
# Checks equality by comparing each attribute.
|
@@ -194,13 +176,11 @@ module Fastly
|
|
194
176
|
def ==(o)
|
195
177
|
return true if self.equal?(o)
|
196
178
|
self.class == o.class &&
|
197
|
-
name == o.name &&
|
198
|
-
placement == o.placement &&
|
199
|
-
format_version == o.format_version &&
|
200
|
-
response_condition == o.response_condition &&
|
201
|
-
format == o.format &&
|
202
179
|
message_type == o.message_type &&
|
203
|
-
|
180
|
+
timestamp_format == o.timestamp_format &&
|
181
|
+
compression_codec == o.compression_codec &&
|
182
|
+
period == o.period &&
|
183
|
+
gzip_level == o.gzip_level
|
204
184
|
end
|
205
185
|
|
206
186
|
# @see the `==` method
|
@@ -212,7 +192,7 @@ module Fastly
|
|
212
192
|
# Calculates hash code according to all attributes.
|
213
193
|
# @return [Integer] Hash code
|
214
194
|
def hash
|
215
|
-
[
|
195
|
+
[message_type, timestamp_format, compression_codec, period, gzip_level].hash
|
216
196
|
end
|
217
197
|
|
218
198
|
# Builds the object from hash
|