lib/fastly/models/package_metadata.rb in fastly-4.4.0 vs lib/fastly/models/package_metadata.rb in fastly-5.0.0

- old
+ new

@@ -30,19 +30,23 @@ attr_accessor :size # Hash of the Compute@Edge package. attr_accessor :hashsum + # Hash of the files within the Compute@Edge package. + attr_accessor :files_hash + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'name' => :'name', :'description' => :'description', :'authors' => :'authors', :'language' => :'language', :'size' => :'size', - :'hashsum' => :'hashsum' + :'hashsum' => :'hashsum', + :'files_hash' => :'files_hash' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -55,11 +59,12 @@ :'name' => :'String', :'description' => :'String', :'authors' => :'Array<String>', :'language' => :'String', :'size' => :'Integer', - :'hashsum' => :'String' + :'hashsum' => :'String', + :'files_hash' => :'String' } end # List of attributes with nullable: true def self.fastly_nullable @@ -105,10 +110,14 @@ end if attributes.key?(:'hashsum') self.hashsum = attributes[:'hashsum'] end + + if attributes.key?(:'files_hash') + self.files_hash = attributes[:'files_hash'] + 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 @@ -130,11 +139,12 @@ name == o.name && description == o.description && authors == o.authors && language == o.language && size == o.size && - hashsum == o.hashsum + hashsum == o.hashsum && + files_hash == o.files_hash end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -142,10 +152,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, description, authors, language, size, hashsum].hash + [name, description, authors, language, size, hashsum, files_hash].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself