lib/fastly/models/service_detail.rb in fastly-8.8.0 vs lib/fastly/models/service_detail.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
+
attr_accessor :active_version
attr_accessor :version
class EnumAttributeValidator
@@ -83,10 +86,11 @@
:'type' => :'type',
:'id' => :'id',
:'publish_key' => :'publish_key',
:'paused' => :'paused',
:'versions' => :'versions',
+ :'environments' => :'environments',
:'active_version' => :'active_version',
:'version' => :'version'
}
end
@@ -107,10 +111,11 @@
:'type' => :'String',
:'id' => :'String',
:'publish_key' => :'String',
:'paused' => :'Boolean',
:'versions' => :'Array<SchemasVersionResponse>',
+ :'environments' => :'Array<Environment>',
:'active_version' => :'ServiceVersionDetailOrNull',
:'version' => :'ServiceVersionDetail'
}
end
@@ -192,10 +197,16 @@
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
+
if attributes.key?(:'active_version')
self.active_version = attributes[:'active_version']
end
if attributes.key?(:'version')
@@ -242,10 +253,11 @@
type == o.type &&
id == o.id &&
publish_key == o.publish_key &&
paused == o.paused &&
versions == o.versions &&
+ environments == o.environments &&
active_version == o.active_version &&
version == o.version
end
# @see the `==` method
@@ -255,10 +267,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, active_version, version].hash
+ [created_at, deleted_at, updated_at, comment, name, customer_id, type, id, publish_key, paused, versions, environments, active_version, version].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself