lib/fastly/models/logging_bigquery_response.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/logging_bigquery_response.rb in fastly-4.0.0
- old
+ new
@@ -17,25 +17,28 @@
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
# A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table.
attr_accessor :format
- # 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
+
# Your BigQuery dataset.
attr_accessor :dataset
# Your BigQuery table.
attr_accessor :table
@@ -89,10 +92,11 @@
:'format_version' => :'format_version',
:'response_condition' => :'response_condition',
:'format' => :'format',
:'user' => :'user',
:'secret_key' => :'secret_key',
+ :'account_name' => :'account_name',
:'dataset' => :'dataset',
:'table' => :'table',
:'template_suffix' => :'template_suffix',
:'project_id' => :'project_id',
:'created_at' => :'created_at',
@@ -116,10 +120,11 @@
:'format_version' => :'Integer',
:'response_condition' => :'String',
:'format' => :'String',
:'user' => :'String',
:'secret_key' => :'String',
+ :'account_name' => :'String',
:'dataset' => :'String',
:'table' => :'String',
:'template_suffix' => :'String',
:'project_id' => :'String',
:'created_at' => :'Time',
@@ -137,12 +142,10 @@
:'response_condition',
:'template_suffix',
:'created_at',
:'deleted_at',
:'updated_at',
- :'service_id',
- :'version'
])
end
# List of class defined in allOf (OpenAPI v3)
def self.fastly_all_of
@@ -196,10 +199,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?(:'dataset')
self.dataset = attributes[:'dataset']
end
if attributes.key?(:'table')
@@ -282,10 +289,11 @@
format_version == o.format_version &&
response_condition == o.response_condition &&
format == o.format &&
user == o.user &&
secret_key == o.secret_key &&
+ account_name == o.account_name &&
dataset == o.dataset &&
table == o.table &&
template_suffix == o.template_suffix &&
project_id == o.project_id &&
created_at == o.created_at &&
@@ -302,10 +310,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, placement, format_version, response_condition, format, user, secret_key, dataset, table, template_suffix, project_id, created_at, deleted_at, updated_at, service_id, version].hash
+ [name, placement, format_version, response_condition, format, user, secret_key, account_name, dataset, table, template_suffix, 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