lib/fastly/models/logging_gcs_common.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/logging_gcs_common.rb in fastly-4.0.0

- old
+ new

@@ -11,21 +11,25 @@ require 'date' require 'time' module Fastly class LoggingGcsCommon - # 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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'user' => :'user', - :'secret_key' => :'secret_key' + :'secret_key' => :'secret_key', + :'account_name' => :'account_name' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -34,11 +38,12 @@ # Attribute type mapping. def self.fastly_types { :'user' => :'String', - :'secret_key' => :'String' + :'secret_key' => :'String', + :'account_name' => :'String' } end # List of attributes with nullable: true def self.fastly_nullable @@ -66,10 +71,14 @@ end if attributes.key?(:'secret_key') self.secret_key = attributes[:'secret_key'] end + + if attributes.key?(:'account_name') + self.account_name = attributes[:'account_name'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -87,11 +96,12 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && user == o.user && - secret_key == o.secret_key + secret_key == o.secret_key && + account_name == o.account_name end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -99,10 +109,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [user, secret_key].hash + [user, secret_key, account_name].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself