lib/cloudsmith-api/models/repository_token.rb in cloudsmith-api-0.52.5 vs lib/cloudsmith-api/models/repository_token.rb in cloudsmith-api-0.52.79
- old
+ new
@@ -83,10 +83,13 @@
#
attr_accessor :updated_by_url
#
+ attr_accessor :usage
+
+ #
attr_accessor :user
#
attr_accessor :user_url
@@ -115,10 +118,11 @@
:'slug_perm' => :'slug_perm',
:'token' => :'token',
:'updated_at' => :'updated_at',
:'updated_by' => :'updated_by',
:'updated_by_url' => :'updated_by_url',
+ :'usage' => :'usage',
:'user' => :'user',
:'user_url' => :'user_url'
}
end
@@ -146,10 +150,11 @@
:'slug_perm' => :'String',
:'token' => :'String',
:'updated_at' => :'String',
:'updated_by' => :'String',
:'updated_by_url' => :'String',
+ :'usage' => :'String',
:'user' => :'String',
:'user_url' => :'String'
}
end
@@ -251,10 +256,14 @@
if attributes.has_key?(:'updated_by_url')
self.updated_by_url = attributes[:'updated_by_url']
end
+ if attributes.has_key?(:'usage')
+ self.usage = attributes[:'usage']
+ end
+
if attributes.has_key?(:'user')
self.user = attributes[:'user']
end
if attributes.has_key?(:'user_url')
@@ -307,10 +316,11 @@
slug_perm == o.slug_perm &&
token == o.token &&
updated_at == o.updated_at &&
updated_by == o.updated_by &&
updated_by_url == o.updated_by_url &&
+ usage == o.usage &&
user == o.user &&
user_url == o.user_url
end
# @see the `==` method
@@ -320,10 +330,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, user, user_url].hash
+ [created_at, created_by, created_by_url, default, has_limits, identifier, is_active, is_limited, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, refresh_url, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself