lib/fastly/models/version_response.rb in fastly-8.8.0 vs lib/fastly/models/version_response.rb in fastly-8.9.0

- old
+ new

@@ -43,10 +43,13 @@ # Date and time in ISO 8601 format. attr_accessor :updated_at attr_accessor :service_id + # A list of environments where the service has been deployed. + attr_accessor :environments + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'active' => :'active', :'comment' => :'comment', @@ -56,11 +59,12 @@ :'staging' => :'staging', :'testing' => :'testing', :'created_at' => :'created_at', :'deleted_at' => :'deleted_at', :'updated_at' => :'updated_at', - :'service_id' => :'service_id' + :'service_id' => :'service_id', + :'environments' => :'environments' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -78,11 +82,12 @@ :'staging' => :'Boolean', :'testing' => :'Boolean', :'created_at' => :'Time', :'deleted_at' => :'Time', :'updated_at' => :'Time', - :'service_id' => :'String' + :'service_id' => :'String', + :'environments' => :'Array<Environment>' } end # List of attributes with nullable: true def self.fastly_nullable @@ -167,10 +172,16 @@ end if attributes.key?(:'service_id') self.service_id = attributes[:'service_id'] end + + if attributes.key?(:'environments') + if (value = attributes[:'environments']).is_a?(Array) + self.environments = value + end + 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 @@ -197,11 +208,12 @@ staging == o.staging && testing == o.testing && created_at == o.created_at && deleted_at == o.deleted_at && updated_at == o.updated_at && - service_id == o.service_id + service_id == o.service_id && + environments == o.environments end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -209,10 +221,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [active, comment, deployed, locked, number, staging, testing, created_at, deleted_at, updated_at, service_id].hash + [active, comment, deployed, locked, number, staging, testing, created_at, deleted_at, updated_at, service_id, environments].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself