cloudsmith-api 1.120.3 → 1.142.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +21 -11
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +2 -0
  6. data/docs/ConanPackageUpload.md +2 -0
  7. data/docs/MavenPackageUpload.md +2 -0
  8. data/docs/OrganizationTeamMembers.md +8 -0
  9. data/docs/OrganizationTeamMembersMembers.md +9 -0
  10. data/docs/OrgsApi.md +263 -26
  11. data/docs/OrgsTeamsMembersCreate.md +8 -0
  12. data/docs/OrgsTeamsMembersUpdate.md +8 -0
  13. data/docs/Package.md +2 -0
  14. data/docs/PackageCopy.md +2 -0
  15. data/docs/PackageMove.md +2 -0
  16. data/docs/RawPackageUpload.md +2 -0
  17. data/docs/ReposApi.md +28 -72
  18. data/docs/ReposCreate.md +3 -1
  19. data/docs/ReposPartialUpdate.md +3 -1
  20. data/docs/ReposPrivilegesPartialUpdate.md +8 -0
  21. data/docs/ReposPrivilegesUpdate.md +8 -0
  22. data/docs/Repository.md +3 -1
  23. data/docs/RepositoryCreate.md +3 -1
  24. data/docs/RepositoryPrivilegeInput.md +8 -0
  25. data/docs/RepositoryPrivilegeInputPrivileges.md +10 -0
  26. data/docs/VagrantPackageUpload.md +2 -0
  27. data/lib/cloudsmith-api/api/orgs_api.rb +270 -41
  28. data/lib/cloudsmith-api/api/repos_api.rb +28 -70
  29. data/lib/cloudsmith-api/models/alpine_package_upload.rb +21 -1
  30. data/lib/cloudsmith-api/models/conan_package_upload.rb +21 -1
  31. data/lib/cloudsmith-api/models/maven_package_upload.rb +21 -1
  32. data/lib/cloudsmith-api/models/organization_team_members.rb +192 -0
  33. data/lib/cloudsmith-api/models/organization_team_members_members.rb +195 -0
  34. data/lib/cloudsmith-api/models/orgs_teams_members_create.rb +192 -0
  35. data/lib/cloudsmith-api/models/orgs_teams_members_update.rb +192 -0
  36. data/lib/cloudsmith-api/models/package.rb +21 -1
  37. data/lib/cloudsmith-api/models/package_copy.rb +21 -1
  38. data/lib/cloudsmith-api/models/package_move.rb +21 -1
  39. data/lib/cloudsmith-api/models/raw_package_upload.rb +21 -1
  40. data/lib/cloudsmith-api/models/repos_create.rb +36 -2
  41. data/lib/cloudsmith-api/models/repos_partial_update.rb +36 -2
  42. data/lib/cloudsmith-api/models/{repository_privilege_list.rb → repos_privileges_partial_update.rb} +5 -3
  43. data/lib/cloudsmith-api/models/repos_privileges_update.rb +192 -0
  44. data/lib/cloudsmith-api/models/repository.rb +36 -2
  45. data/lib/cloudsmith-api/models/repository_create.rb +36 -2
  46. data/lib/cloudsmith-api/models/repository_privilege_input.rb +192 -0
  47. data/lib/cloudsmith-api/models/repository_privilege_input_privileges.rb +205 -0
  48. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +21 -1
  49. data/lib/cloudsmith-api/version.rb +1 -1
  50. data/lib/cloudsmith-api.rb +8 -1
  51. data/spec/api/orgs_api_spec.rb +62 -8
  52. data/spec/api/repos_api_spec.rb +8 -17
  53. data/spec/models/alpine_package_upload_spec.rb +12 -0
  54. data/spec/models/conan_package_upload_spec.rb +12 -0
  55. data/spec/models/maven_package_upload_spec.rb +12 -0
  56. data/spec/models/organization_team_members_members_spec.rb +47 -0
  57. data/spec/models/organization_team_members_spec.rb +41 -0
  58. data/spec/models/orgs_teams_members_create_spec.rb +41 -0
  59. data/spec/models/orgs_teams_members_update_spec.rb +41 -0
  60. data/spec/models/package_copy_spec.rb +12 -0
  61. data/spec/models/package_move_spec.rb +12 -0
  62. data/spec/models/package_spec.rb +12 -0
  63. data/spec/models/raw_package_upload_spec.rb +12 -0
  64. data/spec/models/repos_create_spec.rb +16 -0
  65. data/spec/models/repos_partial_update_spec.rb +16 -0
  66. data/spec/models/repos_privileges_partial_update_spec.rb +41 -0
  67. data/spec/models/repos_privileges_update_spec.rb +41 -0
  68. data/spec/models/repository_create_spec.rb +16 -0
  69. data/spec/models/repository_privilege_input_privileges_spec.rb +53 -0
  70. data/spec/models/{repository_privilege_list_spec.rb → repository_privilege_input_spec.rb} +6 -6
  71. data/spec/models/repository_spec.rb +16 -0
  72. data/spec/models/vagrant_package_upload_spec.rb +12 -0
  73. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.1.gem +0 -0
  74. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.0.gem +0 -0
  75. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.11.1.gem +0 -0
  76. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.11.1.gem +0 -0
  77. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +1 -1
  78. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  79. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +1 -1
  80. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +1 -1
  81. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/CHANGELOG.md +16 -0
  82. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/Gemfile +4 -2
  83. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/LICENSE.txt +0 -0
  84. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/README.md +0 -0
  85. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/Rakefile +0 -0
  86. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/data/unicode.data +0 -0
  87. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna/native.rb +0 -1
  88. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna/pure.rb +0 -1
  89. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna.rb +0 -1
  90. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/template.rb +3 -4
  91. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/uri.rb +57 -53
  92. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/version.rb +1 -2
  93. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable.rb +0 -0
  94. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/idna_spec.rb +0 -1
  95. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/net_http_compat_spec.rb +0 -1
  96. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/security_spec.rb +0 -1
  97. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/template_spec.rb +9 -1
  98. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/uri_spec.rb +81 -1
  99. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/spec_helper.rb +0 -0
  100. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/clobber.rake +0 -0
  101. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/gem.rake +5 -2
  102. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/git.rake +0 -0
  103. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/metrics.rake +0 -0
  104. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/profile.rake +0 -0
  105. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/rspec.rake +0 -0
  106. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/yard.rake +0 -0
  107. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  108. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +2 -2
  109. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +2 -2
  110. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +2 -2
  111. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.github/FUNDING.yml +0 -0
  112. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.github/dependabot.yml +0 -0
  113. data/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.0/.github/workflows/psl-update.yml +38 -0
  114. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.github/workflows/release.yml +4 -2
  115. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.github/workflows/tests.yml +8 -7
  116. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.gitignore +0 -0
  117. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.rubocop.yml +1 -0
  118. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.rubocop_opinionated.yml +0 -28
  119. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/.yardopts +0 -0
  120. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/2.0-Upgrade.md +0 -0
  121. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/CHANGELOG.md +9 -0
  122. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/Gemfile +1 -1
  123. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/LICENSE.txt +0 -0
  124. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/README.md +1 -1
  125. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/Rakefile +3 -3
  126. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/SECURITY.md +0 -0
  127. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/bin/console +0 -0
  128. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/data/list.txt +52 -21
  129. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix/domain.rb +0 -0
  130. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix/errors.rb +0 -0
  131. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix/list.rb +1 -1
  132. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix/rule.rb +5 -5
  133. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix/version.rb +1 -1
  134. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/lib/public_suffix.rb +1 -1
  135. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/public_suffix.gemspec +1 -1
  136. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/.empty +0 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/acceptance_test.rb +4 -4
  138. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_find.rb +0 -0
  139. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_find_all.rb +0 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_names.rb +0 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_select.rb +0 -0
  142. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_select_incremental.rb +0 -0
  143. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/benchmarks/bm_valid.rb +0 -0
  144. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/domain_profiler.rb +0 -0
  145. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/find_profiler.rb +0 -0
  146. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/find_profiler_jp.rb +0 -0
  147. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/initialization_profiler.rb +0 -0
  148. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/list_profsize.rb +0 -0
  149. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/profilers/object_binsize.rb +0 -0
  150. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/psl_test.rb +1 -1
  151. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/test_helper.rb +0 -0
  152. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/tests.txt +0 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/unit/domain_test.rb +3 -3
  154. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/unit/errors_test.rb +0 -0
  155. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/unit/list_test.rb +1 -1
  156. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/unit/public_suffix_test.rb +0 -0
  157. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-4.0.7 → public_suffix-5.0.0}/test/unit/rule_test.rb +15 -15
  158. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/.document +0 -0
  159. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/.yardopts +0 -0
  160. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/Changelog.md +11 -1
  161. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/LICENSE.md +0 -0
  162. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/README.md +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/configuration.rb +0 -0
  165. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/expectation_target.rb +0 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/fail_with.rb +0 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/failure_aggregator.rb +0 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/handler.rb +0 -0
  169. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/minitest_integration.rb +0 -0
  170. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/syntax.rb +0 -0
  171. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations/version.rb +1 -1
  172. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/expectations.rb +0 -0
  173. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  174. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/all.rb +0 -0
  175. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  176. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be.rb +0 -0
  177. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  178. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  179. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  180. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  181. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/change.rb +0 -0
  182. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/compound.rb +0 -0
  183. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/contain_exactly.rb +10 -2
  184. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/count_expectation.rb +1 -1
  185. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/cover.rb +0 -0
  186. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/eq.rb +0 -0
  187. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/eql.rb +0 -0
  188. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/equal.rb +0 -0
  189. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/exist.rb +1 -1
  190. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/has.rb +0 -0
  191. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  192. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/include.rb +0 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/match.rb +0 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/operators.rb +0 -0
  195. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/output.rb +0 -0
  196. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/raise_error.rb +6 -6
  197. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  198. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  199. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  200. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/throw_symbol.rb +4 -4
  201. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in/yield.rb +0 -0
  202. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/built_in.rb +0 -0
  203. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/composable.rb +0 -0
  204. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/dsl.rb +2 -2
  205. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/english_phrasing.rb +0 -0
  206. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  207. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/fail_matchers.rb +0 -0
  208. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  209. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  210. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  211. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.11.0 → rspec-expectations-3.11.1}/lib/rspec/matchers.rb +3 -3
  212. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/Changelog.md +8 -1
  213. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/LICENSE.md +0 -0
  214. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/README.md +0 -0
  215. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/caller_filter.rb +2 -2
  216. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/comparable_version.rb +1 -1
  217. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/differ.rb +4 -4
  218. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/directory_maker.rb +0 -0
  219. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/encoded_string.rb +3 -3
  220. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  221. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/hunk_generator.rb +0 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/matcher_definition.rb +0 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/method_signature_verifier.rb +2 -2
  224. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/mutex.rb +1 -1
  225. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/object_formatter.rb +0 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
  227. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
  228. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/ruby_features.rb +3 -0
  229. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/location.rb +0 -0
  230. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/node.rb +0 -0
  231. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source/token.rb +0 -0
  232. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/source.rb +0 -0
  233. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  235. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/in_sub_process.rb +1 -1
  237. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  238. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/shell_out.rb +0 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/stderr_splitter.rb +1 -1
  240. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  242. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  243. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/spec.rb +0 -0
  244. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/version.rb +1 -1
  245. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/warnings.rb +0 -0
  246. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support/with_keywords_when_needed.rb +1 -1
  247. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.11.0 → rspec-support-3.11.1}/lib/rspec/support.rb +0 -0
  248. data/vendor/bundle/ruby/2.6.0/specifications/{addressable-2.8.0.gemspec → addressable-2.8.1.gemspec} +7 -6
  249. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-4.0.7.gemspec → public_suffix-5.0.0.gemspec} +5 -5
  250. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.11.0.gemspec → rspec-expectations-3.11.1.gemspec} +5 -5
  251. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.11.0.gemspec → rspec-support-3.11.1.gemspec} +5 -5
  252. metadata +205 -177
  253. data/docs/RepositoryPrivilegeList.md +0 -8
  254. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.0.gem +0 -0
  255. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-4.0.7.gem +0 -0
  256. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.11.0.gem +0 -0
  257. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.11.0.gem +0 -0
  258. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/addressable.gemspec +0 -37
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class ReposCreate
17
+ # The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time.
18
+ attr_accessor :content_kind
19
+
17
20
  # If checked, missing credentials for this repository where basic authentication is required shall present an enriched value in the 'WWW-Authenticate' header containing the namespace and repository. This can be useful for tooling such as SBT where the authentication realm is used to distinguish and disambiguate credentials.
18
21
  attr_accessor :contextual_auth_realm
19
22
 
@@ -35,6 +38,9 @@ module CloudsmithApi
35
38
  # A description of the repository's purpose/contents.
36
39
  attr_accessor :description
37
40
 
41
+ # The repositories distributed through this repo. Adding repos here is only valid if the content_kind is DISTRIBUTION.
42
+ attr_accessor :distributes
43
+
38
44
  # If checked, refresh tokens will be issued in addition to access tokens for Docker authentication. This allows unlimited extension of the lifetime of access tokens.
39
45
  attr_accessor :docker_refresh_tokens_enabled
40
46
 
@@ -113,7 +119,7 @@ module CloudsmithApi
113
119
  # If checked, users can use and manage their own user-specific entitlement token for the repository (if private). Otherwise, user-specific entitlements are disabled for all users.
114
120
  attr_accessor :user_entitlements_enabled
115
121
 
116
- # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applciable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
122
+ # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applicable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
117
123
  attr_accessor :view_statistics
118
124
 
119
125
  class EnumAttributeValidator
@@ -141,6 +147,7 @@ module CloudsmithApi
141
147
  # Attribute mapping from ruby-style variable name to JSON key.
142
148
  def self.attribute_map
143
149
  {
150
+ :'content_kind' => :'content_kind',
144
151
  :'contextual_auth_realm' => :'contextual_auth_realm',
145
152
  :'copy_own' => :'copy_own',
146
153
  :'copy_packages' => :'copy_packages',
@@ -148,6 +155,7 @@ module CloudsmithApi
148
155
  :'delete_own' => :'delete_own',
149
156
  :'delete_packages' => :'delete_packages',
150
157
  :'description' => :'description',
158
+ :'distributes' => :'distributes',
151
159
  :'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
152
160
  :'index_files' => :'index_files',
153
161
  :'move_own' => :'move_own',
@@ -181,6 +189,7 @@ module CloudsmithApi
181
189
  # Attribute type mapping.
182
190
  def self.swagger_types
183
191
  {
192
+ :'content_kind' => :'String',
184
193
  :'contextual_auth_realm' => :'BOOLEAN',
185
194
  :'copy_own' => :'BOOLEAN',
186
195
  :'copy_packages' => :'String',
@@ -188,6 +197,7 @@ module CloudsmithApi
188
197
  :'delete_own' => :'BOOLEAN',
189
198
  :'delete_packages' => :'String',
190
199
  :'description' => :'String',
200
+ :'distributes' => :'Array<String>',
191
201
  :'docker_refresh_tokens_enabled' => :'BOOLEAN',
192
202
  :'index_files' => :'BOOLEAN',
193
203
  :'move_own' => :'BOOLEAN',
@@ -226,6 +236,10 @@ module CloudsmithApi
226
236
  # convert string to symbol for hash key
227
237
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
228
238
 
239
+ if attributes.has_key?(:'content_kind')
240
+ self.content_kind = attributes[:'content_kind']
241
+ end
242
+
229
243
  if attributes.has_key?(:'contextual_auth_realm')
230
244
  self.contextual_auth_realm = attributes[:'contextual_auth_realm']
231
245
  end
@@ -254,6 +268,12 @@ module CloudsmithApi
254
268
  self.description = attributes[:'description']
255
269
  end
256
270
 
271
+ if attributes.has_key?(:'distributes')
272
+ if (value = attributes[:'distributes']).is_a?(Array)
273
+ self.distributes = value
274
+ end
275
+ end
276
+
257
277
  if attributes.has_key?(:'docker_refresh_tokens_enabled')
258
278
  self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
259
279
  end
@@ -377,6 +397,8 @@ module CloudsmithApi
377
397
  # Check to see if the all the properties in the model are valid
378
398
  # @return true if the model is valid
379
399
  def valid?
400
+ content_kind_validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
401
+ return false unless content_kind_validator.valid?(@content_kind)
380
402
  copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
381
403
  return false unless copy_packages_validator.valid?(@copy_packages)
382
404
  default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
@@ -397,6 +419,16 @@ module CloudsmithApi
397
419
  true
398
420
  end
399
421
 
422
+ # Custom attribute writer method checking allowed values (enum).
423
+ # @param [Object] content_kind Object to be assigned
424
+ def content_kind=(content_kind)
425
+ validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
426
+ unless validator.valid?(content_kind)
427
+ fail ArgumentError, 'invalid value for "content_kind", must be one of #{validator.allowable_values}.'
428
+ end
429
+ @content_kind = content_kind
430
+ end
431
+
400
432
  # Custom attribute writer method checking allowed values (enum).
401
433
  # @param [Object] copy_packages Object to be assigned
402
434
  def copy_packages=(copy_packages)
@@ -482,6 +514,7 @@ module CloudsmithApi
482
514
  def ==(o)
483
515
  return true if self.equal?(o)
484
516
  self.class == o.class &&
517
+ content_kind == o.content_kind &&
485
518
  contextual_auth_realm == o.contextual_auth_realm &&
486
519
  copy_own == o.copy_own &&
487
520
  copy_packages == o.copy_packages &&
@@ -489,6 +522,7 @@ module CloudsmithApi
489
522
  delete_own == o.delete_own &&
490
523
  delete_packages == o.delete_packages &&
491
524
  description == o.description &&
525
+ distributes == o.distributes &&
492
526
  docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
493
527
  index_files == o.index_files &&
494
528
  move_own == o.move_own &&
@@ -527,7 +561,7 @@ module CloudsmithApi
527
561
  # Calculates hash code according to all attributes.
528
562
  # @return [Fixnum] Hash code
529
563
  def hash
530
- [contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, storage_region, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
564
+ [content_kind, contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, storage_region, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
531
565
  end
532
566
 
533
567
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class ReposPartialUpdate
17
+ # The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time.
18
+ attr_accessor :content_kind
19
+
17
20
  # If checked, missing credentials for this repository where basic authentication is required shall present an enriched value in the 'WWW-Authenticate' header containing the namespace and repository. This can be useful for tooling such as SBT where the authentication realm is used to distinguish and disambiguate credentials.
18
21
  attr_accessor :contextual_auth_realm
19
22
 
@@ -35,6 +38,9 @@ module CloudsmithApi
35
38
  # A description of the repository's purpose/contents.
36
39
  attr_accessor :description
37
40
 
41
+ # The repositories distributed through this repo. Adding repos here is only valid if the content_kind is DISTRIBUTION.
42
+ attr_accessor :distributes
43
+
38
44
  # If checked, refresh tokens will be issued in addition to access tokens for Docker authentication. This allows unlimited extension of the lifetime of access tokens.
39
45
  attr_accessor :docker_refresh_tokens_enabled
40
46
 
@@ -110,7 +116,7 @@ module CloudsmithApi
110
116
  # If checked, users can use and manage their own user-specific entitlement token for the repository (if private). Otherwise, user-specific entitlements are disabled for all users.
111
117
  attr_accessor :user_entitlements_enabled
112
118
 
113
- # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applciable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
119
+ # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applicable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
114
120
  attr_accessor :view_statistics
115
121
 
116
122
  class EnumAttributeValidator
@@ -138,6 +144,7 @@ module CloudsmithApi
138
144
  # Attribute mapping from ruby-style variable name to JSON key.
139
145
  def self.attribute_map
140
146
  {
147
+ :'content_kind' => :'content_kind',
141
148
  :'contextual_auth_realm' => :'contextual_auth_realm',
142
149
  :'copy_own' => :'copy_own',
143
150
  :'copy_packages' => :'copy_packages',
@@ -145,6 +152,7 @@ module CloudsmithApi
145
152
  :'delete_own' => :'delete_own',
146
153
  :'delete_packages' => :'delete_packages',
147
154
  :'description' => :'description',
155
+ :'distributes' => :'distributes',
148
156
  :'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
149
157
  :'index_files' => :'index_files',
150
158
  :'move_own' => :'move_own',
@@ -177,6 +185,7 @@ module CloudsmithApi
177
185
  # Attribute type mapping.
178
186
  def self.swagger_types
179
187
  {
188
+ :'content_kind' => :'String',
180
189
  :'contextual_auth_realm' => :'BOOLEAN',
181
190
  :'copy_own' => :'BOOLEAN',
182
191
  :'copy_packages' => :'String',
@@ -184,6 +193,7 @@ module CloudsmithApi
184
193
  :'delete_own' => :'BOOLEAN',
185
194
  :'delete_packages' => :'String',
186
195
  :'description' => :'String',
196
+ :'distributes' => :'Array<String>',
187
197
  :'docker_refresh_tokens_enabled' => :'BOOLEAN',
188
198
  :'index_files' => :'BOOLEAN',
189
199
  :'move_own' => :'BOOLEAN',
@@ -221,6 +231,10 @@ module CloudsmithApi
221
231
  # convert string to symbol for hash key
222
232
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
223
233
 
234
+ if attributes.has_key?(:'content_kind')
235
+ self.content_kind = attributes[:'content_kind']
236
+ end
237
+
224
238
  if attributes.has_key?(:'contextual_auth_realm')
225
239
  self.contextual_auth_realm = attributes[:'contextual_auth_realm']
226
240
  end
@@ -249,6 +263,12 @@ module CloudsmithApi
249
263
  self.description = attributes[:'description']
250
264
  end
251
265
 
266
+ if attributes.has_key?(:'distributes')
267
+ if (value = attributes[:'distributes']).is_a?(Array)
268
+ self.distributes = value
269
+ end
270
+ end
271
+
252
272
  if attributes.has_key?(:'docker_refresh_tokens_enabled')
253
273
  self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
254
274
  end
@@ -364,6 +384,8 @@ module CloudsmithApi
364
384
  # Check to see if the all the properties in the model are valid
365
385
  # @return true if the model is valid
366
386
  def valid?
387
+ content_kind_validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
388
+ return false unless content_kind_validator.valid?(@content_kind)
367
389
  copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
368
390
  return false unless copy_packages_validator.valid?(@copy_packages)
369
391
  default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
@@ -385,6 +407,16 @@ module CloudsmithApi
385
407
  true
386
408
  end
387
409
 
410
+ # Custom attribute writer method checking allowed values (enum).
411
+ # @param [Object] content_kind Object to be assigned
412
+ def content_kind=(content_kind)
413
+ validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
414
+ unless validator.valid?(content_kind)
415
+ fail ArgumentError, 'invalid value for "content_kind", must be one of #{validator.allowable_values}.'
416
+ end
417
+ @content_kind = content_kind
418
+ end
419
+
388
420
  # Custom attribute writer method checking allowed values (enum).
389
421
  # @param [Object] copy_packages Object to be assigned
390
422
  def copy_packages=(copy_packages)
@@ -480,6 +512,7 @@ module CloudsmithApi
480
512
  def ==(o)
481
513
  return true if self.equal?(o)
482
514
  self.class == o.class &&
515
+ content_kind == o.content_kind &&
483
516
  contextual_auth_realm == o.contextual_auth_realm &&
484
517
  copy_own == o.copy_own &&
485
518
  copy_packages == o.copy_packages &&
@@ -487,6 +520,7 @@ module CloudsmithApi
487
520
  delete_own == o.delete_own &&
488
521
  delete_packages == o.delete_packages &&
489
522
  description == o.description &&
523
+ distributes == o.distributes &&
490
524
  docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
491
525
  index_files == o.index_files &&
492
526
  move_own == o.move_own &&
@@ -524,7 +558,7 @@ module CloudsmithApi
524
558
  # Calculates hash code according to all attributes.
525
559
  # @return [Fixnum] Hash code
526
560
  def hash
527
- [contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
561
+ [content_kind, contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, distributes, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
528
562
  end
529
563
 
530
564
  # Builds the object from hash
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.26
13
13
  require 'date'
14
14
 
15
15
  module CloudsmithApi
16
- class RepositoryPrivilegeList
16
+ class ReposPrivilegesPartialUpdate
17
17
  # List of objects with explicit privileges to the repository.
18
18
  attr_accessor :privileges
19
19
 
@@ -27,7 +27,7 @@ module CloudsmithApi
27
27
  # Attribute type mapping.
28
28
  def self.swagger_types
29
29
  {
30
- :'privileges' => :'String'
30
+ :'privileges' => :'Array<RepositoryPrivilegeInputPrivileges>'
31
31
  }
32
32
  end
33
33
 
@@ -40,7 +40,9 @@ module CloudsmithApi
40
40
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
41
 
42
42
  if attributes.has_key?(:'privileges')
43
- self.privileges = attributes[:'privileges']
43
+ if (value = attributes[:'privileges']).is_a?(Array)
44
+ self.privileges = value
45
+ end
44
46
  end
45
47
  end
46
48
 
@@ -0,0 +1,192 @@
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.4.26
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class ReposPrivilegesUpdate
17
+ # List of objects with explicit privileges to the repository.
18
+ attr_accessor :privileges
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'privileges' => :'privileges'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'privileges' => :'Array<RepositoryPrivilegeInputPrivileges>'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'privileges')
43
+ if (value = attributes[:'privileges']).is_a?(Array)
44
+ self.privileges = value
45
+ end
46
+ end
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properties with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ if @privileges.nil?
54
+ invalid_properties.push('invalid value for "privileges", privileges cannot be nil.')
55
+ end
56
+
57
+ invalid_properties
58
+ end
59
+
60
+ # Check to see if the all the properties in the model are valid
61
+ # @return true if the model is valid
62
+ def valid?
63
+ return false if @privileges.nil?
64
+ true
65
+ end
66
+
67
+ # Checks equality by comparing each attribute.
68
+ # @param [Object] Object to be compared
69
+ def ==(o)
70
+ return true if self.equal?(o)
71
+ self.class == o.class &&
72
+ privileges == o.privileges
73
+ end
74
+
75
+ # @see the `==` method
76
+ # @param [Object] Object to be compared
77
+ def eql?(o)
78
+ self == o
79
+ end
80
+
81
+ # Calculates hash code according to all attributes.
82
+ # @return [Fixnum] Hash code
83
+ def hash
84
+ [privileges].hash
85
+ end
86
+
87
+ # Builds the object from hash
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ # @return [Object] Returns the model itself
90
+ def build_from_hash(attributes)
91
+ return nil unless attributes.is_a?(Hash)
92
+ self.class.swagger_types.each_pair do |key, type|
93
+ if type =~ /\AArray<(.*)>/i
94
+ # check to ensure the input is an array given that the attribute
95
+ # is documented as an array but the input is not
96
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
97
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
98
+ end
99
+ elsif !attributes[self.class.attribute_map[key]].nil?
100
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
101
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
102
+ end
103
+
104
+ self
105
+ end
106
+
107
+ # Deserializes the data based on type
108
+ # @param string type Data type
109
+ # @param string value Value to be deserialized
110
+ # @return [Object] Deserialized data
111
+ def _deserialize(type, value)
112
+ case type.to_sym
113
+ when :DateTime
114
+ DateTime.parse(value)
115
+ when :Date
116
+ Date.parse(value)
117
+ when :String
118
+ value.to_s
119
+ when :Integer
120
+ value.to_i
121
+ when :Float
122
+ value.to_f
123
+ when :BOOLEAN
124
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
125
+ true
126
+ else
127
+ false
128
+ end
129
+ when :Object
130
+ # generic object (usually a Hash), return directly
131
+ value
132
+ when /\AArray<(?<inner_type>.+)>\z/
133
+ inner_type = Regexp.last_match[:inner_type]
134
+ value.map { |v| _deserialize(inner_type, v) }
135
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
136
+ k_type = Regexp.last_match[:k_type]
137
+ v_type = Regexp.last_match[:v_type]
138
+ {}.tap do |hash|
139
+ value.each do |k, v|
140
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
141
+ end
142
+ end
143
+ else # model
144
+ temp_model = CloudsmithApi.const_get(type).new
145
+ temp_model.build_from_hash(value)
146
+ end
147
+ end
148
+
149
+ # Returns the string representation of the object
150
+ # @return [String] String presentation of the object
151
+ def to_s
152
+ to_hash.to_s
153
+ end
154
+
155
+ # to_body is an alias to to_hash (backward compatibility)
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_body
158
+ to_hash
159
+ end
160
+
161
+ # Returns the object in the form of hash
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_hash
164
+ hash = {}
165
+ self.class.attribute_map.each_pair do |attr, param|
166
+ value = self.send(attr)
167
+ next if value.nil?
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ # Outputs non-array value in the form of hash
174
+ # For object, use to_hash. Otherwise, just return the value
175
+ # @param [Object] value Any valid value
176
+ # @return [Hash] Returns the value in the form of hash
177
+ def _to_hash(value)
178
+ if value.is_a?(Array)
179
+ value.compact.map { |v| _to_hash(v) }
180
+ elsif value.is_a?(Hash)
181
+ {}.tap do |hash|
182
+ value.each { |k, v| hash[k] = _to_hash(v) }
183
+ end
184
+ elsif value.respond_to? :to_hash
185
+ value.to_hash
186
+ else
187
+ value
188
+ end
189
+ end
190
+
191
+ end
192
+ end
@@ -17,6 +17,9 @@ module CloudsmithApi
17
17
  # Base URL from which packages and other artifacts are downloaded.
18
18
  attr_accessor :cdn_url
19
19
 
20
+ # The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time.
21
+ attr_accessor :content_kind
22
+
20
23
  # If checked, missing credentials for this repository where basic authentication is required shall present an enriched value in the 'WWW-Authenticate' header containing the namespace and repository. This can be useful for tooling such as SBT where the authentication realm is used to distinguish and disambiguate credentials.
21
24
  attr_accessor :contextual_auth_realm
22
25
 
@@ -44,6 +47,9 @@ module CloudsmithApi
44
47
  # A description of the repository's purpose/contents.
45
48
  attr_accessor :description
46
49
 
50
+ # The repositories distributed through this repo. Adding repos here is only valid if the content_kind is DISTRIBUTION.
51
+ attr_accessor :distributes
52
+
47
53
  # If checked, refresh tokens will be issued in addition to access tokens for Docker authentication. This allows unlimited extension of the lifetime of access tokens.
48
54
  attr_accessor :docker_refresh_tokens_enabled
49
55
 
@@ -167,7 +173,7 @@ module CloudsmithApi
167
173
  # If checked, users can use and manage their own user-specific entitlement token for the repository (if private). Otherwise, user-specific entitlements are disabled for all users.
168
174
  attr_accessor :user_entitlements_enabled
169
175
 
170
- # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applciable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
176
+ # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applicable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
171
177
  attr_accessor :view_statistics
172
178
 
173
179
  class EnumAttributeValidator
@@ -196,6 +202,7 @@ module CloudsmithApi
196
202
  def self.attribute_map
197
203
  {
198
204
  :'cdn_url' => :'cdn_url',
205
+ :'content_kind' => :'content_kind',
199
206
  :'contextual_auth_realm' => :'contextual_auth_realm',
200
207
  :'copy_own' => :'copy_own',
201
208
  :'copy_packages' => :'copy_packages',
@@ -205,6 +212,7 @@ module CloudsmithApi
205
212
  :'delete_packages' => :'delete_packages',
206
213
  :'deleted_at' => :'deleted_at',
207
214
  :'description' => :'description',
215
+ :'distributes' => :'distributes',
208
216
  :'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
209
217
  :'gpg_keys' => :'gpg_keys',
210
218
  :'index_files' => :'index_files',
@@ -254,6 +262,7 @@ module CloudsmithApi
254
262
  def self.swagger_types
255
263
  {
256
264
  :'cdn_url' => :'String',
265
+ :'content_kind' => :'String',
257
266
  :'contextual_auth_realm' => :'BOOLEAN',
258
267
  :'copy_own' => :'BOOLEAN',
259
268
  :'copy_packages' => :'String',
@@ -263,6 +272,7 @@ module CloudsmithApi
263
272
  :'delete_packages' => :'String',
264
273
  :'deleted_at' => :'String',
265
274
  :'description' => :'String',
275
+ :'distributes' => :'Array<String>',
266
276
  :'docker_refresh_tokens_enabled' => :'BOOLEAN',
267
277
  :'gpg_keys' => :'Array<ReposGpgKeys>',
268
278
  :'index_files' => :'BOOLEAN',
@@ -320,6 +330,10 @@ module CloudsmithApi
320
330
  self.cdn_url = attributes[:'cdn_url']
321
331
  end
322
332
 
333
+ if attributes.has_key?(:'content_kind')
334
+ self.content_kind = attributes[:'content_kind']
335
+ end
336
+
323
337
  if attributes.has_key?(:'contextual_auth_realm')
324
338
  self.contextual_auth_realm = attributes[:'contextual_auth_realm']
325
339
  end
@@ -356,6 +370,12 @@ module CloudsmithApi
356
370
  self.description = attributes[:'description']
357
371
  end
358
372
 
373
+ if attributes.has_key?(:'distributes')
374
+ if (value = attributes[:'distributes']).is_a?(Array)
375
+ self.distributes = value
376
+ end
377
+ end
378
+
359
379
  if attributes.has_key?(:'docker_refresh_tokens_enabled')
360
380
  self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
361
381
  end
@@ -541,6 +561,8 @@ module CloudsmithApi
541
561
  # Check to see if the all the properties in the model are valid
542
562
  # @return true if the model is valid
543
563
  def valid?
564
+ content_kind_validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
565
+ return false unless content_kind_validator.valid?(@content_kind)
544
566
  copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
545
567
  return false unless copy_packages_validator.valid?(@copy_packages)
546
568
  default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
@@ -563,6 +585,16 @@ module CloudsmithApi
563
585
  true
564
586
  end
565
587
 
588
+ # Custom attribute writer method checking allowed values (enum).
589
+ # @param [Object] content_kind Object to be assigned
590
+ def content_kind=(content_kind)
591
+ validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
592
+ unless validator.valid?(content_kind)
593
+ fail ArgumentError, 'invalid value for "content_kind", must be one of #{validator.allowable_values}.'
594
+ end
595
+ @content_kind = content_kind
596
+ end
597
+
566
598
  # Custom attribute writer method checking allowed values (enum).
567
599
  # @param [Object] copy_packages Object to be assigned
568
600
  def copy_packages=(copy_packages)
@@ -659,6 +691,7 @@ module CloudsmithApi
659
691
  return true if self.equal?(o)
660
692
  self.class == o.class &&
661
693
  cdn_url == o.cdn_url &&
694
+ content_kind == o.content_kind &&
662
695
  contextual_auth_realm == o.contextual_auth_realm &&
663
696
  copy_own == o.copy_own &&
664
697
  copy_packages == o.copy_packages &&
@@ -668,6 +701,7 @@ module CloudsmithApi
668
701
  delete_packages == o.delete_packages &&
669
702
  deleted_at == o.deleted_at &&
670
703
  description == o.description &&
704
+ distributes == o.distributes &&
671
705
  docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
672
706
  gpg_keys == o.gpg_keys &&
673
707
  index_files == o.index_files &&
@@ -721,7 +755,7 @@ module CloudsmithApi
721
755
  # Calculates hash code according to all attributes.
722
756
  # @return [Fixnum] Hash code
723
757
  def hash
724
- [cdn_url, contextual_auth_realm, copy_own, copy_packages, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, docker_refresh_tokens_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, move_own, move_packages, name, namespace, namespace_url, num_downloads, package_count, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
758
+ [cdn_url, content_kind, contextual_auth_realm, copy_own, copy_packages, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, distributes, docker_refresh_tokens_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, move_own, move_packages, name, namespace, namespace_url, num_downloads, package_count, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
725
759
  end
726
760
 
727
761
  # Builds the object from hash