lib/cloudsmith-api/models/packages_copy.rb in cloudsmith-api-0.51.38 vs lib/cloudsmith-api/models/packages_copy.rb in cloudsmith-api-0.51.93
- old
+ new
@@ -16,27 +16,22 @@
class PackagesCopy
# None
attr_accessor :destination
- # If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
- attr_accessor :republish
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'destination' => :'destination',
- :'republish' => :'republish'
+ :'destination' => :'destination'
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'destination' => :'String',
- :'republish' => :'BOOLEAN'
+ :'destination' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -48,14 +43,10 @@
if attributes.has_key?(:'destination')
self.destination = attributes[:'destination']
end
- if attributes.has_key?(:'republish')
- self.republish = attributes[:'republish']
- end
-
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
@@ -77,12 +68,11 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- destination == o.destination &&
- republish == o.republish
+ destination == o.destination
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -90,10 +80,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [destination, republish].hash
+ [destination].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself