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
@@ -18,6 +18,12 @@ module CloudsmithApi
|
|
18
18
|
# If enabled, the token will allow downloads based on configured restrictions (if any).
|
19
19
|
attr_accessor :is_active
|
20
20
|
|
21
|
+
# 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.
|
22
|
+
attr_accessor :limit_bandwidth
|
23
|
+
|
24
|
+
# None
|
25
|
+
attr_accessor :limit_bandwidth_unit
|
26
|
+
|
21
27
|
# The starting date/time the token is allowed to be used from.
|
22
28
|
attr_accessor :limit_date_range_from
|
23
29
|
|
@@ -42,6 +48,9 @@ module CloudsmithApi
|
|
42
48
|
# None
|
43
49
|
attr_accessor :name
|
44
50
|
|
51
|
+
# None
|
52
|
+
attr_accessor :scheduled_reset_period
|
53
|
+
|
45
54
|
# None
|
46
55
|
attr_accessor :token
|
47
56
|
|
@@ -50,6 +59,8 @@ module CloudsmithApi
|
|
50
59
|
def self.attribute_map
|
51
60
|
{
|
52
61
|
:'is_active' => :'is_active',
|
62
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
63
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
53
64
|
:'limit_date_range_from' => :'limit_date_range_from',
|
54
65
|
:'limit_date_range_to' => :'limit_date_range_to',
|
55
66
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -58,6 +69,7 @@ module CloudsmithApi
|
|
58
69
|
:'limit_path_query' => :'limit_path_query',
|
59
70
|
:'metadata' => :'metadata',
|
60
71
|
:'name' => :'name',
|
72
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
61
73
|
:'token' => :'token'
|
62
74
|
}
|
63
75
|
end
|
@@ -66,6 +78,8 @@ module CloudsmithApi
|
|
66
78
|
def self.swagger_types
|
67
79
|
{
|
68
80
|
:'is_active' => :'BOOLEAN',
|
81
|
+
:'limit_bandwidth' => :'Integer',
|
82
|
+
:'limit_bandwidth_unit' => :'String',
|
69
83
|
:'limit_date_range_from' => :'String',
|
70
84
|
:'limit_date_range_to' => :'String',
|
71
85
|
:'limit_num_clients' => :'Integer',
|
@@ -74,6 +88,7 @@ module CloudsmithApi
|
|
74
88
|
:'limit_path_query' => :'String',
|
75
89
|
:'metadata' => :'Object',
|
76
90
|
:'name' => :'String',
|
91
|
+
:'scheduled_reset_period' => :'String',
|
77
92
|
:'token' => :'String'
|
78
93
|
}
|
79
94
|
end
|
@@ -90,6 +105,14 @@ module CloudsmithApi
|
|
90
105
|
self.is_active = attributes[:'is_active']
|
91
106
|
end
|
92
107
|
|
108
|
+
if attributes.has_key?(:'limit_bandwidth')
|
109
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
113
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
114
|
+
end
|
115
|
+
|
93
116
|
if attributes.has_key?(:'limit_date_range_from')
|
94
117
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
95
118
|
end
|
@@ -122,6 +145,10 @@ module CloudsmithApi
|
|
122
145
|
self.name = attributes[:'name']
|
123
146
|
end
|
124
147
|
|
148
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
149
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
150
|
+
end
|
151
|
+
|
125
152
|
if attributes.has_key?(:'token')
|
126
153
|
self.token = attributes[:'token']
|
127
154
|
end
|
@@ -152,6 +179,8 @@ module CloudsmithApi
|
|
152
179
|
return true if self.equal?(o)
|
153
180
|
self.class == o.class &&
|
154
181
|
is_active == o.is_active &&
|
182
|
+
limit_bandwidth == o.limit_bandwidth &&
|
183
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
155
184
|
limit_date_range_from == o.limit_date_range_from &&
|
156
185
|
limit_date_range_to == o.limit_date_range_to &&
|
157
186
|
limit_num_clients == o.limit_num_clients &&
|
@@ -160,6 +189,7 @@ module CloudsmithApi
|
|
160
189
|
limit_path_query == o.limit_path_query &&
|
161
190
|
metadata == o.metadata &&
|
162
191
|
name == o.name &&
|
192
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
163
193
|
token == o.token
|
164
194
|
end
|
165
195
|
|
@@ -172,7 +202,7 @@ module CloudsmithApi
|
|
172
202
|
# Calculates hash code according to all attributes.
|
173
203
|
# @return [Fixnum] Hash code
|
174
204
|
def hash
|
175
|
-
[is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, token].hash
|
205
|
+
[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, name, scheduled_reset_period, token].hash
|
176
206
|
end
|
177
207
|
|
178
208
|
# Builds the object from hash
|
@@ -18,6 +18,12 @@ module CloudsmithApi
|
|
18
18
|
# If enabled, the token will allow downloads based on configured restrictions (if any).
|
19
19
|
attr_accessor :is_active
|
20
20
|
|
21
|
+
# 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.
|
22
|
+
attr_accessor :limit_bandwidth
|
23
|
+
|
24
|
+
# None
|
25
|
+
attr_accessor :limit_bandwidth_unit
|
26
|
+
|
21
27
|
# The starting date/time the token is allowed to be used from.
|
22
28
|
attr_accessor :limit_date_range_from
|
23
29
|
|
@@ -42,6 +48,9 @@ module CloudsmithApi
|
|
42
48
|
# None
|
43
49
|
attr_accessor :name
|
44
50
|
|
51
|
+
# None
|
52
|
+
attr_accessor :scheduled_reset_period
|
53
|
+
|
45
54
|
# None
|
46
55
|
attr_accessor :token
|
47
56
|
|
@@ -50,6 +59,8 @@ module CloudsmithApi
|
|
50
59
|
def self.attribute_map
|
51
60
|
{
|
52
61
|
:'is_active' => :'is_active',
|
62
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
63
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
53
64
|
:'limit_date_range_from' => :'limit_date_range_from',
|
54
65
|
:'limit_date_range_to' => :'limit_date_range_to',
|
55
66
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -58,6 +69,7 @@ module CloudsmithApi
|
|
58
69
|
:'limit_path_query' => :'limit_path_query',
|
59
70
|
:'metadata' => :'metadata',
|
60
71
|
:'name' => :'name',
|
72
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
61
73
|
:'token' => :'token'
|
62
74
|
}
|
63
75
|
end
|
@@ -66,6 +78,8 @@ module CloudsmithApi
|
|
66
78
|
def self.swagger_types
|
67
79
|
{
|
68
80
|
:'is_active' => :'BOOLEAN',
|
81
|
+
:'limit_bandwidth' => :'Integer',
|
82
|
+
:'limit_bandwidth_unit' => :'String',
|
69
83
|
:'limit_date_range_from' => :'String',
|
70
84
|
:'limit_date_range_to' => :'String',
|
71
85
|
:'limit_num_clients' => :'Integer',
|
@@ -74,6 +88,7 @@ module CloudsmithApi
|
|
74
88
|
:'limit_path_query' => :'String',
|
75
89
|
:'metadata' => :'Object',
|
76
90
|
:'name' => :'String',
|
91
|
+
:'scheduled_reset_period' => :'String',
|
77
92
|
:'token' => :'String'
|
78
93
|
}
|
79
94
|
end
|
@@ -90,6 +105,14 @@ module CloudsmithApi
|
|
90
105
|
self.is_active = attributes[:'is_active']
|
91
106
|
end
|
92
107
|
|
108
|
+
if attributes.has_key?(:'limit_bandwidth')
|
109
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
113
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
114
|
+
end
|
115
|
+
|
93
116
|
if attributes.has_key?(:'limit_date_range_from')
|
94
117
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
95
118
|
end
|
@@ -122,6 +145,10 @@ module CloudsmithApi
|
|
122
145
|
self.name = attributes[:'name']
|
123
146
|
end
|
124
147
|
|
148
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
149
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
150
|
+
end
|
151
|
+
|
125
152
|
if attributes.has_key?(:'token')
|
126
153
|
self.token = attributes[:'token']
|
127
154
|
end
|
@@ -147,6 +174,8 @@ module CloudsmithApi
|
|
147
174
|
return true if self.equal?(o)
|
148
175
|
self.class == o.class &&
|
149
176
|
is_active == o.is_active &&
|
177
|
+
limit_bandwidth == o.limit_bandwidth &&
|
178
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
150
179
|
limit_date_range_from == o.limit_date_range_from &&
|
151
180
|
limit_date_range_to == o.limit_date_range_to &&
|
152
181
|
limit_num_clients == o.limit_num_clients &&
|
@@ -155,6 +184,7 @@ module CloudsmithApi
|
|
155
184
|
limit_path_query == o.limit_path_query &&
|
156
185
|
metadata == o.metadata &&
|
157
186
|
name == o.name &&
|
187
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
158
188
|
token == o.token
|
159
189
|
end
|
160
190
|
|
@@ -167,7 +197,7 @@ module CloudsmithApi
|
|
167
197
|
# Calculates hash code according to all attributes.
|
168
198
|
# @return [Fixnum] Hash code
|
169
199
|
def hash
|
170
|
-
[is_active, limit_date_range_from, limit_date_range_to, limit_num_clients, limit_num_downloads, limit_package_query, limit_path_query, metadata, name, token].hash
|
200
|
+
[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, name, scheduled_reset_period, token].hash
|
171
201
|
end
|
172
202
|
|
173
203
|
# Builds the object from hash
|
@@ -18,6 +18,12 @@ module CloudsmithApi
|
|
18
18
|
# If enabled, the token will allow downloads based on configured restrictions (if any).
|
19
19
|
attr_accessor :is_active
|
20
20
|
|
21
|
+
# 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.
|
22
|
+
attr_accessor :limit_bandwidth
|
23
|
+
|
24
|
+
# None
|
25
|
+
attr_accessor :limit_bandwidth_unit
|
26
|
+
|
21
27
|
# The starting date/time the token is allowed to be used from.
|
22
28
|
attr_accessor :limit_date_range_from
|
23
29
|
|
@@ -39,6 +45,9 @@ module CloudsmithApi
|
|
39
45
|
# None
|
40
46
|
attr_accessor :metadata
|
41
47
|
|
48
|
+
# None
|
49
|
+
attr_accessor :scheduled_reset_period
|
50
|
+
|
42
51
|
# None
|
43
52
|
attr_accessor :token
|
44
53
|
|
@@ -47,6 +56,8 @@ module CloudsmithApi
|
|
47
56
|
def self.attribute_map
|
48
57
|
{
|
49
58
|
:'is_active' => :'is_active',
|
59
|
+
:'limit_bandwidth' => :'limit_bandwidth',
|
60
|
+
:'limit_bandwidth_unit' => :'limit_bandwidth_unit',
|
50
61
|
:'limit_date_range_from' => :'limit_date_range_from',
|
51
62
|
:'limit_date_range_to' => :'limit_date_range_to',
|
52
63
|
:'limit_num_clients' => :'limit_num_clients',
|
@@ -54,6 +65,7 @@ module CloudsmithApi
|
|
54
65
|
:'limit_package_query' => :'limit_package_query',
|
55
66
|
:'limit_path_query' => :'limit_path_query',
|
56
67
|
:'metadata' => :'metadata',
|
68
|
+
:'scheduled_reset_period' => :'scheduled_reset_period',
|
57
69
|
:'token' => :'token'
|
58
70
|
}
|
59
71
|
end
|
@@ -62,6 +74,8 @@ module CloudsmithApi
|
|
62
74
|
def self.swagger_types
|
63
75
|
{
|
64
76
|
:'is_active' => :'BOOLEAN',
|
77
|
+
:'limit_bandwidth' => :'Integer',
|
78
|
+
:'limit_bandwidth_unit' => :'String',
|
65
79
|
:'limit_date_range_from' => :'String',
|
66
80
|
:'limit_date_range_to' => :'String',
|
67
81
|
:'limit_num_clients' => :'Integer',
|
@@ -69,6 +83,7 @@ module CloudsmithApi
|
|
69
83
|
:'limit_package_query' => :'String',
|
70
84
|
:'limit_path_query' => :'String',
|
71
85
|
:'metadata' => :'Object',
|
86
|
+
:'scheduled_reset_period' => :'String',
|
72
87
|
:'token' => :'String'
|
73
88
|
}
|
74
89
|
end
|
@@ -85,6 +100,14 @@ module CloudsmithApi
|
|
85
100
|
self.is_active = attributes[:'is_active']
|
86
101
|
end
|
87
102
|
|
103
|
+
if attributes.has_key?(:'limit_bandwidth')
|
104
|
+
self.limit_bandwidth = attributes[:'limit_bandwidth']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'limit_bandwidth_unit')
|
108
|
+
self.limit_bandwidth_unit = attributes[:'limit_bandwidth_unit']
|
109
|
+
end
|
110
|
+
|
88
111
|
if attributes.has_key?(:'limit_date_range_from')
|
89
112
|
self.limit_date_range_from = attributes[:'limit_date_range_from']
|
90
113
|
end
|
@@ -113,6 +136,10 @@ module CloudsmithApi
|
|
113
136
|
self.metadata = attributes[:'metadata']
|
114
137
|
end
|
115
138
|
|
139
|
+
if attributes.has_key?(:'scheduled_reset_period')
|
140
|
+
self.scheduled_reset_period = attributes[:'scheduled_reset_period']
|
141
|
+
end
|
142
|
+
|
116
143
|
if attributes.has_key?(:'token')
|
117
144
|
self.token = attributes[:'token']
|
118
145
|
end
|
@@ -138,6 +165,8 @@ module CloudsmithApi
|
|
138
165
|
return true if self.equal?(o)
|
139
166
|
self.class == o.class &&
|
140
167
|
is_active == o.is_active &&
|
168
|
+
limit_bandwidth == o.limit_bandwidth &&
|
169
|
+
limit_bandwidth_unit == o.limit_bandwidth_unit &&
|
141
170
|
limit_date_range_from == o.limit_date_range_from &&
|
142
171
|
limit_date_range_to == o.limit_date_range_to &&
|
143
172
|
limit_num_clients == o.limit_num_clients &&
|
@@ -145,6 +174,7 @@ module CloudsmithApi
|
|
145
174
|
limit_package_query == o.limit_package_query &&
|
146
175
|
limit_path_query == o.limit_path_query &&
|
147
176
|
metadata == o.metadata &&
|
177
|
+
scheduled_reset_period == o.scheduled_reset_period &&
|
148
178
|
token == o.token
|
149
179
|
end
|
150
180
|
|
@@ -157,7 +187,7 @@ module CloudsmithApi
|
|
157
187
|
# Calculates hash code according to all attributes.
|
158
188
|
# @return [Fixnum] Hash code
|
159
189
|
def hash
|
160
|
-
[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
|
190
|
+
[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
|
161
191
|
end
|
162
192
|
|
163
193
|
# Builds the object from hash
|
@@ -0,0 +1,209 @@
|
|
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 MetricsownerrepopackagesusageActivePackages
|
18
|
+
#
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
#
|
22
|
+
attr_accessor :slug
|
23
|
+
|
24
|
+
#
|
25
|
+
attr_accessor :version
|
26
|
+
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'name' => :'name',
|
32
|
+
:'slug' => :'slug',
|
33
|
+
:'version' => :'version'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'name' => :'String',
|
41
|
+
:'slug' => :'String',
|
42
|
+
:'version' => :'String'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
53
|
+
|
54
|
+
if attributes.has_key?(:'name')
|
55
|
+
self.name = attributes[:'name']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'slug')
|
59
|
+
self.slug = attributes[:'slug']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'version')
|
63
|
+
self.version = attributes[:'version']
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properies with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
return invalid_properties
|
73
|
+
end
|
74
|
+
|
75
|
+
# Check to see if the all the properties in the model are valid
|
76
|
+
# @return true if the model is valid
|
77
|
+
def valid?
|
78
|
+
return true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Checks equality by comparing each attribute.
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def ==(o)
|
84
|
+
return true if self.equal?(o)
|
85
|
+
self.class == o.class &&
|
86
|
+
name == o.name &&
|
87
|
+
slug == o.slug &&
|
88
|
+
version == o.version
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Fixnum] Hash code
|
99
|
+
def hash
|
100
|
+
[name, slug, version].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
114
|
+
end
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
118
|
+
end
|
119
|
+
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
# Deserializes the data based on type
|
124
|
+
# @param string type Data type
|
125
|
+
# @param string value Value to be deserialized
|
126
|
+
# @return [Object] Deserialized data
|
127
|
+
def _deserialize(type, value)
|
128
|
+
case type.to_sym
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
131
|
+
when :Date
|
132
|
+
Date.parse(value)
|
133
|
+
when :String
|
134
|
+
value.to_s
|
135
|
+
when :Integer
|
136
|
+
value.to_i
|
137
|
+
when :Float
|
138
|
+
value.to_f
|
139
|
+
when :BOOLEAN
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
141
|
+
true
|
142
|
+
else
|
143
|
+
false
|
144
|
+
end
|
145
|
+
when :Object
|
146
|
+
# generic object (usually a Hash), return directly
|
147
|
+
value
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
154
|
+
{}.tap do |hash|
|
155
|
+
value.each do |k, v|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
else # model
|
160
|
+
temp_model = CloudsmithApi.const_get(type).new
|
161
|
+
temp_model.build_from_hash(value)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the string representation of the object
|
166
|
+
# @return [String] String presentation of the object
|
167
|
+
def to_s
|
168
|
+
to_hash.to_s
|
169
|
+
end
|
170
|
+
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_body
|
174
|
+
to_hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the object in the form of hash
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_hash
|
180
|
+
hash = {}
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
182
|
+
value = self.send(attr)
|
183
|
+
next if value.nil?
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Outputs non-array value in the form of hash
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
191
|
+
# @param [Object] value Any valid value
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
193
|
+
def _to_hash(value)
|
194
|
+
if value.is_a?(Array)
|
195
|
+
value.compact.map{ |v| _to_hash(v) }
|
196
|
+
elsif value.is_a?(Hash)
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
+
end
|
200
|
+
elsif value.respond_to? :to_hash
|
201
|
+
value.to_hash
|
202
|
+
else
|
203
|
+
value
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
208
|
+
|
209
|
+
end
|