cloudsmith-api 1.120.3 → 1.142.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -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'])
@@ -561,6 +583,16 @@ module CloudsmithApi
561
583
  true
562
584
  end
563
585
 
586
+ # Custom attribute writer method checking allowed values (enum).
587
+ # @param [Object] content_kind Object to be assigned
588
+ def content_kind=(content_kind)
589
+ validator = EnumAttributeValidator.new('String', ['Standard', 'Distribution', 'Upstream'])
590
+ unless validator.valid?(content_kind)
591
+ fail ArgumentError, 'invalid value for "content_kind", must be one of #{validator.allowable_values}.'
592
+ end
593
+ @content_kind = content_kind
594
+ end
595
+
564
596
  # Custom attribute writer method checking allowed values (enum).
565
597
  # @param [Object] copy_packages Object to be assigned
566
598
  def copy_packages=(copy_packages)
@@ -647,6 +679,7 @@ module CloudsmithApi
647
679
  return true if self.equal?(o)
648
680
  self.class == o.class &&
649
681
  cdn_url == o.cdn_url &&
682
+ content_kind == o.content_kind &&
650
683
  contextual_auth_realm == o.contextual_auth_realm &&
651
684
  copy_own == o.copy_own &&
652
685
  copy_packages == o.copy_packages &&
@@ -656,6 +689,7 @@ module CloudsmithApi
656
689
  delete_packages == o.delete_packages &&
657
690
  deleted_at == o.deleted_at &&
658
691
  description == o.description &&
692
+ distributes == o.distributes &&
659
693
  docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
660
694
  gpg_keys == o.gpg_keys &&
661
695
  index_files == o.index_files &&
@@ -709,7 +743,7 @@ module CloudsmithApi
709
743
  # Calculates hash code according to all attributes.
710
744
  # @return [Fixnum] Hash code
711
745
  def hash
712
- [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
746
+ [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
713
747
  end
714
748
 
715
749
  # Builds the object from hash
@@ -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 RepositoryPrivilegeInput
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
@@ -0,0 +1,205 @@
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 RepositoryPrivilegeInputPrivileges
17
+ # The level of privilege that the user or team should be granted to the specified repository.
18
+ attr_accessor :privilege
19
+
20
+ # The team identifier (slug).
21
+ attr_accessor :team
22
+
23
+ # The user identifier (slug).
24
+ attr_accessor :user
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'privilege' => :'privilege',
30
+ :'team' => :'team',
31
+ :'user' => :'user'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'privilege' => :'String',
39
+ :'team' => :'String',
40
+ :'user' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'privilege')
53
+ self.privilege = attributes[:'privilege']
54
+ end
55
+
56
+ if attributes.has_key?(:'team')
57
+ self.team = attributes[:'team']
58
+ end
59
+
60
+ if attributes.has_key?(:'user')
61
+ self.user = attributes[:'user']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ privilege == o.privilege &&
84
+ team == o.team &&
85
+ user == o.user
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Fixnum] Hash code
96
+ def hash
97
+ [privilege, team, user].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ self.class.swagger_types.each_pair do |key, type|
106
+ if type =~ /\AArray<(.*)>/i
107
+ # check to ensure the input is an array given that the attribute
108
+ # is documented as an array but the input is not
109
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ end
112
+ elsif !attributes[self.class.attribute_map[key]].nil?
113
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
115
+ end
116
+
117
+ self
118
+ end
119
+
120
+ # Deserializes the data based on type
121
+ # @param string type Data type
122
+ # @param string value Value to be deserialized
123
+ # @return [Object] Deserialized data
124
+ def _deserialize(type, value)
125
+ case type.to_sym
126
+ when :DateTime
127
+ DateTime.parse(value)
128
+ when :Date
129
+ Date.parse(value)
130
+ when :String
131
+ value.to_s
132
+ when :Integer
133
+ value.to_i
134
+ when :Float
135
+ value.to_f
136
+ when :BOOLEAN
137
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
138
+ true
139
+ else
140
+ false
141
+ end
142
+ when :Object
143
+ # generic object (usually a Hash), return directly
144
+ value
145
+ when /\AArray<(?<inner_type>.+)>\z/
146
+ inner_type = Regexp.last_match[:inner_type]
147
+ value.map { |v| _deserialize(inner_type, v) }
148
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
149
+ k_type = Regexp.last_match[:k_type]
150
+ v_type = Regexp.last_match[:v_type]
151
+ {}.tap do |hash|
152
+ value.each do |k, v|
153
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
154
+ end
155
+ end
156
+ else # model
157
+ temp_model = CloudsmithApi.const_get(type).new
158
+ temp_model.build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ next if value.nil?
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ # Outputs non-array value in the form of hash
187
+ # For object, use to_hash. Otherwise, just return the value
188
+ # @param [Object] value Any valid value
189
+ # @return [Hash] Returns the value in the form of hash
190
+ def _to_hash(value)
191
+ if value.is_a?(Array)
192
+ value.compact.map { |v| _to_hash(v) }
193
+ elsif value.is_a?(Hash)
194
+ {}.tap do |hash|
195
+ value.each { |k, v| hash[k] = _to_hash(v) }
196
+ end
197
+ elsif value.respond_to? :to_hash
198
+ value.to_hash
199
+ else
200
+ value
201
+ end
202
+ end
203
+
204
+ end
205
+ end
@@ -110,6 +110,12 @@ module CloudsmithApi
110
110
  #
111
111
  attr_accessor :num_files
112
112
 
113
+ #
114
+ attr_accessor :origin_repository
115
+
116
+ #
117
+ attr_accessor :origin_repository_url
118
+
113
119
  # The type of package contents.
114
120
  attr_accessor :package_type
115
121
 
@@ -272,6 +278,8 @@ module CloudsmithApi
272
278
  :'namespace' => :'namespace',
273
279
  :'namespace_url' => :'namespace_url',
274
280
  :'num_files' => :'num_files',
281
+ :'origin_repository' => :'origin_repository',
282
+ :'origin_repository_url' => :'origin_repository_url',
275
283
  :'package_type' => :'package_type',
276
284
  :'provider' => :'provider',
277
285
  :'release' => :'release',
@@ -345,6 +353,8 @@ module CloudsmithApi
345
353
  :'namespace' => :'String',
346
354
  :'namespace_url' => :'String',
347
355
  :'num_files' => :'Integer',
356
+ :'origin_repository' => :'String',
357
+ :'origin_repository_url' => :'String',
348
358
  :'package_type' => :'Integer',
349
359
  :'provider' => :'String',
350
360
  :'release' => :'String',
@@ -523,6 +533,14 @@ module CloudsmithApi
523
533
  self.num_files = attributes[:'num_files']
524
534
  end
525
535
 
536
+ if attributes.has_key?(:'origin_repository')
537
+ self.origin_repository = attributes[:'origin_repository']
538
+ end
539
+
540
+ if attributes.has_key?(:'origin_repository_url')
541
+ self.origin_repository_url = attributes[:'origin_repository_url']
542
+ end
543
+
526
544
  if attributes.has_key?(:'package_type')
527
545
  self.package_type = attributes[:'package_type']
528
546
  end
@@ -741,6 +759,8 @@ module CloudsmithApi
741
759
  namespace == o.namespace &&
742
760
  namespace_url == o.namespace_url &&
743
761
  num_files == o.num_files &&
762
+ origin_repository == o.origin_repository &&
763
+ origin_repository_url == o.origin_repository_url &&
744
764
  package_type == o.package_type &&
745
765
  provider == o.provider &&
746
766
  release == o.release &&
@@ -787,7 +807,7 @@ module CloudsmithApi
787
807
  # Calculates hash code according to all attributes.
788
808
  # @return [Fixnum] Hash code
789
809
  def hash
790
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_downloadable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, provider, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
810
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_downloadable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, provider, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
791
811
  end
792
812
 
793
813
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.26
11
11
  =end
12
12
 
13
13
  module CloudsmithApi
14
- VERSION = '1.120.3'
14
+ VERSION = '1.142.3'
15
15
  end
@@ -40,10 +40,14 @@ require 'cloudsmith-api/models/organization_group_sync'
40
40
  require 'cloudsmith-api/models/organization_invite'
41
41
  require 'cloudsmith-api/models/organization_membership'
42
42
  require 'cloudsmith-api/models/organization_team'
43
+ require 'cloudsmith-api/models/organization_team_members'
44
+ require 'cloudsmith-api/models/organization_team_members_members'
43
45
  require 'cloudsmith-api/models/orgs_invites_create'
44
46
  require 'cloudsmith-api/models/orgs_invites_extend'
45
47
  require 'cloudsmith-api/models/orgs_samlgroupsync_create'
46
48
  require 'cloudsmith-api/models/orgs_teams_create'
49
+ require 'cloudsmith-api/models/orgs_teams_members_create'
50
+ require 'cloudsmith-api/models/orgs_teams_members_update'
47
51
  require 'cloudsmith-api/models/orgs_teams_partial_update'
48
52
  require 'cloudsmith-api/models/package'
49
53
  require 'cloudsmith-api/models/package_copy'
@@ -114,12 +118,15 @@ require 'cloudsmith-api/models/repos_create'
114
118
  require 'cloudsmith-api/models/repos_gpg_create'
115
119
  require 'cloudsmith-api/models/repos_gpg_keys'
116
120
  require 'cloudsmith-api/models/repos_partial_update'
121
+ require 'cloudsmith-api/models/repos_privileges_partial_update'
122
+ require 'cloudsmith-api/models/repos_privileges_update'
117
123
  require 'cloudsmith-api/models/repos_rsa_create'
118
124
  require 'cloudsmith-api/models/repository'
119
125
  require 'cloudsmith-api/models/repository_audit_log'
120
126
  require 'cloudsmith-api/models/repository_create'
121
127
  require 'cloudsmith-api/models/repository_gpg_key'
122
- require 'cloudsmith-api/models/repository_privilege_list'
128
+ require 'cloudsmith-api/models/repository_privilege_input'
129
+ require 'cloudsmith-api/models/repository_privilege_input_privileges'
123
130
  require 'cloudsmith-api/models/repository_rsa_key'
124
131
  require 'cloudsmith-api/models/repository_token'
125
132
  require 'cloudsmith-api/models/repository_token_refresh'