cloudsmith-api 0.52.79 → 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 +3 -5
- data/README.md +15 -5
- data/build.json +1 -1
- data/docs/{EntitlmentTokenMetric.md → EntitlementTokenMetric.md} +1 -1
- data/docs/EntitlementsCreate.md +3 -0
- data/docs/EntitlementsPartialUpdate.md +3 -0
- data/docs/EntitlementsRefresh.md +3 -0
- data/docs/MetricsApi.md +81 -6
- data/docs/MetricsownerrepopackagesusageActivePackages.md +10 -0
- data/docs/PackageUsageMetric.md +11 -0
- data/docs/Quota.md +8 -0
- data/docs/QuotaApi.md +248 -0
- data/docs/QuotaHistory.md +8 -0
- data/docs/QuotaHistoryHistory.md +13 -0
- data/docs/RepositoryToken.md +6 -0
- data/docs/RepositoryTokenRefresh.md +6 -0
- data/docs/RepositoryTokenSyncTokens.md +6 -0
- data/lib/cloudsmith-api.rb +7 -1
- data/lib/cloudsmith-api/api/metrics_api.rb +79 -7
- data/lib/cloudsmith-api/api/quota_api.rb +227 -0
- data/lib/cloudsmith-api/models/{entitlment_token_metric.rb → entitlement_token_metric.rb} +1 -1
- 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/metricsownerrepopackagesusage_active_packages.rb +209 -0
- data/lib/cloudsmith-api/models/package_usage_metric.rb +243 -0
- data/lib/cloudsmith-api/models/quota.rb +194 -0
- data/lib/cloudsmith-api/models/quota_history.rb +196 -0
- data/lib/cloudsmith-api/models/quota_history_history.rb +239 -0
- data/lib/cloudsmith-api/models/repository_token.rb +61 -1
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +61 -1
- data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +61 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/metrics_api_spec.rb +21 -3
- data/spec/api/quota_api_spec.rb +83 -0
- data/spec/models/{entitlment_token_metric_spec.rb → entitlement_token_metric_spec.rb} +6 -6
- 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/metricsownerrepopackagesusage_active_packages_spec.rb +54 -0
- data/spec/models/package_usage_metric_spec.rb +60 -0
- data/spec/models/quota_history_history_spec.rb +72 -0
- data/spec/models/quota_history_spec.rb +42 -0
- data/spec/models/quota_spec.rb +42 -0
- data/spec/models/repository_token_refresh_spec.rb +36 -0
- data/spec/models/repository_token_spec.rb +36 -0
- data/spec/models/repository_token_sync_tokens_spec.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.6.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/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/FUNDING.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/workflows/tests.yml +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop.yml +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop_opinionated.yml +1 -18
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.travis.yml +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/2.0-Upgrade.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/CHANGELOG.md +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Gemfile +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/SECURITY.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/bin/console +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/codecov.yml +0 -2
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/data/list.txt +312 -78
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/domain.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/errors.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/list.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/rule.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/public_suffix.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/.empty +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/acceptance_test.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_find.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_find_all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_names.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_select.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_select_incremental.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/benchmarks/bm_valid.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/domain_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/find_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/find_profiler_jp.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/initialization_profiler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/list_profsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/profilers/object_binsize.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/psl_test.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/test_helper.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/tests.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/domain_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/errors_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/list_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/public_suffix_test.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/unit/rule_test.rb +0 -0
- 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/{public_suffix-4.0.5.gemspec → public_suffix-4.0.6.gemspec} +4 -4
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
- metadata +174 -225
- 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/public_suffix-4.0.5.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
@@ -0,0 +1,239 @@
|
|
1
|
+
=begin
|
2
|
+
#Cloudsmith API
|
3
|
+
|
4
|
+
#The API to the Cloudsmith Service
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
Contact: support@cloudsmith.io
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudsmithApi
|
16
|
+
|
17
|
+
class QuotaHistoryHistory
|
18
|
+
#
|
19
|
+
attr_accessor :days
|
20
|
+
|
21
|
+
#
|
22
|
+
attr_accessor :display
|
23
|
+
|
24
|
+
#
|
25
|
+
attr_accessor :_end
|
26
|
+
|
27
|
+
#
|
28
|
+
attr_accessor :plan
|
29
|
+
|
30
|
+
#
|
31
|
+
attr_accessor :raw
|
32
|
+
|
33
|
+
#
|
34
|
+
attr_accessor :start
|
35
|
+
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'days' => :'days',
|
41
|
+
:'display' => :'display',
|
42
|
+
:'_end' => :'end',
|
43
|
+
:'plan' => :'plan',
|
44
|
+
:'raw' => :'raw',
|
45
|
+
:'start' => :'start'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'days' => :'Integer',
|
53
|
+
:'display' => :'Object',
|
54
|
+
:'_end' => :'String',
|
55
|
+
:'plan' => :'String',
|
56
|
+
:'raw' => :'Object',
|
57
|
+
:'start' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
return unless attributes.is_a?(Hash)
|
65
|
+
|
66
|
+
# convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
|
+
|
69
|
+
if attributes.has_key?(:'days')
|
70
|
+
self.days = attributes[:'days']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'display')
|
74
|
+
self.display = attributes[:'display']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'end')
|
78
|
+
self._end = attributes[:'end']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'plan')
|
82
|
+
self.plan = attributes[:'plan']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'raw')
|
86
|
+
self.raw = attributes[:'raw']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'start')
|
90
|
+
self.start = attributes[:'start']
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properies with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = Array.new
|
99
|
+
return invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def ==(o)
|
111
|
+
return true if self.equal?(o)
|
112
|
+
self.class == o.class &&
|
113
|
+
days == o.days &&
|
114
|
+
display == o.display &&
|
115
|
+
_end == o._end &&
|
116
|
+
plan == o.plan &&
|
117
|
+
raw == o.raw &&
|
118
|
+
start == o.start
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Fixnum] Hash code
|
129
|
+
def hash
|
130
|
+
[days, display, _end, plan, raw, start].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
144
|
+
end
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
147
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
148
|
+
end
|
149
|
+
|
150
|
+
self
|
151
|
+
end
|
152
|
+
|
153
|
+
# Deserializes the data based on type
|
154
|
+
# @param string type Data type
|
155
|
+
# @param string value Value to be deserialized
|
156
|
+
# @return [Object] Deserialized data
|
157
|
+
def _deserialize(type, value)
|
158
|
+
case type.to_sym
|
159
|
+
when :DateTime
|
160
|
+
DateTime.parse(value)
|
161
|
+
when :Date
|
162
|
+
Date.parse(value)
|
163
|
+
when :String
|
164
|
+
value.to_s
|
165
|
+
when :Integer
|
166
|
+
value.to_i
|
167
|
+
when :Float
|
168
|
+
value.to_f
|
169
|
+
when :BOOLEAN
|
170
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
171
|
+
true
|
172
|
+
else
|
173
|
+
false
|
174
|
+
end
|
175
|
+
when :Object
|
176
|
+
# generic object (usually a Hash), return directly
|
177
|
+
value
|
178
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
179
|
+
inner_type = Regexp.last_match[:inner_type]
|
180
|
+
value.map { |v| _deserialize(inner_type, v) }
|
181
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
182
|
+
k_type = Regexp.last_match[:k_type]
|
183
|
+
v_type = Regexp.last_match[:v_type]
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each do |k, v|
|
186
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
else # model
|
190
|
+
temp_model = CloudsmithApi.const_get(type).new
|
191
|
+
temp_model.build_from_hash(value)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the string representation of the object
|
196
|
+
# @return [String] String presentation of the object
|
197
|
+
def to_s
|
198
|
+
to_hash.to_s
|
199
|
+
end
|
200
|
+
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_body
|
204
|
+
to_hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the object in the form of hash
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_hash
|
210
|
+
hash = {}
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
212
|
+
value = self.send(attr)
|
213
|
+
next if value.nil?
|
214
|
+
hash[param] = _to_hash(value)
|
215
|
+
end
|
216
|
+
hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Outputs non-array value in the form of hash
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
221
|
+
# @param [Object] value Any valid value
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
223
|
+
def _to_hash(value)
|
224
|
+
if value.is_a?(Array)
|
225
|
+
value.compact.map{ |v| _to_hash(v) }
|
226
|
+
elsif value.is_a?(Hash)
|
227
|
+
{}.tap do |hash|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
+
end
|
230
|
+
elsif value.respond_to? :to_hash
|
231
|
+
value.to_hash
|
232
|
+
else
|
233
|
+
value
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module CloudsmithApi
|
16
16
|
|
17
17
|
class RepositoryToken
|
18
|
+
#
|
19
|
+
attr_accessor :clients
|
20
|
+
|
18
21
|
# The datetime the token was updated at.
|
19
22
|
attr_accessor :created_at
|
20
23
|
|
@@ -27,6 +30,9 @@ module CloudsmithApi
|
|
27
30
|
# If selected this is the default token for this repository.
|
28
31
|
attr_accessor :default
|
29
32
|
|
33
|
+
#
|
34
|
+
attr_accessor :downloads
|
35
|
+
|
30
36
|
#
|
31
37
|
attr_accessor :has_limits
|
32
38
|
|
@@ -39,6 +45,12 @@ module CloudsmithApi
|
|
39
45
|
#
|
40
46
|
attr_accessor :is_limited
|
41
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
|
+
|
42
54
|
# The starting date/time the token is allowed to be used from.
|
43
55
|
attr_accessor :limit_date_range_from
|
44
56
|
|
@@ -66,6 +78,12 @@ module CloudsmithApi
|
|
66
78
|
#
|
67
79
|
attr_accessor :refresh_url
|
68
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
|
+
|
69
87
|
#
|
70
88
|
attr_accessor :self_url
|
71
89
|
|
@@ -97,14 +115,18 @@ module CloudsmithApi
|
|
97
115
|
# Attribute mapping from ruby-style variable name to JSON key.
|
98
116
|
def self.attribute_map
|
99
117
|
{
|
118
|
+
:'clients' => :'clients',
|
100
119
|
:'created_at' => :'created_at',
|
101
120
|
:'created_by' => :'created_by',
|
102
121
|
:'created_by_url' => :'created_by_url',
|
103
122
|
:'default' => :'default',
|
123
|
+
:'downloads' => :'downloads',
|
104
124
|
:'has_limits' => :'has_limits',
|
105
125
|
:'identifier' => :'identifier',
|
106
126
|
:'is_active' => :'is_active',
|
107
127
|
:'is_limited' => :'is_limited',
|
128
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
129
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
108
130
|
:'limit_date_range_from' => :'limit_date_range_from',
|
109
131
|
:'limit_date_range_to' => :'limit_date_range_to',
|
110
132
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -114,6 +136,8 @@ module CloudsmithApi
|
|
114
136
|
:'metadata' => :'metadata',
|
115
137
|
:'name' => :'name',
|
116
138
|
:'refresh_url' => :'refresh_url',
|
139
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
117
141
|
:'self_url' => :'self_url',
|
118
142
|
:'slug_perm' => :'slug_perm',
|
119
143
|
:'token' => :'token',
|
@@ -129,14 +153,18 @@ module CloudsmithApi
|
|
129
153
|
# Attribute type mapping.
|
130
154
|
def self.swagger_types
|
131
155
|
{
|
156
|
+
:'clients' => :'Integer',
|
132
157
|
:'created_at' => :'String',
|
133
158
|
:'created_by' => :'String',
|
134
159
|
:'created_by_url' => :'String',
|
135
160
|
:'default' => :'BOOLEAN',
|
161
|
+
:'downloads' => :'Integer',
|
136
162
|
:'has_limits' => :'BOOLEAN',
|
137
163
|
:'identifier' => :'Integer',
|
138
164
|
:'is_active' => :'BOOLEAN',
|
139
165
|
:'is_limited' => :'BOOLEAN',
|
166
|
+
:'limit_bandwidth' => :'Integer',
|
167
|
+
:'limit_bandwidth_unit' => :'String',
|
140
168
|
:'limit_date_range_from' => :'String',
|
141
169
|
:'limit_date_range_to' => :'String',
|
142
170
|
:'limit_num_clients' => :'Integer',
|
@@ -146,6 +174,8 @@ module CloudsmithApi
|
|
146
174
|
:'metadata' => :'Object',
|
147
175
|
:'name' => :'String',
|
148
176
|
:'refresh_url' => :'String',
|
177
|
+
:'scheduled_reset_at' => :'String',
|
178
|
+
:'scheduled_reset_period' => :'String',
|
149
179
|
:'self_url' => :'String',
|
150
180
|
:'slug_perm' => :'String',
|
151
181
|
:'token' => :'String',
|
@@ -166,6 +196,10 @@ module CloudsmithApi
|
|
166
196
|
# convert string to symbol for hash key
|
167
197
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
168
198
|
|
199
|
+
if attributes.has_key?(:'clients')
|
200
|
+
self.clients = attributes[:'clients']
|
201
|
+
end
|
202
|
+
|
169
203
|
if attributes.has_key?(:'created_at')
|
170
204
|
self.created_at = attributes[:'created_at']
|
171
205
|
end
|
@@ -182,6 +216,10 @@ module CloudsmithApi
|
|
182
216
|
self.default = attributes[:'default']
|
183
217
|
end
|
184
218
|
|
219
|
+
if attributes.has_key?(:'downloads')
|
220
|
+
self.downloads = attributes[:'downloads']
|
221
|
+
end
|
222
|
+
|
185
223
|
if attributes.has_key?(:'has_limits')
|
186
224
|
self.has_limits = attributes[:'has_limits']
|
187
225
|
end
|
@@ -198,6 +236,14 @@ module CloudsmithApi
|
|
198
236
|
self.is_limited = attributes[:'is_limited']
|
199
237
|
end
|
200
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
|
+
|
201
247
|
if attributes.has_key?(:'limit_date_range_from')
|
202
248
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
203
249
|
end
|
@@ -234,6 +280,14 @@ module CloudsmithApi
|
|
234
280
|
self.refresh_url = attributes[:'refresh_url']
|
235
281
|
end
|
236
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
|
+
|
237
291
|
if attributes.has_key?(:'self_url')
|
238
292
|
self.self_url = attributes[:'self_url']
|
239
293
|
end
|
@@ -295,14 +349,18 @@ module CloudsmithApi
|
|
295
349
|
def ==(o)
|
296
350
|
return true if self.equal?(o)
|
297
351
|
self.class == o.class &&
|
352
|
+
clients == o.clients &&
|
298
353
|
created_at == o.created_at &&
|
299
354
|
created_by == o.created_by &&
|
300
355
|
created_by_url == o.created_by_url &&
|
301
356
|
default == o.default &&
|
357
|
+
downloads == o.downloads &&
|
302
358
|
has_limits == o.has_limits &&
|
303
359
|
identifier == o.identifier &&
|
304
360
|
is_active == o.is_active &&
|
305
361
|
is_limited == o.is_limited &&
|
362
|
+
limit_bandwidth == o.limit_bandwidth &&
|
363
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
306
364
|
limit_date_range_from == o.limit_date_range_from &&
|
307
365
|
limit_date_range_to == o.limit_date_range_to &&
|
308
366
|
limit_num_clients == o.limit_num_clients &&
|
@@ -312,6 +370,8 @@ module CloudsmithApi
|
|
312
370
|
metadata == o.metadata &&
|
313
371
|
name == o.name &&
|
314
372
|
refresh_url == o.refresh_url &&
|
373
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
374
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
315
375
|
self_url == o.self_url &&
|
316
376
|
slug_perm == o.slug_perm &&
|
317
377
|
token == o.token &&
|
@@ -332,7 +392,7 @@ module CloudsmithApi
|
|
332
392
|
# Calculates hash code according to all attributes.
|
333
393
|
# @return [Fixnum] Hash code
|
334
394
|
def hash
|
335
|
-
[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
|
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
|
336
396
|
end
|
337
397
|
|
338
398
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module CloudsmithApi
|
16
16
|
|
17
17
|
class RepositoryTokenRefresh
|
18
|
+
#
|
19
|
+
attr_accessor :clients
|
20
|
+
|
18
21
|
# The datetime the token was updated at.
|
19
22
|
attr_accessor :created_at
|
20
23
|
|
@@ -27,6 +30,9 @@ module CloudsmithApi
|
|
27
30
|
# If selected this is the default token for this repository.
|
28
31
|
attr_accessor :default
|
29
32
|
|
33
|
+
#
|
34
|
+
attr_accessor :downloads
|
35
|
+
|
30
36
|
#
|
31
37
|
attr_accessor :has_limits
|
32
38
|
|
@@ -39,6 +45,12 @@ module CloudsmithApi
|
|
39
45
|
#
|
40
46
|
attr_accessor :is_limited
|
41
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
|
+
|
42
54
|
# The starting date/time the token is allowed to be used from.
|
43
55
|
attr_accessor :limit_date_range_from
|
44
56
|
|
@@ -66,6 +78,12 @@ module CloudsmithApi
|
|
66
78
|
#
|
67
79
|
attr_accessor :refresh_url
|
68
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
|
+
|
69
87
|
#
|
70
88
|
attr_accessor :self_url
|
71
89
|
|
@@ -97,14 +115,18 @@ module CloudsmithApi
|
|
97
115
|
# Attribute mapping from ruby-style variable name to JSON key.
|
98
116
|
def self.attribute_map
|
99
117
|
{
|
118
|
+
:'clients' => :'clients',
|
100
119
|
:'created_at' => :'created_at',
|
101
120
|
:'created_by' => :'created_by',
|
102
121
|
:'created_by_url' => :'created_by_url',
|
103
122
|
:'default' => :'default',
|
123
|
+
:'downloads' => :'downloads',
|
104
124
|
:'has_limits' => :'has_limits',
|
105
125
|
:'identifier' => :'identifier',
|
106
126
|
:'is_active' => :'is_active',
|
107
127
|
:'is_limited' => :'is_limited',
|
128
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
129
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
108
130
|
:'limit_date_range_from' => :'limit_date_range_from',
|
109
131
|
:'limit_date_range_to' => :'limit_date_range_to',
|
110
132
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -114,6 +136,8 @@ module CloudsmithApi
|
|
114
136
|
:'metadata' => :'metadata',
|
115
137
|
:'name' => :'name',
|
116
138
|
:'refresh_url' => :'refresh_url',
|
139
|
+
:'scheduled_reset_at' => :'scheduled_reset_at',
|
140
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
117
141
|
:'self_url' => :'self_url',
|
118
142
|
:'slug_perm' => :'slug_perm',
|
119
143
|
:'token' => :'token',
|
@@ -129,14 +153,18 @@ module CloudsmithApi
|
|
129
153
|
# Attribute type mapping.
|
130
154
|
def self.swagger_types
|
131
155
|
{
|
156
|
+
:'clients' => :'Integer',
|
132
157
|
:'created_at' => :'String',
|
133
158
|
:'created_by' => :'String',
|
134
159
|
:'created_by_url' => :'String',
|
135
160
|
:'default' => :'BOOLEAN',
|
161
|
+
:'downloads' => :'Integer',
|
136
162
|
:'has_limits' => :'BOOLEAN',
|
137
163
|
:'identifier' => :'Integer',
|
138
164
|
:'is_active' => :'BOOLEAN',
|
139
165
|
:'is_limited' => :'BOOLEAN',
|
166
|
+
:'limit_bandwidth' => :'Integer',
|
167
|
+
:'limit_bandwidth_unit' => :'String',
|
140
168
|
:'limit_date_range_from' => :'String',
|
141
169
|
:'limit_date_range_to' => :'String',
|
142
170
|
:'limit_num_clients' => :'Integer',
|
@@ -146,6 +174,8 @@ module CloudsmithApi
|
|
146
174
|
:'metadata' => :'Object',
|
147
175
|
:'name' => :'String',
|
148
176
|
:'refresh_url' => :'String',
|
177
|
+
:'scheduled_reset_at' => :'String',
|
178
|
+
:'scheduled_reset_period' => :'String',
|
149
179
|
:'self_url' => :'String',
|
150
180
|
:'slug_perm' => :'String',
|
151
181
|
:'token' => :'String',
|
@@ -166,6 +196,10 @@ module CloudsmithApi
|
|
166
196
|
# convert string to symbol for hash key
|
167
197
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
168
198
|
|
199
|
+
if attributes.has_key?(:'clients')
|
200
|
+
self.clients = attributes[:'clients']
|
201
|
+
end
|
202
|
+
|
169
203
|
if attributes.has_key?(:'created_at')
|
170
204
|
self.created_at = attributes[:'created_at']
|
171
205
|
end
|
@@ -182,6 +216,10 @@ module CloudsmithApi
|
|
182
216
|
self.default = attributes[:'default']
|
183
217
|
end
|
184
218
|
|
219
|
+
if attributes.has_key?(:'downloads')
|
220
|
+
self.downloads = attributes[:'downloads']
|
221
|
+
end
|
222
|
+
|
185
223
|
if attributes.has_key?(:'has_limits')
|
186
224
|
self.has_limits = attributes[:'has_limits']
|
187
225
|
end
|
@@ -198,6 +236,14 @@ module CloudsmithApi
|
|
198
236
|
self.is_limited = attributes[:'is_limited']
|
199
237
|
end
|
200
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
|
+
|
201
247
|
if attributes.has_key?(:'limit_date_range_from')
|
202
248
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
203
249
|
end
|
@@ -234,6 +280,14 @@ module CloudsmithApi
|
|
234
280
|
self.refresh_url = attributes[:'refresh_url']
|
235
281
|
end
|
236
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
|
+
|
237
291
|
if attributes.has_key?(:'self_url')
|
238
292
|
self.self_url = attributes[:'self_url']
|
239
293
|
end
|
@@ -290,14 +344,18 @@ module CloudsmithApi
|
|
290
344
|
def ==(o)
|
291
345
|
return true if self.equal?(o)
|
292
346
|
self.class == o.class &&
|
347
|
+
clients == o.clients &&
|
293
348
|
created_at == o.created_at &&
|
294
349
|
created_by == o.created_by &&
|
295
350
|
created_by_url == o.created_by_url &&
|
296
351
|
default == o.default &&
|
352
|
+
downloads == o.downloads &&
|
297
353
|
has_limits == o.has_limits &&
|
298
354
|
identifier == o.identifier &&
|
299
355
|
is_active == o.is_active &&
|
300
356
|
is_limited == o.is_limited &&
|
357
|
+
limit_bandwidth == o.limit_bandwidth &&
|
358
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
301
359
|
limit_date_range_from == o.limit_date_range_from &&
|
302
360
|
limit_date_range_to == o.limit_date_range_to &&
|
303
361
|
limit_num_clients == o.limit_num_clients &&
|
@@ -307,6 +365,8 @@ module CloudsmithApi
|
|
307
365
|
metadata == o.metadata &&
|
308
366
|
name == o.name &&
|
309
367
|
refresh_url == o.refresh_url &&
|
368
|
+
scheduled_reset_at == o.scheduled_reset_at &&
|
369
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
310
370
|
self_url == o.self_url &&
|
311
371
|
slug_perm == o.slug_perm &&
|
312
372
|
token == o.token &&
|
@@ -327,7 +387,7 @@ module CloudsmithApi
|
|
327
387
|
# Calculates hash code according to all attributes.
|
328
388
|
# @return [Fixnum] Hash code
|
329
389
|
def hash
|
330
|
-
[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
|
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
|
331
391
|
end
|
332
392
|
|
333
393
|
# Builds the object from hash
|