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

- old
+ new

@@ -43,10 +43,13 @@ attr_accessor :paused # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service. attr_accessor :versions + # A list of environments where the service has been deployed. + attr_accessor :environments + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values def initialize(datatype, allowable_values) @@ -78,11 +81,12 @@ :'customer_id' => :'customer_id', :'type' => :'type', :'id' => :'id', :'publish_key' => :'publish_key', :'paused' => :'paused', - :'versions' => :'versions' + :'versions' => :'versions', + :'environments' => :'environments' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -100,11 +104,12 @@ :'customer_id' => :'String', :'type' => :'String', :'id' => :'String', :'publish_key' => :'String', :'paused' => :'Boolean', - :'versions' => :'Array<SchemasVersionResponse>' + :'versions' => :'Array<SchemasVersionResponse>', + :'environments' => :'Array<Environment>' } end # List of attributes with nullable: true def self.fastly_nullable @@ -183,10 +188,16 @@ if attributes.key?(:'versions') if (value = attributes[:'versions']).is_a?(Array) self.versions = value end 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 @@ -225,11 +236,12 @@ customer_id == o.customer_id && type == o.type && id == o.id && publish_key == o.publish_key && paused == o.paused && - versions == o.versions + versions == o.versions && + environments == o.environments end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -237,10 +249,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created_at, deleted_at, updated_at, comment, name, customer_id, type, id, publish_key, paused, versions].hash + [created_at, deleted_at, updated_at, comment, name, customer_id, type, id, publish_key, paused, versions, environments].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself