lib/fastly/models/service_version_detail.rb in fastly-8.8.0 vs lib/fastly/models/service_version_detail.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 + # List of backends associated to this service. attr_accessor :backends # List of cache settings associated to this service. attr_accessor :cache_settings @@ -98,10 +101,11 @@ :'testing' => :'testing', :'created_at' => :'created_at', :'deleted_at' => :'deleted_at', :'updated_at' => :'updated_at', :'service_id' => :'service_id', + :'environments' => :'environments', :'backends' => :'backends', :'cache_settings' => :'cache_settings', :'conditions' => :'conditions', :'directors' => :'directors', :'domains' => :'domains', @@ -134,10 +138,11 @@ :'testing' => :'Boolean', :'created_at' => :'Time', :'deleted_at' => :'Time', :'updated_at' => :'Time', :'service_id' => :'String', + :'environments' => :'Array<Environment>', :'backends' => :'Array<BackendResponse>', :'cache_settings' => :'Array<CacheSettingResponse>', :'conditions' => :'Array<ConditionResponse>', :'directors' => :'Array<Director>', :'domains' => :'Array<DomainResponse>', @@ -236,10 +241,16 @@ 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 + if attributes.key?(:'backends') if (value = attributes[:'backends']).is_a?(Array) self.backends = value end end @@ -348,10 +359,11 @@ testing == o.testing && created_at == o.created_at && deleted_at == o.deleted_at && updated_at == o.updated_at && service_id == o.service_id && + environments == o.environments && backends == o.backends && cache_settings == o.cache_settings && conditions == o.conditions && directors == o.directors && domains == o.domains && @@ -373,10 +385,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, backends, cache_settings, conditions, directors, domains, gzips, headers, healthchecks, request_settings, response_objects, settings, snippets, vcls, wordpress].hash + [active, comment, deployed, locked, number, staging, testing, created_at, deleted_at, updated_at, service_id, environments, backends, cache_settings, conditions, directors, domains, gzips, headers, healthchecks, request_settings, response_objects, settings, snippets, vcls, wordpress].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself