cloudsmith-api 0.53.3 → 0.53.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -4
- data/README.md +4 -4
- data/build.json +1 -1
- data/docs/EntitlementsCreate.md +3 -0
- data/docs/EntitlementsPartialUpdate.md +3 -0
- data/docs/EntitlementsRefresh.md +3 -0
- data/docs/RepositoryToken.md +4 -0
- data/docs/RepositoryTokenRefresh.md +4 -0
- data/docs/RepositoryTokenSyncTokens.md +4 -0
- data/lib/cloudsmith-api/models/entitlements_create.rb +31 -1
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +31 -1
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +31 -1
- data/lib/cloudsmith-api/models/repository_token.rb +41 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +41 -1
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +41 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/models/entitlements_create_spec.rb +18 -0
- data/spec/models/entitlements_partial_update_spec.rb +18 -0
- data/spec/models/entitlements_refresh_spec.rb +18 -0
- data/spec/models/repository_token_refresh_spec.rb +24 -0
- data/spec/models/repository_token_spec.rb +24 -0
- data/spec/models/repository_token_sync_tokens_spec.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/json.rb +5 -18
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/util.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.4/lib/crack/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/xml.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/specifications/{crack-0.4.3.gemspec → crack-0.4.4.gemspec} +3 -15
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
- metadata +102 -177
- data/vendor/bundle/ruby/2.6.0/bin/safe_yaml +0 -27
- data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/safe_yaml-1.0.5.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.gitignore +0 -8
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.travis.yml +0 -14
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/Gemfile +0 -5
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/History +0 -25
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/LICENSE +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/README.md +0 -46
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/crack.gemspec +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/lib/crack/version.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/bootstrap +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/release +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/test +0 -25
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/large_dataset.json +0 -139988
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-firefox.json +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-ie.json +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/hash_test.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/json_test.rb +0 -91
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/parser_test.rb +0 -27
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/string_test.rb +0 -31
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/test_helper.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/xml_test.rb +0 -514
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.gitignore +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.travis.yml +0 -48
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/CHANGES.md +0 -154
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Gemfile +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/README.md +0 -191
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Rakefile +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bin/safe_yaml +0 -75
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bundle_install_all_ruby_versions.sh +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb +0 -94
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb +0 -34
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb +0 -36
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb +0 -181
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +0 -37
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb +0 -12
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb +0 -99
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb +0 -52
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb +0 -94
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +0 -39
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb +0 -36
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb +0 -38
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb +0 -41
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb +0 -13
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb +0 -33
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb +0 -18
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb +0 -17
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb +0 -47
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/run_specs_all_ruby_versions.sh +0 -38
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/safe_yaml.gemspec +0 -19
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.2.yaml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.3.yaml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue48.txt +0 -20
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue49.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb +0 -69
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/psych_resolver_spec.rb +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/resolver_specs.rb +0 -278
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb +0 -731
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/spec_helper.rb +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb +0 -57
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb +0 -11
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb +0 -60
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb +0 -42
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb +0 -64
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb +0 -51
- data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb +0 -15
- data/vendor/bundle/ruby/2.6.0/specifications/safe_yaml-1.0.5.gemspec +0 -23
@@ -45,6 +45,12 @@ module CloudsmithApi
|
|
45
45
|
#
|
46
46
|
attr_accessor :is_limited
|
47
47
|
|
48
|
+
# 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.
|
49
|
+
attr_accessor :limit_bandwidth
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :limit_bandwidth_unit
|
53
|
+
|
48
54
|
# The starting date/time the token is allowed to be used from.
|
49
55
|
attr_accessor :limit_date_range_from
|
50
56
|
|
@@ -72,6 +78,12 @@ module CloudsmithApi
|
|
72
78
|
#
|
73
79
|
attr_accessor :refresh_url
|
74
80
|
|
81
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
82
|
+
attr_accessor :scheduled_reset_at
|
83
|
+
|
84
|
+
#
|
85
|
+
attr_accessor :scheduled_reset_period
|
86
|
+
|
75
87
|
#
|
76
88
|
attr_accessor :self_url
|
77
89
|
|
@@ -113,6 +125,8 @@ module CloudsmithApi
|
|
113
125
|
:'identifier' => :'identifier',
|
114
126
|
:'is_active' => :'is_active',
|
115
127
|
:'is_limited' => :'is_limited',
|
128
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
129
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
116
130
|
:'limit_date_range_from' => :'limit_date_range_from',
|
117
131
|
:'limit_date_range_to' => :'limit_date_range_to',
|
118
132
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -122,6 +136,8 @@ module CloudsmithApi
|
|
122
136
|
:'metadata' => :'metadata',
|
123
137
|
:'name' => :'name',
|
124
138
|
:'refresh_url' => :'refresh_url',
|
139
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
125
141
|
:'self_url' => :'self_url',
|
126
142
|
:'slug_perm' => :'slug_perm',
|
127
143
|
:'token' => :'token',
|
@@ -147,6 +163,8 @@ module CloudsmithApi
|
|
147
163
|
:'identifier' => :'Integer',
|
148
164
|
:'is_active' => :'BOOLEAN',
|
149
165
|
:'is_limited' => :'BOOLEAN',
|
166
|
+
:'limit_bandwidth' => :'Integer',
|
167
|
+
:'limit_bandwidth_unit' => :'String',
|
150
168
|
:'limit_date_range_from' => :'String',
|
151
169
|
:'limit_date_range_to' => :'String',
|
152
170
|
:'limit_num_clients' => :'Integer',
|
@@ -156,6 +174,8 @@ module CloudsmithApi
|
|
156
174
|
:'metadata' => :'Object',
|
157
175
|
:'name' => :'String',
|
158
176
|
:'refresh_url' => :'String',
|
177
|
+
:'scheduled_reset_at' => :'String',
|
178
|
+
:'scheduled_reset_period' => :'String',
|
159
179
|
:'self_url' => :'String',
|
160
180
|
:'slug_perm' => :'String',
|
161
181
|
:'token' => :'String',
|
@@ -216,6 +236,14 @@ module CloudsmithApi
|
|
216
236
|
self.is_limited = attributes[:'is_limited']
|
217
237
|
end
|
218
238
|
|
239
|
+
if attributes.has_key?(:'limit_bandwidth')
|
240
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
244
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
245
|
+
end
|
246
|
+
|
219
247
|
if attributes.has_key?(:'limit_date_range_from')
|
220
248
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
221
249
|
end
|
@@ -252,6 +280,14 @@ module CloudsmithApi
|
|
252
280
|
self.refresh_url = attributes[:'refresh_url']
|
253
281
|
end
|
254
282
|
|
283
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
284
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
288
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
289
|
+
end
|
290
|
+
|
255
291
|
if attributes.has_key?(:'self_url')
|
256
292
|
self.self_url = attributes[:'self_url']
|
257
293
|
end
|
@@ -323,6 +359,8 @@ module CloudsmithApi
|
|
323
359
|
identifier == o.identifier &&
|
324
360
|
is_active == o.is_active &&
|
325
361
|
is_limited == o.is_limited &&
|
362
|
+
limit_bandwidth == o.limit_bandwidth &&
|
363
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
326
364
|
limit_date_range_from == o.limit_date_range_from &&
|
327
365
|
limit_date_range_to == o.limit_date_range_to &&
|
328
366
|
limit_num_clients == o.limit_num_clients &&
|
@@ -332,6 +370,8 @@ module CloudsmithApi
|
|
332
370
|
metadata == o.metadata &&
|
333
371
|
name == o.name &&
|
334
372
|
refresh_url == o.refresh_url &&
|
373
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
374
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
335
375
|
self_url == o.self_url &&
|
336
376
|
slug_perm == o.slug_perm &&
|
337
377
|
token == o.token &&
|
@@ -352,7 +392,7 @@ module CloudsmithApi
|
|
352
392
|
# Calculates hash code according to all attributes.
|
353
393
|
# @return [Fixnum] Hash code
|
354
394
|
def hash
|
355
|
-
[clients, created_at, created_by, created_by_url, default, downloads, 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
|
395
|
+
[clients, created_at, created_by, created_by_url, default, downloads, has_limits, identifier, is_active, is_limited, 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, name, refresh_url, scheduled_reset_at, scheduled_reset_period, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
356
396
|
end
|
357
397
|
|
358
398
|
# Builds the object from hash
|
@@ -45,6 +45,12 @@ module CloudsmithApi
|
|
45
45
|
#
|
46
46
|
attr_accessor :is_limited
|
47
47
|
|
48
|
+
# 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.
|
49
|
+
attr_accessor :limit_bandwidth
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :limit_bandwidth_unit
|
53
|
+
|
48
54
|
# The starting date/time the token is allowed to be used from.
|
49
55
|
attr_accessor :limit_date_range_from
|
50
56
|
|
@@ -72,6 +78,12 @@ module CloudsmithApi
|
|
72
78
|
#
|
73
79
|
attr_accessor :refresh_url
|
74
80
|
|
81
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
82
|
+
attr_accessor :scheduled_reset_at
|
83
|
+
|
84
|
+
#
|
85
|
+
attr_accessor :scheduled_reset_period
|
86
|
+
|
75
87
|
#
|
76
88
|
attr_accessor :self_url
|
77
89
|
|
@@ -113,6 +125,8 @@ module CloudsmithApi
|
|
113
125
|
:'identifier' => :'identifier',
|
114
126
|
:'is_active' => :'is_active',
|
115
127
|
:'is_limited' => :'is_limited',
|
128
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
129
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
116
130
|
:'limit_date_range_from' => :'limit_date_range_from',
|
117
131
|
:'limit_date_range_to' => :'limit_date_range_to',
|
118
132
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -122,6 +136,8 @@ module CloudsmithApi
|
|
122
136
|
:'metadata' => :'metadata',
|
123
137
|
:'name' => :'name',
|
124
138
|
:'refresh_url' => :'refresh_url',
|
139
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
125
141
|
:'self_url' => :'self_url',
|
126
142
|
:'slug_perm' => :'slug_perm',
|
127
143
|
:'token' => :'token',
|
@@ -147,6 +163,8 @@ module CloudsmithApi
|
|
147
163
|
:'identifier' => :'Integer',
|
148
164
|
:'is_active' => :'BOOLEAN',
|
149
165
|
:'is_limited' => :'BOOLEAN',
|
166
|
+
:'limit_bandwidth' => :'Integer',
|
167
|
+
:'limit_bandwidth_unit' => :'String',
|
150
168
|
:'limit_date_range_from' => :'String',
|
151
169
|
:'limit_date_range_to' => :'String',
|
152
170
|
:'limit_num_clients' => :'Integer',
|
@@ -156,6 +174,8 @@ module CloudsmithApi
|
|
156
174
|
:'metadata' => :'Object',
|
157
175
|
:'name' => :'String',
|
158
176
|
:'refresh_url' => :'String',
|
177
|
+
:'scheduled_reset_at' => :'String',
|
178
|
+
:'scheduled_reset_period' => :'String',
|
159
179
|
:'self_url' => :'String',
|
160
180
|
:'slug_perm' => :'String',
|
161
181
|
:'token' => :'String',
|
@@ -216,6 +236,14 @@ module CloudsmithApi
|
|
216
236
|
self.is_limited = attributes[:'is_limited']
|
217
237
|
end
|
218
238
|
|
239
|
+
if attributes.has_key?(:'limit_bandwidth')
|
240
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
244
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
245
|
+
end
|
246
|
+
|
219
247
|
if attributes.has_key?(:'limit_date_range_from')
|
220
248
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
221
249
|
end
|
@@ -252,6 +280,14 @@ module CloudsmithApi
|
|
252
280
|
self.refresh_url = attributes[:'refresh_url']
|
253
281
|
end
|
254
282
|
|
283
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
284
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
288
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
289
|
+
end
|
290
|
+
|
255
291
|
if attributes.has_key?(:'self_url')
|
256
292
|
self.self_url = attributes[:'self_url']
|
257
293
|
end
|
@@ -318,6 +354,8 @@ module CloudsmithApi
|
|
318
354
|
identifier == o.identifier &&
|
319
355
|
is_active == o.is_active &&
|
320
356
|
is_limited == o.is_limited &&
|
357
|
+
limit_bandwidth == o.limit_bandwidth &&
|
358
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
321
359
|
limit_date_range_from == o.limit_date_range_from &&
|
322
360
|
limit_date_range_to == o.limit_date_range_to &&
|
323
361
|
limit_num_clients == o.limit_num_clients &&
|
@@ -327,6 +365,8 @@ module CloudsmithApi
|
|
327
365
|
metadata == o.metadata &&
|
328
366
|
name == o.name &&
|
329
367
|
refresh_url == o.refresh_url &&
|
368
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
369
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
330
370
|
self_url == o.self_url &&
|
331
371
|
slug_perm == o.slug_perm &&
|
332
372
|
token == o.token &&
|
@@ -347,7 +387,7 @@ module CloudsmithApi
|
|
347
387
|
# Calculates hash code according to all attributes.
|
348
388
|
# @return [Fixnum] Hash code
|
349
389
|
def hash
|
350
|
-
[clients, created_at, created_by, created_by_url, default, downloads, 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
|
390
|
+
[clients, created_at, created_by, created_by_url, default, downloads, has_limits, identifier, is_active, is_limited, 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, name, refresh_url, scheduled_reset_at, scheduled_reset_period, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
351
391
|
end
|
352
392
|
|
353
393
|
# Builds the object from hash
|
@@ -45,6 +45,12 @@ module CloudsmithApi
|
|
45
45
|
#
|
46
46
|
attr_accessor :is_limited
|
47
47
|
|
48
|
+
# 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.
|
49
|
+
attr_accessor :limit_bandwidth
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :limit_bandwidth_unit
|
53
|
+
|
48
54
|
# The starting date/time the token is allowed to be used from.
|
49
55
|
attr_accessor :limit_date_range_from
|
50
56
|
|
@@ -72,6 +78,12 @@ module CloudsmithApi
|
|
72
78
|
#
|
73
79
|
attr_accessor :refresh_url
|
74
80
|
|
81
|
+
# The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
|
82
|
+
attr_accessor :scheduled_reset_at
|
83
|
+
|
84
|
+
#
|
85
|
+
attr_accessor :scheduled_reset_period
|
86
|
+
|
75
87
|
#
|
76
88
|
attr_accessor :self_url
|
77
89
|
|
@@ -113,6 +125,8 @@ module CloudsmithApi
|
|
113
125
|
:'identifier' => :'identifier',
|
114
126
|
:'is_active' => :'is_active',
|
115
127
|
:'is_limited' => :'is_limited',
|
128
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
129
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
116
130
|
:'limit_date_range_from' => :'limit_date_range_from',
|
117
131
|
:'limit_date_range_to' => :'limit_date_range_to',
|
118
132
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -122,6 +136,8 @@ module CloudsmithApi
|
|
122
136
|
:'metadata' => :'metadata',
|
123
137
|
:'name' => :'name',
|
124
138
|
:'refresh_url' => :'refresh_url',
|
139
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
125
141
|
:'self_url' => :'self_url',
|
126
142
|
:'slug_perm' => :'slug_perm',
|
127
143
|
:'token' => :'token',
|
@@ -147,6 +163,8 @@ module CloudsmithApi
|
|
147
163
|
:'identifier' => :'Integer',
|
148
164
|
:'is_active' => :'BOOLEAN',
|
149
165
|
:'is_limited' => :'BOOLEAN',
|
166
|
+
:'limit_bandwidth' => :'Integer',
|
167
|
+
:'limit_bandwidth_unit' => :'String',
|
150
168
|
:'limit_date_range_from' => :'String',
|
151
169
|
:'limit_date_range_to' => :'String',
|
152
170
|
:'limit_num_clients' => :'Integer',
|
@@ -156,6 +174,8 @@ module CloudsmithApi
|
|
156
174
|
:'metadata' => :'String',
|
157
175
|
:'name' => :'String',
|
158
176
|
:'refresh_url' => :'String',
|
177
|
+
:'scheduled_reset_at' => :'String',
|
178
|
+
:'scheduled_reset_period' => :'String',
|
159
179
|
:'self_url' => :'String',
|
160
180
|
:'slug_perm' => :'String',
|
161
181
|
:'token' => :'String',
|
@@ -216,6 +236,14 @@ module CloudsmithApi
|
|
216
236
|
self.is_limited = attributes[:'is_limited']
|
217
237
|
end
|
218
238
|
|
239
|
+
if attributes.has_key?(:'limit_bandwidth')
|
240
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
244
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
245
|
+
end
|
246
|
+
|
219
247
|
if attributes.has_key?(:'limit_date_range_from')
|
220
248
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
221
249
|
end
|
@@ -252,6 +280,14 @@ module CloudsmithApi
|
|
252
280
|
self.refresh_url = attributes[:'refresh_url']
|
253
281
|
end
|
254
282
|
|
283
|
+
if attributes.has_key?(:'scheduled_reset_at')
|
284
|
+
self.scheduled_reset_at = attributes[:'scheduled_reset_at']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
288
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
289
|
+
end
|
290
|
+
|
255
291
|
if attributes.has_key?(:'self_url')
|
256
292
|
self.self_url = attributes[:'self_url']
|
257
293
|
end
|
@@ -318,6 +354,8 @@ module CloudsmithApi
|
|
318
354
|
identifier == o.identifier &&
|
319
355
|
is_active == o.is_active &&
|
320
356
|
is_limited == o.is_limited &&
|
357
|
+
limit_bandwidth == o.limit_bandwidth &&
|
358
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
321
359
|
limit_date_range_from == o.limit_date_range_from &&
|
322
360
|
limit_date_range_to == o.limit_date_range_to &&
|
323
361
|
limit_num_clients == o.limit_num_clients &&
|
@@ -327,6 +365,8 @@ module CloudsmithApi
|
|
327
365
|
metadata == o.metadata &&
|
328
366
|
name == o.name &&
|
329
367
|
refresh_url == o.refresh_url &&
|
368
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
369
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
330
370
|
self_url == o.self_url &&
|
331
371
|
slug_perm == o.slug_perm &&
|
332
372
|
token == o.token &&
|
@@ -347,7 +387,7 @@ module CloudsmithApi
|
|
347
387
|
# Calculates hash code according to all attributes.
|
348
388
|
# @return [Fixnum] Hash code
|
349
389
|
def hash
|
350
|
-
[clients, created_at, created_by, created_by_url, default, downloads, 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
|
390
|
+
[clients, created_at, created_by, created_by_url, default, downloads, has_limits, identifier, is_active, is_limited, 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, name, refresh_url, scheduled_reset_at, scheduled_reset_period, self_url, slug_perm, token, updated_at, updated_by, updated_by_url, usage, user, user_url].hash
|
351
391
|
end
|
352
392
|
|
353
393
|
# Builds the object from hash
|
@@ -38,6 +38,18 @@ describe 'EntitlementsCreate' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "limit_bandwidth"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "limit_bandwidth_unit"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
41
53
|
describe 'test attribute "limit_date_range_from"' do
|
42
54
|
it 'should work' do
|
43
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -86,6 +98,12 @@ describe 'EntitlementsCreate' do
|
|
86
98
|
end
|
87
99
|
end
|
88
100
|
|
101
|
+
describe 'test attribute "scheduled_reset_period"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
89
107
|
describe 'test attribute "token"' do
|
90
108
|
it 'should work' do
|
91
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -38,6 +38,18 @@ describe 'EntitlementsPartialUpdate' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "limit_bandwidth"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "limit_bandwidth_unit"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
41
53
|
describe 'test attribute "limit_date_range_from"' do
|
42
54
|
it 'should work' do
|
43
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -86,6 +98,12 @@ describe 'EntitlementsPartialUpdate' do
|
|
86
98
|
end
|
87
99
|
end
|
88
100
|
|
101
|
+
describe 'test attribute "scheduled_reset_period"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
89
107
|
describe 'test attribute "token"' do
|
90
108
|
it 'should work' do
|
91
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -38,6 +38,18 @@ describe 'EntitlementsRefresh' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "limit_bandwidth"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "limit_bandwidth_unit"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
41
53
|
describe 'test attribute "limit_date_range_from"' do
|
42
54
|
it 'should work' do
|
43
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -80,6 +92,12 @@ describe 'EntitlementsRefresh' do
|
|
80
92
|
end
|
81
93
|
end
|
82
94
|
|
95
|
+
describe 'test attribute "scheduled_reset_period"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
83
101
|
describe 'test attribute "token"' do
|
84
102
|
it 'should work' do
|
85
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -92,6 +92,18 @@ describe 'RepositoryTokenRefresh' do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
describe 'test attribute "limit_bandwidth"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "limit_bandwidth_unit"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
95
107
|
describe 'test attribute "limit_date_range_from"' do
|
96
108
|
it 'should work' do
|
97
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -146,6 +158,18 @@ describe 'RepositoryTokenRefresh' do
|
|
146
158
|
end
|
147
159
|
end
|
148
160
|
|
161
|
+
describe 'test attribute "scheduled_reset_at"' do
|
162
|
+
it 'should work' do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
describe 'test attribute "scheduled_reset_period"' do
|
168
|
+
it 'should work' do
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
149
173
|
describe 'test attribute "self_url"' do
|
150
174
|
it 'should work' do
|
151
175
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|