fastly 6.0.2 → 7.0.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 +19 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- 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/{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/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/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_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/request_settings_api.rb +15 -15
- 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_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/{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 +47 -57
- data/sig.json +1 -1
- metadata +96 -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_newrelic.rb +0 -351
- 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,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). Must produce valid JSON that Datadog can ingest.
|
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
|
# The region that log data will be sent to.
|
32
32
|
attr_accessor :region
|
33
33
|
|
@@ -74,9 +74,9 @@ module Fastly
|
|
74
74
|
{
|
75
75
|
:'name' => :'name',
|
76
76
|
:'placement' => :'placement',
|
77
|
-
:'format_version' => :'format_version',
|
78
77
|
:'response_condition' => :'response_condition',
|
79
78
|
:'format' => :'format',
|
79
|
+
:'format_version' => :'format_version',
|
80
80
|
:'region' => :'region',
|
81
81
|
:'token' => :'token',
|
82
82
|
:'created_at' => :'created_at',
|
@@ -97,16 +97,16 @@ module Fastly
|
|
97
97
|
{
|
98
98
|
:'name' => :'String',
|
99
99
|
:'placement' => :'String',
|
100
|
-
:'format_version' => :'Integer',
|
101
100
|
:'response_condition' => :'String',
|
102
101
|
:'format' => :'String',
|
102
|
+
:'format_version' => :'String',
|
103
103
|
:'region' => :'String',
|
104
104
|
:'token' => :'String',
|
105
105
|
:'created_at' => :'Time',
|
106
106
|
:'deleted_at' => :'Time',
|
107
107
|
:'updated_at' => :'Time',
|
108
108
|
:'service_id' => :'String',
|
109
|
-
:'version' => :'
|
109
|
+
:'version' => :'String'
|
110
110
|
}
|
111
111
|
end
|
112
112
|
|
@@ -124,8 +124,9 @@ module Fastly
|
|
124
124
|
# List of class defined in allOf (OpenAPI v3)
|
125
125
|
def self.fastly_all_of
|
126
126
|
[
|
127
|
-
:'
|
128
|
-
:'
|
127
|
+
:'LoggingCommonResponse',
|
128
|
+
:'LoggingDatadogAdditional',
|
129
|
+
:'ServiceIdAndVersionString',
|
129
130
|
:'Timestamps'
|
130
131
|
]
|
131
132
|
end
|
@@ -153,12 +154,6 @@ module Fastly
|
|
153
154
|
self.placement = attributes[:'placement']
|
154
155
|
end
|
155
156
|
|
156
|
-
if attributes.key?(:'format_version')
|
157
|
-
self.format_version = attributes[:'format_version']
|
158
|
-
else
|
159
|
-
self.format_version = FORMAT_VERSION::v2
|
160
|
-
end
|
161
|
-
|
162
157
|
if attributes.key?(:'response_condition')
|
163
158
|
self.response_condition = attributes[:'response_condition']
|
164
159
|
end
|
@@ -169,6 +164,12 @@ module Fastly
|
|
169
164
|
self.format = '{\"ddsource\":\"fastly\",\"service\":\"%{req.service_id}V\",\"date\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_start\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_end\":\"%{end:%Y-%m-%dT%H:%M:%S%Z}t\",\"http\":{\"request_time_ms\":\"%D\",\"method\":\"%m\",\"url\":\"%{json.escape(req.url)}V\",\"useragent\":\"%{User-Agent}i\",\"referer\":\"%{Referer}i\",\"protocol\":\"%H\",\"request_x_forwarded_for\":\"%{X-Forwarded-For}i\",\"status_code\":\"%s\"},\"network\":{\"client\":{\"ip\":\"%h\",\"name\":\"%{client.as.name}V\",\"number\":\"%{client.as.number}V\",\"connection_speed\":\"%{client.geo.conn_speed}V\"},\"destination\":{\"ip\":\"%A\"},\"geoip\":{\"geo_city\":\"%{client.geo.city.utf8}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"geo_continent_code\":\"%{client.geo.continent_code}V\",\"geo_region\":\"%{client.geo.region}V\"},\"bytes_written\":\"%B\",\"bytes_read\":\"%{req.body_bytes_read}V\"},\"host\":\"%{Fastly-Orig-Host}i\",\"origin_host\":\"%v\",\"is_ipv6\":\"%{if(req.is_ipv6, \\\"true\\\", \\\"false\\\")}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"tls_client_protocol\":\"%{json.escape(tls.client.protocol)}V\",\"tls_client_servername\":\"%{json.escape(tls.client.servername)}V\",\"tls_client_cipher\":\"%{json.escape(tls.client.cipher)}V\",\"tls_client_cipher_sha\":\"%{json.escape(tls.client.ciphers_sha)}V\",\"tls_client_tlsexts_sha\":\"%{json.escape(tls.client.tlsexts_sha)}V\",\"is_h2\":\"%{if(fastly_info.is_h2, \\\"true\\\", \\\"false\\\")}V\",\"is_h2_push\":\"%{if(fastly_info.h2.is_push, \\\"true\\\", \\\"false\\\")}V\",\"h2_stream_id\":\"%{fastly_info.h2.stream_id}V\",\"request_accept_content\":\"%{Accept}i\",\"request_accept_language\":\"%{Accept-Language}i\",\"request_accept_encoding\":\"%{Accept-Encoding}i\",\"request_accept_charset\":\"%{Accept-Charset}i\",\"request_connection\":\"%{Connection}i\",\"request_dnt\":\"%{DNT}i\",\"request_forwarded\":\"%{Forwarded}i\",\"request_via\":\"%{Via}i\",\"request_cache_control\":\"%{Cache-Control}i\",\"request_x_requested_with\":\"%{X-Requested-With}i\",\"request_x_att_device_id\":\"%{X-ATT-Device-Id}i\",\"content_type\":\"%{Content-Type}o\",\"is_cacheable\":\"%{if(fastly_info.state~\\\"^(HIT|MISS)$\\\", \\\"true\\\", \\\"false\\\")}V\",\"response_age\":\"%{Age}o\",\"response_cache_control\":\"%{Cache-Control}o\",\"response_expires\":\"%{Expires}o\",\"response_last_modified\":\"%{Last-Modified}o\",\"response_tsv\":\"%{TSV}o\",\"server_datacenter\":\"%{server.datacenter}V\",\"req_header_size\":\"%{req.header_bytes_read}V\",\"resp_header_size\":\"%{resp.header_bytes_written}V\",\"socket_cwnd\":\"%{client.socket.cwnd}V\",\"socket_nexthop\":\"%{client.socket.nexthop}V\",\"socket_tcpi_rcv_mss\":\"%{client.socket.tcpi_rcv_mss}V\",\"socket_tcpi_snd_mss\":\"%{client.socket.tcpi_snd_mss}V\",\"socket_tcpi_rtt\":\"%{client.socket.tcpi_rtt}V\",\"socket_tcpi_rttvar\":\"%{client.socket.tcpi_rttvar}V\",\"socket_tcpi_rcv_rtt\":\"%{client.socket.tcpi_rcv_rtt}V\",\"socket_tcpi_rcv_space\":\"%{client.socket.tcpi_rcv_space}V\",\"socket_tcpi_last_data_sent\":\"%{client.socket.tcpi_last_data_sent}V\",\"socket_tcpi_total_retrans\":\"%{client.socket.tcpi_total_retrans}V\",\"socket_tcpi_delta_retrans\":\"%{client.socket.tcpi_delta_retrans}V\",\"socket_ploss\":\"%{client.socket.ploss}V\"}'
|
170
165
|
end
|
171
166
|
|
167
|
+
if attributes.key?(:'format_version')
|
168
|
+
self.format_version = attributes[:'format_version']
|
169
|
+
else
|
170
|
+
self.format_version = '2'
|
171
|
+
end
|
172
|
+
|
172
173
|
if attributes.key?(:'region')
|
173
174
|
self.region = attributes[:'region']
|
174
175
|
else
|
@@ -212,7 +213,7 @@ module Fastly
|
|
212
213
|
def valid?
|
213
214
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
214
215
|
return false unless placement_validator.valid?(@placement)
|
215
|
-
format_version_validator = EnumAttributeValidator.new('
|
216
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
216
217
|
return false unless format_version_validator.valid?(@format_version)
|
217
218
|
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
218
219
|
return false unless region_validator.valid?(@region)
|
@@ -232,7 +233,7 @@ module Fastly
|
|
232
233
|
# Custom attribute writer method checking allowed values (enum).
|
233
234
|
# @param [Object] format_version Object to be assigned
|
234
235
|
def format_version=(format_version)
|
235
|
-
validator = EnumAttributeValidator.new('
|
236
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
236
237
|
unless validator.valid?(format_version)
|
237
238
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
238
239
|
end
|
@@ -256,9 +257,9 @@ module Fastly
|
|
256
257
|
self.class == o.class &&
|
257
258
|
name == o.name &&
|
258
259
|
placement == o.placement &&
|
259
|
-
format_version == o.format_version &&
|
260
260
|
response_condition == o.response_condition &&
|
261
261
|
format == o.format &&
|
262
|
+
format_version == o.format_version &&
|
262
263
|
region == o.region &&
|
263
264
|
token == o.token &&
|
264
265
|
created_at == o.created_at &&
|
@@ -277,7 +278,7 @@ module Fastly
|
|
277
278
|
# Calculates hash code according to all attributes.
|
278
279
|
# @return [Integer] Hash code
|
279
280
|
def hash
|
280
|
-
[name, placement,
|
281
|
+
[name, placement, response_condition, format, format_version, region, token, created_at, deleted_at, updated_at, service_id, version].hash
|
281
282
|
end
|
282
283
|
|
283
284
|
# Builds the object from hash
|
data/lib/fastly/models/{logging_digitalocean_all_of.rb → logging_digitalocean_additional.rb}
RENAMED
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class LoggingDigitaloceanAdditional
|
16
16
|
# The name of the DigitalOcean Space.
|
17
17
|
attr_accessor :bucket_name
|
18
18
|
|
@@ -72,13 +72,13 @@ module Fastly
|
|
72
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
73
73
|
def initialize(attributes = {})
|
74
74
|
if (!attributes.is_a?(Hash))
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingDigitaloceanAdditional` initialize method"
|
76
76
|
end
|
77
77
|
|
78
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
79
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
80
|
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingDigitaloceanAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
82
|
end
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
@@ -19,29 +19,42 @@ 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
|
-
#
|
44
|
-
attr_accessor :
|
46
|
+
# Date and time in ISO 8601 format.
|
47
|
+
attr_accessor :created_at
|
48
|
+
|
49
|
+
# Date and time in ISO 8601 format.
|
50
|
+
attr_accessor :deleted_at
|
51
|
+
|
52
|
+
# Date and time in ISO 8601 format.
|
53
|
+
attr_accessor :updated_at
|
54
|
+
|
55
|
+
attr_accessor :service_id
|
56
|
+
|
57
|
+
attr_accessor :version
|
45
58
|
|
46
59
|
# The name of the DigitalOcean Space.
|
47
60
|
attr_accessor :bucket_name
|
@@ -61,19 +74,6 @@ module Fastly
|
|
61
74
|
# A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
|
62
75
|
attr_accessor :public_key
|
63
76
|
|
64
|
-
# Date and time in ISO 8601 format.
|
65
|
-
attr_accessor :created_at
|
66
|
-
|
67
|
-
# Date and time in ISO 8601 format.
|
68
|
-
attr_accessor :deleted_at
|
69
|
-
|
70
|
-
# Date and time in ISO 8601 format.
|
71
|
-
attr_accessor :updated_at
|
72
|
-
|
73
|
-
attr_accessor :service_id
|
74
|
-
|
75
|
-
attr_accessor :version
|
76
|
-
|
77
77
|
class EnumAttributeValidator
|
78
78
|
attr_reader :datatype
|
79
79
|
attr_reader :allowable_values
|
@@ -101,25 +101,25 @@ module Fastly
|
|
101
101
|
{
|
102
102
|
:'name' => :'name',
|
103
103
|
:'placement' => :'placement',
|
104
|
-
:'format_version' => :'format_version',
|
105
104
|
:'response_condition' => :'response_condition',
|
106
105
|
:'format' => :'format',
|
106
|
+
:'format_version' => :'format_version',
|
107
107
|
:'message_type' => :'message_type',
|
108
108
|
:'timestamp_format' => :'timestamp_format',
|
109
|
+
:'compression_codec' => :'compression_codec',
|
109
110
|
:'period' => :'period',
|
110
111
|
:'gzip_level' => :'gzip_level',
|
111
|
-
:'
|
112
|
+
:'created_at' => :'created_at',
|
113
|
+
:'deleted_at' => :'deleted_at',
|
114
|
+
:'updated_at' => :'updated_at',
|
115
|
+
:'service_id' => :'service_id',
|
116
|
+
:'version' => :'version',
|
112
117
|
:'bucket_name' => :'bucket_name',
|
113
118
|
:'access_key' => :'access_key',
|
114
119
|
:'secret_key' => :'secret_key',
|
115
120
|
:'domain' => :'domain',
|
116
121
|
:'path' => :'path',
|
117
|
-
:'public_key' => :'public_key'
|
118
|
-
:'created_at' => :'created_at',
|
119
|
-
:'deleted_at' => :'deleted_at',
|
120
|
-
:'updated_at' => :'updated_at',
|
121
|
-
:'service_id' => :'service_id',
|
122
|
-
:'version' => :'version'
|
122
|
+
:'public_key' => :'public_key'
|
123
123
|
}
|
124
124
|
end
|
125
125
|
|
@@ -133,25 +133,25 @@ module Fastly
|
|
133
133
|
{
|
134
134
|
:'name' => :'String',
|
135
135
|
:'placement' => :'String',
|
136
|
-
:'format_version' => :'Integer',
|
137
136
|
:'response_condition' => :'String',
|
138
137
|
:'format' => :'String',
|
138
|
+
:'format_version' => :'String',
|
139
139
|
:'message_type' => :'String',
|
140
140
|
:'timestamp_format' => :'String',
|
141
|
-
:'period' => :'Integer',
|
142
|
-
:'gzip_level' => :'Integer',
|
143
141
|
:'compression_codec' => :'String',
|
142
|
+
:'period' => :'String',
|
143
|
+
:'gzip_level' => :'String',
|
144
|
+
:'created_at' => :'Time',
|
145
|
+
:'deleted_at' => :'Time',
|
146
|
+
:'updated_at' => :'Time',
|
147
|
+
:'service_id' => :'String',
|
148
|
+
:'version' => :'String',
|
144
149
|
:'bucket_name' => :'String',
|
145
150
|
:'access_key' => :'String',
|
146
151
|
:'secret_key' => :'String',
|
147
152
|
:'domain' => :'String',
|
148
153
|
:'path' => :'String',
|
149
|
-
:'public_key' => :'String'
|
150
|
-
:'created_at' => :'Time',
|
151
|
-
:'deleted_at' => :'Time',
|
152
|
-
:'updated_at' => :'Time',
|
153
|
-
:'service_id' => :'String',
|
154
|
-
:'version' => :'Integer'
|
154
|
+
:'public_key' => :'String'
|
155
155
|
}
|
156
156
|
end
|
157
157
|
|
@@ -161,19 +161,21 @@ module Fastly
|
|
161
161
|
:'placement',
|
162
162
|
:'response_condition',
|
163
163
|
:'timestamp_format',
|
164
|
-
:'path',
|
165
|
-
:'public_key',
|
166
164
|
:'created_at',
|
167
165
|
:'deleted_at',
|
168
166
|
:'updated_at',
|
167
|
+
:'path',
|
168
|
+
:'public_key'
|
169
169
|
])
|
170
170
|
end
|
171
171
|
|
172
172
|
# List of class defined in allOf (OpenAPI v3)
|
173
173
|
def self.fastly_all_of
|
174
174
|
[
|
175
|
-
:'
|
176
|
-
:'
|
175
|
+
:'LoggingCommonResponse',
|
176
|
+
:'LoggingDigitaloceanAdditional',
|
177
|
+
:'LoggingGenericCommonResponse',
|
178
|
+
:'ServiceIdAndVersionString',
|
177
179
|
:'Timestamps'
|
178
180
|
]
|
179
181
|
end
|
@@ -201,12 +203,6 @@ module Fastly
|
|
201
203
|
self.placement = attributes[:'placement']
|
202
204
|
end
|
203
205
|
|
204
|
-
if attributes.key?(:'format_version')
|
205
|
-
self.format_version = attributes[:'format_version']
|
206
|
-
else
|
207
|
-
self.format_version = FORMAT_VERSION::v2
|
208
|
-
end
|
209
|
-
|
210
206
|
if attributes.key?(:'response_condition')
|
211
207
|
self.response_condition = attributes[:'response_condition']
|
212
208
|
end
|
@@ -217,6 +213,12 @@ module Fastly
|
|
217
213
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
218
214
|
end
|
219
215
|
|
216
|
+
if attributes.key?(:'format_version')
|
217
|
+
self.format_version = attributes[:'format_version']
|
218
|
+
else
|
219
|
+
self.format_version = '2'
|
220
|
+
end
|
221
|
+
|
220
222
|
if attributes.key?(:'message_type')
|
221
223
|
self.message_type = attributes[:'message_type']
|
222
224
|
else
|
@@ -227,20 +229,40 @@ module Fastly
|
|
227
229
|
self.timestamp_format = attributes[:'timestamp_format']
|
228
230
|
end
|
229
231
|
|
232
|
+
if attributes.key?(:'compression_codec')
|
233
|
+
self.compression_codec = attributes[:'compression_codec']
|
234
|
+
end
|
235
|
+
|
230
236
|
if attributes.key?(:'period')
|
231
237
|
self.period = attributes[:'period']
|
232
238
|
else
|
233
|
-
self.period = 3600
|
239
|
+
self.period = '3600'
|
234
240
|
end
|
235
241
|
|
236
242
|
if attributes.key?(:'gzip_level')
|
237
243
|
self.gzip_level = attributes[:'gzip_level']
|
238
244
|
else
|
239
|
-
self.gzip_level = 0
|
245
|
+
self.gzip_level = '0'
|
240
246
|
end
|
241
247
|
|
242
|
-
if attributes.key?(:'
|
243
|
-
self.
|
248
|
+
if attributes.key?(:'created_at')
|
249
|
+
self.created_at = attributes[:'created_at']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.key?(:'deleted_at')
|
253
|
+
self.deleted_at = attributes[:'deleted_at']
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.key?(:'updated_at')
|
257
|
+
self.updated_at = attributes[:'updated_at']
|
258
|
+
end
|
259
|
+
|
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']
|
244
266
|
end
|
245
267
|
|
246
268
|
if attributes.key?(:'bucket_name')
|
@@ -272,26 +294,6 @@ module Fastly
|
|
272
294
|
else
|
273
295
|
self.public_key = 'null'
|
274
296
|
end
|
275
|
-
|
276
|
-
if attributes.key?(:'created_at')
|
277
|
-
self.created_at = attributes[:'created_at']
|
278
|
-
end
|
279
|
-
|
280
|
-
if attributes.key?(:'deleted_at')
|
281
|
-
self.deleted_at = attributes[:'deleted_at']
|
282
|
-
end
|
283
|
-
|
284
|
-
if attributes.key?(:'updated_at')
|
285
|
-
self.updated_at = attributes[:'updated_at']
|
286
|
-
end
|
287
|
-
|
288
|
-
if attributes.key?(:'service_id')
|
289
|
-
self.service_id = attributes[:'service_id']
|
290
|
-
end
|
291
|
-
|
292
|
-
if attributes.key?(:'version')
|
293
|
-
self.version = attributes[:'version']
|
294
|
-
end
|
295
297
|
end
|
296
298
|
|
297
299
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -306,7 +308,7 @@ module Fastly
|
|
306
308
|
def valid?
|
307
309
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
308
310
|
return false unless placement_validator.valid?(@placement)
|
309
|
-
format_version_validator = EnumAttributeValidator.new('
|
311
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
310
312
|
return false unless format_version_validator.valid?(@format_version)
|
311
313
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
312
314
|
return false unless message_type_validator.valid?(@message_type)
|
@@ -328,7 +330,7 @@ module Fastly
|
|
328
330
|
# Custom attribute writer method checking allowed values (enum).
|
329
331
|
# @param [Object] format_version Object to be assigned
|
330
332
|
def format_version=(format_version)
|
331
|
-
validator = EnumAttributeValidator.new('
|
333
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
332
334
|
unless validator.valid?(format_version)
|
333
335
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
334
336
|
end
|
@@ -362,25 +364,25 @@ module Fastly
|
|
362
364
|
self.class == o.class &&
|
363
365
|
name == o.name &&
|
364
366
|
placement == o.placement &&
|
365
|
-
format_version == o.format_version &&
|
366
367
|
response_condition == o.response_condition &&
|
367
368
|
format == o.format &&
|
369
|
+
format_version == o.format_version &&
|
368
370
|
message_type == o.message_type &&
|
369
371
|
timestamp_format == o.timestamp_format &&
|
372
|
+
compression_codec == o.compression_codec &&
|
370
373
|
period == o.period &&
|
371
374
|
gzip_level == o.gzip_level &&
|
372
|
-
|
375
|
+
created_at == o.created_at &&
|
376
|
+
deleted_at == o.deleted_at &&
|
377
|
+
updated_at == o.updated_at &&
|
378
|
+
service_id == o.service_id &&
|
379
|
+
version == o.version &&
|
373
380
|
bucket_name == o.bucket_name &&
|
374
381
|
access_key == o.access_key &&
|
375
382
|
secret_key == o.secret_key &&
|
376
383
|
domain == o.domain &&
|
377
384
|
path == o.path &&
|
378
|
-
public_key == o.public_key
|
379
|
-
created_at == o.created_at &&
|
380
|
-
deleted_at == o.deleted_at &&
|
381
|
-
updated_at == o.updated_at &&
|
382
|
-
service_id == o.service_id &&
|
383
|
-
version == o.version
|
385
|
+
public_key == o.public_key
|
384
386
|
end
|
385
387
|
|
386
388
|
# @see the `==` method
|
@@ -392,7 +394,7 @@ module Fastly
|
|
392
394
|
# Calculates hash code according to all attributes.
|
393
395
|
# @return [Integer] Hash code
|
394
396
|
def hash
|
395
|
-
[name, placement,
|
397
|
+
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, bucket_name, access_key, secret_key, domain, path, public_key].hash
|
396
398
|
end
|
397
399
|
|
398
400
|
# Builds the object from hash
|
data/lib/fastly/models/{logging_elasticsearch_all_of.rb → logging_elasticsearch_additional.rb}
RENAMED
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class LoggingElasticsearchAdditional
|
16
16
|
# The name of the Elasticsearch index to send documents (logs) to. The index must follow the Elasticsearch [index format rules](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html). We support [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) interpolated variables inside braces prefixed with a pound symbol. For example, `\#{%F}` will interpolate as `YYYY-MM-DD` with today's date.
|
17
17
|
attr_accessor :index
|
18
18
|
|
@@ -73,13 +73,13 @@ module Fastly
|
|
73
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
74
|
def initialize(attributes = {})
|
75
75
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingElasticsearchAdditional` initialize method"
|
77
77
|
end
|
78
78
|
|
79
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
81
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingElasticsearchAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
83
|
end
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
@@ -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). Must produce valid JSON that Elasticsearch can ingest.
|
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
|
|
@@ -101,9 +101,9 @@ module Fastly
|
|
101
101
|
{
|
102
102
|
:'name' => :'name',
|
103
103
|
:'placement' => :'placement',
|
104
|
-
:'format_version' => :'format_version',
|
105
104
|
:'response_condition' => :'response_condition',
|
106
105
|
:'format' => :'format',
|
106
|
+
:'format_version' => :'format_version',
|
107
107
|
:'tls_ca_cert' => :'tls_ca_cert',
|
108
108
|
:'tls_client_cert' => :'tls_client_cert',
|
109
109
|
:'tls_client_key' => :'tls_client_key',
|
@@ -133,9 +133,9 @@ module Fastly
|
|
133
133
|
{
|
134
134
|
:'name' => :'String',
|
135
135
|
:'placement' => :'String',
|
136
|
-
:'format_version' => :'Integer',
|
137
136
|
:'response_condition' => :'String',
|
138
137
|
:'format' => :'String',
|
138
|
+
:'format_version' => :'String',
|
139
139
|
:'tls_ca_cert' => :'String',
|
140
140
|
:'tls_client_cert' => :'String',
|
141
141
|
:'tls_client_key' => :'String',
|
@@ -151,7 +151,7 @@ module Fastly
|
|
151
151
|
:'deleted_at' => :'Time',
|
152
152
|
:'updated_at' => :'Time',
|
153
153
|
:'service_id' => :'String',
|
154
|
-
:'version' => :'
|
154
|
+
:'version' => :'String'
|
155
155
|
}
|
156
156
|
end
|
157
157
|
|
@@ -176,8 +176,11 @@ module Fastly
|
|
176
176
|
# List of class defined in allOf (OpenAPI v3)
|
177
177
|
def self.fastly_all_of
|
178
178
|
[
|
179
|
-
:'
|
180
|
-
:'
|
179
|
+
:'LoggingCommonResponse',
|
180
|
+
:'LoggingElasticsearchAdditional',
|
181
|
+
:'LoggingRequestCapsCommon',
|
182
|
+
:'LoggingTlsCommon',
|
183
|
+
:'ServiceIdAndVersionString',
|
181
184
|
:'Timestamps'
|
182
185
|
]
|
183
186
|
end
|
@@ -205,12 +208,6 @@ module Fastly
|
|
205
208
|
self.placement = attributes[:'placement']
|
206
209
|
end
|
207
210
|
|
208
|
-
if attributes.key?(:'format_version')
|
209
|
-
self.format_version = attributes[:'format_version']
|
210
|
-
else
|
211
|
-
self.format_version = FORMAT_VERSION::v2
|
212
|
-
end
|
213
|
-
|
214
211
|
if attributes.key?(:'response_condition')
|
215
212
|
self.response_condition = attributes[:'response_condition']
|
216
213
|
end
|
@@ -219,6 +216,12 @@ module Fastly
|
|
219
216
|
self.format = attributes[:'format']
|
220
217
|
end
|
221
218
|
|
219
|
+
if attributes.key?(:'format_version')
|
220
|
+
self.format_version = attributes[:'format_version']
|
221
|
+
else
|
222
|
+
self.format_version = '2'
|
223
|
+
end
|
224
|
+
|
222
225
|
if attributes.key?(:'tls_ca_cert')
|
223
226
|
self.tls_ca_cert = attributes[:'tls_ca_cert']
|
224
227
|
else
|
@@ -308,7 +311,7 @@ module Fastly
|
|
308
311
|
def valid?
|
309
312
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
310
313
|
return false unless placement_validator.valid?(@placement)
|
311
|
-
format_version_validator = EnumAttributeValidator.new('
|
314
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
312
315
|
return false unless format_version_validator.valid?(@format_version)
|
313
316
|
true
|
314
317
|
end
|
@@ -326,7 +329,7 @@ module Fastly
|
|
326
329
|
# Custom attribute writer method checking allowed values (enum).
|
327
330
|
# @param [Object] format_version Object to be assigned
|
328
331
|
def format_version=(format_version)
|
329
|
-
validator = EnumAttributeValidator.new('
|
332
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
330
333
|
unless validator.valid?(format_version)
|
331
334
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
332
335
|
end
|
@@ -340,9 +343,9 @@ module Fastly
|
|
340
343
|
self.class == o.class &&
|
341
344
|
name == o.name &&
|
342
345
|
placement == o.placement &&
|
343
|
-
format_version == o.format_version &&
|
344
346
|
response_condition == o.response_condition &&
|
345
347
|
format == o.format &&
|
348
|
+
format_version == o.format_version &&
|
346
349
|
tls_ca_cert == o.tls_ca_cert &&
|
347
350
|
tls_client_cert == o.tls_client_cert &&
|
348
351
|
tls_client_key == o.tls_client_key &&
|
@@ -370,7 +373,7 @@ module Fastly
|
|
370
373
|
# Calculates hash code according to all attributes.
|
371
374
|
# @return [Integer] Hash code
|
372
375
|
def hash
|
373
|
-
[name, placement,
|
376
|
+
[name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, index, url, pipeline, user, password, created_at, deleted_at, updated_at, service_id, version].hash
|
374
377
|
end
|
375
378
|
|
376
379
|
# Builds the object from hash
|