lib/fastly/models/logging_gcs_response.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/logging_gcs_response.rb in fastly-4.0.0
- old
+ new
@@ -17,11 +17,11 @@
attr_accessor :name
# 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`.
attr_accessor :placement
- # 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`.
+ # 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`.
attr_accessor :format_version
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
attr_accessor :response_condition
@@ -35,31 +35,37 @@
attr_accessor :timestamp_format
# How frequently log files are finalized so they can be available for reading (in seconds).
attr_accessor :period
- # What level of gzip encoding to have when sending logs (default `0`, no compression). If an explicit non-zero value is set, then `compression_codec` will default to \"gzip.\" Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
+ # 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.
attr_accessor :gzip_level
- # The codec used for compression of your logs. Valid values are `zstd`, `snappy`, and `gzip`. If the specified codec is \"gzip\", `gzip_level` will default to 3. To specify a different level, leave `compression_codec` blank and explicitly set the level using `gzip_level`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
+ # 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.
attr_accessor :compression_codec
- # Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Required.
+ # 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.
attr_accessor :user
- # Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Required.
+ # Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
attr_accessor :secret_key
+ # 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.
+ attr_accessor :account_name
+
# The name of the GCS bucket.
attr_accessor :bucket_name
# The path to upload logs to.
attr_accessor :path
# A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
attr_accessor :public_key
+ # Your Google Cloud Platform project ID. Required
+ attr_accessor :project_id
+
# Date and time in ISO 8601 format.
attr_accessor :created_at
# Date and time in ISO 8601 format.
attr_accessor :deleted_at
@@ -106,13 +112,15 @@
:'period' => :'period',
:'gzip_level' => :'gzip_level',
:'compression_codec' => :'compression_codec',
:'user' => :'user',
:'secret_key' => :'secret_key',
+ :'account_name' => :'account_name',
:'bucket_name' => :'bucket_name',
:'path' => :'path',
:'public_key' => :'public_key',
+ :'project_id' => :'project_id',
:'created_at' => :'created_at',
:'deleted_at' => :'deleted_at',
:'updated_at' => :'updated_at',
:'service_id' => :'service_id',
:'version' => :'version'
@@ -137,13 +145,15 @@
:'period' => :'Integer',
:'gzip_level' => :'Integer',
:'compression_codec' => :'String',
:'user' => :'String',
:'secret_key' => :'String',
+ :'account_name' => :'String',
:'bucket_name' => :'String',
:'path' => :'String',
:'public_key' => :'String',
+ :'project_id' => :'String',
:'created_at' => :'Time',
:'deleted_at' => :'Time',
:'updated_at' => :'Time',
:'service_id' => :'String',
:'version' => :'Integer'
@@ -154,17 +164,14 @@
def self.fastly_nullable
Set.new([
:'placement',
:'response_condition',
:'timestamp_format',
- :'path',
:'public_key',
:'created_at',
:'deleted_at',
:'updated_at',
- :'service_id',
- :'version'
])
end
# List of class defined in allOf (OpenAPI v3)
def self.fastly_all_of
@@ -246,10 +253,14 @@
if attributes.key?(:'secret_key')
self.secret_key = attributes[:'secret_key']
end
+ if attributes.key?(:'account_name')
+ self.account_name = attributes[:'account_name']
+ end
+
if attributes.key?(:'bucket_name')
self.bucket_name = attributes[:'bucket_name']
end
if attributes.key?(:'path')
@@ -260,10 +271,14 @@
self.public_key = attributes[:'public_key']
else
self.public_key = 'null'
end
+ if attributes.key?(:'project_id')
+ self.project_id = attributes[:'project_id']
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'deleted_at')
@@ -359,13 +374,15 @@
period == o.period &&
gzip_level == o.gzip_level &&
compression_codec == o.compression_codec &&
user == o.user &&
secret_key == o.secret_key &&
+ account_name == o.account_name &&
bucket_name == o.bucket_name &&
path == o.path &&
public_key == o.public_key &&
+ project_id == o.project_id &&
created_at == o.created_at &&
deleted_at == o.deleted_at &&
updated_at == o.updated_at &&
service_id == o.service_id &&
version == o.version
@@ -378,10 +395,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, placement, format_version, response_condition, format, message_type, timestamp_format, period, gzip_level, compression_codec, user, secret_key, bucket_name, path, public_key, created_at, deleted_at, updated_at, service_id, version].hash
+ [name, placement, format_version, response_condition, format, message_type, timestamp_format, period, gzip_level, compression_codec, user, secret_key, account_name, bucket_name, path, public_key, project_id, created_at, deleted_at, updated_at, service_id, version].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself