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.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -5
  3. data/README.md +15 -5
  4. data/build.json +1 -1
  5. data/docs/{EntitlmentTokenMetric.md → EntitlementTokenMetric.md} +1 -1
  6. data/docs/EntitlementsCreate.md +3 -0
  7. data/docs/EntitlementsPartialUpdate.md +3 -0
  8. data/docs/EntitlementsRefresh.md +3 -0
  9. data/docs/MetricsApi.md +81 -6
  10. data/docs/MetricsownerrepopackagesusageActivePackages.md +10 -0
  11. data/docs/PackageUsageMetric.md +11 -0
  12. data/docs/Quota.md +8 -0
  13. data/docs/QuotaApi.md +248 -0
  14. data/docs/QuotaHistory.md +8 -0
  15. data/docs/QuotaHistoryHistory.md +13 -0
  16. data/docs/RepositoryToken.md +6 -0
  17. data/docs/RepositoryTokenRefresh.md +6 -0
  18. data/docs/RepositoryTokenSyncTokens.md +6 -0
  19. data/lib/cloudsmith-api.rb +7 -1
  20. data/lib/cloudsmith-api/api/metrics_api.rb +79 -7
  21. data/lib/cloudsmith-api/api/quota_api.rb +227 -0
  22. data/lib/cloudsmith-api/models/{entitlment_token_metric.rb → entitlement_token_metric.rb} +1 -1
  23. data/lib/cloudsmith-api/models/entitlements_create.rb +31 -1
  24. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +31 -1
  25. data/lib/cloudsmith-api/models/entitlements_refresh.rb +31 -1
  26. data/lib/cloudsmith-api/models/metricsownerrepopackagesusage_active_packages.rb +209 -0
  27. data/lib/cloudsmith-api/models/package_usage_metric.rb +243 -0
  28. data/lib/cloudsmith-api/models/quota.rb +194 -0
  29. data/lib/cloudsmith-api/models/quota_history.rb +196 -0
  30. data/lib/cloudsmith-api/models/quota_history_history.rb +239 -0
  31. data/lib/cloudsmith-api/models/repository_token.rb +61 -1
  32. data/lib/cloudsmith-api/models/repository_token_refresh.rb +61 -1
  33. data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +61 -1
  34. data/lib/cloudsmith-api/version.rb +1 -1
  35. data/spec/api/metrics_api_spec.rb +21 -3
  36. data/spec/api/quota_api_spec.rb +83 -0
  37. data/spec/models/{entitlment_token_metric_spec.rb → entitlement_token_metric_spec.rb} +6 -6
  38. data/spec/models/entitlements_create_spec.rb +18 -0
  39. data/spec/models/entitlements_partial_update_spec.rb +18 -0
  40. data/spec/models/entitlements_refresh_spec.rb +18 -0
  41. data/spec/models/metricsownerrepopackagesusage_active_packages_spec.rb +54 -0
  42. data/spec/models/package_usage_metric_spec.rb +60 -0
  43. data/spec/models/quota_history_history_spec.rb +72 -0
  44. data/spec/models/quota_history_spec.rb +42 -0
  45. data/spec/models/quota_spec.rb +42 -0
  46. data/spec/models/repository_token_refresh_spec.rb +36 -0
  47. data/spec/models/repository_token_spec.rb +36 -0
  48. data/spec/models/repository_token_sync_tokens_spec.rb +36 -0
  49. data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.4.gem +0 -0
  50. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.6.gem +0 -0
  51. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
  52. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
  53. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/gem_make.out +1 -1
  54. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack.rb +0 -0
  55. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/json.rb +5 -18
  56. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/util.rb +0 -0
  57. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.4/lib/crack/version.rb +3 -0
  58. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/xml.rb +0 -0
  59. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
  60. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/FUNDING.yml +0 -0
  61. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.github/workflows/tests.yml +1 -1
  62. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.gitignore +0 -0
  63. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop.yml +0 -0
  64. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.rubocop_opinionated.yml +1 -18
  65. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.travis.yml +1 -1
  66. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/.yardopts +0 -0
  67. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/2.0-Upgrade.md +0 -0
  68. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/CHANGELOG.md +7 -0
  69. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Gemfile +1 -1
  70. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/LICENSE.txt +0 -0
  71. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/README.md +0 -0
  72. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/Rakefile +0 -0
  73. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/SECURITY.md +0 -0
  74. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/bin/console +0 -0
  75. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/codecov.yml +0 -2
  76. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/data/list.txt +312 -78
  77. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/lib/public_suffix.rb +0 -0
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/public_suffix.gemspec +0 -0
  84. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/.empty +0 -0
  85. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/acceptance_test.rb +2 -0
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/psl_test.rb +1 -1
  99. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/test_helper.rb +0 -0
  100. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.5 → public_suffix-4.0.6}/test/tests.txt +0 -0
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. data/vendor/bundle/ruby/2.6.0/specifications/{crack-0.4.3.gemspec → crack-0.4.4.gemspec} +3 -15
  107. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-4.0.5.gemspec → public_suffix-4.0.6.gemspec} +4 -4
  108. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
  109. metadata +174 -225
  110. data/vendor/bundle/ruby/2.6.0/bin/safe_yaml +0 -27
  111. data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.3.gem +0 -0
  112. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.5.gem +0 -0
  113. data/vendor/bundle/ruby/2.6.0/cache/safe_yaml-1.0.5.gem +0 -0
  114. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.gitignore +0 -8
  115. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.travis.yml +0 -14
  116. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/Gemfile +0 -5
  117. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/History +0 -25
  118. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/LICENSE +0 -20
  119. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/README.md +0 -46
  120. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/crack.gemspec +0 -20
  121. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/lib/crack/version.rb +0 -3
  122. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/bootstrap +0 -21
  123. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/release +0 -42
  124. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/test +0 -25
  125. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/large_dataset.json +0 -139988
  126. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-firefox.json +0 -1
  127. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-ie.json +0 -1
  128. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/hash_test.rb +0 -26
  129. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/json_test.rb +0 -91
  130. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/parser_test.rb +0 -27
  131. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/string_test.rb +0 -31
  132. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/test_helper.rb +0 -3
  133. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/xml_test.rb +0 -514
  134. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.gitignore +0 -3
  135. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.travis.yml +0 -48
  136. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/CHANGES.md +0 -154
  137. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Gemfile +0 -11
  138. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/LICENSE.txt +0 -22
  139. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/README.md +0 -191
  140. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Rakefile +0 -26
  141. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bin/safe_yaml +0 -75
  142. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bundle_install_all_ruby_versions.sh +0 -11
  143. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb +0 -94
  144. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb +0 -34
  145. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb +0 -36
  146. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb +0 -181
  147. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +0 -37
  148. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb +0 -12
  149. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb +0 -26
  150. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb +0 -99
  151. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb +0 -52
  152. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb +0 -94
  153. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -29
  154. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +0 -39
  155. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb +0 -36
  156. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
  157. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb +0 -38
  158. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb +0 -41
  159. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb +0 -21
  160. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb +0 -13
  161. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb +0 -33
  162. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb +0 -26
  163. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb +0 -18
  164. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb +0 -17
  165. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb +0 -47
  166. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +0 -3
  167. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/run_specs_all_ruby_versions.sh +0 -38
  168. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/safe_yaml.gemspec +0 -19
  169. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.2.yaml +0 -2
  170. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.3.yaml +0 -2
  171. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue48.txt +0 -20
  172. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue49.yml +0 -0
  173. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb +0 -69
  174. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/psych_resolver_spec.rb +0 -10
  175. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/resolver_specs.rb +0 -278
  176. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb +0 -731
  177. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/spec_helper.rb +0 -42
  178. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb +0 -57
  179. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb +0 -29
  180. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb +0 -10
  181. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb +0 -11
  182. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb +0 -60
  183. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb +0 -42
  184. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb +0 -64
  185. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb +0 -51
  186. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb +0 -15
  187. data/vendor/bundle/ruby/2.6.0/specifications/safe_yaml-1.0.5.gemspec +0 -23
@@ -15,6 +15,9 @@ require 'date'
15
15
  module CloudsmithApi
16
16
 
17
17
  class RepositoryTokenSyncTokens
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' => :'String',
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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3
11
11
  =end
12
12
 
13
13
  module CloudsmithApi
14
- VERSION = "0.52.79"
14
+ VERSION = "0.53.17"
15
15
  end
@@ -40,14 +40,32 @@ describe 'MetricsApi' do
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [Integer] :page A page number within the paginated result set.
42
42
  # @option opts [Integer] :page_size Number of results to return per page.
43
- # @option opts [Integer] :finish Filter token usage ending before this timestamp. Defaults to now if not supplied.
44
- # @option opts [Integer] :start Filter token usage starting from this timestamp (seconds since Jan 01 1970. (UTC)).
43
+ # @option opts [Integer] :finish Filter token usage ending before this datetime (UTC by default unless otherwise specified). Defaults to now if not supplied.
44
+ # @option opts [Integer] :start Filter token usage starting from this datetime (UTC by default unless otherwise specified)).
45
45
  # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results.
46
- # @return [Array<EntitlmentTokenMetric>]
46
+ # @return [Array<EntitlementTokenMetric>]
47
47
  describe 'metrics_entitlements_usage_list test' do
48
48
  it "should work" do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
+ # unit tests for metrics_packages_usage_list
54
+ # View for listing package usage metrics by user.
55
+ # View for listing package usage metrics by user.
56
+ # @param owner
57
+ # @param repo
58
+ # @param [Hash] opts the optional parameters
59
+ # @option opts [Integer] :page A page number within the paginated result set.
60
+ # @option opts [Integer] :page_size Number of results to return per page.
61
+ # @option opts [Integer] :finish Filter token usage ending before this datetime (UTC). Defaults to now if not supplied.
62
+ # @option opts [String] :packages A comma seperated list of packages (slug perm) to include in the results.
63
+ # @option opts [Integer] :start Filter token usage starting from this datetime (UTC)).
64
+ # @return [Array<PackageUsageMetric>]
65
+ describe 'metrics_packages_usage_list test' do
66
+ it "should work" do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
53
71
  end
@@ -0,0 +1,83 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudsmithApi::QuotaApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'QuotaApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudsmithApi::QuotaApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of QuotaApi' do
30
+ it 'should create an instance of QuotaApi' do
31
+ expect(@instance).to be_instance_of(CloudsmithApi::QuotaApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for quota_history_read
36
+ # Quota history for a given namespace.
37
+ # Quota history for a given namespace.
38
+ # @param owner
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [QuotaHistory]
41
+ describe 'quota_history_read test' 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
+ # unit tests for quota_oss_history_read
48
+ # Open-source Quota history for a given namespace.
49
+ # Open-source Quota history for a given namespace.
50
+ # @param owner
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [QuotaHistory]
53
+ describe 'quota_oss_history_read test' do
54
+ it "should work" do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for quota_oss_read
60
+ # Open-source Quota usage for a given namespace.
61
+ # Open-source Quota usage for a given namespace.
62
+ # @param owner
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [Quota]
65
+ describe 'quota_oss_read test' do
66
+ it "should work" do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for quota_read
72
+ # Quota usage for a given namespace.
73
+ # Quota usage for a given namespace.
74
+ # @param owner
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Quota]
77
+ describe 'quota_read test' do
78
+ it "should work" do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudsmithApi::EntitlmentTokenMetric
17
+ # Unit tests for CloudsmithApi::EntitlementTokenMetric
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'EntitlmentTokenMetric' do
20
+ describe 'EntitlementTokenMetric' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudsmithApi::EntitlmentTokenMetric.new
23
+ @instance = CloudsmithApi::EntitlementTokenMetric.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of EntitlmentTokenMetric' do
31
- it 'should create an instance of EntitlmentTokenMetric' do
32
- expect(@instance).to be_instance_of(CloudsmithApi::EntitlmentTokenMetric)
30
+ describe 'test an instance of EntitlementTokenMetric' do
31
+ it 'should create an instance of EntitlementTokenMetric' do
32
+ expect(@instance).to be_instance_of(CloudsmithApi::EntitlementTokenMetric)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "bandwidth_per_token"' do
@@ -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
@@ -0,0 +1,54 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudsmithApi::MetricsownerrepopackagesusageActivePackages
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'MetricsownerrepopackagesusageActivePackages' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudsmithApi::MetricsownerrepopackagesusageActivePackages.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of MetricsownerrepopackagesusageActivePackages' do
31
+ it 'should create an instance of MetricsownerrepopackagesusageActivePackages' do
32
+ expect(@instance).to be_instance_of(CloudsmithApi::MetricsownerrepopackagesusageActivePackages)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "slug"' 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 "version"' 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
+
53
+ end
54
+