lib/fastly/models/logging_google_pubsub.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/logging_google_pubsub.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).
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
+
# The Google Cloud Pub/Sub topic to which logs will be published. Required.
attr_accessor :topic
# Your Google Cloud Platform project ID. Required
attr_accessor :project_id
@@ -70,10 +73,11 @@
:'format_version' => :'format_version',
:'response_condition' => :'response_condition',
:'format' => :'format',
:'user' => :'user',
:'secret_key' => :'secret_key',
+ :'account_name' => :'account_name',
:'topic' => :'topic',
:'project_id' => :'project_id'
}
end
@@ -90,10 +94,11 @@
:'format_version' => :'Integer',
:'response_condition' => :'String',
:'format' => :'String',
:'user' => :'String',
:'secret_key' => :'String',
+ :'account_name' => :'String',
:'topic' => :'String',
:'project_id' => :'String'
}
end
@@ -159,10 +164,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?(:'topic')
self.topic = attributes[:'topic']
end
if attributes.key?(:'project_id')
@@ -217,10 +226,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 &&
topic == o.topic &&
project_id == o.project_id
end
# @see the `==` method
@@ -230,10 +240,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, topic, project_id].hash
+ [name, placement, format_version, response_condition, format, user, secret_key, account_name, topic, project_id].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself