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,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
|
|
@@ -40,6 +40,19 @@ module Fastly
|
|
40
40
|
# The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported.
|
41
41
|
attr_accessor :tls_hostname
|
42
42
|
|
43
|
+
# Date and time in ISO 8601 format.
|
44
|
+
attr_accessor :created_at
|
45
|
+
|
46
|
+
# Date and time in ISO 8601 format.
|
47
|
+
attr_accessor :deleted_at
|
48
|
+
|
49
|
+
# Date and time in ISO 8601 format.
|
50
|
+
attr_accessor :updated_at
|
51
|
+
|
52
|
+
attr_accessor :service_id
|
53
|
+
|
54
|
+
attr_accessor :version
|
55
|
+
|
43
56
|
# The Kafka topic to send logs to. Required.
|
44
57
|
attr_accessor :topic
|
45
58
|
|
@@ -69,19 +82,6 @@ module Fastly
|
|
69
82
|
|
70
83
|
attr_accessor :use_tls
|
71
84
|
|
72
|
-
# Date and time in ISO 8601 format.
|
73
|
-
attr_accessor :created_at
|
74
|
-
|
75
|
-
# Date and time in ISO 8601 format.
|
76
|
-
attr_accessor :deleted_at
|
77
|
-
|
78
|
-
# Date and time in ISO 8601 format.
|
79
|
-
attr_accessor :updated_at
|
80
|
-
|
81
|
-
attr_accessor :service_id
|
82
|
-
|
83
|
-
attr_accessor :version
|
84
|
-
|
85
85
|
class EnumAttributeValidator
|
86
86
|
attr_reader :datatype
|
87
87
|
attr_reader :allowable_values
|
@@ -109,13 +109,18 @@ module Fastly
|
|
109
109
|
{
|
110
110
|
:'name' => :'name',
|
111
111
|
:'placement' => :'placement',
|
112
|
-
:'format_version' => :'format_version',
|
113
112
|
:'response_condition' => :'response_condition',
|
114
113
|
:'format' => :'format',
|
114
|
+
:'format_version' => :'format_version',
|
115
115
|
:'tls_ca_cert' => :'tls_ca_cert',
|
116
116
|
:'tls_client_cert' => :'tls_client_cert',
|
117
117
|
:'tls_client_key' => :'tls_client_key',
|
118
118
|
:'tls_hostname' => :'tls_hostname',
|
119
|
+
:'created_at' => :'created_at',
|
120
|
+
:'deleted_at' => :'deleted_at',
|
121
|
+
:'updated_at' => :'updated_at',
|
122
|
+
:'service_id' => :'service_id',
|
123
|
+
:'version' => :'version',
|
119
124
|
:'topic' => :'topic',
|
120
125
|
:'brokers' => :'brokers',
|
121
126
|
:'compression_codec' => :'compression_codec',
|
@@ -125,12 +130,7 @@ module Fastly
|
|
125
130
|
:'auth_method' => :'auth_method',
|
126
131
|
:'user' => :'user',
|
127
132
|
:'password' => :'password',
|
128
|
-
:'use_tls' => :'use_tls'
|
129
|
-
:'created_at' => :'created_at',
|
130
|
-
:'deleted_at' => :'deleted_at',
|
131
|
-
:'updated_at' => :'updated_at',
|
132
|
-
:'service_id' => :'service_id',
|
133
|
-
:'version' => :'version'
|
133
|
+
:'use_tls' => :'use_tls'
|
134
134
|
}
|
135
135
|
end
|
136
136
|
|
@@ -144,13 +144,18 @@ module Fastly
|
|
144
144
|
{
|
145
145
|
:'name' => :'String',
|
146
146
|
:'placement' => :'String',
|
147
|
-
:'format_version' => :'Integer',
|
148
147
|
:'response_condition' => :'String',
|
149
148
|
:'format' => :'String',
|
149
|
+
:'format_version' => :'String',
|
150
150
|
:'tls_ca_cert' => :'String',
|
151
151
|
:'tls_client_cert' => :'String',
|
152
152
|
:'tls_client_key' => :'String',
|
153
153
|
:'tls_hostname' => :'String',
|
154
|
+
:'created_at' => :'Time',
|
155
|
+
:'deleted_at' => :'Time',
|
156
|
+
:'updated_at' => :'Time',
|
157
|
+
:'service_id' => :'String',
|
158
|
+
:'version' => :'String',
|
154
159
|
:'topic' => :'String',
|
155
160
|
:'brokers' => :'String',
|
156
161
|
:'compression_codec' => :'String',
|
@@ -160,12 +165,7 @@ module Fastly
|
|
160
165
|
:'auth_method' => :'String',
|
161
166
|
:'user' => :'String',
|
162
167
|
:'password' => :'String',
|
163
|
-
:'use_tls' => :'LoggingUseTls'
|
164
|
-
:'created_at' => :'Time',
|
165
|
-
:'deleted_at' => :'Time',
|
166
|
-
:'updated_at' => :'Time',
|
167
|
-
:'service_id' => :'String',
|
168
|
-
:'version' => :'Integer'
|
168
|
+
:'use_tls' => :'LoggingUseTls'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -178,18 +178,20 @@ module Fastly
|
|
178
178
|
:'tls_client_cert',
|
179
179
|
:'tls_client_key',
|
180
180
|
:'tls_hostname',
|
181
|
-
:'compression_codec',
|
182
181
|
:'created_at',
|
183
182
|
:'deleted_at',
|
184
183
|
:'updated_at',
|
184
|
+
:'compression_codec',
|
185
185
|
])
|
186
186
|
end
|
187
187
|
|
188
188
|
# List of class defined in allOf (OpenAPI v3)
|
189
189
|
def self.fastly_all_of
|
190
190
|
[
|
191
|
-
:'
|
192
|
-
:'
|
191
|
+
:'LoggingCommonResponse',
|
192
|
+
:'LoggingKafkaAdditional',
|
193
|
+
:'LoggingTlsCommon',
|
194
|
+
:'ServiceIdAndVersionString',
|
193
195
|
:'Timestamps'
|
194
196
|
]
|
195
197
|
end
|
@@ -217,12 +219,6 @@ module Fastly
|
|
217
219
|
self.placement = attributes[:'placement']
|
218
220
|
end
|
219
221
|
|
220
|
-
if attributes.key?(:'format_version')
|
221
|
-
self.format_version = attributes[:'format_version']
|
222
|
-
else
|
223
|
-
self.format_version = FORMAT_VERSION::v2
|
224
|
-
end
|
225
|
-
|
226
222
|
if attributes.key?(:'response_condition')
|
227
223
|
self.response_condition = attributes[:'response_condition']
|
228
224
|
end
|
@@ -233,6 +229,12 @@ module Fastly
|
|
233
229
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
234
230
|
end
|
235
231
|
|
232
|
+
if attributes.key?(:'format_version')
|
233
|
+
self.format_version = attributes[:'format_version']
|
234
|
+
else
|
235
|
+
self.format_version = '2'
|
236
|
+
end
|
237
|
+
|
236
238
|
if attributes.key?(:'tls_ca_cert')
|
237
239
|
self.tls_ca_cert = attributes[:'tls_ca_cert']
|
238
240
|
else
|
@@ -257,6 +259,26 @@ module Fastly
|
|
257
259
|
self.tls_hostname = 'null'
|
258
260
|
end
|
259
261
|
|
262
|
+
if attributes.key?(:'created_at')
|
263
|
+
self.created_at = attributes[:'created_at']
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.key?(:'deleted_at')
|
267
|
+
self.deleted_at = attributes[:'deleted_at']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.key?(:'updated_at')
|
271
|
+
self.updated_at = attributes[:'updated_at']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.key?(:'service_id')
|
275
|
+
self.service_id = attributes[:'service_id']
|
276
|
+
end
|
277
|
+
|
278
|
+
if attributes.key?(:'version')
|
279
|
+
self.version = attributes[:'version']
|
280
|
+
end
|
281
|
+
|
260
282
|
if attributes.key?(:'topic')
|
261
283
|
self.topic = attributes[:'topic']
|
262
284
|
end
|
@@ -302,26 +324,6 @@ module Fastly
|
|
302
324
|
else
|
303
325
|
self.use_tls = LoggingUseTls::no_tls
|
304
326
|
end
|
305
|
-
|
306
|
-
if attributes.key?(:'created_at')
|
307
|
-
self.created_at = attributes[:'created_at']
|
308
|
-
end
|
309
|
-
|
310
|
-
if attributes.key?(:'deleted_at')
|
311
|
-
self.deleted_at = attributes[:'deleted_at']
|
312
|
-
end
|
313
|
-
|
314
|
-
if attributes.key?(:'updated_at')
|
315
|
-
self.updated_at = attributes[:'updated_at']
|
316
|
-
end
|
317
|
-
|
318
|
-
if attributes.key?(:'service_id')
|
319
|
-
self.service_id = attributes[:'service_id']
|
320
|
-
end
|
321
|
-
|
322
|
-
if attributes.key?(:'version')
|
323
|
-
self.version = attributes[:'version']
|
324
|
-
end
|
325
327
|
end
|
326
328
|
|
327
329
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -336,7 +338,7 @@ module Fastly
|
|
336
338
|
def valid?
|
337
339
|
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
338
340
|
return false unless placement_validator.valid?(@placement)
|
339
|
-
format_version_validator = EnumAttributeValidator.new('
|
341
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
340
342
|
return false unless format_version_validator.valid?(@format_version)
|
341
343
|
compression_codec_validator = EnumAttributeValidator.new('String', ["gzip", "snappy", "lz4", "null"])
|
342
344
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
@@ -360,7 +362,7 @@ module Fastly
|
|
360
362
|
# Custom attribute writer method checking allowed values (enum).
|
361
363
|
# @param [Object] format_version Object to be assigned
|
362
364
|
def format_version=(format_version)
|
363
|
-
validator = EnumAttributeValidator.new('
|
365
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
364
366
|
unless validator.valid?(format_version)
|
365
367
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
366
368
|
end
|
@@ -404,13 +406,18 @@ module Fastly
|
|
404
406
|
self.class == o.class &&
|
405
407
|
name == o.name &&
|
406
408
|
placement == o.placement &&
|
407
|
-
format_version == o.format_version &&
|
408
409
|
response_condition == o.response_condition &&
|
409
410
|
format == o.format &&
|
411
|
+
format_version == o.format_version &&
|
410
412
|
tls_ca_cert == o.tls_ca_cert &&
|
411
413
|
tls_client_cert == o.tls_client_cert &&
|
412
414
|
tls_client_key == o.tls_client_key &&
|
413
415
|
tls_hostname == o.tls_hostname &&
|
416
|
+
created_at == o.created_at &&
|
417
|
+
deleted_at == o.deleted_at &&
|
418
|
+
updated_at == o.updated_at &&
|
419
|
+
service_id == o.service_id &&
|
420
|
+
version == o.version &&
|
414
421
|
topic == o.topic &&
|
415
422
|
brokers == o.brokers &&
|
416
423
|
compression_codec == o.compression_codec &&
|
@@ -420,12 +427,7 @@ module Fastly
|
|
420
427
|
auth_method == o.auth_method &&
|
421
428
|
user == o.user &&
|
422
429
|
password == o.password &&
|
423
|
-
use_tls == o.use_tls
|
424
|
-
created_at == o.created_at &&
|
425
|
-
deleted_at == o.deleted_at &&
|
426
|
-
updated_at == o.updated_at &&
|
427
|
-
service_id == o.service_id &&
|
428
|
-
version == o.version
|
430
|
+
use_tls == o.use_tls
|
429
431
|
end
|
430
432
|
|
431
433
|
# @see the `==` method
|
@@ -437,7 +439,7 @@ module Fastly
|
|
437
439
|
# Calculates hash code according to all attributes.
|
438
440
|
# @return [Integer] Hash code
|
439
441
|
def hash
|
440
|
-
[name, placement,
|
442
|
+
[name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, created_at, deleted_at, updated_at, service_id, version, topic, brokers, compression_codec, required_acks, request_max_bytes, parse_log_keyvals, auth_method, user, password, use_tls].hash
|
441
443
|
end
|
442
444
|
|
443
445
|
# Builds the object from hash
|
@@ -12,22 +12,22 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class LoggingKafkaResponsePost
|
16
16
|
# The name for the real-time logging configuration.
|
17
17
|
attr_accessor :name
|
18
18
|
|
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
|
|
@@ -40,6 +40,19 @@ module Fastly
|
|
40
40
|
# The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported.
|
41
41
|
attr_accessor :tls_hostname
|
42
42
|
|
43
|
+
# Date and time in ISO 8601 format.
|
44
|
+
attr_accessor :created_at
|
45
|
+
|
46
|
+
# Date and time in ISO 8601 format.
|
47
|
+
attr_accessor :deleted_at
|
48
|
+
|
49
|
+
# Date and time in ISO 8601 format.
|
50
|
+
attr_accessor :updated_at
|
51
|
+
|
52
|
+
attr_accessor :service_id
|
53
|
+
|
54
|
+
attr_accessor :version
|
55
|
+
|
43
56
|
# The Kafka topic to send logs to. Required.
|
44
57
|
attr_accessor :topic
|
45
58
|
|
@@ -96,13 +109,18 @@ module Fastly
|
|
96
109
|
{
|
97
110
|
:'name' => :'name',
|
98
111
|
:'placement' => :'placement',
|
99
|
-
:'format_version' => :'format_version',
|
100
112
|
:'response_condition' => :'response_condition',
|
101
113
|
:'format' => :'format',
|
114
|
+
:'format_version' => :'format_version',
|
102
115
|
:'tls_ca_cert' => :'tls_ca_cert',
|
103
116
|
:'tls_client_cert' => :'tls_client_cert',
|
104
117
|
:'tls_client_key' => :'tls_client_key',
|
105
118
|
:'tls_hostname' => :'tls_hostname',
|
119
|
+
:'created_at' => :'created_at',
|
120
|
+
:'deleted_at' => :'deleted_at',
|
121
|
+
:'updated_at' => :'updated_at',
|
122
|
+
:'service_id' => :'service_id',
|
123
|
+
:'version' => :'version',
|
106
124
|
:'topic' => :'topic',
|
107
125
|
:'brokers' => :'brokers',
|
108
126
|
:'compression_codec' => :'compression_codec',
|
@@ -126,13 +144,18 @@ module Fastly
|
|
126
144
|
{
|
127
145
|
:'name' => :'String',
|
128
146
|
:'placement' => :'String',
|
129
|
-
:'format_version' => :'Integer',
|
130
147
|
:'response_condition' => :'String',
|
131
148
|
:'format' => :'String',
|
149
|
+
:'format_version' => :'Integer',
|
132
150
|
:'tls_ca_cert' => :'String',
|
133
151
|
:'tls_client_cert' => :'String',
|
134
152
|
:'tls_client_key' => :'String',
|
135
153
|
:'tls_hostname' => :'String',
|
154
|
+
:'created_at' => :'Time',
|
155
|
+
:'deleted_at' => :'Time',
|
156
|
+
:'updated_at' => :'Time',
|
157
|
+
:'service_id' => :'String',
|
158
|
+
:'version' => :'String',
|
136
159
|
:'topic' => :'String',
|
137
160
|
:'brokers' => :'String',
|
138
161
|
:'compression_codec' => :'String',
|
@@ -155,6 +178,9 @@ module Fastly
|
|
155
178
|
:'tls_client_cert',
|
156
179
|
:'tls_client_key',
|
157
180
|
:'tls_hostname',
|
181
|
+
:'created_at',
|
182
|
+
:'deleted_at',
|
183
|
+
:'updated_at',
|
158
184
|
:'compression_codec',
|
159
185
|
])
|
160
186
|
end
|
@@ -163,8 +189,11 @@ module Fastly
|
|
163
189
|
def self.fastly_all_of
|
164
190
|
[
|
165
191
|
:'LoggingCommon',
|
166
|
-
:'
|
167
|
-
:'
|
192
|
+
:'LoggingFormatVersionInteger',
|
193
|
+
:'LoggingKafkaAdditional',
|
194
|
+
:'LoggingTlsCommon',
|
195
|
+
:'ServiceIdAndVersionString',
|
196
|
+
:'Timestamps'
|
168
197
|
]
|
169
198
|
end
|
170
199
|
|
@@ -172,13 +201,13 @@ module Fastly
|
|
172
201
|
# @param [Hash] attributes Model attributes in the form of hash
|
173
202
|
def initialize(attributes = {})
|
174
203
|
if (!attributes.is_a?(Hash))
|
175
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
204
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingKafkaResponsePost` initialize method"
|
176
205
|
end
|
177
206
|
|
178
207
|
# check to see if the attribute exists and convert string to symbol for hash key
|
179
208
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
180
209
|
if (!self.class.attribute_map.key?(k.to_sym))
|
181
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
210
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingKafkaResponsePost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
182
211
|
end
|
183
212
|
h[k.to_sym] = v
|
184
213
|
}
|
@@ -191,12 +220,6 @@ module Fastly
|
|
191
220
|
self.placement = attributes[:'placement']
|
192
221
|
end
|
193
222
|
|
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
223
|
if attributes.key?(:'response_condition')
|
201
224
|
self.response_condition = attributes[:'response_condition']
|
202
225
|
end
|
@@ -207,6 +230,12 @@ module Fastly
|
|
207
230
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
208
231
|
end
|
209
232
|
|
233
|
+
if attributes.key?(:'format_version')
|
234
|
+
self.format_version = attributes[:'format_version']
|
235
|
+
else
|
236
|
+
self.format_version = FORMAT_VERSION::v2
|
237
|
+
end
|
238
|
+
|
210
239
|
if attributes.key?(:'tls_ca_cert')
|
211
240
|
self.tls_ca_cert = attributes[:'tls_ca_cert']
|
212
241
|
else
|
@@ -231,6 +260,26 @@ module Fastly
|
|
231
260
|
self.tls_hostname = 'null'
|
232
261
|
end
|
233
262
|
|
263
|
+
if attributes.key?(:'created_at')
|
264
|
+
self.created_at = attributes[:'created_at']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.key?(:'deleted_at')
|
268
|
+
self.deleted_at = attributes[:'deleted_at']
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.key?(:'updated_at')
|
272
|
+
self.updated_at = attributes[:'updated_at']
|
273
|
+
end
|
274
|
+
|
275
|
+
if attributes.key?(:'service_id')
|
276
|
+
self.service_id = attributes[:'service_id']
|
277
|
+
end
|
278
|
+
|
279
|
+
if attributes.key?(:'version')
|
280
|
+
self.version = attributes[:'version']
|
281
|
+
end
|
282
|
+
|
234
283
|
if attributes.key?(:'topic')
|
235
284
|
self.topic = attributes[:'topic']
|
236
285
|
end
|
@@ -358,13 +407,18 @@ module Fastly
|
|
358
407
|
self.class == o.class &&
|
359
408
|
name == o.name &&
|
360
409
|
placement == o.placement &&
|
361
|
-
format_version == o.format_version &&
|
362
410
|
response_condition == o.response_condition &&
|
363
411
|
format == o.format &&
|
412
|
+
format_version == o.format_version &&
|
364
413
|
tls_ca_cert == o.tls_ca_cert &&
|
365
414
|
tls_client_cert == o.tls_client_cert &&
|
366
415
|
tls_client_key == o.tls_client_key &&
|
367
416
|
tls_hostname == o.tls_hostname &&
|
417
|
+
created_at == o.created_at &&
|
418
|
+
deleted_at == o.deleted_at &&
|
419
|
+
updated_at == o.updated_at &&
|
420
|
+
service_id == o.service_id &&
|
421
|
+
version == o.version &&
|
368
422
|
topic == o.topic &&
|
369
423
|
brokers == o.brokers &&
|
370
424
|
compression_codec == o.compression_codec &&
|
@@ -386,7 +440,7 @@ module Fastly
|
|
386
440
|
# Calculates hash code according to all attributes.
|
387
441
|
# @return [Integer] Hash code
|
388
442
|
def hash
|
389
|
-
[name, placement,
|
443
|
+
[name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, created_at, deleted_at, updated_at, service_id, version, topic, brokers, compression_codec, required_acks, request_max_bytes, parse_log_keyvals, auth_method, user, password, use_tls].hash
|
390
444
|
end
|
391
445
|
|
392
446
|
# Builds the object from hash
|
@@ -12,14 +12,12 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class LoggingKinesisAdditional
|
16
16
|
# The name for the real-time logging configuration.
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
19
|
attr_accessor :placement
|
20
20
|
|
21
|
-
attr_accessor :format_version
|
22
|
-
|
23
21
|
# A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.
|
24
22
|
attr_accessor :format
|
25
23
|
|
@@ -42,7 +40,6 @@ module Fastly
|
|
42
40
|
{
|
43
41
|
:'name' => :'name',
|
44
42
|
:'placement' => :'placement',
|
45
|
-
:'format_version' => :'format_version',
|
46
43
|
:'format' => :'format',
|
47
44
|
:'topic' => :'topic',
|
48
45
|
:'region' => :'region',
|
@@ -62,7 +59,6 @@ module Fastly
|
|
62
59
|
{
|
63
60
|
:'name' => :'String',
|
64
61
|
:'placement' => :'LoggingPlacement',
|
65
|
-
:'format_version' => :'LoggingFormatVersion',
|
66
62
|
:'format' => :'String',
|
67
63
|
:'topic' => :'String',
|
68
64
|
:'region' => :'AwsRegion',
|
@@ -86,13 +82,13 @@ module Fastly
|
|
86
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
83
|
def initialize(attributes = {})
|
88
84
|
if (!attributes.is_a?(Hash))
|
89
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingKinesisAdditional` initialize method"
|
90
86
|
end
|
91
87
|
|
92
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
93
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingKinesisAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
92
|
end
|
97
93
|
h[k.to_sym] = v
|
98
94
|
}
|
@@ -105,12 +101,6 @@ module Fastly
|
|
105
101
|
self.placement = attributes[:'placement']
|
106
102
|
end
|
107
103
|
|
108
|
-
if attributes.key?(:'format_version')
|
109
|
-
self.format_version = attributes[:'format_version']
|
110
|
-
else
|
111
|
-
self.format_version = LoggingFormatVersion::v2
|
112
|
-
end
|
113
|
-
|
114
104
|
if attributes.key?(:'format')
|
115
105
|
self.format = attributes[:'format']
|
116
106
|
else
|
@@ -158,7 +148,6 @@ module Fastly
|
|
158
148
|
self.class == o.class &&
|
159
149
|
name == o.name &&
|
160
150
|
placement == o.placement &&
|
161
|
-
format_version == o.format_version &&
|
162
151
|
format == o.format &&
|
163
152
|
topic == o.topic &&
|
164
153
|
region == o.region &&
|
@@ -176,7 +165,7 @@ module Fastly
|
|
176
165
|
# Calculates hash code according to all attributes.
|
177
166
|
# @return [Integer] Hash code
|
178
167
|
def hash
|
179
|
-
[name, placement,
|
168
|
+
[name, placement, format, topic, region, secret_key, access_key, iam_role].hash
|
180
169
|
end
|
181
170
|
|
182
171
|
# Builds the object from hash
|