lib/cloudsmith-api/models/entitlements_refresh.rb in cloudsmith-api-0.53.3 vs lib/cloudsmith-api/models/entitlements_refresh.rb in cloudsmith-api-0.53.17

- old
+ new

@@ -16,10 +16,16 @@ class EntitlementsRefresh # If enabled, the token will allow downloads based on configured restrictions (if any). attr_accessor :is_active + # The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth.Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + attr_accessor :limit_bandwidth + + # None + attr_accessor :limit_bandwidth_unit + # The starting date/time the token is allowed to be used from. attr_accessor :limit_date_range_from # The ending date/time the token is allowed to be used until. attr_accessor :limit_date_range_to @@ -38,39 +44,48 @@ # None attr_accessor :metadata # None + attr_accessor :scheduled_reset_period + + # None attr_accessor :token # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'is_active' => :'is_active', + :'limit_bandwidth' => :'limit_bandwidth', + :'limit_bandwidth_unit' => :'limit_bandwidth_unit', :'limit_date_range_from' => :'limit_date_range_from', :'limit_date_range_to' => :'limit_date_range_to', :'limit_num_clients' => :'limit_num_clients', :'limit_num_downloads' => :'limit_num_downloads', :'limit_package_query' => :'limit_package_query', :'limit_path_query' => :'limit_path_query', :'metadata' => :'metadata', + :'scheduled_reset_period' => :'scheduled_reset_period', :'token' => :'token' } end # Attribute type mapping. def self.swagger_types { :'is_active' => :'BOOLEAN', + :'limit_bandwidth' => :'Integer', + :'limit_bandwidth_unit' => :'String', :'limit_date_range_from' => :'String', :'limit_date_range_to' => :'String', :'limit_num_clients' => :'Integer', :'limit_num_downloads' => :'Integer', :'limit_package_query' => :'String', :'limit_path_query' => :'String', :'metadata' => :'Object', + :'scheduled_reset_period' => :'String', :'token' => :'String' } end # Initializes the object @@ -83,10 +98,18 @@ if attributes.has_key?(:'is_active') self.is_active = attributes[:'is_active'] end + if attributes.has_key?(:'limit_bandwidth') + self.limit_bandwidth = attributes[:'limit_bandwidth'] + end + + if attributes.has_key?(:'limit_bandwidth_unit') + self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit'] + end + if attributes.has_key?(:'limit_date_range_from') self.limit_date_range_from = attributes[:'limit_date_range_from'] end if attributes.has_key?(:'limit_date_range_to') @@ -111,10 +134,14 @@ if attributes.has_key?(:'metadata') self.metadata = attributes[:'metadata'] end + if attributes.has_key?(:'scheduled_reset_period') + self.scheduled_reset_period = attributes[:'scheduled_reset_period'] + end + if attributes.has_key?(:'token') self.token = attributes[:'token'] end end @@ -136,17 +163,20 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && is_active == o.is_active && + limit_bandwidth == o.limit_bandwidth && + limit_bandwidth_unit == o.limit_bandwidth_unit && limit_date_range_from == o.limit_date_range_from && limit_date_range_to == o.limit_date_range_to && limit_num_clients == o.limit_num_clients && limit_num_downloads == o.limit_num_downloads && limit_package_query == o.limit_package_query && limit_path_query == o.limit_path_query && metadata == o.metadata && + scheduled_reset_period == o.scheduled_reset_period && token == o.token end # @see the `==` method # @param [Object] Object to be compared @@ -155,10 +185,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, token].hash + [is_active, limit_bandwidth, limit_bandwidth_unit, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, scheduled_reset_period, token].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself